1 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
3 hpftodit has been extended to handle TrueType metric files and
4 more glyphs. See hpftodit.man for more details.
6 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
7 ctype.h, and unicode.h.
8 s/msl/charcode/ everywhere since we now handle Unicode values also.
9 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
10 Use it where appropriate.
11 (MULTIPLIER): Replaced with...
12 (multiplier): New global static variable.
14 (tag_type): Add more TFM tags.
15 (tag_name): New array.
16 (ENUM_TYPE, FLOAT_TYPE): Removed.
17 (BYTE_TYPE): New value assigned.
18 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
19 (text_symbol_sets, special_symbol_sets): Extended to cover more
21 (check_type): Add return value.
22 (check_units): Add parameters to get ppi and upem values.
23 Handle TrueType TFM data.
24 (output_font_name): New function.
25 (output_charset): Add parameter to handle TFM type.
26 Handle TrueType TFMs also.
27 (em_fract): New macro.
28 (dump_tags): Be much more verbose and handle more tags.
29 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
30 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
32 (read_map): Add parameter to handle TFM type.
33 Handle both MSL and Unicode mappings.
34 (main): Add two new command line options `-a' and `-q'.
35 Updated to make use of new functions.
38 * src/utils/hpftodit/hpuni.cpp: New file.
40 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
43 2003-12-25 Werner LEMBERG <wl@gnu.org>
45 * src/include/nonposix.h (read) [_MSC_VER]: Define.
47 2003-12-24 Werner LEMBERG <wl@gnu.org>
49 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
50 by Michail Vidiassov <master@iaas.msu.ru>.
52 2003-12-20 Werner LEMBERG <wl@gnu.org>
54 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
56 Add missing latin-2 glyphs.
57 * font/devutf8/R.proto: Add missing latin-2 glyphs.
59 * tmac/troffrc: Load `composite.tmac' earlier.
61 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
62 u00{53,73}_0327, and u0049_0307.
63 * tmac/X.tmac: Add u00{47,67}_0306.
64 * tmac/tty-char.tmac: Use composite glyph names for readability.
68 * src/include/unicode.h: Remove `extern' keywords.
70 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
72 * tmac/latin5.tmac: New file.
74 2003-12-19 Werner LEMBERG <wl@gnu.org>
76 Add some glyphs needed for Turkish.
78 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
81 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
82 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
83 u00{53,73}_0327, and u0049_0307.
85 2003-12-18 Werner LEMBERG <wl@gnu.org>
87 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
89 Remove trailing zeros.
91 2003-12-17 Werner LEMBERG <wl@gnu.org>
93 Make \? transparent to end-of-sentence recognition.
95 * src/roff/troff/input.cc (non_interpreted_node): Add
96 `ends_sentence' member function.
98 2003-12-16 Werner LEMBERG <wl@gnu.org>
100 * doc/groff.texinfo: Document `dt' request correctly.
101 Other minor typographical improvements.
103 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
105 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
107 2003-12-10 Richard Stallman <rms@gnu.org>
109 * LICENSE: Better wording.
111 2003-12-09 Werner LEMBERG <wl@gnu.org>
113 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
114 * configure, NEWS: Updated.
116 2003-12-08 Werner LEMBERG <wl@gnu.org>
118 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
120 2003-12-07 Bernd Warken <bwarken@mayn.de>
124 2003-12-07 Werner LEMBERG <wl@gnu.org>
128 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
130 Use path separator character of target platform for compiled-in
133 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
134 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
135 * configure: Regenerated.
136 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
138 2003-12-05 Werner LEMBERG <wl@gnu.org>
140 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
141 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
143 2003-12-04 Bernd Warken <bwarken@mayn.de>
147 2003-12-03 Werner LEMBERG <wl@gnu.org>
149 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
150 ligatures present in AFM files since groff currently only
151 understands some standard ligatures and nothing else.
153 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
155 * src/roff/groff/groff.cpp (main): Don't run the spooler if
158 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
161 Don't use Unix wait flags.
163 2003-12-02 Werner LEMBERG <wl@gnu.org>
165 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
166 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
167 src/roff/troff/uniuni.cpp: Moved to...
168 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
169 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
170 src/libs/libgroff/uniuni.cpp: Here.
172 * src/include/Makefile.sub.old (HDRS),
173 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
174 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
176 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
178 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
182 2003-12-01 Werner LEMBERG <wl@gnu.org>
184 * groff.texinfo: Document special behaviour of `.vs 0'.
185 Improve documentation of `cflags' request.
188 2003-11-29 Werner LEMBERG <wl@gnu.org>
190 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
191 * font/devlj4/CORONET: Regenerated.
193 2003-11-24 Werner LEMBERG <wl@gnu.org>
195 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
196 if processing hyphenation patterns in traditional mode.
197 Improve error messages.
199 2003-11-20 Werner LEMBERG <wl@gnu.org>
201 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
202 troff_output_file::put_char): Fix type of local variable `c'.
204 2003-11-19 Werner LEMBERG <wl@gnu.org>
206 * src/roff/groff/pipeline.c (P): Removed. Updated all function
208 (i_to_a): Removed. libgroff already provides this function.
209 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
211 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
213 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
216 2003-11-17 Werner LEMBERG <wl@gnu.org>
218 * COPYING: Use correct version.
220 2003-11-11 Werner LEMBERG <wl@gnu.org>
222 LynxOS 4.0.0 doesn't declare vfprintf.
224 * configure.ac: Check for vfprintf.
225 * configure: Regenerated.
226 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
227 * src/include/config.hin: Regenerated.
229 2003-11-10 Werner LEMBERG <wl@gnu.org>
231 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
233 * configure.ac: Check for vsnprintf.
234 * configure: Regenerated.
235 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
237 * src/include/config.hin: Regenerated.
239 2003-11-09 Werner LEMBERG <wl@gnu.org>
241 * aclocal.m4: Updated syntax to autoconf 2.59.
242 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
243 Don't check for gsos2.
244 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
245 working abs_top_srcdir and abs_top_builddir.
247 * configure.ac: Updated syntax to autoconf 2.59.
248 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
249 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
250 * configure: Regenerated.
252 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
253 s/@groff_top_builddir@/@abs_top_builddir@/.
255 * src/roff/groff/pipeline.c (xstrsignal):
256 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
258 2003-11-07 Werner LEMBERG <wl@gnu.org>
260 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
261 make start angle smaller than end angle to circumvent a bug in tpic
262 handling of some versions of dvipdfm (and dvipdfmx).
264 2003-10-30 Werner LEMBERG <wl@gnu.org>
266 * src/devices/grops/grops.man: Improve section on creating EPS.
268 2003-10-29 Werner LEMBERG <wl@gnu.org>
270 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
273 2003-10-28 Werner LEMBERG <wl@gnu.org>
275 * doc/groff.texinfo: Fix documentation of `.if'.
277 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
279 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
280 the form `uniXXXX' also.
282 2003-10-27 Werner LEMBERG <wl@gnu.org>
284 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
285 contrib/pic2graph/pic2graph.sh: Implement secure management of
287 Pass `-P-pletter' to groff to avoid data outside of the converted
288 area -- some versions of `convert' (for example 5.3.8) don't check
289 the bounding box of the image but always use a fixed image size
290 (letter paper format).
291 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
292 contrib/pic2graph/pic2graph.man: Updated.
294 * src/roff/groff/groff.man: Document $TMP and $TEMP.
296 2003-10-26 Werner LEMBERG <wl@gnu.org>
298 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
299 troff_output::simple_ellipse, troff_output::simple_arc,
300 troff_output::simple_line, troff_output::simple_spline,
301 troff_output::simple_polygon): Insert a space before arguments.
302 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
303 latter doesn't produce a node, so the following `.sp -1' would do
305 Don't emit `.sp -1' after \M. This also doesn't produce a token
306 (and we don't have to care about compatibility mode).
307 (troff_output::set_color, troff_output::reset_color): Don't emit
308 `.sp -1' after \M and \m.
310 * src/roff/troff/input.cpp (old_have_input): New global variable.
311 (input_stack::get): Handle `old_have_input'.
312 (process_input_stack) <token::TOKEN_NEWLINE>: Call
313 `trapping_blank_line' depending on `old_have_input', not
316 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
318 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
319 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
320 default directory names for temporary files.
321 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
323 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
324 [__MSDOS__] (run_pipeline): Honour environment variables.
325 Don't use `tmpnam' but `tempnam' to work around messy
328 * README.MinGW: New file.
330 2003-10-16 Werner LEMBERG <wl@gnu.org>
332 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
333 `(*t)->next' without testing validity of `*t'.
334 (usage): Make it more readable.
336 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
338 Make html device run under both MS-DOS and Win32.
340 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
341 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
342 spawn or fork+exec has to be used, and whether parent must sleep
343 until the child process terminates. Used in
344 `char_buffer::run_output_filter'.
345 (copyofstdoutfd): Removed.
346 (char_buffer): Replace `write_file_html' and `write_file_troff'
347 member functions with `emit_troff_output' and `run_output_filter'.
348 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
350 (replaceFd): Replaced with...
351 (set_redirection): New auxiliary function.
352 (waitForChild): Replaced with...
353 (save_and_redirect): New auxiliary function for.
355 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
358 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
360 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
361 (GROFF_LIBC): New function.
362 * configure.ac: Call GROFF_LIBC.
364 * configure: Regenerated.
366 * src/include/lib.h: Handle __MINGW32__.
367 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
368 Add macro for `pipe'.
371 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
374 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
377 2003-10-13 Werner LEMBERG <wl@gnu.org>
379 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
382 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
385 2003-10-12 Werner LEMBERG <wl@gnu.org>
387 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
388 src/roff/troff/input.cc (usage): Updated.
390 * NEWS, doc/groff.texinfo: Updated.
392 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
394 * src/libs/libgroff/searchpath.cpp
395 (search_path::open_file_cautious): New function which also handles
396 `-' as stdin and stdout depending on the access mode.
397 * src/include/searchpath.h (search_path): Updated.
399 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
400 * src/devices/grops/ps.h: Include `searchpath.h'.
401 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
402 Open resource file with `include_search_path.open_file_cautious'.
403 * src/devices/grops/grops.man: Document new `-I' switch.
405 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
406 (main), src/devices/grolj4/lj4.cpp (main),
407 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
409 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
411 (include_search_path): New global variable.
412 (include_path_append): Removed.
413 (main): Use `include_search_path.command_line_dir' to handle `-I'.
414 (do_file): Simplify, using new
415 `include_search_path.open_file_cautious'.
417 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
419 (main): Pass arguments to `-I' to both troff and devices.
420 Improve handling of `-V'.
421 * src/roff/groff/groff.man: Document changes to -I and -V.
423 * src/roff/troff/input.cpp (include_search_path): New global
425 (next_file, source, ps_bbox_request, transparent_file,
426 process_input_file): Use new
427 `include_search_path.open_file_cautious'.
428 (main) Handle `-I' switch.
429 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
430 Use new `include_search_path.open_file_cautious'.
431 * src/roff/troff/node.h: New extern symbol `include_search_path'.
432 * src/roff/troff/troff.man: Document new `-I' switch.
434 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
436 Support multiple calls of .Lb in LIBRARY section.
438 * tmac/doc-common (doc-in-library-section): New register.
439 (doc-section-library): New string.
440 (Sh): Set `doc-in-library-section'.
442 * tmac/doc-syms (Lb): Insert breaks before and after arguments
443 if in LIBRARY section.
444 * tmac/doc.tmac (doc-save-global-vars): Updated.
445 * NEWS, tmac/groff_mdoc.man: Updated.
447 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
449 * tmac/doc-common (doc-default-operating-system): New variable.
452 2003-09-08 Werner LEMBERG <wl@gnu.org>
454 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
456 2003-08-31 Werner LEMBERG <wl@gnu.org>
458 * contrib/mom/Makefile.sub: Fix last change to make it really work.
459 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
460 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
461 $(DEVFILES) are not empty.
462 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
464 2003-08-26 Chuck Silvers <chuq@chuq.com>
466 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
467 with parallel runs of `make'.
469 2003-08-23 Stephen Gildea <gildea@stop.mail-abuse.org>
471 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
472 insert SORT_SEP. With certain combinations of sort specifications,
473 refer sorted entries in the wrong order. In particular, entries
474 with a missing field should be be sorted before all entries that
475 have that field, before refer looks to the next field.
477 2003-08-23 Werner LEMBERG <wl@gnu.org>
479 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
480 g++ linker is used. Reported by Mark J. Reed
481 <mark.reed@turner.com>.
483 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
485 Add key character `x' to tbl which makes tbl call a user-defined
486 macro on a table cell.
488 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
489 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
490 `set_modifier' after printing the compatibility request.
491 (set_modifier): Print call to `m->macro' if not empty.
492 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
494 (process_format): Implement cases `x' and `X'.
495 * src/preproc/tbl/tbl.man, NEWS: Updated.
497 2003-08-15 Werner LEMBERG <wl@gnu.org>
499 * doc/groff.texinfo: Minor fixes.
501 2003-08-09 Werner LEMBERG <wl@gnu.org>
503 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
505 2003-08-07 Werner LEMBERG <wl@gnu.org>
507 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
508 argument list to nothing if there is no file to match. Use `ls' as
509 a protection, similar to autoconf.
511 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
512 empty argument lists.
514 * doc/groff.texinfo: Improve documentation how vertical spacing
515 and line breaks interact.
518 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
520 2003-08-03 Werner LEMBERG <wl@gnu.org>
522 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
523 EPS (using eps2eps or similar programs to compute the bounding box).
525 2003-07-24 Werner LEMBERG <wl@gnu.org>
527 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
528 * doc/texinfo.tex: Updated from texinfo 4.6.
529 * README.CVS: From now on we need texinfo 4.6.
531 2003-07-23 Werner LEMBERG <wl@gnu.org>
533 Add requests `dei1' and `ami1' for completeness.
535 * src/roff/troff/input.cc (calling_mode): Remove
536 CALLING_DISABLE_COMP.
537 (comp_mode): New enumeration.
538 (do_define_string, define_string, define_nocomp_string,
539 append_string, append_nocomp_string): Updated.
540 (do_define_macro): Add third parameter.
541 (define_macro, define_nocomp_macro, define_indirect_macro,
542 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
543 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
546 (init_input_requests): Add `dei1' and `ami1'.
548 * tmac/trace.tmac: Handle de1 and am1.
549 (de): Improve tracing message.
550 (am): Add missing `do'.
553 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
554 Document new requests.
556 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
558 Add option -G to .MPIMG to insert a gap between text and the image.
560 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
561 www-finish-left-ll): Updated.
562 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
563 (MPIMG): Make option -L and -R optional.
566 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
568 * src/devices/grohtml/post-html.cpp
569 (html_printer::do_file_components): Don't use `stdout' as lvalue
570 since it can be a macro.
572 2003-07-22 Werner LEMBERG <wl@gnu.org>
574 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
575 the corresponding test in aclocal.m4.
577 2003-07-21 Werner LEMBERG <wl@gnu.org>
579 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
580 names but RGB values directly. Otherwise pnmtopng depends on
581 an external file `rgb.txt' which maps colour names to values.
583 2003-07-20 Werner LEMBERG <wl@gnu.org>
585 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
586 * configure, src/include/config.hin: Regenerated.
588 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
590 2003-07-19 Werner LEMBERG <wl@gnu.org>
592 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
594 2003-07-18 Werner LEMBERG <wl@gnu.org>
596 * *.man: Switch to non-compatibility mode temporarily if GNU
597 syntax extensions are used in the particular man page.
599 * PROBLEMS: Add solutions for SGR problems.
601 2003-07-17 Werner LEMBERG <wl@gnu.org>
603 Don't ignore grotty's command line options if \X'tty: sgr ...' is
604 used to change the drawing scheme.
606 * src/devives/grotty/tty.cpp (bold_flag_option,
607 underline_flag_option, italic_flag_option, reverse_flag_option,
608 bold_underline_mode_option): New global variables.
609 (update_options): New function.
610 (tty_printer::special): Call update_options.
611 (main): Don't set xxx_flag but xxx_flag_option, then call
614 2003-07-14 Werner LEMBERG <wl@gnu.org>
616 Make grotty emit proper Unicode box drawing characters for -Tutf8.
618 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
620 (hline_char, vline_char): New global variables.
621 (tty_printer::tty_printer): Initialize them.
622 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
623 horizontal and vertical lines.
624 (crossings): New global array.
625 (tty_printer::end_page): Use it to determine the proper crossing
626 character for -Tutf8.
628 2003-07-12 Werner LEMBERG <wl@gnu.org>
630 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
631 (HTMLDOCFILES): Revert to `pic.html'.
632 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
634 2003-07-11 Werner LEMBERG <wl@gnu.org>
636 * doc/pic.ms: Improve documentation of absolute coordinates.
637 Document absolute positioning of pictures.
639 * NEWS: Add new pic capability.
641 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
643 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
646 2003-07-07 Werner LEMBERG <wl@gnu.org>
648 Implement support for dashed and dotted ellipses in pic. Based on
649 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
651 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
652 common_output::dashed_ellipse, common_output::dotted_ellipse): New
653 functions. Ellipse arcs are approximated with circle arcs.
654 * src/preproc/pic/common.h (common_output): Updated.
655 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
657 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
659 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
661 2003-07-06 Werner LEMBERG <wl@gnu.org>
663 Make grotty work on platforms which have unsigned char as the
664 default for char. Based on a patch by Thomas Klausner
667 * src/devices/grotty/tty.cpp (schar): New typedef.
668 Updated calls to declare_ptable and implement_ptable.
669 (glyph): Use schar for back_color_idx and fore_color_idx.
670 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
671 (tty_printer::tty_color, tty_printer::tty_printer,
672 tty_printer::color_to_idx, tty_printer::put_color): Updated.
674 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
676 * src/roff/nroff/nroff.sh: Add option -d for completeness.
677 * src/roff/nroff/nroff.man: Updated.
679 2003-07-05 Werner LEMBERG <wl@gnu.org>
681 * NEWS, tmac/groff_www.man: Updated.
682 * doc/Makefile.sub: Updated.
684 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
686 Implement support for multiple HTML output files.
688 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
689 -j command line option.
691 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
693 (file): New fields `new_output_file', `require_links',
695 (file::file): Updated.
696 (files::set_file_name, files::set_links_required,
697 files::are_links_required, files::is_new_output_file,
698 files::file_name, files::next_file_name): New functions.
699 (header_desc): New fields `no_of_level_one_headings',
701 (header_desc::header_desc): Updated.
702 (header_desc::write_headings): Handle multiple files.
703 (html_printer::write_header): Save file name in which header occurs.
704 (html_printer::determine_header_level): Possibly split files on
706 (html_printer::do_links, html_printer::troff_tag): Updated.
707 (html_printer::insert_split_file, html_printer::do_job_name,
708 html_printer::emit_link, html_printer::write_navigation,
709 html_printer::do_file_components): New functions.
710 (html_printer::~html_printer): Handle multiple files.
711 (main): Handle command line option `-j'.
713 * src/devices/grohtml/grohtml.man: Updated.
715 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
718 * tmac/www.tmac (JOBNAME): New macro.
719 * tmac/s.tmac (SH-NO-TAG): New macro.
720 (@SH): Call SH-NO-TAG.
723 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
725 * tmac/groff_mdoc.man: Improve documentation of punctuation
728 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
730 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
732 2003-07-03 Werner LEMBERG <wl@gnu.org>
734 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
736 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
738 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
741 (Fn, Fo): Reduce indentation in synopsis.
743 * tmac/doc-common (doc-check-depth): New macro.
744 (doc-end-macro, Sh, Ss): Use it.
745 (Cd): Fix behaviour in synopsis.
746 (In): Make it parsed and callable.
747 If not in the synopsis, represent the C header file enclosed in
749 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
750 Use minus, not hyphen.
752 * tmc/groff_mdoc.man: Updated.
754 2003-07-01 Werner LEMBERG <wl@gnu.org>
756 Integrated grap2graph, contributed by Eric S. Raymond.
758 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
760 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
761 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
763 2003-07-01 Colin Watson <cjwatson@debian.org>
765 * src/xditview/*.c: Add prototypes, fix return types, add includes.
766 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
768 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
770 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
772 2003-06-31 Werner LEMBERG <wl@gnu.org>
774 * doc/Makefile.sub (CLEANADD): Remove all files created by
775 running `make groff.{pdf,dvi}'.
777 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
780 2003-06-30 Werner LEMBERG <wl@gnu.org>
782 * Makefile.in (SHELL): Define as @SHELL@.
783 (mkinstalldirs): Use $(SHELL).
784 (MDEFINES): Add $(SHELL).
785 * Makefile.comm (SHELL): Removed.
787 2003-06-29 Werner LEMBERG <wl@gnu.org>
789 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
790 The X11 documentation files use them.
791 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
793 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
795 * tmac/e.tmac (@C): Handle .ad also.
797 2003-06-12 Werner LEMBERG <wl@gnu.org>
799 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
801 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
802 Assign `n' even here. It is possible to construct a node
803 immediately following an escape character:
811 2003-06-10 Werner LEMBERG <wl@gnu.org>
813 * README.WIN32: Removed.
816 2003-06-07 Werner LEMBERG <wl@gnu.org>
818 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
820 2003-06-05 Werner LEMBERG <wl@gnu.org>
822 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
823 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
825 2003-06-03 Werner LEMBERG <wl@gnu.org>
827 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
828 is done by the calling function.
830 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
832 * tmac/X.tmac: Fix definition of `em'.
834 2003-05-22 Werner LEMBERG <wl@gnu.org>
836 * src/roff/troff/input.cc (return_macro_request): Fix detection of
839 2003-05-18 Werner LEMBERG <wl@gnu.org>
841 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
842 to make items work which consist only of a tag.
844 2003-05-17 Werner LEMBERG <wl@gnu.org>
846 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
847 aren't stretched in a tag (this can fail with unformatted boxes).
848 Instead, insert a break and go back one line.
850 2003-05-16 Werner LEMBERG <wl@gnu.org>
852 * src/roff/troff/input.cc (return_macro_request): If called with
853 argument pop macro twice. We need this to trace `return'.
855 * tmac/trace.tmac: Handle `return'.
858 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
861 2003-05-15 Larry Kollar <kollar@alltel.net>
863 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
864 registers `FPS', `FVS', and `FPD'.
866 2003-05-15 Werner LEMBERG <wl@gnu.org>
868 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
871 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
873 * tmac/groff_mdoc.man: Slight improvements.
875 2003-05-03 Werner LEMBERG <wl@gnu.org>
877 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
878 `doc-header-space' after header line if register `cR' is set.
880 2003-05-02 Werner LEMBERG <wl@gnu.org>
884 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
886 * tmac/doc-common (Nd): Use \[em].
888 2003-05-01 Werner LEMBERG <wl@gnu.org>
890 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
891 doc-footer-space): Initialize to 0.5i.
892 (doc-setup-page-layout): Don't set doc-header-space and
895 2003-04-30 Werner LEMBERG <wl@gnu.org>
897 * REVISION: Set to 1.
899 * doc/pic.ms: Document possible problems with `figname'.
901 2003-04-29 Werner LEMBERG <wl@gnu.org>
903 Version 1.19 released
904 =====================
906 * VERSION: Set to 1.19.
907 * REVISION: Set to 0.
908 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
910 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
911 Define charset as `US-ASCII' in html output.
913 * tmac/www.tmac (ULE): Add missing scaling indicator.
915 * win32-diffs: Removed.
917 2003-04-28 Werner LEMBERG <wl@gnu.org>
919 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
921 Document how to insert discardable whitespace with `.ss'.
923 2003-04-27 Werner LEMBERG <wl@gnu.org>
925 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
926 work with plain TeX also.
928 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
930 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
932 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
935 2003-04-24 Werner LEMBERG <wl@gnu.org>
937 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
938 vbox with positive height and zero depth if in TeX mode.
940 * NEWS: Document glyph name changes for grodvi and grolj4.
942 2003-04-23 Werner LEMBERG <wl@gnu.org>
944 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
947 2003-04-21 Werner LEMBERG <wl@gnu.org>
949 HP-UX 10.20 has `snprintf' but it isn't declared.
951 * configure.ac: Add declaration test for snprintf.
952 * configure: Regenerated.
953 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
954 * src/include/config.hin: Regenerated.
956 2003-04-19 Werner LEMBERG <wl@gnu.org>
958 Add keyword `figname' to pic, specifying the name of the picture
959 box in TeX mode. Based on a patch from William J Poser
960 <wjposer@unagi.cis.upenn.edu>.
962 * src/preproc/pic/pic.y: New token `FIGNAME'.
963 (macro_name): New rule of type <str>.
964 (placeless_element): Handle `FIGNAME'.
965 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
966 * src/preproc/pic/main.cpp (graphname): New global variable.
967 (do_picture): Initialize `graphname'.
968 * src/preproc/pic/pic.h: Updated.
969 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
972 (tex_output::text): Beautify output.
973 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
974 `shaded' and `outlined' unconditionally.
975 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
978 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
979 greater is necessary.
981 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
983 Add option -r to soelim to avoid emission of `.lf' lines.
984 Add option -t to produces TeX comment lines instead of `.lf' lines.
986 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
989 (main): Handle `-r' and `-t'.
990 (set_location): Handle `raw_flag' and `tex_flag'.
991 * src/preproc/soelim/soelim.man, NEWS: Updated.
993 2003-04-17 Werner LEMBERG <wl@gnu.org>
995 * tmac/hyphenex.sh: Replaced with...
996 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
999 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1000 if --quiet is used for the configure script.
1001 * configure: Regenerated.
1003 2003-04-16 Werner LEMBERG <wl@gnu.org>
1005 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1006 Add `const' to second argument.
1007 (html_printer::add_table_end): Add `const' to argument.
1008 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1009 `const' to arguments.
1010 * src/devices/grohtml/html-text.h: Updated.
1012 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1013 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1016 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1017 cast for integer constant.
1019 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1020 (writeNbytes): Add `const' to first argument.
1021 (writeString): Add `const' to argument.
1022 (char_buffer::can_see): Add `const' to third argument.
1023 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1024 `const' to argument.
1025 * src/preproc/html/pushback.h: Updated.
1027 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1028 (include_path_append): Add `const' to argument.
1031 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1033 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1034 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1036 (unicode_decompose_init::unicode_decompose_init): Updated.
1037 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1039 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1040 * src/roff/troff/input.cc (process_startup_file): Add `const' to
1043 * tmac/hyphenex.sh: Make script more portable by using a here
1046 2003-04-15 Werner LEMBERG <wl@gnu.org>
1048 Renamed all `*.cc' files to `*.cpp'.
1049 Updated all configuration files, makefiles, and documentation.
1051 2003-04-14 Werner LEMBERG <wl@gnu.org>
1053 * tmac/hyphenex.sh: Slight improvements.
1055 2003-04-13 Werner LEMBERG <wl@gnu.org>
1057 * font/devascii/R.proto, font/devcp1037/R.proto,
1058 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1059 character slots with unnamed glyphs.
1061 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1062 (an-first): New global variable.
1063 (an-header): Emit vertical space between multiple man pages.
1065 2003-04-11 Werner LEMBERG <wl@gnu.org>
1067 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1070 2003-04-10 Werner LEMBERG <wl@gnu.org>
1072 * PROBLEMS: Revised.
1074 2003-04-10 Bernd Warken <bwarken@mayn.de>
1076 * doc/webpage.ms: Improved.
1078 2003-04-09 Werner LEMBERG <wl@gnu.org>
1080 Add register \n[.height] which returns the value of \H.
1081 Add register \n[.slant] which returns the value of \S.
1083 * src/roff/troff/env.cc (init_env_requests): Implement.
1084 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1087 2003-04-08 Werner LEMBERG <wl@gnu.org>
1089 * tmac/html.tmac: Move some of the data into html-end.tmac.
1090 Remove most of the character translations for eqn since html fonts
1091 now cover those characters.
1093 * tmac/html-end.tmac: New file.
1094 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1095 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1096 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1098 2003-04-07 Werner LEMBERG <wl@gnu.org>
1100 * man/groff_out.man: Document negative values of `N' if -Thtml is
1103 2003-04-06 Werner LEMBERG <wl@gnu.org>
1105 * Makefile.comm (depend.temp): Check location of YTABC.
1107 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1109 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1111 (groff_bin_path): Rename to GROFF_BIN_PATH.
1112 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1113 * doc/Makefile.in (TROFFBIN): New variable for troff
1115 (GROFFBIN): New variable for groff binary path.
1116 (groff_bin_path): Rename to GROFF_BIN_PATH.
1117 (TROFF): Use TROFFBIN.
1118 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1119 * doc/Makefile.sub (GROFFBIN): New variable for groff
1121 (groff_bin_path): Rename to GROFF_BIN_PATH.
1122 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1124 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1125 with INSTALL_SCRIPT.
1126 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1127 * Makefile.dev (all): Depend on DEVSCRIPTS.
1128 (install_dev): Likewise.
1129 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1131 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1132 (DEVGENSCRIPTS): New variable to hold generated scripts.
1134 2003-04-05 Werner LEMBERG <wl@gnu.org>
1136 * src/libs/libdriver/input.cc (IntArray::operator[],
1137 IntArray::get_data): Remove meaningless `const' in return value.
1139 * README.CVS: New file.
1141 2003-04-04 Werner LEMBERG <wl@gnu.org>
1143 Check for stdint.h in C++, not in C.
1145 * aclocal.m4 (GROFF_STDINT_H): New function,
1146 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1148 * configure, src/include/config.hin: Regenerated.
1149 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1152 Fix handling of in grohtml. To do this, troff emits `N'
1153 with a negative value, representing the width of the unbreakable
1154 space (only for -Thtml). grohtml then converts this back to
1155 and uses the value of N as its width.
1157 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1158 unbreakable_space_node::tprint): Emit `N-<width>'.
1159 * src/include/printer.h (printer::set_numbered_char): Make it
1161 Make members `font_table' and `nfonts' protected instead of private.
1162 * src/devices/grohtml/post-html.cc
1163 (html_printer::set_numbered_char): New member function.
1166 * src/libs/libgroff/maxfilename.cc:
1167 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1169 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1172 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
1174 * man/roff.man: Small fixes.
1176 2003-04-03 Werner LEMBERG <wl@gnu.org>
1178 Make groff independent from locale's numeric settings.
1180 * configure.ac: Check for `setlocale'.
1181 * configure, src/include/config.hin: Regenerated.
1183 * src/include/lib.h: Handle HAVE_SETLOCALE.
1185 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1186 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1187 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1190 * doc/groff.texinfo: Change dir category to `Typesetting'.
1191 (Man font macros): Mention that there is no space between arguments
1194 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1195 (*printer::change_color, *printer::change_fill_color): Add missing
1198 2003-04-02 Werner LEMBERG <wl@gnu.org>
1200 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1201 html_table::is_gap): Compute table widths after converting border
1202 positions to avoid rounding errors.
1204 2003-04-01 Werner LEMBERG <wl@gnu.org>
1206 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1207 `space_emitted' properly.
1209 2003-03-31 Werner LEMBERG <wl@gnu.org>
1211 * src/devices/grohtml/html-table.cc: Fix column width calculation.
1212 (html_table::set_linelength): Don't add 1.
1213 (html_table::add_indent): Don't subtract 1.
1215 * tmac/html.tmac: Set default page offset to zero.
1217 2003-03-30 Werner LEMBERG <wl@gnu.org>
1219 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
1221 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1222 unbreakable_space_node::tprint): New functions.
1223 (troff_output_file): Make space_char_hmotion_mode::tprint and
1224 unbreakable_space_node::tprint to friends.
1225 * src/roff/troff/node.h: Updated.
1227 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
1228 in the HTML standard).
1230 2003-03-29 Werner LEMBERG <wl@gnu.org>
1232 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1233 Otherwise, the following code
1242 produces `x a' instead of `xa'. This is a temporary fix, disabling
1243 font changes in diversions for -Thtml.
1245 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1247 (an-do-tag-html): Merge with ...
1248 (an-do-tag): This macro.
1249 Change code slightly to circumvent grohtml bug.
1250 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1252 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1253 html_table::is_gap): Round `width' properly.
1255 * tmac/html.tmac: Provide some default layout parameters for
1258 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1261 2003-03-28 Werner LEMBERG <wl@gnu.org>
1263 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1265 2003-03-27 Werner LEMBERG <wl@gnu.org>
1267 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1270 2003-03-20 Werner LEMBERG <wl@gnu.org>
1272 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1274 * doc/groff.texinfo: Updated.
1276 2003-03-19 Werner LEMBERG <wl@gnu.org>
1278 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1279 TOKEN_END_TRAP>: Reset `have_input'.
1281 2003-03-18 Werner LEMBERG <wl@gnu.org>
1283 * src/roff/groff/groff.man: Mention groff_trace man page.
1285 2003-03-16 Werner LEMBERG <wl@gnu.org>
1287 * Makefile.in (LIBEXT): New variable to indicate the file extension
1288 of library files. Computed heuristically from $(OBJEXT).
1289 (MDEFINES): Add $(LIBEXT).
1290 * Makefile.lib, Makefile.comm: Use it.
1292 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
1293 overlong lines into smaller chunks.
1294 (get_binary): New function.
1296 * src/utils/pfbtops/pfbtops.man: Updated.
1298 2003-03-15 Colin Watson <cjwatson@debian.org>
1300 * src/roff/groff/groff.man: Minor syntax fix.
1302 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
1304 * src/devices/grops/ps.cc (ps_printer::media_set,
1305 ps_printer::~ps_printer): Handle zero paper width and length.
1307 2003-03-13 Werner LEMBERG <wl@gnu.org>
1309 Add options -p and -l to grodvi.
1311 * src/devices/grodvi/dvi.cc: Include paper.h.
1312 (landscape_flag, user_paper_length, user_paper_width): New global
1314 (dvi_printer::begin_page): Emit `papersize' special.
1315 Set color after initialization of `cur_h' and `cur_v'.
1316 (main): Add options `-l' and `-p'.
1317 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1318 * src/devices/grodvi/grodvi.man, NEWS: Updated.
1320 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1322 2003-03-12 Werner LEMBERG <wl@gnu.org>
1324 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1325 * man/groff_tmac.man: This man page.
1326 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1329 * tmac/X.tmac: Don't load pspic.tmac.
1331 2003-03-11 Werner LEMBERG <wl@gnu.org>
1333 Make variable `pr' local to libdriver/input.cc. Based on a patch
1334 by Bernd Warken <bwarken@mayn.de>.
1336 * src/include/driver.h (pr): Removed.
1338 * src/libs/libdriver/input.cc (pr): New global variable.
1339 (do_file): Deallocate `pr'.
1340 * src/libs/libdriver/printer.cc (pr): Removed.
1342 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1343 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1344 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1345 (main): Don't delete `pr'.
1347 2003-03-10 Werner LEMBERG <wl@gnu.org>
1349 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1350 * tmac/papersize.tmac: New file.
1351 * tmac/troffrc: Include `papersize.tmac'.
1352 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1353 * tmac/an-old.tmac: Set LT to LL by default.
1355 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1356 doc/groff.texinfo: Updated.
1358 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1359 bug which caused all odd iso papers to have wrong dimensions.
1361 * src/devices/grops/ps.cc (user_paper_width): New global variable.
1362 (main) <'p'>: Set `user_paper_width' also.
1363 (ps_printer::media_width, ps_printer::media_height): Use values
1364 given with option `-p'.
1366 2003-03-09 Werner LEMBERG <wl@gnu.org>
1368 * src/include/nonposix.h: Provide default for SET_BINARY.
1370 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1371 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1374 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1375 (main): Treat \r\n as \n.
1377 2003-03-08 Werner LEMBERG <wl@gnu.org>
1379 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1380 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1382 2003-03-07 Werner LEMBERG <wl@gnu.org>
1384 Added support to access more than 256 glyphs in Type 1 fonts.
1386 * src/devices/grops/ps.cc (subencoding): New structure.
1387 (style): Add `sub' field.
1389 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1390 Add `set_subencoding', `get_subfont' and `encode_subfont' member
1393 (ps_printer::set_char): Use `set_subencoding'.
1394 (make_subencoding_name): New function.
1395 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1396 (ps_printer::~ps_printer): Emit subencoding definitions.
1398 * src/devices/grops/psrm.cc (valid_input_table): New array to
1399 properly support EBCDIC.
1400 (white_space): Add `\f'.
1401 (ps_get_line): Change first argument to be of type `string &'.
1402 Updated all callers.
1403 This allows to get lines of arbitrary length.
1404 Use `valid_input_table'.
1405 Remove warning about non-conforming PS line length. This seems
1406 not to be of great importance -- for example, dvips don't emit
1408 (PS_LINE_MAX): Removed.
1409 (matches_comment): Change first argument to be of type `string &'.
1411 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1413 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1414 %AGL_to_unicode, %default_ligatures): New hash tables.
1415 Read all map entries.
1416 Add unencoded characters.
1417 Check for default ligatures if there are no `L' entries.
1418 Print all kern entries.
1419 Print all characters in charset.
1420 * src/utils/afmtodit/afmtodit.man: Updated.
1422 * font/devps/*: Regerated all fonts.
1424 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1425 of characters, just use `.trin'. Otherwise the mapping depends
1426 on the font encoding.
1427 * tmac/ps.tmac: Add `fi' and `fl'.
1428 Improve `Fi' and `Fl'.
1429 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1430 * tmac/Xps.tmac: Fix `em'.
1434 2003-03-04 Werner LEMBERG <wl@gnu.org>
1436 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1439 2003-03-03 Werner LEMBERG <wl@gnu.org>
1441 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1443 * font/devps/generate/textmap: Remove entry `similarequal'.
1444 * font/devps/symbolmap: Updated.
1446 2003-03-02 Werner LEMBERG <wl@gnu.org>
1448 * src/libs/libgroff/font.cc (font::load): Fix error message for
1451 * src/devices/grops/grops.man: Improve documentation of the -b
1454 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1455 `ascii' and `cp1047'.
1457 2003-03-01 Werner LEMBERG <wl@gnu.org>
1459 Document composite glyphs and the `composite' request.
1461 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1463 2003-02-28 Werner LEMBERG <wl@gnu.org>
1465 * font/devdvi/generate/ec.map: Add some more Unicode entities.
1466 * font/devdvi/*EC: Updated.
1468 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1469 * tmac/latin1 (latin1-tr): Undo any previous mapping.
1470 * tmac/troffrc: Load `composite.tmac'.
1471 * tmac/Makefile.sub (NORMALFILES): Updated.
1473 * doc/groff.texinfo (Input Encodings): New section.
1476 2003-02-27 Werner LEMBERG <wl@gnu.org>
1478 * doc/texinfo.tex: New version 2003-02-11.06.
1480 * tmac/doc-common (Dt): Don't emit warning for unknown section.
1481 * tmac/groff_mdoc.man: Fix description of `Dt'.
1483 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
1485 * font/devps/prologue.ps: Fix for included Postscript that does
1486 a setpagedevice -- which is now safely ignored.
1490 * src/devices/grops/ps.cc: Now sets the page size in the generated
1491 document. This is done in two ways: Via a %%-comment for gv and
1492 the like, and via a PageSize and setpagedevice for programs that
1493 understands Postscript proper, like ps2pdf.
1495 * src/devices/grops/ps.h: New broken-flag to avoid page size
1496 definition, if required.
1498 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1500 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1501 Not really necessary due to the fix in prologue.ps, but cleaner:
1502 Such information does not belong in an .eps file.
1504 * doc/Makefile.sub: See doc/Makefile.in.
1506 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
1508 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1509 instead of P1 since the latter is broken in some versions of netpbm.
1510 * configure: Updated.
1512 2003-02-26 Larry Kollar <kollar@alltel.net>
1514 Make man pages more customizable.
1516 * tmac/an-old.tmac (FT): New register holding footer distance from
1518 (HF): New string holding the default heading font.
1519 (TH): Handle registers `IN' and `SN' set on the command line.
1521 (PT, BT): New strings to customize header and footer lines.
1522 (an-header, an-footer): Use them.
1524 * tmac/groff_man.man: Document changes.
1526 * doc/groff.texinfo: Document man changes.
1527 Document Ultrix extensions of man.
1529 2003-02-26 Werner LEMBERG <wl@gnu.org>
1531 * src/roff/troff/input.cc (do_width, do_if_request): Reset
1532 `have_input' after changing back to old environment.
1534 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1535 function up to be defined before first call. This is necessary to
1536 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1538 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1539 the default font directory also. Based on a patch from James
1540 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1541 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1542 * src/utils/afmtodit/afmtodit.man: Document it.
1546 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1548 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
1550 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1551 (GROFF_PNMTOPS_NOSETPAGE): New macro.
1552 * configure.ac: Use it.
1553 * configure: Regenerated.
1554 * Makefile.in: Updated.
1556 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1557 (CLEANADD): Add www.tmac-sed.
1558 (pnmtops_nosetpage): Define default.
1559 (install_data): Handle www.tmac-sed and substitute
1560 @PNMTOPS_NOSETPAGE@.
1561 (stamp-sed): Add www.tmac.
1562 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1563 It now breaks URLs at suitable places.
1564 (www:substring_ok): New register set by...
1565 (www:@test_substring): New macro.
1566 (www:error): New alias to www-error.
1567 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1569 (URL): Use www:url_breaks.
1570 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1571 (CDS, CDE): New macros.
1573 2003-02-25 Werner LEMBERG <wl@gnu.org>
1575 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1578 2003-02-24 Werner LEMBERG <wl@gnu.org>
1580 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1581 can be negative also.
1583 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1585 (read_char_table): Avoid negative ascenders.
1586 (output_charset): Add cast.
1587 * font/devlj4/*: Regenerated.
1589 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1592 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1593 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1595 * font/devdvi/*: Regenerated.
1597 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
1598 normal width, while the previously used characters (U+2329 and
1599 U+232A) are classified as wide due to canonical equivalence with the
1600 CJK punctuation characters U+3008 and U+3009.
1602 * font/devutf8/R.proto: Updated.
1603 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1605 * man/groff_char.man: Simplify handling of table traps by
1606 introducing `start block' and `end block' macros.
1607 (Ns, Ne, 2s, 2e, Ds, De): New macros.
1608 (DL): Make it work with Unix troff also.
1609 Fix code values of `la' and `ra'.
1611 * tmac/dvi.tmac: Define `<>' for CW and CWI.
1613 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
1615 * src/devices/grohtml/post-html.cc (element_list::~element_list):
1616 New destructor, fixing a major memory leak.
1618 2003-02-22 Werner LEMBERG <wl@gnu.org>
1620 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1621 to be in conformance with Unicode 3.0 and newer.
1623 * font/devlj4/generate/text.map: Add `Eu'.
1624 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1625 * font/devlj4/S: Regenerated.
1627 * man/groff_char.man: Completely rewritten.
1629 * doc/groff.texinfo: Fix description of request and macro arguments.
1631 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
1635 * src/devices/grohtml/html-table.cc (html_table::~html_table):
1636 Deallocate `columns' list.
1637 * src/devices/grohtml/post-html.cc (char_block::~char_block):
1639 (text_glob::text_glob_html, text_glob::text_glob_special,
1640 text_glob::text_glob_line, text_glob::text_glob_auto_image,
1641 text_glob::text_glob_tag): Avoid memory leaks.
1642 (text_glob::remember_table): Free memory before reassigning.
1644 2003-02-19 Werner LEMBERG <wl@gnu.org>
1646 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1647 alias `hbar'), the Planck constant over two pi.
1649 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1650 `+e' for position 34.
1651 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1652 `u2662' and `u2661'.
1653 * font/devdvi/{MI,S}: Regenerated.
1654 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1655 * font/devlbp/*: Add `hbar' alias.
1656 * font/devlj4/generate/special.map: Ditto.
1657 * font/devlj4/S: Regenerated.
1658 * font/devps/generate/symbolchars: Add `+e'.
1659 * font/devps/generate/textmap: Fix PS name for `-h'.
1661 * font/devps/symbolmap: Regenerated.
1663 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1665 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1667 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1670 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1672 * tmac/tty-char.tmac: Add `+e'.
1674 2003-02-17 Werner LEMBERG <wl@gnu.org>
1676 Another round trying to really fix problems with `have_input'.
1678 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1679 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1681 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1682 handling if both foreground and background colors are default.
1684 * doc/groff.texinfo (Debugging): Document .lf differences to
1687 2003-02-16 Werner LEMBERG <wl@gnu.org>
1689 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1690 null-bytes in created string.
1692 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1693 alias_macro, lookup_request): Improve warning messages.
1695 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1697 Free `last_image_filename'.
1699 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1701 (imageList::createPage, imageList::createImage): Use `free', not
1703 (imageItem::~imageItem): Free `imageName'.
1704 (addRegDef): Use `strsave', not `strdup'.
1705 (get_resolution): Free `pathp'.
1707 2003-02-15 Werner LEMBERG <wl@gnu.org>
1709 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1712 2003-02-14 Werner LEMBERG <wl@gnu.org>
1714 Add memory management for colors to deallocate unnamed colors
1717 * src/include/color.h (color): New members `free_list' and `next'.
1718 New member functions `new' and `delete'.
1720 * src/libs/libgroff/color.cc: Implement it.
1722 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1723 for array size of new operator.
1725 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1726 redundant comparison.
1728 * src/roff/troff/input.cc (word_space_node::reread,
1729 hmotion_node::reread): Avoid warning about unused parameter.
1730 (reset_output_registers): Remove redundant parameter.
1731 (define_color): Undo change 2003-02-12.
1733 * src/roff/troff/reg.h: Updated.
1735 * src/roff/troff/node.cc (troff_output_file::really_print_line,
1736 output_file::put_filename, real_output_file::really_put_filename,
1737 ascii_output_file::really_print_line,
1738 break_char_node::get_hyphen_list): Avoid warning about unused
1740 (suppress_node::tprint): Updated.
1742 * configure.ac: Check declaration for rand() and srand().
1743 * configure: Regenerated.
1745 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1747 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1750 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1751 to avoid compiler warnings.
1753 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1756 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1758 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1760 Updated all callers.
1762 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1764 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1765 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1767 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1768 Parameter is unused.
1769 (html_printer::add_table_end): Define parameter conditionally.
1770 * src/devices/grohtml/output.cc (simple_output::special): Parameter
1773 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1774 (lbp_printer::set_char): Last parameter is unused.
1776 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1778 2003-02-13 Werner LEMBERG <wl@gnu.org>
1780 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1781 Make \D'f ...' move horizontally again for backwards compatibility.
1782 Replace it with \D'Fg ...' where appropriate to avoid dependency
1783 on horizontal resolution.
1785 * src/roff/troff/input.cc (do_get_long_name): New function.
1786 (get_long_name): Call it.
1788 (read_draw_node): Handle `\D'Fx ...' by calling ...
1789 (read_color_draw_node): New function.
1791 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1793 Pass it to `do_get_long_name' which is used instead of
1796 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1797 unnecessary value guard.
1798 (parse_D_command) <'f'>: Add horizontal shift.
1800 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1801 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1802 (FILL_MAX): Removed.
1804 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1807 2003-02-12 Werner LEMBERG <wl@gnu.org>
1809 * src/roff/troff/input.cc (do_name_test, do_expr_test,
1810 do_zero_width): Push `\n' if closing delimiter is missing.
1812 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1813 <'F'>: Make \F non-transparent at the beginning of line.
1814 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1815 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1818 (define_color): Free color in case of reassignment.
1820 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1821 @DefescListEnd): Use @Var, not @var.
1824 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1826 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1827 `shaded' and `outlined' arrays.
1828 (object_spec::object_spec): Initialize `shaded' and `outlined'.
1829 (graphic_object::set_fill_color, graphic_object::set_outline_color):
1831 (closed_object::set_fill_color): Ditto.
1832 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1834 (troff_output::reset_color): Use a_delete instead of free.
1835 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1837 2003-02-11 Werner LEMBERG <wl@gnu.org>
1839 * doc/groff.texinfo: Improve documentation of `ad'.
1840 Document that \D'f...' is dependent on the horizontal resolution.
1841 * man/groff_diff.man: Improve documentation of \D'f...'.
1843 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1844 compensating \h'...' for \D'f ...' since the latter no longer moves
1846 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1848 2003-02-10 Werner LEMBERG <wl@gnu.org>
1850 Improve error messages for `x F' (and `F') commands.
1852 * src/include/error.h: Add declaration for
1853 `current_source_filename'.
1854 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1855 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1856 parameter for source file string.
1857 Updated all callers.
1859 * src/libs/libdriver/input.cc: Add `current_source_filename'.
1860 (remember_source_filename): New function.
1861 (parse_x_command <'F'>, do_file <'F'>): Use it.
1863 2003-02-09 Werner LEMBERG <wl@gnu.org>
1865 Make grotty not emit warnings about unknown colors more than
1868 * src/devices/grotty/tty.cc: Include `ptable.h'.
1869 (TTY_MAX_COLORS): Removed.
1870 (DEFAULT_COLOR_IDX): Defined to -1.
1871 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1872 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1873 Change `tty_colors' to be a ptable.
1874 First arg of `put_color' is now `char'.
1875 New functions `make_rgb_string' and `tty_color'.
1876 (tty_printer::tty_printer): Use `tty_color'.
1877 (tty_printer::color_to_idx): Return value is now `char'.
1880 * src/include/color.h (color): Add `print_color' member function.
1881 * src/libs/libgroff/color.cc (color::print_color): Implement it.
1883 2003-02-08 Werner LEMBERG <wl@gnu.org>
1887 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1890 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1891 assume that value has been allocated with `new[]', thus use
1892 `a_delete' for deallocation.
1894 * src/libs/libdriver/input.cc (get_integer_arg,
1895 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1898 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1899 * src/libs/libgroff/nametoindex.cc
1900 (character_indexer::named_char_index): Use `new <type>[1]'.
1902 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1904 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1905 (split_text): Use `a_delete'.
1907 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1910 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1911 harmless memory leak.
1912 (hyphen_trie::read_patterns_file): Initialize `buf'.
1913 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1914 Initialize `current_fill_color'and `current_glyph_color'.
1915 * src/roff/troff/glyphuni.cc
1916 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1917 * src/roff/troff/uniuni.cc
1918 (unicode_decompose_init::unicode_decompose_init): Ditto.
1919 * src/roff/troff/uniglyph.cc
1920 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1922 2003-01-26 Werner LEMBERG <wl@gnu.org>
1924 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1925 `access' before calling `unlink'.
1926 (do_file): Handle __EMX__.
1928 * src/include/nonposix.h: Handle __EMX__.
1930 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1931 (fontpath,tmacpath): Use it.
1933 Sorted alphabetically.
1935 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1937 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1940 2003-01-27 Werner LEMBERG <wl@gnu.org>
1942 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1943 New files, copied from gnulib.
1944 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1945 * configure.ac: Updated.
1946 * configure: Regenerated.
1948 * src/include/config.hin: Regenerated.
1949 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1950 Don't define `strcasecmp' as `strcmp'.
1951 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1952 Dont define `strncasecmp' as `strncmp'.
1954 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1957 2003-01-26 Werner LEMBERG <wl@gnu.org>
1959 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1962 2003-01-25 Werner LEMBERG <wl@gnu.org>
1964 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1966 2003-01-24 Werner LEMBERG <wl@gnu.org>
1968 Add US-english hyphenation exceptions (converted from Barbara
1969 Beeton's hyphenation exception log reports which appear irregularly
1972 * tmac/hyphen.us: Updated to latest version.
1973 * tmac/README: Updated.
1974 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1975 * tmac/troffrc: Load `hyphenex.us'.
1976 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1977 * doc/groff.texinfo: Updated.
1979 2003-01-23 Werner LEMBERG <wl@gnu.org>
1981 Improve hyphenation slightly. This is a first step in redesigning
1982 the hyphenation algorithm to make it more flexible (e.g. allowing
1983 kerns and ligatures between the hyphenation character and the
1984 following character -- while not used normally in English, other
1985 languages like German would benefit).
1987 * src/roff/troff/env.cc (environment::hyphenate_line): Use
1988 assertion instead of if-clause.
1989 Let `get_hyphen_list' return the number of involved characters in
1990 the hyphenation pattern instead of computing it directly (which
1991 often yields too small values).
1992 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1993 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1996 2003-01-22 Werner LEMBERG <wl@gnu.org>
1998 Fixing a bug which caused groff to hang if the hyphenation exception
1999 dictionary tried to grow.
2001 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2002 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2003 pointer to dictionary.
2005 2003-01-20 Werner LEMBERG <wl@gnu.org>
2007 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2008 negative left italic correction.
2009 * src/utils/afmtodit/afmtodit.man: Document it.
2011 * font/devps/generate/Makefile (RFLAG): Add `-m'.
2012 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2013 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2017 2003-01-16 Werner LEMBERG <wl@gnu.org>
2021 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
2023 * src/preproc/refer/refer.man: Mention REFER environment variable.
2025 2003-01-05 Werner LEMBERG <wl@gnu.org>
2027 Similar to \[is], the square root glyph (\[sr]) and the square root
2028 extension glyph (\[radicalex]) are now text symbols. The new
2029 mathematical versions are called \[sqrt] and \[sqrtex],
2032 * font/devX*/S: Regenerated.
2033 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2034 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2035 * font/devdvi/EX, font/devdvi/S: Regenerated.
2036 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2037 * font/devlj4/generate/special.map: Add `sqrt'.
2038 * font/devlj4/S: Regenerated.
2039 * font/devps/generate/textmap: Add `sqrt'.
2040 * font/devps/S, font/devps/symbolmap: Regenerated.
2042 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2043 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2044 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2045 overlap horizontally.
2047 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2048 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2051 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2052 and `sqrtex' are overlapping glyphs.
2054 2003-01-04 Werner LEMBERG <wl@gnu.org>
2056 * font/devdvi/generate/texsy.map: Add `is'.
2057 * font/devps/symbolmap: Regenerated.
2058 * font/devdvi/*TC, MI, S: Regenerated.
2060 * tmac/dvi.tmac: Remove `is'.
2062 2003-01-03 Werner LEMBERG <wl@gnu.org>
2064 `is' is now a text symbol (only relevant for dvi). The math variant
2065 can be accessed with `integral'.
2067 * font/devX*/S: Regenerated.
2068 * font/devdvi/generate/texex.map: Remove `is'.
2069 * font/devdvi/EX: Updated.
2070 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2071 * font/devlj4/generate/special.map: Ditto.
2072 * font/devlj4/S: Regenerated.
2073 * font/devps/generate/textmap: Add `integral'.
2074 * font/devps/S: Regenerated.
2076 * tmac/dvi.tmac: Define `is'.
2078 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2080 * src/preproc/tbl/main.cc (process_format): Fix error message.
2082 2003-01-02 Werner LEMBERG <wl@gnu.org>
2084 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2085 * font/devps/textmap: Fix entries for `ne' and `nc'.
2086 * font/devps/symbolmap: Regenerated.
2088 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2089 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2090 `38', `58', `78', `-+', `|=', `nc', `ne'.
2092 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2093 Use `schar' for `aq'.
2094 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2095 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2096 * tmac/tty.tmac: Add `ne'.
2098 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2099 for fallback glyphs.
2101 2002-12-29 Werner LEMBERG <wl@gnu.org>
2105 * font/devX*/*: Regenerated.
2106 * font/devdvi/generate/ec.map: Remove `eq'.
2107 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2108 Assign `|=' to position 39.
2109 * font/devdvi/*EC, S: Regenerated.
2110 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2111 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2112 Assign `|=' to position 549.
2113 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2115 Add `uni2243' for `|='.
2117 * tmac/ec.tmac: Add `eq'.
2118 * tmac/dvi.tmac: Add `=~'.
2119 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2122 2002-12-21 Werner LEMBERG <wl@gnu.org>
2124 * font/devdvi/generate/tc.map: Remove `**'.
2125 * font/devdvi/*TC: Regenerated.
2126 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2128 * font/devutf8/NOTES: Updated.
2130 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2131 Don't give default parameter to `set_macro'.
2132 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2133 instead of `set_macro'.
2134 (charinfo::setx_macro): Implement it.
2135 (charinfo::set_macro): Don't change `mode'.
2137 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2138 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2139 * tmac/dvi.tmac: Define `!=' with `.schar'.
2141 2002-12-20 Werner LEMBERG <wl@gnu.org>
2143 * font/devX*/S: Regenerated.
2144 * font/devdvi/generate/ec.map: Remove `pl'.
2145 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2146 * font/devdvi/*{TC,EC}: Regenerated.
2147 * font/devhtml/R.proto: Add `-+'.
2148 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2149 * font/devlbp/*: Remove `or'.
2150 * font/devlj4/generate/special.map: Remove `or'.
2151 * font/devlj4/S: Regenerated.
2152 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2153 `seveneighths', `threeeighths'.
2155 Replace `minusplus' with `uni2213'.
2156 * font/devps/symbolmap: Regenerated.
2157 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2160 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2162 * src/roff/troff/node.cc (troff_output_file::put_char_width):
2163 Call glyph_color and fill_color even if tcommand_flag isn't set.
2164 (make_node, node::add_char): Check not ci->is_fallback but
2167 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2168 * tmac/ec.tmac: Add .rchar entry for `f/'.
2169 Don't remove `12', `14', `34'.
2170 Define `pl' to be always roman.
2171 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2172 Define `18', `38', `58', `78'.
2173 * tmac/tty.tmac: Add `-+'.
2174 * tmac/dvi.tmac: Define `f/'.
2175 (dvi-frac): Use `f/'.
2176 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2177 Define `18', `38', `58', `78'.
2179 2002-12-15 Colin Watson <cjwatson@debian.org>
2181 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2183 2002-12-10 Werner LEMBERG <wl@gnu.org>
2185 Add glyph `tno', a textual variant of `no'.
2187 * font/devX*/*: Regenerated.
2188 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2189 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2190 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2191 * font/devdvi/*: Regenerated.
2192 * font/devlbp/*: Add `tno'.
2193 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2194 * font/devlj4/*: Regenerated.
2195 * font/devps/generate/textmap: Replace `no' with `tno'.
2196 * font/devps/generate/symbolchars: Add `no'.
2197 * font/devps/*: Regenerated.
2199 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2201 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2202 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2206 * tmac/dvi.tmac: Replace most `\\' with `\E'.
2207 Add definition for `sd'.
2208 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2210 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2212 2002-12-08 Werner LEMBERG <wl@gnu.org>
2214 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2215 mode to avoid rounding errors.
2216 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2218 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2219 src/roff/troff/troff.man: Improve documentation of -T.
2221 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
2223 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2224 (run_pipeline) [_WIN32]: Provide working function without `fork'.
2226 2002-12-06 Werner LEMBERG <wl@gnu.org>
2228 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2229 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2230 Scaling Euro.sansserif glyphs down to have the same height as
2232 Removed unnecessary points; added some extrema.
2234 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2237 2002-12-04 Werner LEMBERG <wl@gnu.org>
2239 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2240 and `Euro.symbol.bold.slanted'.
2241 Improve some glyph offsets and widths.
2242 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2244 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2246 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2249 * tmac/europs.tmac: Updated to new glyph indices.
2250 Use Euro.symbol for font familiy `A'.
2252 * doc/groff.texinfo: Minor improvements.
2254 2002-12-02 Werner LEMBERG <wl@gnu.org>
2256 * font/devdvi/generate.tc.map: s/%O/%0/.
2257 * font/devdvi/*TC: Regenerated.
2259 * src/roff/troff/div.cc (init_div_requests): Sorted.
2261 * tmac/dvi.tmac: Remove `Ye'.
2262 * tmac/ec.tmac: Remove `Ye'.
2263 Add .rchar entry for `de'.
2265 * man/groff.man, man/groff_diff.man: Document register `.pe'.
2266 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2269 2002-11-30 Werner LEMBERG <wl@gnu.org>
2271 Add PS font for various Euro glyphs.
2273 * font/devps/generate/freeeuro.sfd: New master font file for
2275 * font/devps/generate/sfdtopfa.pe: New conversion script for
2277 * font/devps/generate/Makefile (FONTS): Add `EURO'.
2278 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2279 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2281 * font/devps/EURO: Generated from `freeeuro.afm'.
2282 * font/devps/download: Add `freeuro.pfa'.
2283 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2286 * tmac/europs.tmac: New file.
2287 * tmac/ps.tmac: Include `europs.tmac'.
2288 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2290 2002-11-29 Werner LEMBERG <wl@gnu.org>
2292 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2293 * font/devdvi/S: Regenerated.
2294 * font/devhtml/R.proto: Fix `CR' and `ci'.
2296 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2298 * font/devps/symbolmap: Regenerated.
2299 * font/devutf8/R.proto: Fix `CR' and `ci'.
2301 * font/devutf8/NOTES: Updated.
2303 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2306 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2308 * tmac/dvi.tmac: Add `lh' and `rh'.
2309 * tmac/Xps.tmac: Fix `lh' and `rh'.
2310 * tmac/X.tmac: Add `OK'.
2311 * tmac/lj4.tmac: Ditto.
2313 2002-11-24 Werner LEMBERG <wl@gnu.org>
2315 * font/devX*/S: Regenerated.
2316 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2317 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2318 * font/devdvi/generate/texsy.map: Remove `or' glyph.
2319 * font/devdvi/S: Regenerated.
2320 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2321 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2322 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2323 `bracketleftbt', `bracketrighttp', `bracketrightex',
2324 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2325 `braceex', `braceleftex', `bracerightex', `bracerighttp',
2326 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2328 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2329 * font/devutf8/NOTES: Updated.
2330 * font/devlj4/generate/special.map: Add glyph `braceex'.
2331 * font/devlj4/S: Regenerated.
2333 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2335 2002-11-14 Werner LEMBERG <wl@gnu.org>
2337 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2340 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2342 * doc/texinfo.tex: New version from texinfo 4.3.
2343 * doc/groff.texinfo: Updated for texinfo 4.3.
2344 Use @tie{} where appropriate.
2345 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2346 * font/devdvi/generate/tc.map: Remove `rn'.
2347 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2348 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2350 * font/devX100/*, font/devX100-12/*, font/devX75/*,
2351 font/devX75-12/*: Regenerated.
2353 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2354 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2355 Improve definition of `an'.
2356 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2358 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2359 * tmac/X.tmac: Add definition for `or'.
2360 * tmac/Xps.tmac: Undo change 2002-11-05.
2361 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2363 2002-11-11 Werner LEMBERG <wl@gnu.org>
2365 * src/roff/troff/node.cc (troff_output_file::put_char): Always
2368 2002-11-10 Werner LEMBERG <wl@gnu.org>
2370 Added three new requests `schar', `fschar', and `rfschar'. `schar'
2371 defines a glyph which is searched after the check for fonts declared
2372 with `.special' (and before the check for all mounted special
2373 fonts). `fschar' defines a glyph for a particular font which is
2374 searched after the check for fonts declared with `.fspecial' (and
2375 before the check for fonts declared with `.special'). `rfschar'
2376 removes glyphs defined with `fschar'.
2378 * src/roff/troff/token.h (char_mode): New enum.
2379 Declare do_define_character.
2380 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2382 (charinfo::is_fallback): Updated.
2383 (charinfo::is_special): New method.
2384 * src/roff/troff/input.cc (do_define_character): Add and use
2385 optional second parameter used as a prefix for font-specific glyph
2387 (define_character, define_fallback_character): Updated.
2388 (define_special_character): New function.
2389 (init_input_requests): Add `schar'.
2390 (charinfo::charinfo, charinfo::set_macro): Updated.
2391 * src/roff/troff/node.cc: Include `stringclass.h'.
2392 (make_glyph_node): Handle special glyphs defined with `.schar' and
2394 (define_font_special_character, remove_font_special_character): New
2396 (init_node_requests): Sorted.
2397 Add `fschar' and `rfschar'.
2398 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2399 Document new requests.
2401 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2402 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2404 2002-11-08 Werner LEMBERG <wl@gnu.org>
2406 Added new font `SC' (cmtex10) to devdvi.
2408 * devdvi/generate/Makefile (FONTS): Add `SC'.
2410 * devdvi/generate/textex.map: New map file for cmtex.
2412 * devdvi/Makefile.sub (DEVFILES): Updated.
2413 * tmac/dvi.tmac: Add fspecial entries for SC.
2414 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
2415 found before `S' since the font position of `SC' is lower due to the
2416 gaps in DESC's `font' line.
2417 * tmac/ec.tmac: Add a `special' call.
2420 * font/devhtml/R.proto: Remove double entry for `ti'.
2421 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2422 * tmac/tty-char.tmac: Remove entry for `bq'.
2423 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2424 * tmac/ec.tmac: Don't remove `aq' glyph.
2425 * tmac/X.tmac: Fix entry for `em'.
2426 Add entries for `fo' and `fc'.
2427 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2429 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2430 documentation of `special' and `fspecial' requests.
2432 2002-11-05 Werner LEMBERG <wl@gnu.org>
2434 * font/devascii/R.proto, font/devcp1047/R.proto,
2435 font/devlatin1/R.proto: Remove entry for `.i'.
2436 * font/devdvi/generate/textt.map: Add entry for `ad'.
2437 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2438 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2439 We need this for getting kerning values to compose `/l' and `/L'.
2440 * font/devdvi: Regenerated font definition files for CM fonts.
2441 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2442 * font/devutf8/R.proto: Ditto.
2443 Remove double entry for `ti'.
2445 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2446 for (groff) ligatures, `la', and `ra'.
2447 Add "'C", "'c", `IJ', and `ij'.
2448 Remove double entry for `ti'.
2449 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2451 Add "'C", "'c", `IJ', and `ij'.
2452 Fix entries for (groff) ligatures, `la', and `ra'.
2454 * tmac/ps.tmac (ps-achar): New macro.
2455 Define "'c" and "'C".
2456 * tmac/tty.tmac: Add entry for `.i'.
2457 * tmac/X.tmac (X-achar): New macro.
2458 Define "'c", "'C", and `:Y'.
2459 Add entries for `IJ' and `ij'.
2460 * tmac/Xps.tmac (Xps-achar): New macro.
2461 Define "'c" and "'C".
2462 Add entries for `IJ' and `ij'.
2463 * tmac/lbp.tmac (lbp-achar): New macro.
2464 Add fallback characters for all groff ligatures and many other
2466 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2467 Add entries for `/l' and `/L'.
2468 Define "'c" and "'C".
2469 Add entries for `IJ' and `ij'.
2471 2002-11-02 Larry Kollar <kollar@alltel.net>
2473 * PROBLEMS: Document how to solve Mac OS X compilation problems.
2475 2002-11-02 Werner LEMBERG <wl@gnu.org>
2477 Adding support for composite glyphs: \[xxx yyy ...] and the
2478 `composite' request.
2480 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2481 to Unicode-based glyph names.
2482 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2483 glyph names to groff glyph names.
2484 * src/roff/troff/uniuni.cc: New file for canonically decomposing
2485 Unicode-based glyph names.
2486 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2487 for handling Unicode glyph names.
2488 * src/roff/troff/input.cc: Include unicode.h.
2489 (composite_glyph_name): New function.
2490 (token::next) <'['>: Handle Unicode glyph names and composite
2492 (composite_dictionary): New dictionary for the `composite' request.
2493 (composite_request): Implement `composite' request.
2494 (init_input_requests): Add `composite'.
2495 Alphabetically sorted.
2496 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2498 (init_env_requests): Alphabetically sorted.
2499 Removed `tas' and `tar' (already commented out).
2500 * src/roff/troff/Makefile.sub: Updated.
2502 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
2504 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2507 2002-10-29 Werner LEMBERG <wl@gnu.org>
2509 Fix computation of .trunc register. Additionally, its value (and
2510 the value of the .ne register) is now always set before entering the
2513 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2514 `needed_space' before calling `space'.
2515 (top_level_diversion::space): Remove special code for 'sp before the
2517 Call `begin_page' with the discarded space as a parameter.
2518 (top_level_diversion::begin_page): Add optional parameter to set
2520 * src/roff/troff/div.h: Updated.
2522 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2525 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2526 (LP): Remove superfluous call to `br'.
2527 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2528 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2530 2002-10-26 Werner LEMBERG <wl@gnu.org>
2532 * tmac/doc-ditroff: Remove useless switch/variable -rC.
2533 (doc-setup-header): Don't set page register `%'.
2534 * tmac/doc-nroff: Remove variable `C'.
2535 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2536 (doc-setup-header): Don't set page register `%'.
2538 * tmac/doc-common (doc-header): Call `ns'.
2539 (doc-paragraph): Protect .sp with .br so that it survives traps
2540 possibly set by the user.
2541 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2543 * tmac/doc*: Replace ' with . for consistency if no effect.
2545 2002-10-26 Werner LEMBERG <wl@gnu.org>
2547 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2548 so that it survives traps possibly set by the user.
2550 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2551 (troff_output_file::set_font): Call flush_tbuf if necessary.
2552 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2553 flush_tbuf and do_motion only if necessary.
2554 (troff_output_file::start_special,
2555 troff_output_file::put_char_width, troff_output_file::put_char,
2556 troff_output_file::draw): Updated.
2557 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2558 vmotion_node::tprint): Undo change 2002-10-23.
2560 2002-10-25 Werner LEMBERG <wl@gnu.org>
2562 * tmac/www.tmac (DC): Fix case of overlapping images.
2564 2002-10-23 Werner LEMBERG <wl@gnu.org>
2566 * src/roff/troff/node.cc (troff_output_file::fill_color,
2567 troff_output_file::glyph_color): Set current color before testing
2569 (troff_output_file::put_char_width, troff_output_file::put_char,
2570 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2572 (troff_output_file::file_color, troff_output_file::glyph_color):
2574 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2575 vmotion_node::tprint): Move first, then call fill_color.
2577 2002-10-20 Werner LEMBERG <wl@gnu.org>
2579 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2580 possible to use multiple main macro packages.
2582 2002-10-19 Werner LEMBERG <wl@gnu.org>
2584 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2585 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2586 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2588 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2589 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2591 2002-10-16 Werner LEMBERG <wl@gnu.org>
2593 * NEWS, doc/webpage.ms: Updated.
2595 2002-10-14 Werner LEMBERG <wl@gnu.org>
2597 * src/roff/troff/node.cc (troff_output_file::put_char_width,
2598 troff_output_file::put_char, troff_output_file::fill_color,
2599 troff_output_file::glyph_color): Handle case where color pointer
2602 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
2604 Add the new -r option to grotty. It is similar to the -i option
2605 except it tells grotty(1) to use the "reverse video" attribute to
2606 render italic fonts.
2608 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2609 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2610 (tty_printer::make_underline, tty_printer::put_color,
2611 tty_printer::end_page): Use it.
2612 (main): Add -r switch.
2614 * src/devices/grotty/grotty.man: Document it.
2616 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
2618 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2619 cast to `unsigned char' to properly read patterns with 8bit
2622 2002-10-08 Werner LEMBERG <wl@gnu.org>
2624 * REVISION: Increased to 2.
2626 Version 1.18.1 released
2627 =======================
2629 2002-10-08 Werner LEMBERG <wl@gnu.org>
2631 * doc/webpage.ms, NEWS: Updated.
2633 2002-10-07 Werner LEMBERG <wl@gnu.org>
2635 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2636 suppress additional whitespace after the header.
2638 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2641 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2643 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
2645 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2646 (Dt): Use it to improve language localization (especially Russian
2649 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
2651 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2652 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2654 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2656 Call `picurve' for BSPLINE.
2657 (HGPrintElt): Handle BSPLINE.
2658 * src/preproc/grn/README: Document it.
2660 2002-10-03 Werner LEMBERG <wl@gnu.org>
2662 * src/roff/troff/node.cc (break_char_node::col): New variable.
2663 Updated constructor.
2664 (space_node::tprint, word_space_node::tprint): Call `fill_color'
2666 (space_node::space_node): Remove assertion.
2667 (break_char_node::add_self): Pass color argument to space node.
2668 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2670 * src/roff/troff/env.cc (environment::do_break,
2671 environment::add_padding): Ditto.
2673 2002-10-02 Werner LEMBERG <wl@gnu.org>
2675 Redesigning color support in troff. Colors are no longer
2676 represented as separate nodes but are now part of glyph nodes and
2677 friends. This fixes the current formatting misbehaviour due to the
2678 changes introduced on 2002-09-20. Some extra code is necessary for
2679 proper grotty support: Without adding color variables to
2680 space-related nodes, the background color would be changed too late.
2682 * src/roff/troff/node.h, src/roff/troff/node.cc:
2683 s/current_pagecolor/current_fill_color/.
2684 s/current_glyphcolor/current_glyph_color/.
2685 (glyph_color_node, fill_color_node): Removed.
2686 (node::get_glyph_color, node::get_fill_color): New virtual member
2688 (space_node::col): New variable.
2689 Updated constructors of space_node and derived classes accordingly.
2690 (hmotion_node::col): New variable.
2691 Updated constructors of hmotion_node and space_char_hmotion_node
2693 (vmotion_node::col): New variable.
2694 Updated constructor accordingly.
2695 (draw_node::gcol, draw_node::fcol): New variables.
2696 Updated constructor accordingly.
2697 (special_node::gcol, special_node::fcol): New variables.
2698 Updated constructors accordingly.
2699 (troff_output_file::put_char, troff_output_file::put_charwidth,
2700 troff_output_file::draw): Set glyph and fill color.
2701 (troff_output_file::start_special): Set glyph and fill color.
2702 Always set current font.
2703 (troff_output_file::fill_color, troff_output_file::glyph_color):
2704 Don't call `do_motion'.
2705 (glyph_node::gcol, glyph_node::fcol): New variables.
2706 Updated constructors of glyph_node and ligature_node accordingly.
2707 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2709 (glyph_node::merge_glyph_node,
2710 kern_pair_node::add_discretionary_hyphen,
2711 node::add_discretionary_hyphen): Updated.
2712 (break_char_node::merge_self): Updated.
2713 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2714 vmotion_node::tprint): Handle color.
2715 (make_glyph_node, make_node, node::add_char): Updated.
2717 * src/roff/troff/env.cc (environment::space_newline,
2718 environment::space, environment::output_line, environment::do_break,
2719 environment::make_tab_node, environment::add_padding, title):
2721 (environment_switch, environment_copy): Don't add color nodes.
2723 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2725 (token::next): Updated.
2726 \m and \M now are as transparent as \s.
2727 (process_input_stack, token::add_to_node_list, token::process,
2728 read_draw_node): Updated.
2729 (charinfo_to_node_list): Don't add color nodes.
2731 * doc/groff.texinfo: Updated.
2733 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
2735 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2738 2002-09-27 Colin Watson <cjwatson@debian.org>
2740 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2742 2002-09-23 Werner LEMBERG <wl@gnu.org>
2744 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2746 (DEFAULT_LINEWIDTH_FACTOR): New macro.
2747 (linewidth_factor): New global variable.
2748 (lbp_printer::set_line_thickness): Fix case for size < 0, using
2750 (long_options): Add -w/--linewidth option.
2752 (main): Handle -w option to set linewidth_factor.
2753 (lbp_printer::lbp_printer): Initialize req_linethickness, not
2756 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2758 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
2760 Fixed a bug in the line thickness setting code.
2762 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2764 (lbp_printer::set_line_thickness): Pass environment as second
2766 Implement it actually.
2767 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2768 and `set_line_thickness, depending on the current font size.
2770 2002-09-21 Werner LEMBERG <wl@gnu.org>
2772 Some Debian patches.
2774 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2775 * src/roff/troff/node.cc (bracket_node::copy): Initialize
2778 2002-09-20 Werner LEMBERG <wl@gnu.org>
2780 * configure: Regenerated with autoconf 2.54.
2782 2002-09-20 Werner LEMBERG <wl@gnu.org>
2784 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2786 Rename cur_fill_color to fill_color.
2787 * src/roff/troff/env.cc: Updated.
2789 2002-09-20 Werner LEMBERG <wl@gnu.org>
2791 * src/roff/troff/env.cc (title): Copy color status after processing
2793 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2794 fill color nodes to reset colors properly.
2796 * tmac/www.tmac (DC): Fix color handling.
2798 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2799 * doc/groff.texinfo: Fixing documentation of `tl' request.
2800 * doc/webpage.ms: Updated.
2802 2002-09-19 Werner LEMBERG <wl@gnu.org>
2804 * src/roff/troff/env.cc (environent_switch, environment_copy):
2805 Emit glyph and fill color nodes to initialize colors properly.
2807 2002-09-17 Colin Watson <cjwatson@debian.org>
2809 * src/roff/troff/env.cc (environment::set_glyph_color,
2810 environment::set_fill_color): Fix typo which prevented \m[] work
2813 2002-09-17 Werner LEMBERG <wl@gnu.org>
2815 Add left and right italic correction to non-slanted PS fonts. This
2816 is an experimental feature to improve image rendering of grohtml.
2818 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2819 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2820 * font/devps/*: All non-slanted fonts regenerated.
2823 2002-09-16 Werner LEMBERG <wl@gnu.org>
2825 Add a site-specific font directory.
2827 * Makefile.in (localfontdir, legacyfontdir): New variables.
2828 (fontpath): Use them.
2829 (MDEFINES, uninstall_dirs): Updated.
2830 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2831 Remove `FONTPATH' and `MACROPATH'.
2833 * src/roff/troff/troff.man, NEWS: Updated.
2834 * doc/groff.texinfo (Font Directories): New section.
2837 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2838 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2839 src/preproc/grn/grn.man: Minor fixes.
2841 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2842 Remove unused variable.
2844 2002-09-11 Werner LEMBERG <wl@gnu.org>
2846 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2847 * man/groff_out.man: Fix documentation of 'N'.
2849 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
2851 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2852 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2854 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2855 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2856 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2857 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2858 PRE_TAG>: Call `begin' with `FALSE'.
2860 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2862 * src/libs/libgroff/string.cc (string::extract): Fix position of
2863 terminating null byte.
2865 2002-09-08 Werner LEMBERG <wl@gnu.org>
2867 Add global option `nospaces' to tbl so that leading and trailing
2868 spaces in data items are ignored.
2870 * src/libs/libgroff/string.cc (string::remove_spaces): New member
2871 function to remove leading and trailing spaces.
2872 * src/include/stringclass.h: Updated.
2874 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2876 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2878 Fix typo in error messages.
2879 (process_data): Implement `nospaces' option.
2880 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2882 2002-09-07 Werner LEMBERG <wl@gnu.org>
2884 * src/include/config.hin: Add `HAVE_ISATTY'.
2885 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2887 * src/libs/libgroff/tmpname.cc: Include `time.h'.
2888 * src/libs/libdriver/input.cc (Char): Add `operator==' and
2889 `operator!=' for `char'.
2890 * doc/groff.texinfo: Replace @ifnottex block for top node with
2893 2002-09-06 Werner LEMBERG <wl@gnu.org>
2895 * doc/Makefile.in (.texinfo.html): Add -I switch.
2896 * doc/groff.texinfo: Add @ifnottex block for top node to make
2897 translation to HTML work.
2899 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
2901 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2902 (get_papersize, determine_vertical_offset): Removed.
2903 (char_buffer::do_image): Always specify letter size.
2905 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2908 2002-09-05 Werner LEMBERG <wl@gnu.org>
2910 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2911 default indentation.
2913 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
2915 * src/preproc/html/pre-html.cc (imageList::createPage): Use
2917 (generateImages): Clean up push-back buffer.
2919 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2921 * doc/groff.texinfo: Minor fixes.
2923 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2925 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2926 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2928 (determine_vertical_offset): Use LETTER_LENGTH.
2929 (createPage): Moved to ...
2930 (imageList::createPage): This.
2931 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2932 (imageList::getMaxX): New function.
2933 (createImage): Moved to ...
2934 (imageList::createImage): This.
2935 (imageList::createImages): New function.
2936 (generateImages): Read `maxx' directly.
2938 (scanArguments): Don't specify `gsPaper' for `-o'.
2939 (makeTempFiles): Call `xtmpfile' with the last argument set to
2942 2002-08-24 Werner LEMBERG <wl@gnu.org>
2944 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2945 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2946 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2947 * src/preproc/html/pushback.cc: Include nonposix.h.
2948 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2951 2002-08-23 Werner LEMBERG <wl@gnu.org>
2953 Use $(OBJEXT) for the object file extension.
2955 * Makefile.comm (.SUFFIXES): Add .obj.
2956 (.cc.obj, .c.obj): New implicit rules.
2957 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2958 (MDEFINES): Add EXEEXT and OBJEXT.
2959 * */Makefile.sub: s/.o/.$(OBJEXT)/.
2961 2002-08-22 Werner LEMBERG <wl@gnu.org>
2963 * INSTALL: Mention texinfo 4.2 as a prerequisite.
2965 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2967 * src/devices/grohtml/post-html.cc (colType): Make enum global to
2969 (html_printer::update_min_max, html_printer::add_table_end): New
2971 (html_printer::lookahead_for_tables): Use them.
2972 Reset page offset correctly.
2973 (html_printer::~html_printer): Add creation of creator comment up.
2975 2002-08-20 Werner LEMBERG <wl@gnu.org>
2977 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2978 * man/groff_tmac.man: Fix typos.
2979 * man/groff_font.man: Minor reordering.
2980 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2981 * contrib/groffer/groffer.man: Fix typos.
2983 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2985 Avoid endless loops while scanning for tables.
2987 * src/devices/grohtml/post-html.cc (list::insert): Set
2989 (html_printer::next_horiz_pos): Add `text_glob' argument; update
2991 Return immediately if that argument is NULL.
2992 (html_printer::calc_nf): Don't test if `g' is NULL.
2993 (html_printer::lookahead_for_tables): Use
2994 `glyphs.move_right_get_data'.
2995 Don't test if `g' is NULL.
2997 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2999 A better fix, replacing fix 2002-08-15, for increasing SIZE.
3001 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3003 (char_block::char_block): Allocate `buffer'.
3004 (char_buffer::add_string): Use it.
3006 2002-08-15 Werner LEMBERG <wl@gnu.org>
3008 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3009 src/devices/grodvi/grodvi.man: Document default line thickness.
3011 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
3013 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3016 2002-08-14 Werner LEMBERG <wl@gnu.org>
3018 * doc/webpage.ms: Updated.
3020 2002-08-09 Werner LEMBERG <wl@gnu.org>
3022 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3025 2002-08-08 Aaron Campbell <aaron@monkey.org>
3027 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3030 2002-08-08 Werner LEMBERG <wl@gnu.org>
3032 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3035 Don't push back a space but a newline onto the stack.
3037 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
3039 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3042 * src/devices/grohtml/post-html.cc (html_printer::end_font,
3043 html_printer::start_font): Handle them.
3044 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3046 (html_text::do_bold): Don't reset italic and tt.
3047 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3048 * font/devhtml/DESC.proto: Add those fonts.
3049 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3051 2002-08-07 Werner LEMBERG <wl@gnu.org>
3053 * MORE.STUFF: Added gpresent.
3055 * tmac/trace.tmac: Show nesting level by a corresponding amount of
3056 whitespace before printing the logging message.
3058 2002-07-31 Colin Watson <cjwatson@debian.org>
3060 * src/devices/grohtml/html-table.cc (html_table::finish_row):
3061 Initialize `n' to zero. This fixes a segfault on ARM.
3063 2002-07-30 Werner LEMBERG <wl@gnu.org>
3065 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3067 2002-07-29 Werner LEMBERG <wl@gnu.org>
3069 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3072 2002-07-28 Colin Watson <cjwatson@debian.org>
3074 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3076 (html_printer::html_printer): Initialize `pointsize'.
3078 2002-07-26 Werner LEMBERG <wl@gnu.org>
3080 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3082 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3083 (gnu.eps): Add -rle switch to pnmtops.
3084 (distfiles): Add gnu.eps and gnu.png.
3086 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
3088 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3091 2002-07-24 Werner LEMBERG <wl@gnu.org>
3093 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3094 ' \+' but ' *' for sed.
3095 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3097 2002-07-23 Werner LEMBERG <wl@gnu.org>
3099 * doc/groff.texinfo: Document `papersize' keyword.
3100 * NEWS, man/groff_font.man: Updated.
3102 2002-07-23 Colin Watson <cjwatson@debian.org>
3104 Extend papersize keyword to accept more than a single entry. The
3105 first valid will be used.
3107 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3108 (font::scan_papersize): Really skip final newline.
3109 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3111 2002-07-23 Werner LEMBERG <wl@gnu.org>
3113 * configure.ac: Test for isatty.
3114 * configure: Regenerated.
3115 * src/include/posix.h: Check HAVE_ISATTY.
3116 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3117 * src/utils/lookbib/lookbib.cc: Include posix.h.
3118 Don't declare isatty.
3120 2002-07-21 Werner LEMBERG <wl@gnu.org>
3122 * NEWS: Add `output' request.
3124 * REVISION: Increased to 1.
3126 Version 1.18.0 released
3127 =======================
3129 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
3131 Allow internal glyph indices > 0xFF in grohtml for input characters.
3133 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3135 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3136 Updated all callers.
3137 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3138 (html_printer): Updated.
3140 2002-07-19 Werner LEMBERG <wl@gnu.org>
3142 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3143 * font/devutf8/R.proto: Adding some missing glyphs.
3144 * font/devutf8/NOTES: Updated.
3146 * tmac/dvi.tmac: Add more composite glyphs.
3147 * tmac/html.tmac: Updated.
3149 * man/groff_char.man: Add `sum' and `product' entities.
3153 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
3155 Improved table, tab, and indenting support.
3157 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3158 string_iterator::suppress_newline_flag): Removed. Updated all
3159 function which have used it.
3161 * src/roff/troff/env.cc: Include `input.h'.
3162 (environment::add_node): Accept 0 as parameter.
3163 (environment::add_html_tag): Add `force' parameter.
3164 Updated all callers.
3165 (environment::add_html_tag_tabs): Ditto.
3166 For the moment, support left-aligned tabs only.
3167 (environment::make_html_tag): New function.
3168 (fill, no_fill): Set .br html tag additionally.
3169 (environment::newline): Emit `eol.ce' or `eol' tag for html.
3170 (environment::add_html_tag_eol): Removed.
3171 (tab_stops::distance_to_next_tab): Add variant for handling
3173 (environment::distance_to_next_tab): Ditto.
3174 Updated all callers.
3175 (environment::handle_tab): Handle tabs for html.
3177 * src/roff/troff/env.h: Updated.
3179 * src/roff/troff/div.cc: Updated all callers of
3180 `environment::add_html_tag'.
3182 * src/devices/grohtml/html-table.cc,
3183 src/devices/grohtml/html-table.h: New files.
3185 * src/devices/grohtml/html-text.cc (html_text): New members
3186 `blank_para' and `start_space'.
3187 (html_text::issue_tag): Don't emit TABLE_TAG.
3188 Handle indentation for PRE_TAG and P_TAG.
3189 (html_text::end_tag): Updated.
3190 (html_text::table_is_void, html_text::issue_table_begin,
3191 html_text::issue_table_end): Removed.
3192 (html_text::do_push): Simplified.
3193 [DEBUGGING]: Small fix.
3194 (html_text::push_para): Add new parameter for indentation; updated
3197 (html_text::do_indent, html_text::do_table, html_text::done_table,
3198 html_text::is_in_table): Removed.
3199 (html_text::do_pre): Handle P_TAG also.
3200 (html_text::shutdown): Handle p->indent.
3201 (html_text::check_emit_text): Simplified.
3202 (html_text::do_emittext): Reset `blank_para'.
3203 (html_text::do_para): Add new parameter for indentation; updated
3205 (html_text::remove_indent): New function.
3206 (html_text::do_space): Handle verbatim text properly.
3207 (html_text::ever_emitted_text, html_text::starts_with_space,
3208 html_text::remove_para_align): New functions.
3209 (html_text::dump_stack_element, html_text::dump_stack): Updated.
3211 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3214 * src/devices/grohtml/post-html.cc: Include html-table.h.
3215 (INDENTATION): Removed.
3216 (text_glob): Added many `is_<foo>' functions.
3217 Added table description `tab'.
3218 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3220 (list): Add `insert' and `move_to' member functions.
3221 (page): Add `insert_tag' member function.
3222 (page::dump_page) [DEBUG_TABLES]: Improved.
3223 (html_printer): Add `table' and `max_linelength' elements.
3224 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3225 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3226 `remove_tabs', `remove_courier_tabs'.
3227 (html_printer::emit_raw): Handle indentation.
3228 (html_printer::do_center, html_printer::write_header): Updated.
3229 (html_printer::is_courier_until_eol): Check for tag.
3230 (html_printer::do_linelength): Handle max_linelength.
3231 (html_printer::do_page_offset, html_printer::do_indentation): Handle
3233 (html_printer::do_tempindent): Updated.
3234 (html_printer::do_indentedparagraph): Removed.
3235 (html_printer::do_indent): Simplified.
3236 (html_printer::do_eol): Use `ever_emitted_text'.
3237 (html_printer::do_flush, html_printer::do_links): Don't call
3239 (html_printer::do_break): Handle end_tempindent.
3240 (html_printer::troff_tag): Get argument.
3242 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3243 (html_printer::flush_page): Call `lookahead_for_tables'.
3244 Don't call `done_table'.
3245 (html_printer::add_to_sbuf): Always call do_indent.
3247 * src/devices/grohtml/Makefile.sub: Updated.
3249 * tmac/an-old.tmac (TP): Don't handle html device specially.
3250 (an-do-tag-html): New function which will be used instead of
3251 `an-do-tag' if html device is used.
3253 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3255 * tmac/s.tmac (@IP): Don't handle html device specially.
3256 (@IP-html): New function which will be used instead of `@IP' if
3257 html device is used.
3259 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3260 is a hack which will eventually vanish again.
3261 (PIMG): Handle `-C' option correctly if not html.
3264 2002-07-17 Werner LEMBERG <wl@gnu.org>
3266 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3268 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
3270 * contrib/pic2graph/pic2graph.*: Use convert(1).
3271 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3273 2002-07-14 Bernd Warken <bwarken@mayn.de>
3275 * tmac/groff_trace.man: New file.
3276 * tmac/Makefile.sub: Updated.
3279 2002-07-13 Werner LEMBERG <wl@gnu.org>
3281 * src/roff/groff/groff.man: Add some cross references.
3283 2002-07-12 Werner LEMBERG <wl@gnu.org>
3285 * src/roff/troff/input.cc (substring_request): Add warnings for
3286 string indices out of range.
3288 2002-07-11 Werner LEMBERG <wl@gnu.org>
3290 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3291 * font/devdvi/*EC: Regenerated.
3293 2002-07-10 Bernd Warken <bwarken@mayn.de>
3295 * man/groff_char.man: Updated and extended.
3297 2002-07-10 Werner LEMBERG <wl@gnu.org>
3299 * src/roff/troff/input.cc (length_macro): Renamed to...
3300 (length_request): This.
3301 Move call of `tok.next()' to the very end, otherwise the register
3302 value hasn't been updated yet.
3303 (init_input_requests): Updated.
3305 2002-07-09 Werner LEMBERG <wl@gnu.org>
3307 * src/roff/troff/input.cc (substring_macro): Renamed to...
3308 (substring_request): This.
3309 (init_input_requests): Updated.
3310 * src/roff/troff/request.h: Updated.
3312 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
3314 * src/roff/grog/grog.sh: Fix typo.
3316 2002-07-08 Werner LEMBERG <wl@gnu.org>
3318 * win32-diffs: Updated.
3320 Handle `papersize' keyword properly in DESC.
3322 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3324 Updated all callers.
3325 * src/libs/libgroff/paper.cc: Add four more paper formats used by
3327 * src/include/paper.h: Updated.
3329 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3330 Other minor C syntax fixes.
3331 (papersize, paperlength, paperwidth): Renamed to `user_*'.
3332 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3334 (lbp_printer::lbp_printer): Pass three arguments.
3335 Set paper dimensions properly.
3336 (make_printer, main): Updated.
3337 (handle_unknown_desc_command): Fix error messages.
3338 (main): Handle papersize keyword in DESC properly.
3340 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3342 (lbp_printer::lbp_printer): Pass an argument.
3343 Set paper_size properly.
3344 (handle_unknown_desc_command): Removed.
3345 (make_printer, main): Updated.
3346 * src/devices/grolj4/grolj4.man: Minor documentation fix.
3348 * man/groff_font.man, NEWS: Updated.
3350 2002-07-07 Werner LEMBERG <wl@gnu.org>
3352 Integrated eqn2graph, contributed by Eric S. Raymond.
3354 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3356 * Makefile.in, NEWS: Updated.
3358 2002-06-04 Werner LEMBERG <wl@gnu.org>
3360 Changing the substring request to make it fit better with other
3361 string manipulation functions in other programming languages:
3362 Index 0 is now the first character in the string, and index -1
3363 indicates the last character. Since this request didn't work
3364 properly anyway in the last release, it doesn't harm too much to
3367 * src/roff/troff/input.cc (substring_macro): Use loops to get
3368 the real string length (ignoring COMPATIBLE_SAVE and
3369 COMPATIBLE_RESTORE) and offsets.
3370 Implement change described above.
3372 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3373 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3375 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3377 2002-06-03 Werner LEMBERG <wl@gnu.org>
3379 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
3380 COMPATIBLE_RESTORE are completely ignored.
3382 * src/roff/troff/input.cc (char_list::set, char_list::get): New
3384 (macro): `length' field renamed to `len'.
3385 Added new field `empty_macro' (1 if macro is empty), to be used
3386 instead of checking `len'.
3387 Updated all callers.
3388 (macro::empty): Updated.
3389 (macro::length, macro::set, macro::get): New functions.
3390 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3392 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3393 COMPATIBLE_RESTORE pairs.
3394 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3395 * src/roff/troff/request.h: Updated.
3397 * doc/groff.texinfo: Document .chop's behaviour better.
3399 2002-06-02 Werner LEMBERG <wl@gnu.org>
3401 * doc/pic.ms: Fix documentation for the addition of positions.
3403 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3405 2002-06-29 Werner LEMBERG <wl@gnu.org>
3407 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3409 * src/roff/troff/input.cc (have_string_arg): New global variable.
3410 (read_mode): New enumeration.
3411 (read_escape_name): Use it. Update all calls.
3412 (read_long_escape_name): Use it. Update all calls.
3413 Set have_string_arg if appropriate.
3414 (get_char_for_escape_name): Add parameter for handling space
3416 (interpolate_string_with_args, decode_string_args): New functions.
3417 (get_copy, token::next): Call it if necessary.
3418 (interpolate_string): Fix error message.
3420 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3423 2002-06-24 Bernd Warken <bwarken@mayn.de>
3425 * man/groff_tmac.man: Updated and extended.
3427 2002-06-24 Werner LEMBERG <wl@gnu.org>
3429 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3431 2002-06-23 Werner LEMBERG <wl@gnu.org>
3433 * doc/pic.ms: Improve documentation of composite block objects.
3435 2002-06-22 Werner LEMBERG <wl@gnu.org>
3437 * src/roff/troff/input.cc (init_registers): Add three registers
3438 `seconds', `minutes', and `hours' to hold the current time.
3440 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3443 2002-06-20 Werner LEMBERG <wl@gnu.org>
3445 Make \X accept both `\ ' and `\~', converting them to single space
3448 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3449 (token::unstretchable_space): New inline function.
3450 * src/roff/troff/input.cc (token::next, token::delimiter,
3451 token::description, token::add_to_node_list, token::process): Handle
3452 TOKEN_UNSTRETCHABLE_NODE.
3453 (encode_char): Handle tok.stretchable_space and
3454 tok.unstretchable_space.
3456 * NEWS, doc/groff.texinfo: Document it..
3458 2002-06-19 Werner LEMBERG <wl@gnu.org>
3460 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3462 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3463 keyword to enable/disable SGR output.
3464 (tty_printer::change_fill_color): New function.
3465 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3467 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3470 2002-06-18 Werner LEMBERG <wl@gnu.org>
3472 Add a `color' request and a `.color' register to control usage of
3475 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3476 (color_flag): This (which is the inverse).
3477 (activate_color): New function.
3478 (main, init_input_requests): Updated.
3479 * src/roff/troff/troff.h, src/roff/troff/node.cc
3480 (troff_output_file::fill_color, troff_output_file::glyph_color):
3483 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3484 Document the changes.
3486 2002-06-17 Colin Watson <cjwatson@debian.org>
3488 Circumvent bug in autoconf 2.53 regarding top_builddir.
3490 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3491 * Makefile.in, doc/Makefile.in:
3492 s/@top_builddir@/@groff_top_builddir@/.
3493 * configure: Regenerated (with autoconf 2.53).
3495 2002-06-17 Werner LEMBERG <wl@gnu.org>
3497 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3498 `paperwidth' and `paperlength' for the `papersize' keyword.
3500 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
3502 * src/devices/grops/grops.man: Add info about Type 42 fonts.
3504 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
3506 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3507 html_printer::do_linelength, html_printer::do_pageoffset,
3508 html_printer::do_indentation, html_printer::do_tempindent,
3509 html_printer::do_break, html_printer::begin_page): Clear indented
3511 * tmac/html.tmac: Disable hyphenation.
3513 2002-06-15 Werner LEMBERG <wl@gnu.org>
3515 Don't produce HTML files if utility programs are missing.
3517 * Makefile.in (make_html, make_install_html): New variables.
3518 (MDEFINES): Updated.
3520 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3522 * configure.ac: Use it.
3523 * configure: Regenerated.
3525 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3526 (HTMLEXAMPLESFILES): This new variable.
3527 (EXAMPLESIMAGEFILES): Renamed to...
3528 (HTMLEXAMPLEIMAGEFILES): This.
3529 (CLEANADD): Add HTMLEXAMPLEFILES.
3530 (all): Use `make_html'.
3532 (install_data): Use `make_install_html'.
3533 Move html stuff to...
3534 (install_html): This new target.
3535 (uninstall_sub): Updated.
3537 2002-06-14 Bernd Warken <bwarken@mayn.de>
3539 * src/roff/grog/Makefile.sub (grog): Renamed to...
3541 (grog): New rule to always install grog.sh as grog.
3543 2002-06-08 Bernd Warken <bwarken@mayn.de>
3545 * src/roff/grog/grog.pl: Fix typo.
3547 2002-06-07 Werner LEMBERG <wl@gnu.org>
3549 * doc/groff.texinfo: Add more info on .tr arguments.
3551 2002-06-05 Werner LEMBERG <wl@gnu.org>
3553 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3555 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3556 * configure: Regenerated.
3558 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3560 * src/roff/troff/symbol.cc (table_sizes): Add more values.
3562 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3564 2002-06-04 Werner LEMBERG <wl@gnu.org>
3566 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3567 is not initialized at the time we need it in case `--prefix' hasn't
3568 been set. Check for `ac_default_prefix' also.
3569 Test for `papersize' keyword also and generalize allowed whitespace.
3570 * configure: Regenerated.
3572 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3575 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3577 (src_version, src_revision): New variables to avoid overwriting
3578 from parent make process.
3579 (version.cc): Updated.
3581 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3582 (linebuf, linebufsize): New global variables.
3583 (sys_fatal): Use `fatal' to abort properly.
3584 (get_line): New function.
3585 (get_resolution): Use it.
3586 Improve error messages.
3587 (get_papersize): Check `papersize' also.
3589 Improve error messages.
3591 2002-06-03 Werner LEMBERG <wl@gnu.org>
3593 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3594 should be removed only if builddir is not srcdir.
3595 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3596 (clean): Depend on `mostlyclean'.
3597 (distclean): Depend on `clean'.
3598 (realclean, extraclean): Depend on `distclean'.
3599 (.y.cc, .y.o): Simplified. The output files are no longer written
3600 to srcdir but to builddir.
3601 * Makefile.in (MDEFINES): Add `version' and `revision'.
3602 (uninstall_dirs): Fix order of directories.
3603 * doc/Makefile.sub (version, revision): Removed.
3604 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3605 Added `HTMLDOCFILES'.
3606 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3607 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3608 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3611 * doc/texinfo.tex (\authortt): New macro.
3612 (\shortcontt): Define.
3613 (\titlepage): Set \tt to \authortt while defining \authorfont.
3614 (\appendixbox): New macro.
3615 (\chapmacro, \appendixentry): Use \appendixbox to get even
3616 indentation for letters.
3617 (\summarycontents): Set \tt.
3618 (\internalpagesize): Add two arguments for real paper width and
3619 height as needed by pdfTeX.
3620 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3622 (\tempdima, \tempdimb): New temporary dimensions.
3623 (\pagesizesyyy): Updated.
3625 2002-06-02 Werner LEMBERG <wl@gnu.org>
3627 Adding a new keyword `papersize' to the DESC file format (similar
3628 but not completely identical to grolbp's extension). grops now has
3629 a -p command line option to override `papersize'. Finally, grolbp
3630 has been adapted to the new syntax.
3632 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
3633 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3635 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3636 (CCSRCS): Add `paper.cc'.
3638 * src/include/font.h (font): Add `papersize' element.
3639 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3640 (font::scan_papersize): New function.
3641 (font::load_desc): Use it for handling `papersize' keyword.
3642 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3644 * src/devices/grops/ps.cc: Include paper.h.
3645 (user_paper_length): New global variable.
3646 (ps_printer): Use paper length as initializer.
3647 (make_printer): Updated.
3648 (main): Handle new `-p' option.
3649 * src/devices/grops/grops.man: Updated.
3651 * src/devices/grolbp/lbp.cc: Include paper.h.
3652 s/papersizes/lbp_papersizes/.
3653 (set_papersize): Use new `papersizes' array.
3654 (handle_unknown_desc_command): Don't handle `papersize'.
3655 (main): Use `font::scan_papersize' for handling `-p' option.
3656 * src/devices/grolbp/grolbp.man: Updated.
3658 * man/groff_font.man: Document `papersize'.
3661 2002-05-30 Werner LEMBERG <wl@gnu.org>
3663 * src/devices/grops/TODO: Updated.
3664 * src/devices/grops/grops.man: More info on paper formats.
3665 * man/groff_font.man: Document `paperheight' and `paperwidth'.
3667 2002-05-29 Werner LEMBERG <wl@gnu.org>
3669 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3670 to list only if srcdir != currdir.
3671 (distfiles): New target.
3673 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3674 (NOMAKEDIRS): New variable.
3677 2002-05-26 Werner LEMBERG <wl@gnu.org>
3679 Add .output request, similar to \! at top-level.
3681 * src/roff/troff/input.cc (transparent): Remove unused declaration.
3682 (output_request): New function.
3683 (init_input_requests): Add it.
3685 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3688 * Makefile.in (MDEFINES): Add INSTALL_INFO.
3689 (prepare_examples): Fix typo.
3690 * doc/groff.texinfo (@direntry): Fix it.
3692 2002-05-25 Werner LEMBERG <wl@gnu.org>
3694 Including the doc subdir into groff's Makefile system.
3696 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3697 * configure.ac: Use it.
3698 Generate `doc/Makefile'.
3699 * configure: Regenerated.
3701 * Makefile.in (infodir, INSTALL_INFO): New variables.
3702 (MDEFINES, uninstall_dirs): Updated.
3703 (OTHERDIRS): Add `doc'.
3704 * Makefile.comm (CLEANDIRADD): New variable.
3705 (mostlyclean): Use it.
3707 * doc/Makefile.sub, doc/Makefile.in: New files.
3708 * doc/Makefile: Removed.
3710 * NEWS, INSTALL: Updated.
3712 2002-05-24 Werner LEMBERG <wl@gnu.org>
3714 * doc/homepage.ms: Renamed to ...
3715 * doc/webpage.ms: This.
3718 2002-05-23 Werner LEMBERG <wl@gnu.org>
3720 Integrating the `mom' macro package, contributed by Peter Schaffter
3723 * contrib/mom/*: New subdirectory tree.
3724 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3725 be used for documentation files.
3726 (MDEFINES, uninstall_dirs): Use them.
3727 (OTHERDIRS): Add contrib/mom.
3728 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3730 * MANIFEST, NEWS: Updated.
3732 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
3734 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3735 if at outer level; at start-up we are at outer level.
3737 * src/roff/troff/input.cc (do_suppress): Implement it.
3740 Add option -p to show progress information.
3741 pre-grohtml will now render only one page at a time, reducing the
3742 size of needed disk resources enormously.
3744 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3745 (imagePageName): New global variable.
3746 (psPageName, show_progress, currentPageNo): New global variables.
3747 (html_system): Close saved stderr and stdout handles.
3748 (write_end_image): Accept a parameter to control \O escape.
3749 (write_start_image): Adapted to new \O meaning.
3750 (char_buffer::write_upto_newline): Updated.
3751 (createAllPages): Replaced with...
3752 (createPage): This new function to create a single page for images.
3753 It uses `psselect' from the psutils package.
3754 (removeAllPages): Removed.
3755 (createImage): Updated.
3756 Handle progress display.
3757 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3758 (scanArguments): Add option -p.
3759 (makeTempFiles): Updated to create temp files for psPageName and
3761 (removeTempFiles): Removed.
3764 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3765 html_printer::write_header): Append `\0' to `buffer'.
3766 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3768 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3769 Handle `text_emitted'.
3770 (html_text::table_is_void): Slightly rewritten.
3771 (stop): New external symbol.
3772 (html_text::do_push) [DEBUGGING]: Use it and simplify.
3773 (html_text::shutdown): Call `dump_stack'.
3774 (html_text::do_space): Rewritten.
3775 * src/devices/grohtml/grohtml.man: Document -p and the need of
3778 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3780 Call \O[0] if `ps4html' is active.
3781 * tmac/s.tmac (@EQ, @EN): Handle html better.
3783 * tmac/html.tmac: Don't use black for background colour.
3785 * src/roff/troff/node.cc: Include `div.h'.
3786 (troff_output_file::really_print_line): Don't use `is_on'.
3787 (troff_output_file::word_marker, troff_output_file::flush_tbuf
3788 troff_output_file::check_charinfo,
3789 troff_output_file::put_char_width, troff_output_file::put_char,
3790 troff_output_file::determine_line_limits, troff_output_file::draw,
3791 real_output_file::begin_page, glyph_color_node::tprintf,
3792 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3794 (troff_output_file::really_on): Call `do_motion'.
3795 (suppress_node::tprint): Use `get_page_number' instead of `%'
3797 Call `reset_output_registers' conditionally on `is_on'.
3799 * doc/groff.texinfo: Document new syntax of \O.
3800 * NEWS, man/groff_diff.man: Updated.
3802 2002-05-22 Werner LEMBERG <wl@gnu.org>
3804 * MORE.STUFF: Add info about David Frey's deroff implementation.
3807 2002-05-16 Werner LEMBERG <wl@gnu.org>
3809 Pic's `with' attribute now accepts positions.
3811 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3812 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3814 (object_spec): Add rule for `WITH' and `position'.
3815 (relative_path): Give `corner' the precedence of `CHOP'.
3816 * src/preproc/pic/object.h (path): New members `pos' and
3818 * src/preproc/pic/object.cc: Updated initializers of `path'.
3819 (path::follow): Handle `is_position'.
3821 * doc/pic.ms: Completely updated grammar description.
3822 Many typographical improvements.
3824 2002-05-15 Werner LEMBERG <wl@gnu.org>
3826 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3827 code of x in range 0-127) also.
3828 * doc/groff.texinfo, man/groff_diff.man: Updated.
3830 Added keywords `north', `south', `east', and `west' for corners
3833 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3835 (yylex): Handle them.
3836 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3837 (corner): Handle them.
3839 2002-05-14 Werner LEMBERG <wl@gnu.org>
3841 * src/devices/grops/grops.man: Clarify handling of `download' file.
3843 2002-05-11 Werner LEMBERG <wl@gnu.org>
3845 Adding `warnscale' and `spreadwarn' requests, based on a patch from
3846 Jeffrey Friedl <jfriedl@yahoo.com>.
3848 * src/roff/troff/input.cc (spread_limit, warn_scale,
3849 warn_scaling_indicator): New global variables.
3850 (warnscale_request, spreadwarn_requests): New functions.
3851 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3852 (init_input_requests): Updated.
3853 (error_type): Add `OUTPUT_WARNING'.
3854 (do_error): Handle it.
3855 (output_warning): New warning function which shows output location.
3856 * src/roff/troff/env.h (spread_limit): New external variable.
3857 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3859 (distribute_space): Emit warning if added space is larger than
3861 (environment::possibly_break_line): Emit warning if a line can't
3862 be adjusted on both sides.
3864 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3866 2002-05-08 Werner LEMBERG <wl@gnu.org>
3868 * src/roff/troff/node.cc (special_node::special_node): Use
3869 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
3870 \X''\% crashes, for example.
3872 * doc/groff.texinfo: Document \! and \? used at top-level.
3874 2002-05-06 Werner LEMBERG <wl@gnu.org>
3876 * src/preproc/pic/pic.man: Fix some keyword syntax.
3877 Other minor typographical fixes.
3879 * src/roff/groff/groff.man: Fix typos.
3881 2002-05-04 Werner LEMBERG <wl@gnu.org>
3883 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3884 (ShortOpt[]): This to avoid problems with refer.
3886 * doc/pic.ms: Fix typo.
3887 Fix pic grammar description.
3889 * tmac/an-old.tmac (ne): Use de1, not de.
3891 2002-05-03 Werner LEMBERG <wl@gnu.org>
3893 * doc/groff.texinfo: Finished separation of glyphs and characters.
3894 Don't use the string `Appendix' for appendix headers (both in
3895 the text and the table of contents).
3896 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3899 Use registers LL and LT (similar to -ms) for controlling the
3900 length of title and line, respectively, in the -man and -mdoc
3903 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3904 (doc-setup-page-layout): Use \n[LL] and \n[LT].
3905 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3907 (an-header, an-p-footer): Use \n[LT].
3908 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3909 doc/groff.texinfo: Document it.
3911 2002-05-02 Werner LEMBERG <wl@gnu.org>
3913 * doc/fdl.texi: New file.
3914 * doc/groff.texinfo: Include it.
3915 Define and use @copying.
3916 Starting with separating glyph, symbol, and character.
3918 2002-04-27 Werner LEMBERG <wl@gnu.org>
3920 * Makefile.in (EXEEXT): Set it.
3921 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3924 * src/include/nonposix.h: Define GS_NAME.
3925 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3927 Some preliminary changes for EMX support under OS/2.
3929 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3930 __EMX__ similar to __MSDOS__.
3931 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3933 2002-04-25 Werner LEMBERG <wl@gnu.org>
3935 * doc/groff.texinfo: Integrated groff_out.man.
3938 2002-04-23 Werner LEMBERG <wl@gnu.org>
3940 * man/groff_out.man: Minor fixes.
3942 2002-04-23 Werner LEMBERG <wl@gnu.org>
3944 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3945 correct page references.
3946 Fixed many index entries.
3948 2002-04-23 Bernd Warken <bwarken@mayn.de>
3950 * man/roff.man: Enlarged.
3952 2002-04-22 Werner LEMBERG <wl@gnu.org>
3954 * doc/groff.texinfo: More examples, other fixes.
3956 2002-04-20 Werner LEMBERG <wl@gnu.org>
3958 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3959 will now form a chain, e.g.
3968 This is for compatibility with plan 9's troff.
3970 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3974 * doc/groff.texinfo: Add documentation of remaining requests and
3977 2002-04-19 Werner LEMBERG <wl@gnu.org>
3979 * doc/groff.texinfo: Add documentation of remaining escapes.
3981 * font/devdvi/generate/tc.map: Remove entry for `sr'.
3982 * font/devdvi/*TC: Regenerated.
3984 2002-04-18 Werner LEMBERG <wl@gnu.org>
3986 * src/roff/troff/input.cc (token::next): Make \H behave consistently
3987 if not in compatibility mode, i.e., increment relative to the
3989 * doc/groff.texinfo: Updated accordingly.
3991 2002-04-17 Werner LEMBERG <wl@gnu.org>
3993 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3995 2002-04-16 Bernd Warken <bwarken@mayn.de>
3997 * src/roff/groff/groff.man: Improve documentation of -P option.
4000 2002-04-15 Werner LEMBERG <wl@gnu.org>
4002 Add new escape \F to switch font family.
4004 * src/roff/troff/input.cc (token::next): Handle \F.
4005 * src/roff/troff/env.cc (environment::set_family): Handle
4007 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4010 2002-04-14 Werner LEMBERG <wl@gnu.org>
4012 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4015 2002-04-13 Werner LEMBERG <wl@gnu.org>
4017 Implement \f[] as an alternative to \fP. Change \mP and \MP to
4018 \m[] and \M[], respectively.
4020 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4021 (symbol::symbol): Handle NULL string and empty string differently.
4022 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4023 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4024 Add optional parameter.
4025 Updated calling functions.
4026 (get_copy, do_glyph_color, do_fill_color, token::next): Use
4028 * src/roff/troff/env.cc (environment::set_font): Ditto.
4030 * src/preproc/pic/troff.cc (troff_output::set_fill,
4031 troff_output::reset_color: Updated.
4033 * tmac/www.tmac: Updated.
4035 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4036 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4039 * tmac/Xps.tmac: Remove some redundant code.
4041 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4042 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4043 man/groff_out.man, man/groff.man, man/groff_diff.man,
4044 src/roff/groff/groff.man: Replace \f[P] with \f[].
4046 2002-04-13 Bernd Warken <bwarken@mayn.de>
4048 * src/include/printer.h, src/libs/libdriver/printer.cc
4049 (printer::change_fill_color): New member function.
4050 * src/libs/libdriver/input.cc (parse_D_command): Use it.
4052 2002-04-12 Werner LEMBERG <wl@gnu.org>
4054 * doc/groff.texinfo: Completed pass on gtroff reference.
4056 2002-04-11 Werner LEMBERG <wl@gnu.org>
4058 * doc/groff.texinfo: More fixes.
4060 2002-04-11 Bernd Warken <bwarken@mayn.de>
4062 * src/include/color.h: Decorate with `const'.
4065 * src/libs/libgroff.color.cc: Decorate with `const'.
4067 (color::color): Initialize members.
4068 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4069 command according to the documentation.
4071 * man/groff_out.man: Updated.
4074 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
4076 * src/preproc/html/pre-html.cc (write_start_image): Remove
4078 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4080 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4081 \C'hy' caused an assertion failure.
4083 * src/roff/troff/env.cc (environment::environment): Initialize
4085 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4087 2002-04-10 Werner LEMBERG <wl@gnu.org>
4089 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4090 Document pvs request and .pvs register.
4092 2002-04-09 Werner LEMBERG <wl@gnu.org>
4094 * doc/groff.texinfo: Improve and fix documentation of diversions
4097 2002-04-08 Werner LEMBERG <wl@gnu.org>
4099 * doc/groff.texinfo: Fix documentation of drawing functions.
4102 2002-04-07 Werner LEMBERG <wl@gnu.org>
4104 * doc/groff.texinfo: Better documentation of double quotes as
4108 2002-04-06 Werner LEMBERG <wl@gnu.org>
4110 * man/groff_font.man: Document names of special characters better.
4111 * doc/groff.texinfo: Minor improvements.
4113 * tmac/lbp.tmac: Load latin1.tmac.
4114 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4116 * font/devX*/*: Regenerated (all chars > 0x80 removed).
4118 2002-04-05 Werner LEMBERG <wl@gnu.org>
4120 * tmac/tty.tmac: Don't use shc request.
4121 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4124 * man/groff_diff.man: Minor fixes.
4126 * font/devlbp/*: Remove all `charXXX' entities.
4128 * src/libs/libgroff/font.cc (font::~font): Deallocate
4129 `special_device_coding'.
4130 (font::load): Use `new' for allocating `special_device_coding'.
4131 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4132 Removed unused member.
4134 2002-04-05 Werner LEMBERG <wl@gnu.org>
4136 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4137 (resource_manager::do_begin_binary,
4138 resource_manager::do_begin_data): Use it.
4140 * doc/texinfo.tex: Updated to version 4.2.
4142 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4143 (token::zero_width_break): New inline function.
4144 * src/roff/troff/input.cc (token::next): Use it.
4145 (token::description): Updated.
4146 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4147 (token::add_to_node_list, token::process): Use it.
4148 * NEWS, doc/groff.texinfo: Updated.
4150 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4151 * tmac/tty.tmac: Add missing backslash.
4153 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
4155 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4156 `.ps' register instead of `.s' to handle fractional point sizes.
4157 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4158 limit_box::output): Ditto.
4159 * src/preproc/eqn/other.cc (size_box::compute_metrics,
4160 size_box::output): Ditto.
4161 * src/preproc/eqn/over.cc (over_box::compute_metrics,
4162 over_box::output): Ditto.
4163 * src/preproc/eqn/script.cc (script_box::compute_metrics,
4164 script_box::output): Ditto.
4165 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4166 sqrt_box::output): Ditto.
4168 2002-04-03 Michael Selway <mas@ssl.co.uk>
4170 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4173 2002-04-03 Werner LEMBERG <wl@gnu.org>
4175 * doc/homepage.ms: Reduce title size.
4176 * doc/groff.texinfo: Fix documentation of .t register.
4177 Fix handling of colon.
4180 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4181 only if page length is positive to avoid a loop.
4183 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4186 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
4188 * src/include/nonposix.h, src/roff/groff/pipeline.c:
4189 s/__CYGWIN32__/__CYGWIN__/.
4191 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
4193 * doc/gnu.xpm: New image contributed by Emily Mulley.
4194 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4195 (homepage.html): Be dependent on gnu.eps.
4196 * doc/homepage.ms: Updated to new image.
4198 * src/devices/grohtml/post-html.cc (html_printer): New member
4200 (html_printer::flush_sbuf, html_printer::set_char): Set it.
4201 (html_printer::sbuf_continuation): Use it.
4203 2002-03-28 Werner LEMBERG <wl@gnu.org>
4205 * src/libs/libgroff/getopt.c: Updated to latest version.
4207 * tmac/README: More on hyphen.tex license.
4209 2002-03-26 Larry Kollar <kollar@alltel.net>
4211 * doc/groff.texinfo: Add documentation of most missing requests.
4213 2002-03-25 Werner LEMBERG <wl@gnu.org>
4215 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4216 of `+-', `mu', and `di', respectively.
4218 * font/devascii/R.proto, font/devutf8/R.proto,
4219 font/devlatin1/R.proto, font/devhtml/R.proto,
4220 font/devcp1047/R.proto, font/devlpb/*: Add them.
4221 * font/devps/generate/textmap: Ditto.
4222 * font/devps/*: Regenerated.
4223 * font/devlj4/generate/text.map: Add them.
4224 * font/devlj4/*: Regenerated.
4225 * font/devdvi/generate/tc.map: Use them.
4226 * font/devdvi/generate/texsy.map: Add them.
4227 * font/devdvi/*: Regenerated.
4228 * font/devX*/*: Regenerated.
4230 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4231 tmac/tty-char.tmac: Updated.
4233 * NEWS, man/groff_char.man: Updated.
4235 2002-03-24 Werner LEMBERG <wl@gnu.org>
4237 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4238 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4239 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4240 we use `.fchar' in dvi.tmac.
4241 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4242 * tmac/Xps.tmac: Simplify some char definitions.
4243 Add definition for \[f/].
4244 * man/groff_char.man: Updated for new X.tmac.
4246 * tmac/README: New file.
4248 2002-03-23 Phil Lobbes <phil@perkpartners.com>
4250 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4251 internal .y.o rule took precendence over the .y.cc rule, compiling
4252 the yacc files with gcc instead of g++.
4254 2002-03-23 Werner LEMBERG <wl@gnu.org>
4256 * tmac/dvi.tmac: Add replacement font for `CB'.
4258 * tmac/doc.tmac: s/request/macro/ in messages.
4259 (doc-generic-macro): Improve error message.
4260 * tmac/groff_mdoc.man: Minor improvements.
4262 2002-03-22 Werner LEMBERG <wl@gnu.org>
4264 * doc/groff.texinfo: Document possible conflict between `tr' and
4267 2002-03-21 Werner LEMBERG <wl@gnu.org>
4269 Improve handling of hyphenation patterns. It is now possible to
4270 use most of TeX's pattern files unmodified. To make the process
4271 more flexible, a new request `hpfcode' has been added which
4272 provides a character code mapping for the `hpf' request. See
4273 comment before hpf_getc() for more details.
4275 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4277 (read_patterns_file): Additional parameter for exception dictionary.
4278 Extended to recognize \pattern, \hyphenation, and \endinput.
4279 (do_hyphenation_patterns_file): Updated.
4280 * src/roff/troff/env.h (hpf_code_table): New extern.
4282 * src/roff/troff/input.cc (hpf_code_table): New array.
4283 (init_hpf_code_table, hyphenation_patterns_file_code): New
4285 (hyphenation_code): Handle translation from `trin' correctly.
4286 (main, init_input_requests): Updated.
4287 (charinfo::set_translation): Handle hyphenation code also.
4289 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4292 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4293 char' is used for offsets in hyphenation exceptions.
4295 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4297 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4299 2002-03-20 Larry Kollar <kollar@alltel.net>
4301 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4304 2002-03-18 Werner LEMBERG <wl@gnu.org>
4306 * tmac/html.tmac: Fix serious typo.
4308 2002-03-17 Larry Kollar <kollar@alltel.net>
4310 * doc/groff.texinfo: Add documentation for `writec' request.
4312 2002-03-17 Werner LEMBERG <wl@gnu.org>
4314 Added request `hpfa' to append hyphenation patterns.
4316 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4318 (hyphenation_patterns_file): Renamed to...
4319 (do_hyphenation_patterns_file): This.
4320 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4322 (init_hyphen_requests): Updated.
4323 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4325 2002-03-16 Werner LEMBERG <wl@gnu.org>
4327 Added request `writec' in analogy to `tmc'.
4329 * src/roff/troff/input.cc (write_request): Renamed to...
4330 (do_write_request): This.
4331 Added one parameter.
4332 (write_request, write_request_continue): New functions.
4333 (init_input_requests): Updated.
4334 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4336 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4338 * NEWS: Document it.
4340 2002-03-15 Werner LEMBERG <wl@gnu.org>
4342 * man/groff.man: Add writem request.
4344 Add request `trin' (translate input) to make `.asciify' work
4345 correctly. This is necessary since `charXXX' entity names are no
4346 longer hardcoded in font definition files.
4348 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4349 `translate_input' members.
4350 (charinfo::set_asciify_code, charinfo::get_asciify_code,
4351 charinfo::set_translation_input): New methods.
4352 (charinfo::set_translation): Add third argument.
4353 * src/roff/troff/input.cc (charinfo:set_translation): Set
4355 (do_translate): Add second argument.
4356 (translate_input): New function.
4357 (init_input_requests): Updated.
4358 * src/roff/troff/node.cc (glyph_node::asciify,
4359 composite_node::asciify): Use `get_asciify_code'.
4361 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4363 * NEWS, man/groff.man, man/groff_diff.man: Updated.
4365 2002-03-14 Larry Kollar <kollar@alltel.net>
4367 * doc/groff.texinfo: Improve documentation of .RS and .RE.
4369 2002-03-14 Werner LEMBERG <wl@gnu.org>
4371 Add a new request `sizes' similar to the `sizes' command in DESC
4374 * src/roff/troff/env.cc (override_sizes): New function.
4375 (init_env_requests): Use it.
4376 * src/roff/troff/token.h: Export `read_string'.
4377 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4379 2002-03-12 Werner LEMBERG <wl@gnu.org>
4381 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4383 2002-03-10 Werner LEMBERG <wl@gnu.org>
4385 * tmac/pspic.tmac: Add support for -Tdvi.
4386 * tmac/dvi.tmac: Include pspic.tmac.
4387 * src/devices/grodvi/grodvi.man: Document it.
4390 * font/devlj4/generate/Makefile: Fix URL of metric files.
4392 2002-03-09 Werner LEMBERG <wl@gnu.org>
4394 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4396 2002-03-09 Larry Kollar <kollar@alltel.net>
4398 * tmac/groff_ms.man: Add documentation for RS and RE macros.
4400 2002-03-08 Werner LEMBERG <wl@gnu.org>
4402 * doc/groff.texinfo: Fixes for texinfo 4.1.
4404 2002-03-07 Werner LEMBERG <wl@gnu.org>
4406 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4408 Handle CYGWIN properly.
4410 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
4412 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4413 * tmac/lbp.tmac: Add some font translations.
4415 2002-03-02 Werner LEMBERG <wl@gnu.org>
4417 * font/devcp1047/R.proto, font/devlatin1/R.proto,
4418 font/devhtml/R.proto: Remove `charXXX' entries.
4419 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4422 * font/devlj4/generate/text.map: Remove `charXXX' entries.
4423 * font/devlj4/*: Regenerated all font definition files.
4424 * tmac/lj4.tmac: Load latin1.tmac.
4426 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4427 from 2000-06-17: LJ4 metric files are *not* text files.
4429 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4430 register to test for EBCDIC.
4432 2002-03-01 Werner LEMBERG <wl@gnu.org>
4434 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4435 files (as grops already does).
4436 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4438 * src/devices/grops/grops.man: Document comment lines in encoding
4441 * tmac/cp1047.tmac: New file.
4442 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4443 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4444 * tmac/Makefile.sub (NORMALFILES): Updated.
4446 * tmac/ec.tmac: Don't load latin1.tmac again.
4448 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4449 font/devps/generate/dingbats.map,
4450 font/devps/generate/dingbats.rmap, font/devps/text.enc,
4451 font/devps/generate/Makefile (symbolmap): Add header comment.
4452 * font/devps/generate/textmap: Ditto.
4453 Remove `charXXX' entries.
4454 * font/devps/symbolmap: Regenerated.
4455 * font/devps/*: Regenerated all font definition files.
4457 2002-02-28 Werner LEMBERG <wl@gnu.org>
4459 Add color support to grodvi (for drawing colors are currently
4460 translated to gray values).
4462 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4463 (dvi_printer): Add `cur_color' member.
4464 (dvi_printer::set_color): New function.
4465 (draw_dvi_printer): Remove `fill'.
4466 (draw_dvi_printer::fill_next): Pass environment as parameter.
4467 Update code for new color support translated to gray.
4468 (dvi_printer::set_char): Updated.
4469 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4470 changes crossing the page border.
4471 (dvi_printer::draw): Updated.
4472 Remove cases `f' and `F'.
4473 * tmac/dvi.tmac: Add color definitions.
4474 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4476 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4479 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4480 versions of autoconf.
4481 * configure: Updated.
4483 * doc/homepage.ms: Use `.blm'.
4484 * tmac/www.tmac (www-depth): New auxiliary variable.
4485 (www-pop-level): Don't issue HTML tag.
4486 (ULS, ULE, LI): Use absolute indentation.
4488 * src/devices/grops/ps.cc (ps_printer::begin_page,
4489 ps_printer::end_page): Switch forth and back to default color while
4490 starting a new page.
4492 2002-02-27 Werner LEMBERG <wl@gnu.org>
4494 Add EC and TC fonts to devdvi.
4496 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4497 * font/devdvi/generate/cork.map: Renamed to...
4498 * font/devdvi/generate/ec.map: This.
4499 Remove entry for `aq'.
4500 * font/devdvi/generate/tc.map: New file.
4501 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4504 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4505 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4506 * tmac/ec.tmac: New file.
4507 * tmac/Makefile.sub (NORMALFILES): Updated.
4508 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4509 * man/groff_char.man: Check `ECFONTS' register.
4511 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4513 2002-02-26 Werner LEMBERG <wl@gnu.org>
4515 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4516 * font/devdvi/generate/cork.map: Add 'y and 'Y.
4517 * font/devdvi/*: Updated.
4518 * tmac/dvi.tmac: Formatting.
4520 Add font `HBI' for the dvi output.
4521 Add support for font families `T' and `H'.
4523 * font/devdvi/HBI: New file.
4524 * font/devdvi/B: Renamed to ...
4525 * font/devdvi/TB: This.
4526 * font/devdvi/BI: Renamed to ...
4527 * font/devdvi/TBI: This.
4528 * font/devdvi/I: Renamed to ...
4529 * font/devdvi/TI: This.
4530 * font/devdvi/R: Renamed to ...
4531 * font/devdvi/TR: This.
4532 * font/devdvi/H: Renamed to ...
4533 * font/devdvi/HR: This.
4534 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4535 * font/devdvi/generate/Makefile (HBI): New rule.
4537 (R, I, B, BI, H): Renamed to ...
4538 (TR, TI, TB, TBI, HR): This, respectively.
4540 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4541 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4542 Add `styles' and `family' keywords.
4543 * tmac/dvi.tmac: Alias `H' to `HR'.
4544 Add some fspecial requests for italic fonts.
4545 Add TR and TI as special.
4546 Add support for `_' with font CWI.
4548 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4549 operator `:'. Until now, the expression `0:1' would return 2
4552 2002-02-25 Werner LEMBERG <wl@gnu.org>
4554 * man/groff_char.man: Added some missing PS glyph names (from the
4556 * font/devps/generate/textmap, font/devps/symbolmap: Add
4559 * doc/groff.texinfo: Minor additions and fixes.
4560 * man/groff_diff.man: Remove documentation of fp request. This
4561 is already covered in the original troff manual.
4562 Updated to be consistent with other doc files.
4565 2002-02-24 Werner LEMBERG <wl@gnu.org>
4567 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4569 Define new variable OTHERDEVDIRS (containing `font/devlj4
4570 font/devlbp' if not EBCDIC).
4571 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4572 (OTHERDEVDIRS): New variable.
4573 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4574 * configure: Regenerated.
4576 * NEWS, src/devices/grotty/grotty.man: Updated.
4578 2002-02-23 Werner LEMBERG <wl@gnu.org>
4580 * src/roff/troff/input.cc (do_overstrike, do_bracket,
4581 get_line_arg): Honour input level.
4583 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4585 * font/*/*: Implement it in all font files.
4586 * font/devps/generate/textmap, font/devps/generate/symbolchars,
4587 * font/devps/symbolmap: Updated.
4588 * font/devlj4/generate/text.map: Updated.
4589 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4590 * font/devdvi/generate/texmi.map: Updated.
4592 * font/devutf8/R.proto: Remove all `charXXX' entries.
4593 * font/devutf8/NOTES: Updated.
4595 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4598 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4600 * NEWS, man/groff_char.man: Updated.
4602 2002-02-21 Phil Lobbes <phil@perkpartners.com>
4604 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4606 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4608 * src/roff/grog/grog.pl: Fix computation of $refer.
4610 2002-02-19 Werner LEMBERG <wl@gnu.org>
4612 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4613 `snprintf' and `vsnprintf'.
4615 * src/include/htmlindicate.h: Renamed to...
4616 * src/include/htmlhint.h: This.
4617 * src/include/Makefile.sub: Updated.
4618 * src/preproc/eqn/main.cc: Updated.
4620 2002-02-18 Werner LEMBERG <wl@gnu.org>
4622 * man/roff.man, man/groff_out.man, man/groff.man,
4623 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4624 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4626 * win32-diffs: Updated.
4628 2002-02-17 Werner LEMBERG <wl@gnu.org>
4630 * doc/Makefile (clean): Add *.eps.
4631 (MEMACROS): Removed.
4632 (TFLAG): New variable.
4635 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4637 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4639 * tmac/www.tmac: Use dummy diversion while resetting and disabling
4641 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4643 * src/roff/troff/troff.man: Fix order of parameter description.
4647 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
4649 Simplify image handling for grohtml.
4652 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4654 (html_text::dump_stack): Don't emit newline while debugging.
4655 (html_text::do_push) [DEBUGGING]: Print more info.
4656 (html_text::check_emit_text): Fix handling of <p>.
4657 * src/devices/grohtml/html.h: Updated.
4658 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4659 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
4660 send its data to stderr also.
4662 (simple_output::space_or_newline) [DEBUGGING]: Removed.
4663 * src/devices/grohtml/post-html.cc (html_printer::do_links,
4664 html_printer::html_printer): Remove `DEBUGGING' conditionals.
4666 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4668 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4669 is_inline_image): Removed.
4670 (html_begin_suppress, html_end_suppress): Don't take a parameter.
4671 (graphic_start, graphic_end): Removed.
4672 * src/include/htmlindicate.h: Updated.
4673 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4674 (macroset_template): New global variable.
4675 (makeFileName): Use `macroset_template'.
4676 (write_end_image): Don't take a parameter.
4678 (write_start_image: Don't emit newline.
4679 (char_buffer::write_upto_newline): Updated.
4680 (char_buffer::skip_to_newline): Renamed to ...
4681 (char_buffer::skip_until_newline): This.
4683 (char_buffer::write_file_troff, char_buffer::write_file_html):
4685 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4686 (removeAllPages): Remove `DEBUGGING' conditionals.
4687 (addRegDef, dump_args): New functions.
4688 (char_buffer::do_html, char_buffer::do_image): Handle
4689 `www-image-template' command line variable.
4690 Add more debugging code.
4691 (addps4html): Removed.
4692 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4694 * src/preproc/eqn/main.cc: Include `ctype.h'.
4695 (suppress_html): Removed.
4697 (inline_equation): Use `html_begin_suppress' and
4698 `html_end_suppress'.
4699 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4700 (troff_output::start_picture, troff_output::finish_picture):
4702 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4703 (process_input_file): Updated.
4705 * src/roff/troff/div.cc (page_number): Set page number only if the
4706 `ps4html' register isn't defined.
4707 * src/roff/troff/input.cc (image_no): New external variable.
4708 (do_suppress): Use it.
4709 * src/roff/troff/node.h (suppress_node::image_id): New member.
4710 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4711 (suppress_node::suppress_node): Initialize `image_id' member.
4712 (suppress_node::same): Handle `image_id' also.
4713 (suppress_node::copy): Updated.
4714 (last_image_id): New global variable.
4715 (suppress_node::tprint): Use it.
4717 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4719 * tmac/pspic.mac (PSPIC): Fix html support.
4720 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4721 * tmac/www.tmac (www-image-template): Set up.
4722 (HTMLINDEX): Renamed to...
4724 (BODYCOLOR): Renamed to...
4726 (BACKGROUND): Renamed to...
4728 (URL): Change order of parameters for consistency.
4729 (MAILTO): Renamed to...
4731 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4732 (IMG, PIMG, MPIMG): This.
4733 (HTML-H-BEGIN, HTML-H-END): Renamed to...
4735 (LINKS): Renamed to...
4737 (LINE): Renamed to...
4739 (NO-AUTO-RULE): Renamed to...
4741 (HTML-TL): Renamed to...
4743 (UL-BEGIN, UL-END): Renamed to...
4745 (DROPCAP): Renamed to...
4747 (TS, TE, EQ, EN): Provide default definitions.
4748 (www-make-unique-name): Updated.
4749 (HTML-IMAGE-INLINE): Fix typo.
4750 * tmac/groff_www.man: Updated.
4752 * doc/Makefile (homepage.html): Add option -r to grohtml.
4753 Use shortened image name.
4754 * doc/groff.texinfo: Updated info on grohtml strings and macros.
4755 * doc/homepage.ms: Updated and extended.
4757 2002-02-14 Werner LEMBERG <wl@gnu.org>
4759 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4761 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4762 SGR_BACK_DEFAULT_COLOR): Replaced with ...
4763 (tty_printer::put_color): Use it.
4764 (ttr_printer::end_page): Simplify.
4766 2002-02-13 Werner LEMBERG <wl@gnu.org>
4768 * tmac/groff_tmac.man: Moved to...
4769 * man/groff_tmac.man: This place.
4770 * tmac/Makefile.sub, man/Makefile.sub: Updated.
4772 2002-02-12 Werner LEMBERG <wl@gnu.org>
4774 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4775 $(COMPILE.c) to not include groff's assert.h.
4777 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4779 * NEWS, src/drivers/grotty/grotty.man: Document it.
4781 2002-02-11 Werner LEMBERG <wl@gnu.org>
4783 * src/libs/snprintf/snprintf.c: Updated to latest version
4786 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
4787 test whether there is `.]' also.
4788 Don't check for spaces after `.['.
4789 * src/roff/grog/grog.sh: Do the same.
4791 2002-02-10 Werner LEMBERG <wl@gnu.org>
4795 * src/libs/libgroff/illegal.cc: Renamed to ...
4796 * src/libs/libgroff/invalid.cc: This.
4797 (illegal_char_table): Renamed to ...
4798 (invalid_char_table): This.
4799 * src/libs/libgroff/Makefile.sub: Updated.
4800 * win32-diffs: Updated.
4802 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4803 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4804 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4805 font::load), src/preproc/eqn/main.cc (read_line, main),
4806 src/preproc/eqn/lex.cc (file_input::read_line),
4807 src/preproc/pic/lex.cc (file_input::read_line,
4808 simple_file_input::get, simple_file_input::peek),
4809 src/preproc/pic/main.cc (top_input::get, top_input::peek),
4810 src/preproc/pic/pic.man, src/preproc/refer/main.cc
4811 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4812 do_bib), src/preproc/tbl/main.cc (table_input::get),
4813 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4814 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4815 do_zero_width, read_request, encode_char, ps_get_line,
4816 transparent_file, get_char_for_escape_name, transparent_translate,
4817 asciify, input_char_description, read_string, set_string),
4818 src/roff/troff/env.cc (environment::add_html_tag),
4819 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4821 * src/include/lib.h: Updated.
4823 * src/preproc/eqn/eqn.cc: Removed.
4827 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4829 2002-02-09 Werner LEMBERG <wl@gnu.org>
4831 * doc/gnu.xpm: New image.
4832 * doc/Makefile (DOCS): Add homepage.ps.
4833 Add rules for converting xpm->png and xpm->eps.
4834 Use `gnu.{xpm,eps}' as image names.
4835 * doc/homepage.ms: Updated.
4837 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
4839 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4840 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4841 Remove calls to `B1' and `B2'
4842 (PNG-IMAGE): New macro for inclusion of images in PNG format.
4843 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4844 auxiliary variables for MARGIN-PNG-IMAGE.
4845 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4846 auxiliary macros for MARGIN-PNG-IMAGE.
4847 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4849 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4850 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4851 (DROPCAP): New macro to produce dropcap characters.
4852 (www-do-image): Renamed back to...
4853 (HTML-DO-IMAGE): This.
4854 Updated all callers.
4856 * doc/Makefile (gnubw.eps): Updated.
4857 * doc/homepage.ms: Updated.
4859 2002-02-08 Werner LEMBERG <wl@gnu.org>
4861 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4862 Added `linethick' to table in section `Style Variables'.
4864 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
4866 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4868 2002-02-07 Werner LEMBERG <wl@gnu.org>
4870 Adding options -C (compatibility mode) and -c (grotty's old output
4873 * src/roff/nroff/nroff.sh: Implement it.
4875 * NEWS, src/roff/nroff/nroff.man: Updated.
4877 * PROBLEMS: Document bison 1.32 bug.
4879 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4881 * src/roff/troff/node.cc (make_tfont): Define it earlier.
4882 * src/roff/troff/div.h: Add prototype for `end_diversions'.
4883 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4884 * src/roff/troff/env.h: Add prototype for `title'.
4886 Adding EBCDIC support to grotty.
4888 * src/devices/grotty/tty.cc (CSI): New macro.
4889 (SGR_*, tty_printer::put_color): Use it.
4891 2002-02-06 Werner LEMBERG <wl@gnu.org>
4893 Implementing color support in grotty. The new switch -c activates
4894 the old drawing scheme, disabling color at the same time. The new
4895 switch `-i' selects italic instead of underlining (SGR only).
4897 * src/devices/grotty/tty.cc (putstring): New define instead of
4898 `fputs'. Updated all callers.
4899 (old_drawing_scheme): New global variable.
4900 (COLOR_CHANGE): New enum value.
4901 (SGR_*): New defines containing color handling escape sequences.
4902 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4903 (glyph): New members `back_color_idx' and `fore_color_idx'.
4904 (glyph::order): Add COLOR_CHANGE.
4905 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4906 `is_underline', `is_bold', `cu_flag', `tty_colors'.
4907 New methods `make_underline', `make_bold', `color_to_idx',
4908 `change_color', `put_color'.
4909 (cu_flag): Moved into `tty_printer' class.
4910 (tty_printer::tty_printer): Initialize colors.
4911 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4912 tty_printer::draw, tty_printer::end_page): Handle colors also.
4913 (main): Add options `-c' and `-i'.
4915 * NEWS, src/devices/grotty/grotty.man: Updated.
4917 * src/include/errarg.h (errarg): Add support for `unsigned int'.
4918 * src/libs/libgroff/errarg.c: Implement it.
4920 * src/include/printer.h (printer): Add `change_color' method
4921 (currently used by grotty only).
4922 * src/libs/libdriver/printer.cc: Implement it.
4923 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4924 call to `pr->change_color'.
4926 * src/roff/troff/node.cc (troff_output_file::fill_color,
4927 troff_output_file::glyph_color): Call `do_motion'.
4929 * tmac/tty.tmac: Add color definitions.
4931 * src/roff/groff/groff.man: Minor fixes.
4933 2002-02-05 Bernd Warken <bwarken@mayn.de>
4935 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4936 it. This is a preparation for future changes.
4938 2002-02-05 Werner LEMBERG <wl@gnu.org>
4940 * src/roff/troff/input.cc (process_input_stack): Fix the case
4941 where leading spaces are followed by \f or \s; previously, an
4942 incorrect space width has been used.
4944 * doc/roff.man (quoted_char): Fix argument.
4945 (comment): Define string.
4947 2002-02-04 Larry Kollar <kollar@alltel.net>
4949 * doc/groff.texinfo: More fixes.
4951 2002-02-04 Werner LEMBERG <wl@gnu.org>
4953 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4954 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4955 `restore_compatibility' before `output_string' -- the LINE_STRING
4956 register now already contains proper switches from and to
4959 * man/groff_char.man: Add Euro symbol.
4960 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4961 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4962 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4965 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4967 (.texinfo.html): Add support for texinfo->html.
4969 2002-02-03 Werner LEMBERG <wl@gnu.org>
4971 Added three new requests `ds1', `as1', and `ami'. The former two
4972 are equivalent to `ds' and `as' with the difference that
4973 compatibility mode is saved on entry, switched off during string
4974 expansion, and restored on exit. The latter is the pendant to `dei'
4977 (do_define_string): Use `define_mode' and `calling mode'.
4978 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4979 end of string, respectively.
4980 (define_string, append_string): Use `calling_mode'.
4981 (define_nocomp_string, append_nocomp_string,
4982 define_string_indirect): New functions.
4983 (init_input_requests): Updated.
4984 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4986 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4987 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
4988 mm macro package accesses this string register directly.
4989 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4991 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
4994 2002-02-02 Larry Kollar <kollar@alltel.net>
4996 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4998 2002-01-31 Werner LEMBERG <wl@gnu.org>
5000 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5002 2002-01-31 Bernd Warken <bwarken@mayn.de>
5004 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5005 * man/groff_out.man: Revised and updated.
5007 2002-01-30 Bernd Warken <bwarken@mayn.de>
5009 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5010 out the unused `{' and `}' commands. Undefined by default.
5011 (IntArray): Make `data' private.
5012 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5013 new methods instead.
5014 (skip_line_D, skip_to_end_of_line): New functions.
5015 (get_D_fixed_args): Use `skip_line_D'.
5016 Changed to handle dummy odd arguments by ...
5017 (get_D_fixed_args_odd_dummy): This new function.
5018 (get_D_variable_args): Split some code into ...
5019 (get_possibly_integer_args): This new function.
5020 (send_draw): Use more `const'.
5021 (delete_current_env): New function.
5022 (position_to_end_of_args): Use `size_t'.
5024 (send_draw): Updated.
5025 (parse_D_command): Handle `c', `C', and `t' better.
5029 2002-01-29 Werner LEMBERG <wl@gnu.org>
5032 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5033 @Def...ListEnd which replaces @Def...x. This is necessary to get
5034 proper HTML output -- see the comment in the file for more
5038 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
5040 Fixes to make color changes of 2002-01-21 work with grohtml.
5042 * src/devices/grohtml/post-html.cc (style): Updated.
5043 (html_printer): Remove unused methods.
5044 (html_printer::do_font, html_printer::draw, html_printer::set_char,
5045 html_printer::special): Updated.
5046 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5047 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5048 Added some debugging code.
5049 (html_text::start_tag): Updated.
5050 (html_text::do_push): New method.
5051 (html_text::push_para): Call it.
5052 Add method for handling color.
5053 (html_text::do_color): Updated.
5054 (html_text::shutdown): Handle color.
5055 * src/devices/grohtml/html-text.h (tag_definition): New member
5059 2002-01-28 Werner LEMBERG <wl@gnu.org>
5061 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5063 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
5065 Add two switches -a and -g to control the antialiasing bits for
5066 text and graphics, respectively.
5068 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5070 * src/devices/grohtml/grohtml.man: Document them.
5071 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5073 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5074 (setupAntiAlias): New function.
5075 (createAllPages): Updated.
5076 (scanArguments): Handle `-a' and `-g'.
5077 (main): Call `setupAntiAlias'.
5080 2002-01-27 Werner LEMBERG <wl@gnu.org>
5082 * doc/groff.texinfo (Def*): Call index function after deffn.
5084 * tmac/html.tmac: Call `nroff' request.
5086 2002-01-26 Larry Kollar <kollar@alltel.net>
5088 * tmac/groff_ms.man: Add some omissions.
5090 2002-01-25 Larry Kollar <kollar@alltel.net>
5092 * tmac/groff_ms.man: Typographical improvements.
5094 2002-01-25 Werner LEMBERG <wl@gnu.org>
5096 * doc/groff.texinfo: Updated version and copyright.
5097 * src/devices/grops/grops.man: Updated.
5099 * tmac/groff_tmac.man: Fix `ig' macro.
5101 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5103 Use `.ne' unconditionally everywhere.
5104 (TS): Only insert some vertical space. Doing a page break is no
5105 longer necessary due to the redefinition of the `ne' request.
5107 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5108 warning for unknown subcommands but parse and pass them to the
5111 2002-01-24 Werner LEMBERG <wl@gnu.org>
5113 * tmac/groff_www.man, NEWS: Fix typos.
5115 2002-01-21 Werner LEMBERG <wl@gnu.org>
5117 Complete revision of color support:
5119 Adapt programs to the new libdriver/input.cc.
5121 Color spaces are no longer converted to RGB but transferred as-is
5122 in the troff intermediate output format.
5124 Handle default color gracefully. troff now supports a `default'
5125 color (which can't be changed).
5127 grops will now use the proper color space functions if available.
5131 Note that currently grohtml doesn't handle colors properly. This
5134 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5135 (ui_to_a): New function.
5136 * src/include/lib.h: Updated.
5138 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5139 (color): Simplified; removed all `double' members and methods.
5140 A new array `components' now holds the color parameters.
5141 (color::is_default, color::get_components): New methods.
5142 (color::operator==, color:operator!=): New.
5143 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5144 to make access to the `components' array more comprehensible.
5145 * src/libs/libgroff/color.cc: Implement new color support.
5146 (atoh): Small fixes.
5147 (color::read_encoding): Simplified for new troff intermediate color
5149 (default_color): New global variable.
5151 * src/roff/troff/input.cc (default_symbol): New global variable.
5152 (lookup_color): Use it.
5153 (default_black): Removed.
5154 (do_glyph_color, do_fill_color): Simplified.
5155 (define_color): Handle default color.
5157 (do_if_request): Handle default color.
5158 * src/roff/troff/env.cc (environment::environment): Initialize
5159 colors with `default_color'.
5160 * src/roff/troff/node.cc (troff_output_file::put): Add method
5162 (troff_output_file::hex): Removed.
5163 (troff_output_file::fill_color, troff_output_file::glyph_color):
5164 Updated to include/color.h and libdriver/input.cc.
5166 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5167 fill color properly (identically to the outline color). \D'f...'
5168 doesn't work any more.
5169 All function calls to it updated.
5171 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5173 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5176 * src/devices/grops/ps.cc (ps_output::put_color): New method.
5177 (ps_printer::sbuf_color): Make a real member instead of pointer.
5178 (ps_printer::fill_color, ps_printer::output_color): Removed.
5179 (ps_printer::ps_printer): Updated.
5180 (ps_printer::set_char): Ditto.
5181 (ps_printer::set_color): Use various color schemes.
5182 Use `put_color' method.
5183 (ps_printer::flush_sbuf): Don't set color.
5184 (ps_printer::fill_path): Take `environment' as parameter.
5185 Simplify color handling.
5186 (ps_printer::set_line_thickness): Renamed to ...
5187 (ps_printer::set_line_thickness_and_color): This (and updated).
5188 (ps_printer::set_color): Change second parameter from `complete'
5189 to `fill' which better describes what it does.
5190 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5191 and text in the right order.
5193 Remove branches for `f' and `F'; this is handled by
5195 * src/devices/grops/ps.h: Updated.
5196 * font/devps/prologue (FL): Redefined.
5197 ({F,C}r,k,g: New color functions (with and without filling).
5199 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5200 * man/groff_diff.man, man/groff.man, man/groff_out.man,
5201 doc/groff.texinfo, NEWS: Updated.
5203 2002-01-20 Bernd Warken <bwarken@mayn.de>
5205 * src/libs/libdriver/input.cc: Completely rewritten. See comments
5206 in this file for what has been changed.
5208 2002-01-19 Werner LEMBERG <wl@gnu.org>
5210 * test-groff: Fix GROFF_FONT_PATH.
5211 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5212 is read before .TH or .Dd is parsed.
5214 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
5216 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5217 quadrant boundaries.
5219 2002-01-18 Werner LEMBERG <wl@gnu.org>
5221 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
5224 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
5226 * tmac/doc.common: Initialize %I register for the %I macro to
5227 avoid (harmless) warning.
5228 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5229 when in the SYNOPSIS section.
5231 2002-01-17 Bruno Haible <haible@clisp.cons.org>
5233 * src/preproc/pic/lex.cc (get_token): Fix typo.
5235 2002-01-17 Werner LEMBERG <wl@gnu.org>
5237 * devices/grops/ps.cc: Fix incorrectly applied last patch.
5239 2002-01-17 Larry Kollar <kollar@alltel.net>
5241 * tmac/groff_ms.man: Completely rewritten.
5243 2002-01-16 Werner LEMBERG <wl@gnu.org>
5245 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5247 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
5249 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5251 (ps_printer::draw): Ditto.
5253 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
5255 * tmac/groff_mdoc.man: Minor fixes.
5257 2002-01-13 Werner LEMBERG <wl@gnu.org>
5259 * man/groff_out.man: Some fixes.
5261 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
5263 * doc/pic.ms: Fix typos.
5265 2002-01-12 Werner LEMBERG <wl@gnu.org>
5267 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5269 2002-01-10 Werner LEMBERG <wl@gnu.org>
5271 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5275 2002-01-09 Bernd Warken <bwarken@mayn.de>
5277 * man/groff_out.man: Revised.
5278 * man/roff.man: Minor fixes.
5279 * src/roff/troff/troff.man: Some reordering.
5281 2002-01-09 Werner LEMBERG <wl@gnu.org>
5283 * tmac/an-old.tmac: Add dummy macros for equation support.
5285 2002-01-07 Werner LEMBERG <wl@gnu.org>
5287 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5289 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
5291 * tmac/groff_man.man: Small improvements.
5293 2002-01-07 Bernd Warken <bwarken@mayn.de>
5295 * man/groff_diff.man: Revised.
5297 2002-01-06 Werner LEMBERG <wl@gnu.org>
5299 * tmac/www.tmac: Remove extraneous backslash.
5301 2002-01-06 Bernd Warken <bwarken@mayn.de>
5303 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5305 2002-01-05 Werner LEMBERG <wl@gnu.org>
5307 Integrated groffer, contributed by Bernd Warken.
5309 * contrib/groffer/*: New.
5310 * Makefile.in, NEWS: Updated.
5312 2002-01-04 Werner LEMBERG <wl@gnu.org>
5314 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5315 registers defined in macro packages.
5316 Revising the ms part.
5318 2002-01-04 Larry Kollar <kollar@alltel.net>
5320 * doc/groff.texinfo: Add documentation for ms macros.
5322 2002-01-02 Werner LEMBERG <wl@gnu.org>
5324 First step in adding PS support for the Euro symbol. `eu' is the
5325 official Euro logo, `Eu' is a font-specific glyph variant.
5327 * font/devps/text.enc: Add `Euro' at position 9.
5328 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5329 * font/devps/symbolmap: Regenerated.
5333 2002-01-02 Bernd Warken <bwarken@mayn.de>
5335 * man/roff.man: Revised.
5337 2002-01-01 Bernd Warken <bwarken@mayn.de>
5339 * src/roff/groff/groff.man: Completely rewritten.
5341 2001-12-31 Werner LEMBERG <wl@gnu.org>
5343 * doc/Makefile: Updated.
5345 2001-12-30 Werner LEMBERG <wl@gnu.org>
5347 * tmac/www.tmac: Make all names of internal macros/registers/strings
5348 lowercase, and prepend `www-'.
5349 Other minor changes.
5350 * src/roff/troff/troff.man: Add preprocessor string at BOF.
5352 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
5354 Implement option `-b' in grohtml to set the HTML background colour.
5356 * src/devices/grohtml/post-html.cc (default_background): New global
5358 (html_printer::html_printer): Initialize `background' to
5359 `default_background'.
5360 (main): Implement option `-b'.
5362 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5364 * src/devices/grohtml/grohtml.man: Updated.
5365 * doc/Makefile (.ms.html): Use `-b'.
5366 * tmac/html.tmac: Don't set background color.
5368 Add new grohtml tag `.html-tl'.
5370 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5372 (title_desc::title_desc): Updated.
5373 (html_printer::troff_tag): Handle `.html-tl'.
5374 (html_printer::write_title): Use `with_h1'.
5375 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5376 (HTML-TL): New macro.
5378 Add support for unordered lists in HTML.
5380 * tmac/www.tmac (www-level): New auxiliary register.
5381 (www-level1, www-level2, www-level3): New auxiliary strings.
5382 (www-push-level, www-pop-level): New auxiliary macros
5383 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5387 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5388 (DEFAULT_VERTICAL_OFFSET): Removed.
5389 (IMAGE_BOARDER_PIXELS): Set to 0.
5390 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5391 (vertical_offset): Initialize with 0.
5392 (gsPaper): New global variable.
5393 (get_resolution): Scan for and return unsigned int.
5394 (get_papersize): New function to get paper length from devps/DESC.
5395 (determine_vertical_offset): New function.
5396 (createAllPages): Produce gray-level images and use proper page
5398 (createImage): Use `-quiet' option of pnmcrop.
5399 (addZ): Fix passing of `-Z'.
5400 (scanArguments): Fix handling of `-o'.
5401 (main): Call `determine_vertical_offset'.
5402 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5405 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5406 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5407 glyph descenders properly.
5409 * doc/homepage.ms: Include `gnubw.eps'.
5410 * doc/Makefile (gnubw.eps): New rule.
5411 (homepage.html): Depend on `gnubw.eps'.
5413 2001-12-25 Werner LEMBERG <wl@gnu.org>
5415 * src/roff/troff/input.cc (default_black): Fix return value.
5417 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
5419 * tmac/doc-common (Dt): Change output of architecture strings.
5420 Do some syntax cleanup.
5421 * tmac/groff_mdoc.man: Updated.
5423 2001-12-23 Werner LEMBERG <wl@gnu.org>
5425 Adding an `itc' request (input line trap accepting \c).
5427 * src/roff/troff/env.h (environment): New member
5428 `continued_input_trap'.
5429 Make `do_input_trap' a friend function instead of `input_trap'.
5430 * src/roff/troff/env.cc (environment::environment,
5431 environment::copy): Updated.
5432 (environment::newline): Implement it.
5433 (do_input_trap): New function.
5434 (input_trap): Call `do_input_trap'.
5435 (input_trap_continued): New function.
5436 (init_env_requests): Updated.
5437 * src/roff/troff/TODO: Updated.
5439 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5442 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5444 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
5446 * tmac/doc-common, tmac/doc-syms: Small updates.
5448 2001-12-22 Colin Watson <cjwatson@debian.org>
5450 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5452 2001-12-22 Bernd Warken <bwarken@mayn.de>
5454 * MANIFEST: New file.
5456 2001-12-22 Werner LEMBERG <wl@gnu.org>
5458 * src/preproc/grn/grn.man: Updated.
5460 2001-12-22 Solar Designer <solar@openwall.com>
5462 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5465 2001-12-19 Werner LEMBERG <wl@gnu.org>
5467 Implement a fallback character request `.fchar'.
5469 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5470 (is_fallback): New inline function.
5471 * src/roff/troff/input.cc (do_define_character): New function.
5472 (define_character): Call `do_define_character'.
5473 (define_fallback_character): New function.
5474 (init_input_requests): Add `fchar'.
5475 (charinfo::charinfo): Updated.
5476 (charinfo::set_macro): New argument to set `fallback' flag.
5477 * src/roff/troff/node.cc (make_glyph_node, make_node,
5478 node::add_char): Check `fallback' flag.
5479 * NEWS, man/groff_diff.man, man/groff_man: Updated.
5481 2001-12-16 Werner LEMBERG <wl@gnu.org>
5483 * groff.texinfo: Document exact search algorithm for glyphs.
5485 2001-12-15 Werner LEMBERG <wl@gnu.org>
5487 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5488 the left side of $(MANPAGES) rule to make it always non-empty.
5490 2001-12-14 Werner LEMBERG <wl@gnu.org>
5492 * src/roff/troff/input.cc (default_black): Define default color
5493 `black' if not yet defined.
5495 2001-12-13 Werner LEMBERG <wl@gnu.org>
5497 Implement new string-valued register `.fn' to return the current
5498 real (internal) font name.
5500 * env.cc (environment::get_font_name_string): New function.
5501 (init_env_requests): Add `.fn' register.
5502 * env.h (environment): Updated.
5503 * node.cc (font_info): Make `get_font_name' a friend.
5504 (get_font_name): New function.
5507 * man/groff_diff.man, man/groff.man, NEWS: Updated.
5509 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5511 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5513 2001-12-12 Werner LEMBERG <wl@gnu.org>
5515 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5517 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
5519 * man/groff_diff.man: Adding documentation for \O.
5521 2001-12-10 Werner LEMBERG <wl@gnu.org>
5523 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5524 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5526 2001-12-09 Werner LEMBERG <wl@gnu.org>
5528 * man/roff.man: Revised.
5529 * src/roff/groff/groff.man: Replace man page references with a
5530 pointer to roff.man.
5532 2001-12-09 Bernd Warken <bwarken@mayn.de>
5534 * man/roff.man: Completely rewritten.
5536 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5538 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5540 2001-12-05 Werner LEMBERG <wl@gnu.org>
5542 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5544 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5545 order of initializers.
5548 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
5550 * doc/groff.texinfo: Fix documentation of \O.
5552 * src/devices/grohtml/html-text.cc (html_text::do_indent,
5553 html_text::do_table, html_text::do_emittext, html_text::do_para):
5554 Use `const' for first argument.
5555 (html_text::do_table): Use cast.
5556 * src/devices/grohtml/html-text.h: Updated.
5557 * src/devices/grohtml/output.cc (simple_output::put_string): Add
5558 method for `const string &s'.
5559 * src/devices/grohtml/html.h: Updated.
5560 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5561 (ANCHOR_TEMPLATE): Modified.
5562 (manufacture_headings): New global variable to handle `-h' option.
5563 (is_subsection): Removed.
5564 (char_buffer::add_string): Add `const' to first argument.
5565 Protect against invalid string argument.
5566 Add method for `const string &s'.
5567 (text_glob): Completely redesigned.
5568 (page): Use `const' for strings and remove string length variable.
5569 (page::add_html): Removed.
5570 (page::add_end_encode): New member function.
5571 (to_unicode): Moved upwards.
5572 (title_desc, header_desc): Updated.
5573 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5575 (html_printer::is_bold, html_printer::make_bold): New member
5577 (html_printer::end_of_line): Updated.
5578 (generate_img_src, html_printer::do_auto_image,
5579 html_printer::do_title, html_printer::write_header,
5580 html_printer::determine_header_level, html_printer::do_heading,
5581 html_printer::do_linelength, html_printer::do_pageoffset,
5582 html_printer::do_indentation, html_printer::do_tempindent,
5583 html_printer::do_indentedparagraph, html_printer::do_break,
5584 html_printer::flush_sbuf, get_html_translation,
5585 html_printer::begin_page, html_printer::special): Rewritten to get
5586 rid of static string length limit.
5587 (html_printer::troff_tag): Added `.no-auto-rule'.
5588 (html_printer::flush_globs): Small fix.
5589 (html_printer::determine_space): Don't compute `space_width'.
5590 (html_printer::translate_to_html): Renamed to ...
5591 (html_printer::emit_html): This (with updates).
5592 (html_printer::write_header): Implement `-h' option.
5593 (html_printer::draw): Remove commented-out code. Handle `F'
5595 (html_printer::add_char_to_sbuf): Removed.
5596 (html_printer::add_to_sbuf): Rewritten.
5597 (html_printer::sbuf_continuation): Fixed.
5598 (html_printer::seen_backwards_escape, reverse,
5599 html_printer::remove_last_char_from_sbuf): Removed.
5600 (char_translate_to_html, str_translate_to_html): Removed.
5601 (html_printer::overstrike): New function member.
5602 (html_printer::set_char): Use it.
5603 (html_printer::do_body): New function member.
5604 (html_printer::~html_printer): Use it.
5605 (main): Handle `-h' option.
5607 * src/devices/grohtml/grohtml.man: Document -h switch.
5609 * src/preproc/html/pre-html.cc: Include searchpath.h
5610 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5611 (get_resolution): New function.
5612 (checkImageDir): Use `0777' permissions in mkdir()
5613 (write_start_image): Rewritten to use `\O[5...]'.
5614 (createImage, generateImages): Updated.
5615 (main): Handle `F' and `h' options.
5616 Use `get_resolution'.
5618 * src/roff/troff/input.cc (begin, end, image): Removed.
5619 (do_suppress): Take parameter.
5620 Handle modified syntax of `\O'.
5621 (token::next): Updated.
5622 (init_markup_requests): Removed.
5625 * src/roff/troff/div.h: Add declaration for begin_page().
5627 * tmac/color-html.tmac: Removed. Contents moved to...
5628 * tmac/html.tmac: Here. Set background color.
5629 * tmac/color.tmac: Removed. Contents moved to...
5630 * tmac/ps.tmac: Here.
5631 * tmac/www.tmac: Remove the title command when generating images
5633 (NO_AUTO_RULE): New macro.
5634 (HTML_DO_IMAGE): Use revised `\O' escapes.
5635 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5637 2001-12-02 Werner LEMBERG <wl@gnu.org>
5639 * tmac/groff_mdoc.man: Fix typo.
5641 2001-12-01 Colin Watson <cjwatson@debian.org>
5643 * man/roff.man: Fix typo.
5645 2001-11-29 Werner LEMBERG <wl@gnu.org>
5647 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5650 * src/roff/troff/input.cc (read_draw_node): Emit error message if
5651 more than one argument to \D'f ...'.
5653 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5655 2001-11-28 Werner LEMBERG <wl@gnu.org>
5657 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5660 * tmac/groff_man.man: Minor cosmetic fix.
5662 2001-11-27 Werner LEMBERG <wl@gnu.org>
5664 * src/roff/groff/groff.man, tmac/groff_tmac.man,
5665 tmac/groff_www.man: s/mwww/www/.
5667 2001-11-26 Werner LEMBERG <wl@gnu.org>
5669 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5670 * configure: Regenerated.
5671 * win32-diffs: Updated.
5673 * tmac/groff_mwww.tmac: Renamed to ...
5674 * tmac/groff_www.tmac: This.
5675 * tmac/mwww.tmac: Removed.
5676 * NEWS, tmac/Makefile.sub: Updated.
5678 2001-11-21 Werner LEMBERG <wl@gnu.org>
5680 * doc/groff.texinfo: Improve documentation of the `\v' escape.
5681 Fix explanation of `\D' and `rt'.
5683 2001-11-20 Werner LEMBERG <wl@gnu.org>
5685 * tmac/an-old.tmac (an-header): Set header length equal to page
5687 * doc/groff.texinfo: Improve documentation of `ne' request. Other
5691 2001-11-19 Werner LEMBERG <wl@gnu.org>
5693 * NEWS, man/Makefile.sub: Updated.
5695 2001-11-19 Bernd Warken <bwarken@mayn.de>
5697 * man/ditroff.man: New file.
5699 2001-11-17 Werner LEMBERG <wl@gnu.org>
5701 * man/groff_differences.man: Renamed to ...
5702 * man/groff_diff.man: This. Updated.
5703 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5705 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5706 * src/preproc/html/pushback.cc: This. Updated.
5707 * src/preproc/html/pushbackbuffer.h: Renamed to ...
5708 * src/preproc/html/pushback.h: This.
5709 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5712 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5713 * src/libs/libgroff/htmlhint.cc: This.
5714 * src/libs/libgroff/Makefile.sub: Updated.
5716 * tmac/an-old.tmac (an-end): Fix page length.
5718 2001-11-16 Werner LEMBERG <wl@gnu.org>
5720 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5721 * man/Makefile.sub: Include groff_differences.man.
5722 * VERSION: Set to 1.18.
5723 * REVISION: Set to 0.
5725 2001-11-16 Bernd Warken <bwarken@mayn.de>
5727 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5728 the second dot (or ending macro name) to end a macro.
5729 * doc/groff.texinfo: Doc fix.
5731 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
5733 * tmac/doc-common (doc-header): Handle very long document titles
5736 2001-11-16 Werner LEMBERG <wl@gnu.org>
5738 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5740 2001-11-15 Werner LEMBERG <wl@gnu.org>
5742 * src/roff/troff/troff.man: Revised and split into troff.man and...
5743 * man/groff_differences.man: New file.
5746 2001-11-13 Werner LEMBERG <wl@gnu.org>
5748 * tmac/an-old.tmac (TS, TE): New macros for table support.
5750 2001-11-12 Werner LEMBERG <wl@gnu.org>
5752 * src/include/lib.h: Provide a fix for emx to not include
5755 2001-10-27 Werner LEMBERG <wl@gnu.org>
5757 * src/roff/troff/input.cc (substring_macro): Fix computation of
5760 2001-10-20 Werner LEMBERG <wl@gnu.org>
5762 Undo change from 2001-08-28.
5764 * src/roff/troff/input.cc (have_input): New global variable.
5765 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5766 in compatibility mode.
5767 (process_input_stack): Use it.
5769 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
5771 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5772 being handled as end-of-sentence characters,
5774 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
5776 * src/roff/troff/input.cc (file_iterator): New members
5777 `suppress_newline_flag' and `seen_escape'.
5778 (file_iterator::next_file): Updated.
5779 (file_iterator::fill): Use it.
5780 (string_iterator): New member `suppress_newline_flag'.
5781 (string_iterator::fill): Set it.
5782 (get_color_element): Use MAX_COLOR_VAL.
5783 * src/roff/troff/env.cc (environment): Remove `need_eol'.
5784 (no_fill): Don't set `env->ignore_next_eol'.
5785 (environment::newline): Handle `eol' tag properly.
5787 (environment::add_html_tag): Set `env->ignore_next_eol'.
5789 * src/roff/troff/env.h (environment): Updated.
5791 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5793 (html_printer::outstanding_eol): New member function.
5794 (html_printer::do_title): Use new functions.
5795 (html_printer::troff_tag): Test `id_eol_ce'.
5797 2001-10-10 Werner LEMBERG <wl@gnu.org>
5799 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5800 files work with -C also.
5802 2001-10-05 Werner LEMBERG <wl@gnu.org>
5804 * doc/pic.ms: Minor fix.
5805 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5806 as a valid command line switch.
5807 * src/devices/grohtml/post-html.cc (main): Ditto.
5809 * src/devices/grohtml/grohtml.man: Updated.
5810 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5812 2001-10-04 Werner LEMBERG <wl@gnu.org>
5814 Implementing color support in troff, pic, grops, and grohtml. These
5815 changes are based on a major patch provided by Gaius Mulley
5818 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5819 definitions with both hex values and fractions.
5821 New escapes: \m and \M for drawing and background color,
5822 respectively. This corresponds to the troff output commands `m'
5825 groff and troff accept command line switch `-c' to disable color
5826 output (which is automatically disabled in compatibility mode).
5828 New scaling indicator `f' for fractions (1f = 65536u).
5830 New conditional operator `m' to test for defined colors with `if'
5833 New keywords `color' (or `colour', `colored', `coloured'), `outline'
5834 (or `outlined'), and `shaded' added to pic.
5836 * src/include/color.h: New file.
5837 * src/include/driver.h: Include it.
5838 * src/include/printer.h: Include color.h.
5839 (environment): New members `col' and `fill'.
5840 (printer): Remove `adjust_arc_center' member function.
5841 * src/include/Makefile.sub: Updated.
5843 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5845 Handle `m' and `DF' troff commands.
5846 * src/libs/libgroff/color.cc: New file.
5847 * src/libs/libgroff/Makefile.sub: Updated.
5849 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5851 (createImage): Fix computation of `y2'.
5853 (buffer::write_file_html): Remove calls to `stop'.
5855 * src/preproc/pic/common.h (common_output): New abstract function
5856 members `set_color', `reset_color', `get_last_filled', and
5857 `get_outline_color'.
5858 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5859 (object_spec): Add members `shaded' and `outlined'.
5860 * src/preproc/pic/output.h (output): `command' is now abstract.
5861 New function members `set_color', `reset_color', `get_last_filled',
5862 and `get_outline_color'.
5863 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5864 `outline[d]', and `shaded'.
5865 * src/preproc/pic/object.cc (output::command): Removed.
5866 (output::set_location): Moved to output.h.
5867 (graphic_object): Add protected members `outline_color' and
5869 Add member functions `set_outline_color', `get_outline_color', and
5871 (closed_object): Add member function `set_fill_color'.
5872 Add member `color_fill'.
5873 (graphic_object::print_text): Use `out->set_color' and
5875 (box_object::print, ellipse_object::print, circle_object::print,
5876 line_object::print, spline_object::print, arc_object::print): Ditto.
5877 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5878 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5879 `SHADED', making them `%left'.
5880 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5881 * src/preproc/pic/tex.cc (tex_output): New dummy function members
5882 `set_color', `reset_color', `get_last_filled', and
5883 `get_outline_color'.
5884 * src/preproc/pic/troff.cc (simple_output): New abstract function
5885 members `set_color', `reset_color', and `get_last_filled'.
5886 (simple_output::polygon, simple_output::circle,
5887 simple_output::ellipse): Use `get_last_filled'.
5888 (troff_output): New members `last_filled' and `last_outlined'.
5889 New function members `set_color', `reset_color', `get_last_filled',
5890 and `get_outline_color'.
5891 (troff_output::finish_picture): Use `reset_color'.
5892 (troff_output::set_fill): Test `last_filled'.
5893 * src/preproc/pic/pic.man: Updated.
5895 * src/roff/groff/groff.cc (main): Implement `-c' option.
5896 (synopsis, help): Updated.
5897 src/roff/groff/groff.man: Updated.
5899 * src/roff/troff/troff.h: Include color.h.
5900 (warning_type): Add WARN_COLOR.
5901 * src/roff/troff/env.h (environment): New members
5902 `{cur,prev}_{glyph,fill}_color'.
5903 New member functions `get_{prev_,}{glyph,fill}_color'.
5904 * src/roff/troff/env.cc: Initialize and implement them.
5905 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5906 Replace `NULL' with `0' everywhere for consistency.
5907 (lookup_color, default_black, do_glyph_color, do_fill_color,
5908 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5909 define_color): New functions.
5910 (token::next): Implement \M and \m escapes.
5911 (do_if_request): Implement `m' operator.
5913 (main): Implement `-c' option.
5914 (init_markup_requests): Add `defcolor' request.
5915 (warning_table): Add `color' warning.
5916 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5918 * src/roff/troff/node.cc (troff_output_file): New members
5919 `current_{page,glyph}color'. New member functions `put_hex',
5920 `glyph_color', and `fill_color'.
5921 (glyph_color_node::*, fill_color_node::*): Implement it.
5922 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5923 (parse_term): Add support for `f'.
5924 * src/roff/troff/troff.man: Updated.
5926 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5928 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5929 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5931 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5932 (tag_definition): Use `void *' for arg1.
5933 (html_text): New member functions `do_color' and `done_color'.
5934 Use `void *' for second parameter of `push_para' member function.
5935 New `push_para' member function with a single parameter.
5936 Use `char *' for parameter of `issue_table_begin' member funtion.
5937 New `issue_color_begin' member function.
5938 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5940 (html_text::issue_color_begin): New function.
5941 (html_text::issue_table_begin): Use `char *' for parameter.
5942 (html_text::start_tag, html_text::shutdown,
5943 html_text::check_emit_text): Updated.
5944 (html_text::push_para): Use `void *' for second parameter.
5945 Add same function with only one parameter.
5946 (html_text::do_*): Updated.
5947 (html_text::do_color, html_text::done_color): New functions.
5948 * src/devices/grohtml/post-html.cc (style): New member `col'.
5949 Mew member `style' with 6 parameters.
5950 (style::style, style::operator==): Updated.
5951 (html_printer::do_font): Use it.
5952 (html_printer::draw): Add dummy entry for `F'.
5953 (html_printer::set_char): Updated.
5954 * src/devices/grohtml/grohtml.man: Updated.
5956 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5957 trailing zeroes removed.
5958 (ps_printer): New members `sbuf_color', `fill_color', and
5960 Removed member `fill'.
5961 New member function `set_color'.
5962 (ps_printer::ps_printer, ps_printer::set_char): Updated.
5963 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5964 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5966 * tmac/color-html.tmac, tmac/color.tmac: New files.
5967 * tmac/troffrc: Include them.
5968 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5969 * tmac/Makefile.sub: Updated.
5971 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5972 man/groff.man: Updated.
5973 * font/devps/prologue.ps: Define FC and CO functions.
5975 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
5977 Fix incorrect cropping of images and incorrect handling of special
5978 characters. Fix handling of file names in \O.
5980 * src/include/geometry.h: New file.
5981 * src/libs/libgroff/geometry.cc: New file.
5982 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5984 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5986 (do_suppress): Updated.
5987 * src/roff/troff/node.cc: Include geometry.h.
5988 (troff_output_file::flush_tbuf): Fixed parameters to
5989 `check_output_limits'.
5990 (troff_output_file::check_charinfo): Ditto.
5991 (troff_output_file::determine_line_limits): Add support for `Da'
5994 * src/devices/grohtml/post-html.cc (str_translate_to_html):
5995 Add new parameter `is_special' to decode special characters from
5997 (html_printer::do_title, html_printer::do_heading,
5998 html_printer::do_indentedparagraph,
5999 html_printer::translate_to_html, html_printer::special): Updated.
6001 2001-10-03 Werner LEMBERG <wl@gnu.org>
6003 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6004 Fix entry for config.h.
6005 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6006 * tmac/troffrc: Translate nonbreakable space character to `\~'.
6007 * src/preproc/eqn/eqn.man: Document -d command line option.
6009 2001-09-27 Werner LEMBERG <wl@gnu.org>
6011 * man/groff.man: Use
6019 instead of the old code (`.ad .hy' after the table) to suppress
6020 incorrect hyphenation for grohtml output.
6022 2001-09-22 Werner LEMBERG <wl@gnu.org>
6024 * man/groff_font.man, man/groff_out.man: Minor fixes.
6026 2001-09-20 Werner LEMBERG <wl@gnu.org>
6028 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
6029 Arnold Robbins <arnold@skeeve.com>).
6031 2001-09-09 Werner LEMBERG <wl@gnu.org>
6033 * configure: Regenerated with autoconf 2.52.
6035 * doc/groff.texinfo: Complete revision of indices.
6037 2001-09-07 Werner LEMBERG <wl@gnu.org>
6039 * doc/Makefile (clean): Updated to delete all indices.
6041 2001-09-05 Werner LEMBERG <wl@gnu.org>
6043 * src/roff/troff/troff.man: Remove superfluous line.
6045 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6046 given on the command line (or rather, if only the default warnings
6049 2001-09-03 Werner LEMBERG <wl@gnu.org>
6051 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6052 use .ne for TTY devices.
6054 2001-08-31 Werner LEMBERG <wl@gnu.org>
6056 * src/roff/troff/token.h, src/roff/troff/input.cc:
6057 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6059 2001-08-28 Werner LEMBERG <wl@gnu.org>
6061 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6062 * src/roff/troff/input.cc (token::next): Return
6063 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6065 (token::description): Updated.
6066 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6067 (token::add_to_node_list, token::process): Ignore
6068 TOKEN_TRANSPARENT_ESCAPE.
6070 2001-08-27 Werner LEMBERG <wl@gnu.org>
6072 * tmac/an-old.tmac: Fix `S' string.
6074 2001-08-26 Werner LEMBERG <wl@gnu.org>
6076 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6078 2001-08-25 Werner LEMBERG <wl@gnu.org>
6080 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6082 Many other minor fixes.
6084 * configure.ac: Add message at end to inform how to compile
6086 * configure: Regenerated.
6088 2001-08-24 Werner LEMBERG <wl@gnu.org>
6090 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6091 Updated to latest version of libc.
6093 2001-08-23 Werner LEMBERG <wl@gnu.org>
6095 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6096 Autoconf 2.50 and newer can handle this.
6097 * configure: Regenerated.
6099 2001-08-21 Werner LEMBERG <wl@gnu.org>
6101 * doc/pic.ms: Fix typo.
6102 * src/preproc/tbl/tbl.man: Document case of global options.
6104 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
6106 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6107 handling of `CR' font.
6109 2001-08-20 Werner LEMBERG <wl@gnu.org>
6111 Use a config.h file.
6113 * src/include/lib.h: Include config.h.
6114 * All C files: Ditto (if necessary).
6115 * All C++ source and header files: Include lib.h first (if
6118 * src/include/config.hin: New file (autogenerated by autoheader).
6119 * stamp-h.in: New file.
6120 * configure.ac: Updated.
6121 * aclocal.m4: Add third parameters to AC_DEFINE macros.
6122 (GROFF_ARRAY_DELETE): Simplified.
6123 * Makefile.sub (DISTCLEANFILES): Updated.
6124 Added targets for remaking config.status, config.hin, config.h,
6125 stamp-h.in, and stamp-h.
6126 * configure: Regenerated.
6128 2001-08-19 Werner LEMBERG <wl@gnu.org>
6132 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
6134 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6135 (do_sprintf): Use snprintf().
6137 2001-08-18 Werner LEMBERG <wl@gnu.org>
6139 * src/libs/snprintf/*: Added an snprintf module written by Mark
6141 * src/libs/libgroff/Makefile.sub: Updated.
6142 * configure.ac: Add test for snprintf().
6143 * Makefile.in: Updated.
6144 * configure: Regenerated.
6146 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6149 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
6151 * tmac/doc.tmac (Ex): New implementation.
6152 * tmac/doc-common, tmac/groff_tmac.man: Updated.
6154 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
6156 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6158 * tmac/groff_tmac.man: Updated.
6160 2001-08-13 Werner LEMBERG <wl@gnu.org>
6162 * src/preproc/tbl/tbl.man: Minor documentation update.
6164 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
6166 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6167 * configure.ac: Add declaration test for gettimeofday().
6168 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6169 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6170 * configure: Regenerated.
6172 2001-08-11 Werner LEMBERG <wl@gnu.org>
6174 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6175 * configure.ac: Add declaration test for strcasecmp().
6176 * Makefile.in: Updated.
6177 * configure: Regenerated.
6178 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6179 this is necessary because groff's mkstemp.cc is C++.
6180 Add declaration conditionally for strcasecmp().
6182 2001-08-10 Werner LEMBERG <wl@gnu.org>
6184 Integrated pic2graph, contributed by Eric S. Raymond.
6186 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6188 * Makefile.in, NEWS: Updated.
6190 * src/preproc/tbl/tbl.man: Revised.
6192 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
6194 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6196 2001-08-09 Werner LEMBERG <wl@gnu.org>
6198 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6201 2001-08-08 Paul Eggert <eggert@twinsun.com>
6203 * Makefile.sub (configure): Depend on configure.ac, not
6205 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6207 2001-08-07 Werner LEMBERG <wl@gnu.org>
6209 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6212 2001-08-06 Werner LEMBERG <wl@gnu.org>
6214 * src/roff/troff/troff.man: Improve documentation of -E option.
6216 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6218 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6221 2001-07-27 Werner LEMBERG <wl@gnu.org>
6223 * src/preproc/refer/refer.cc: Undo last change.
6224 * src/devices/grohtml/post-html.cc: Ditto.
6226 2001-07-26 Werner LEMBERG <wl@gnu.org>
6228 * src/preproc/refer/refer.cc: Include `lib.h'.
6229 * src/devices/grohtml/post-html.cc: Ditto.
6231 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
6233 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6234 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6235 * Makefile.in: Comment updated.
6236 * configure: Regenerated.
6238 2001-07-25 Werner LEMBERG <wl@gnu.org>
6240 * src/preproc/pic/pic.cc: Removed.
6241 * src/preproc/pic/pic_tab.h: Removed.
6242 * src/preproc/refer/label.cc: Removed.
6244 * doc/Makefile (.ms.html): Don't use a file name extension in
6245 argument to grohtml's -I option.
6246 * Makefile.in (dist): Remove CVS directories.
6247 Call `distfiles' target.
6249 * src/devices/grohtml/grohtml.man: Add information about valid
6250 versions of pnmtopng.
6251 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6252 name instead of number.
6254 2001-07-24 Werner LEMBERG <wl@gnu.org>
6256 * doc/groff.texinfo: Minor fixes.
6258 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
6260 * doc/Makefile (.ms.html): Put image files into a subdirectory.
6263 2001-07-20 Werner LEMBERG <wl@gnu.org>
6265 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6266 * src/libs/libgroff/mkstemp.cc: New file.
6267 * src/libs/libgroff/mksdir.cc: New file.
6268 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6269 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6270 * src/libs/libgroff/Makefile.sub: Updated.
6271 * src/include/lib.h: Add mksdir() prototype.
6272 * src/include/posix.h: Define S_IXUSR if not yet defined.
6274 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6275 (createAllPages): Use mksdir() instead of current code.
6276 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6277 (main): [!HAVE_MKSTEMP]: Removed.
6279 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6280 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6282 * configure.ac: Add tests for stdint.h, sys/time.h, and
6284 Call new GROFF_xxx macros.
6285 * configure: Regenerated.
6286 * Makefile.in: Comments updated.
6288 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
6290 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6291 instead of current code.
6292 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6293 * src/roff/groff/groff.cc (possible_command::insert_args): New
6295 (main): Use it for predriver handling instead of insert_arg().
6297 2001-07-19 Werner LEMBERG <wl@gnu.org>
6299 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6302 * src/include/posix.h: Define S_IWUSR if not yet defined.
6304 2001-07-18 Werner LEMBERG <wl@gnu.org>
6308 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
6310 * tmac/groff_mdoc.man: Document new -width and -column syntax.
6311 Some other minor fixes.
6312 * tmac/an-old.tmac: Add `AT' and `UC' macros.
6314 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
6316 Replace call to `troff' with `groff -Z' to make it aware of
6319 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6320 (troff_command, command_prefix): Removed.
6321 (alterDeviceTo): Use groff.
6322 (addZ): New function.
6323 (char_buffer::do_html): Use it.
6324 (scanArguments): Use TROFF_COMMAND.
6325 (findPrefix): Removed.
6327 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6329 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
6331 * doc/pic.ms: Documentation fixes.
6333 2001-07-17 Werner LEMBERG <wl@gnu.org>
6335 Replace atexit() with global destructor.
6337 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6338 (xtmpfile_list_init): New global structure to deallocate
6339 xtmpfile_list on exit. Its destructor inherits most code from
6341 (remove_tmp_files): Deleted.
6342 (add_tmp_file): Simplified.
6344 2001-07-16 Werner LEMBERG <wl@gnu.org>
6346 Replace strdup() with strsave().
6348 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6349 (set_papersize): Use strsave() and a_delete.
6350 (main): Use strsave().
6351 * src/preproc/html/pre-html.cc (make_message, createAllPages,
6352 removeAllPages): Use strsave() and a_delete.
6354 * configure.ac: Remove test for strdup.
6355 * Makefile.in: Comment updated.
6356 * configure: Regenerated.
6358 2001-07-15 Werner LEMBERG <wl@gnu.org>
6360 * win32-diffs: Updated.
6362 2001-07-14 Werner LEMBERG <wl@gnu.org>
6364 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6365 removing the old one.
6366 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6368 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6370 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6372 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
6374 Merge -xwidth into -width. Add -xwidth functionality to -column
6377 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6379 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
6380 string immediately following a leading dot starts with a valid mdoc
6382 Add similar code to the -column branch.
6383 (doc-Bl-usage): Updated.
6384 * groff_mdoc.man: s/-xwidth/-width/.
6386 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
6388 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6389 running into centered or non-formatted text.
6391 2001-07-11 Werner LEMBERG <wl@gnu.org>
6393 Introduce short and long prefixes to have the selection at run-time
6394 whether there is a 8+3 limit for names of temporary files.
6396 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6397 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6398 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6400 (temp_init): New global structure to initialize above three
6402 (xtmptemplate): Use two parameters for long and short prefix.
6403 Simplify code use above three variables.
6404 (xtmpfile): Use long and short prefixes as parameters.
6405 * src/include/lib.h: Updated.
6407 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6409 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6410 (createAllPages, makeTempFiles): Updated.
6412 2001-07-09 Werner LEMBERG <wl@gnu.org>
6414 * REVISION: Increased to 3.
6416 Version 1.17.2 released
6417 =======================
6419 2001-07-07 Werner LEMBERG <wl@gnu.org>
6421 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6424 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6426 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6428 * tmac/groff_mdoc.man: Fix synopsis.
6430 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6432 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6433 Restore `doc-Pa-font'.
6435 2001-07-04 Werner LEMBERG <wl@gnu.org>
6437 * src/utils/indxbib/dirnamemax.c: Moved to ...
6438 * src/libs/libgroff/maxfilename.cc: Here.
6439 s/dir_name_max/file_name_max/.
6441 * src/include/lib.h: Add file_name_max.
6442 * src/utils/indxbib/indxbib.cc: Updated.
6443 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6446 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6448 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6450 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6451 REGION_TEMPLATE): New macros.
6452 (createAllPages, makeTempFiles): Use them.
6453 Include `nonposix.h'.
6454 (html_system): New function.
6455 (createAllPages, createImage): Use it.
6458 * tmac/www.tmac: Fix typos.
6460 2001-07-03 Werner LEMBERG <wl@gnu.org>
6462 * tmac/www.tmac: Disable hyphenation in normal text only if output
6464 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6465 * tmac/groff_mwww.man, NEWS: Updated.
6467 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
6469 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6472 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
6474 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6475 doc-display-ps-stack): Implement font and font size stack for
6478 2001-07-02 Werner LEMBERG <wl@gnu.org>
6480 * REVISION: Increased to 2.
6481 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6483 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6484 beginning of a line.
6485 * src/groff/grog/grog.sh: Ditto.
6487 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
6489 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6492 2001-06-27 Werner LEMBERG <wl@gnu.org>
6494 Fix problems with preprocessor string for `man' program.
6496 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
6497 Updated/added copyright.
6498 Moved Emacs's local variable to identify nroff mode to the end of
6499 the file; add local variable if missing.
6501 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
6503 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6504 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6505 * configure: Regenerated.
6507 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
6509 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6510 * configure: Regenerated.
6512 2001-06-24 Werner LEMBERG <wl@gnu.org>
6514 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6516 * doc/pic.ms: Fix typos.
6518 Version 1.17.1 released
6519 =======================
6521 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
6523 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6524 * configure: Updated.
6526 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
6528 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6530 * src/roff/troff/dic.cc (blank_line): Add html tag.
6532 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
6534 * src/roff/troff/input.cc (do_suppress): Fix typo.
6536 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
6538 Added two new options (-D and -I) to specify image names and a
6539 subdirectory to place the images in.
6541 Change syntax from \\Ox to \\O[x].
6543 * src/devices/grohtml/post-html.cc (main): Add options.
6545 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6546 Use `NULL' instead of `0' for null string pointers.
6547 (MAX_RETRIES): New macro.
6548 (lengthOfintToStr, intToStr, make_message): New functions.
6549 (makeFileName): Make function static.
6550 Implement -D and -I options.
6551 (checkImageDir): New function.
6552 (write_end_image, write_start_image): Use new syntax of \O.
6553 (createAllPages, removeAllPages): Implement -D and -I options. Use
6555 (createImage): Use make_message().
6556 (addps4html): Add guard for malloc().
6557 (usage, scanArguments): Updated.
6558 (makeTempFiles): Use mkstemp().
6559 (removeTempFiles): Use unlink().
6560 (findPrefix): Add guard for malloc().
6562 * src/roff/troff/input.cc (get_delim_file_name): New function to
6564 (do_suppress): Updated to parse new syntax.
6565 * src/devices/grohtml/grohtml.man: Updated.
6566 * tmac/www.tmac: Updated to new syntax.
6570 2001-06-15 Werner LEMBERG <wl@gnu.org>
6572 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6574 * src/devices/grohtml/grohtml.man: Minor improvements.
6576 2001-06-14 Werner LEMBERG <wl@gnu.org>
6578 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6580 2001-06-11 Werner LEMBERG <wl@gnu.org>
6582 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6583 line to specify preprocessor options -- mandb 2.3.1 only recognizes
6585 * src/preproc/grn/grn.man: Add proper '\" string.
6587 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
6589 * test-groff: Don't use PATH but GROFF_BIN_PATH.
6591 2001-06-08 Werner LEMBERG <wl@gnu.org>
6593 Updated to autoconf 2.50.
6595 * configure.in: Renamed to...
6596 * configure.ac: This.
6597 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6598 (GROFF_OS390): Updated.
6599 * configure: Regenerated.
6601 2001-05-18 Werner LEMBERG <wl@gnu.org>
6603 * src/roff/troff/env.c, src/roff/troff/env.h,
6604 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6607 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
6609 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6611 2001-05-16 Werner LEMBERG <wl@gnu.org>
6613 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6614 less than or equal zero; set it to 1 then.
6615 * src/roff/troff/node.h (node::node): Initialize `last'.
6617 2001-05-08 Werner LEMBERG <wl@gnu.org>
6619 * tmac/an-old.tmac: Make predefined strings work in compatibility
6621 Add troff version guard.
6622 * tmac/doc.tmac: Simplify version guard.
6624 2001-05-07 Werner LEMBERG <wl@gnu.org>
6626 The .ns and .rs requests are now honoured not only in the top-level
6627 but in all diversions (similar to UNIX troff).
6629 This change is based on a patch from Tadziu Hoffmann
6630 <hoffmann@usm.uni-muenchen.de>.
6632 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6633 (top_level_diversion): Remove `no_space_mode' member.
6634 * src/roff/troff/div.cc (diversion::diversion,
6635 top_level_diversion::top_level_diversion): Updated.
6636 (macro_diversion::output): Reset `no_space_mode'.
6637 (no_space, restore_spacing): Use `curdiv' unconditionally.
6638 (space_request, blank_line): Check `curdiv->no_space_mode'.
6639 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6640 `curdiv' unconditionally.
6641 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6644 2001-05-06 Werner LEMBERG <wl@gnu.org>
6646 Added two new requests `de1' and `am1' which are similar to `de' and
6647 `am' with the difference that compatibility mode is saved on entry,
6648 switched off during macro execution, and restored on exit.
6650 * src/roff/troff/input.h: Added two new special characters
6651 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6652 * src/roff/troff/input.cc (input_iterator): Added two member
6653 functions `save_compatible_flag' and `get_compatible_flag'.
6654 (input_stack): Ditto.
6655 (string_iterator): Ditto. Also add private member
6656 `saved_compatible_flag'.
6657 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6658 (calling_mode): New enumeration.
6659 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
6660 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6661 (define_macro, define_indirect_macro, append_macro, ignore): Use
6663 (define_nocomp_macro, append_nocomp_macro): New functions.
6664 (init_input_requests): Updated.
6665 (do_request): Rename local variable `saved_compatible_flag' to
6666 `old_compatible_flag'.
6667 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6669 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6670 public and trap-invoked macros. As a consequence, the man macros
6671 work in compatibility mode also.
6673 2001-05-06 Solar Designer <solar@openwall.com>
6675 * Makefile.in: Use $(mandir).
6677 2001-05-06 Alexios Zavras <zvr@pobox.com>
6679 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6681 2001-05-05 Werner LEMBERG <wl@gnu.org>
6683 Added `.ns' number register: Returns 1 in no-space mode (if in
6684 top-level diversion), 0 otherwise.
6686 * src/roff/troff/div.cc (no_space_mode_reg): New class.
6687 (init_div_requests): Updated.
6688 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6691 2001-05-04 Werner LEMBERG <wl@gnu.org>
6693 * src/roff/nroff/nroff.man: Improved documentation (especially
6696 2001-05-02 Werner LEMBERG <wl@gnu.org>
6698 Added `brp' request: This is \p as a request.
6700 * src/roff/troff/env.cc (environment::do_break): Add parameter
6702 (do_break_request): New function (was `break_request').
6703 (break_request): Calls `do_break_request'.
6704 (break_spread_request): New; calls `do_break_request'.
6705 (init_env_requests): Updated.
6706 * src/roff/troff/env.h: Updated.
6707 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6709 * REVISION: Increased to 1.
6710 * win32-diffs: Updated.
6712 2001-05-01 Werner LEMBERG <wl@gnu.org>
6714 * tmac/an-old.tmac: Fix minor compatibility mode issue.
6715 * tmac/troffrc-end: Make it really work in compatibility mode.
6717 2001-04-27 Werner LEMBERG <wl@gnu.org>
6719 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6722 2001-04-22 Werner LEMBERG <wl@gnu.org>
6724 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6725 latest versions from glibc CVS archive.
6727 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6728 <c.zeelenberg@hccnet.nl>.
6730 2001-04-21 Werner LEMBERG <wl@gnu.org>
6732 * configure.in: Move check for mkstemp() to...
6733 * aclocal.m4 (GROFF_MKSTEMP): This new function.
6734 * configure: Regenerated.
6736 * src/include/groff-getopt.h: Don't use variable names in
6739 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
6740 * src/devices/grohtml/Makefile.sub,
6741 src/devices/grohtml/post-html.cc: Updated.
6743 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
6745 * configure.in: Add special check for mkstemp().
6746 * src/libs/libgroff/tmpfile.cc: Use it.
6747 * src/utils/indxbib/indxbib.cc: Ditto.
6748 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6749 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6752 2001-04-20 Bruce Lilly <blilly@erols.com>
6754 `Version_string' as C++ object was not visible to linker from C
6756 Add `const' to `Version_string'.
6758 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6759 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6760 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6761 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6762 (scanArguments), src/preproc/refer/refer.cc (main),
6763 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6764 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6765 (main), src/devices/grohtml/post-html.cc (main),
6766 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6767 (main), src/utils/hpftodit/hpftodit.cc (main),
6768 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6769 (main), src/utils/lkbib/lkbib.cc (main),
6770 src/utils/addftinfo/addftinfo.cc (main): Implement it.
6772 * src/roff/groff/pipeline.c: Add _UWIN.
6773 * src/include/nonposix.h: Ditto.
6775 2001-04-20 Werner LEMBERG <wl@gnu.org>
6777 * src/include/lib.h: Use HAVE_STRERROR.
6778 * src/roff/groff/pipeline.c: Ditto.
6779 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6780 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6781 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6782 * win32-diffs: Updated.
6783 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6785 2001-04-19 Werner LEMBERG <wl@gnu.org>
6787 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6788 instead of hardwired `"troff"'.
6789 (char_buffer::read_file): Remove unused variables.
6790 (char_buffer::write_file_troff): Ditto.
6791 (char_buffer::write_file_html): Ditto.
6792 (generateImages): Ditto.
6794 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6796 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6798 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6799 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6800 index_search_item::search1): Ditto.
6801 * src/roff/troff/node.h (width_list): Reorder members.
6802 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6803 (lookup_warning): Ditto.
6804 (prepend_string): Commented out.
6805 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6806 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6807 * src/preproc/tbl/main.cc (process_format): Ditto.
6808 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6810 * src/preproc/pic/pic.cc: Updated.
6811 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6812 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6813 * src/preproc/refer/command.cc (execute_command): Ditto.
6814 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6815 * src/preproc/refer/token.cc (lookup_token): Ditto.
6816 * src/preproc/soelim/soelim.cc: Ditto.
6817 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6818 (isHexDigit): Commented out.
6819 (pushBackBuffer::isString): Remove unused variable.
6820 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6822 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6823 resource_manager::read_resource_arg, read_one_of, parse_extensions):
6825 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6826 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6827 lookup_paper_size): Ditto.
6828 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6829 (text_glob, element_list): Reorder members.
6830 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6832 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6833 return value to `void'.
6834 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6836 * src/devices/grohtml/html.h (simple_output::check_newline,
6837 simple_output::space_or_newline, simple_output::enable_newlines):
6839 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6841 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6842 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6843 output_ligatures, output_charset, read_map): Ditto.
6844 * src/utils/lookbib/lookbib.cc (main): Ditto.
6845 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6846 (do_file): Fix typo (`=' -> `==').
6847 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6848 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6850 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
6852 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6853 Fix usage of GROFF_BIN_PATH.
6854 * src/roff/nroff/nroff.man: Updated.
6856 2001-04-18 Werner LEMBERG <wl@gnu.org>
6858 * NEWS: Fixing typos.
6861 Version 1.17 released
6862 =====================
6864 2001-04-17 Werner LEMBERG <wl@gnu.org>
6866 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6867 directory, not in $(srcdir).
6869 2001-04-16 Werner LEMBERG <wl@gnu.org>
6871 * doc/groff.texinfo: More info on conditionals.
6873 2001-04-15 Werner LEMBERG <wl@gnu.org>
6875 * doc/groff.texinfo: Added some info about groff internals.
6877 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6878 about missing special character only if the name is non-null.
6880 2001-04-14 Werner LEMBERG <wl@gnu.org>
6882 Removing the grohtml-old device driver which is now obsolete.
6884 * src/devices/grohtml-old/*: Removed.
6885 * font/devhtml-old/*: Removed.
6886 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6888 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6889 * test-groff (PATH): Updated.
6890 * tmac/Makefile.sub (NORMALFILES): Updated.
6891 * tmac/an-old.tmac: Remove special code for html-old device.
6892 Replace `html-or-html-old' register with `an-html'.
6893 * tmac/eqnrc: Updated.
6894 * tmac/html-old.tmac: Removed.
6895 * tmac/troffrc, tmac/troffrc-end: Updated.
6896 * tmac/www.tmac: Remove special code for html-old device.
6897 Replace `html-or-html-old' register with `www-html'.
6899 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6900 src/libs/libgroff/htmlindicate.cc (graphic_end),
6901 include/htmlindicate.h, src/preproc/grn/*.cc,
6902 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6903 single argument for consistency with rest of source code.
6905 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6907 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
6909 * src/roff/troff/troff.man: Fixing typos.
6911 2001-04-13 Werner LEMBERG <wl@gnu.org>
6913 * doc/pic.ms: Fixing many font switches.
6914 * doc/groff.texinfo: Fixes, additions.
6915 * MORE.STUFF: Updated.
6917 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
6919 * src/devices/grohtml/grohtml.man: Updated manual page regarding
6921 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6923 (removeTempFiles): New function to tidy up temporary files.
6924 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6925 Many fixes to do with the new inline suppress node and image regions
6927 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6928 (generate_img_src): New function.
6929 (html_printer::do_auto_image): Utilizes it.
6930 (do_heading, do_title): Include inline images within their contents.
6931 (html_printer::begin_page): Tidied up comments that are issued to
6932 the html output file.
6933 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6935 (text_glob::is_br): New method used by do_heading.
6936 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6937 equivalent diversion.
6938 * src/include/html-strings.h: Altered image tags to reflect the
6940 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6942 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6943 it is already inside a pic image. Only emit tags if the argument
6944 `-Tps:html' is present.
6945 * src/preproc/tbl/main.cc: Changes to reflect additional
6946 `html_end_suppress' parameter.
6947 * src/roff/troff/env.cc: Only emit eol tag if a node has been
6948 emitted since the last eol tag was written.
6949 * src/roff/troff/env.h: New boolean `emitted_node'.
6950 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6951 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
6952 * src/roff/troff/node.cc (check_charinfo): New method.
6953 (troff_output_file::determine_line_limits): Alterations to limit
6955 * tmac/www.tmac: Changes to reflect new suppress nodes.
6957 2001-04-12 Bruno Haible <haible@clisp.cons.org>
6959 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6960 Escape the html_glyph in the buffer.
6961 (str_translate_to_html): Output the unescaped escaped_char.
6962 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6963 `frame=void', not `frame=none'. Add `border=0'.
6965 2001-04-12 Werner LEMBERG <wl@gnu.org>
6967 * PROBLEMS: Add some words on how to avoid wrapper macros.
6969 2001-04-11 Blake McBride <blake@florida-software.com>
6971 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6973 2001-04-11 Werner LEMBERG <wl@gnu.org>
6975 * font/devlbp/Makefile.sub (CLEANADD): Set it.
6976 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6977 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6978 * Makefile.sub (DISTCLEANFILES): Here.
6980 * libs/libgroff/new.cc: Include `nonposix.h'.
6981 * win32-diffs: Updated.
6983 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
6985 Added skeleton macro for defunct macros.
6987 Updated documentation.
6989 When inside displays, an empty input line warning should be
6990 suppressed. If another macro call is put inside a display,
6991 all subsequent empty lines found in that display caused a
6992 warning to be emitted.
6994 * tmac/doc.tmac (doc-defunct-macro): New macro.
6995 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6996 (doc-restore-global-vars): Fixed typo.
6997 (doc-empty-line): Check the `doc-display-depth' register to
6998 determine whether we are inside display or not.
7000 * tmac/doc-common: Removed `Or' and `Sf' registers.
7001 Moved obsolete `Ds' macro to doc.tmac.
7003 * tmac/groff_mdoc.man: Bump document date.
7004 Document `.Vt' under ``Variable Types''.
7005 Removed documentation for obsolete `.Or' macro.
7007 2001-04-10 Werner LEMBERG <wl@gnu.org>
7010 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7012 2001-04-10 Bruno Haible <haible@clisp.cons.org>
7014 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7015 (usage): Add stream argument. Don't exit.
7016 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7017 Write --version output to stdout, not stderr.
7018 (usage): Add stream argument. Don't exit.
7019 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7020 (usage): Add stream argument. Don't exit.
7021 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7023 (usage): Add stream argument. Don't exit.
7024 (main): Write --help output to stdout, not stderr.
7025 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7026 (usage): Add stream argument. Don't exit.
7027 * src/devices/grops/ps.cc (main): Accept --help and --version.
7028 (usage): Add stream argument. Don't exit.
7029 * src/devices/grotty/tty.cc (main): Accept --help and --version.
7030 (usage): Add stream argument. Don't exit.
7031 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7032 (main): Accept --help and --version.
7033 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7034 (main): Accept --help and --version.
7035 * src/preproc/html/pre-html.cc (usage): Add stream argument.
7036 (scanArguments): Accept --help and --version.
7037 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7038 (main): Accept --help and --version.
7039 * src/preproc/refer/refer.cc (main): Accept --help and --version.
7040 (usage): Add stream argument. Don't exit.
7041 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7043 (main): Accept --help and --version.
7044 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7045 (main): Accept --help and --version.
7046 * src/roff/groff/groff.cc (main): Accept --help and --version.
7047 (synopsis): Add stream argument.
7048 (help): Write --help output to stdout, not stderr.
7049 (usage): Add stream argument. Don't exit.
7050 * src/roff/grog/grog.pl: Accept --help and --version.
7052 * src/roff/grog/grog.sh: Accept --help and --version.
7053 * src/roff/nroff/nroff.sh: Accept --help and --version.
7054 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7055 (usage): Add stream argument. Don't exit.
7056 (main): Accept --help and --version.
7057 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7058 (usage): New function with stream argument, doesn't exit.
7059 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7060 (usage): New function with stream argument, doesn't exit.
7061 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7062 (usage): Add stream argument. Don't exit.
7063 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7064 (main): Accept --help and --version.
7065 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7067 (main): Accept --help and --version.
7068 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7069 (main): Accept --help and --version.
7070 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7071 (usage): Add stream argument. Don't exit.
7073 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
7075 Fix indentation in SYNOPSIS.
7077 Updated to include changes of latest BSD mdoc version (basically,
7078 the only change is that `.Fn' and `.Fc' put a final semicolon after
7079 a function declaration in the SYNOPSIS section).
7081 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7082 (doc-in-synopsis-section): New variable. Updated all related
7084 (doc-indent-synopsis-active): New register.
7085 (Nd, Fn, Fo): Use it.
7086 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7087 `.Cd' with long argument line produces indented wrapped lines.
7088 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7089 undesirable line break to be output.
7090 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7092 (Fn, Fc): Add final `;' to output.
7093 (doc-save-global-vars, doc-restore-global-vars): Updated.
7094 * tmac/doc-common: Remove `Ex' register.
7096 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7099 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
7101 * tmac/doc.tmac (Cd): Simplify code.
7102 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7104 2001-04-06 Werner LEMBERG <wl@gnu.org>
7106 Implement continuous underlining for nroff mode. To do that, a new
7107 request in the ditroff language has been added: `x u N' (N is 0
7110 \X and \Y are now transparent to end-of-sentence recognition.
7112 * src/include/printer.h (printer): Add `type' parameter to `special'
7114 * src/libs/libdriver/printer.cc (printer::special): Updated.
7115 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7117 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7118 specials of type `p'.
7119 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7120 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7121 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7122 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7123 (glyph::order): New method.
7124 (tty_printer::add_char): Use it.
7125 (tty_printer::special): New method.
7126 (tty_printer::end_page): Implement it.
7128 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7129 * src/roff/troff/node.cc (special_node::special_node): Add parameter
7130 to set `no_init_string'.
7131 (special_node::tprint_start): Use it.
7132 (special_node::same, special_node::copy): Updated.
7133 (special_node::ends_sentence): New method.
7134 (troff_output_file::start_special): Add parameter to include
7135 inititialization of special conditionally.
7137 * src/roff/troff/env.h (environment): New member `underline_spaces'.
7138 * src/roff/troff/env.cc (do_underline_special): New function.
7139 (environment::set_font): Use it.
7140 (do_underline): Use it. This was `underline()'.
7141 (underline): Call `do_underline()'.
7142 (continuous_underline): New function which calls `do_underline()'.
7143 (environment::newline): Use `do_underline_special()'.
7144 (init_env_requests): Updated.
7146 * NEWS, man/troff_out.man: Updated.
7148 2001-04-06 Bruno Haible <haible@clisp.cons.org>
7150 * font/devutf8/R.proto: Fix code of 'shc'.
7152 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
7154 Many fixes. Diag lists can now be nested also; additionally,
7155 `-compact' and `-offset' are supported.
7157 * tmac/doc.tmac (doc-have-indent): Replaced with ...
7158 (doc-list-have-indent-stackXXX): A new register stack.
7159 (doc-have-diag-list): Removed.
7160 (Bl): Use `doc-list-have-indent-stackXXX'.
7162 (doc-diag-list): Use `doc-compact-list-stackXXX'.
7163 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7164 (doc-set-vertical-and-indent): Ditto.
7165 (doc-next-list-depth): Removed.
7166 (doc-increment-list-stack): Updated.
7167 (doc-decrement-list-stack): Use `doc-list-depth' instead of
7168 `doc-next-list-depth'.
7169 (doc-end-list, doc-end-column-list): Don't use
7170 `doc-increment-list-stack'.
7171 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7172 (doc-save-global-vars, doc-restore-global-vars): Updated.
7173 * tmac/doc-common: Updated.
7174 * tmac/groff_mdoc.man: Updated.
7177 2001-04-02 Werner LEMBERG <wl@gnu.org>
7179 * src/devices/grotty/grotty.man: Fix grammatical error.
7181 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
7183 Remove .Ld from mdoc package; replace it with special handling of
7186 * tmac/doc-common: Remove `Ld' register.
7187 Uncomment `doc-volume-ds-*' strings.
7188 Remove `doc-operating-system-default'.
7190 * tmac/doc-syms (Ld): Removed.
7191 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7195 * tmac/groff_mdoc.man: Many fixes and updates.
7197 2001-03-29 Werner LEMBERG <wl@gnu.org>
7199 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
7200 Bond <tkb@tkb.mpl.com>.
7201 * tmac/www.tmac: Save compatibility mode.
7203 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
7205 * tmac/groff_mdoc.man: Many fixes.
7207 2001-03-28 Werner LEMBERG <wl@gnu.org>
7209 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7212 2001-03-27 Werner LEMBERG <wl@gnu.org>
7214 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7215 diversion. This fixes overlong tags.
7217 2001-03-26 Werner LEMBERG <wl@gnu.org>
7219 * doc/groff.texinfo: Fixed and improved documentation of fonts.
7220 * tmac/doc-syms: Fix error messages.
7221 * tmac/an-old.tmac: Remove incorrect double backslashes.
7223 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
7225 * tmac/Makefile.sub: Strip mdoc.local also
7226 * tmac/strip.sed: Fixed.
7228 2001-03-24 Werner LEMBERG <wl@gnu.org>
7230 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7231 selecting the font size.
7232 * tmac/groff_mdoc.man, NEWS: Document it.
7234 2001-03-23 Werner LEMBERG <wl@gnu.org>
7236 * src/roff/troff/div.cc (save_vertical_space): Add default argument
7238 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7239 argument to restore previous font family.
7240 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7242 * doc/groff.texinfo: More fixes and additions (mainly for font
7243 manipulating commands).
7245 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7246 * tmac/groff_mdoc.man: This. The quick reference has been removed.
7247 * tmac/Makefile.sub, NEWS: Updated.
7249 2001-03-23 Werner LEMBERG <wl@gnu.org>
7251 Replaced mdoc implementation. The new version is `state of the
7252 art', using almost all new features of groff 1.17 -- it won't run
7253 with older versions.
7255 * tmac/doc.tmac: Completely rewritten.
7256 * tmac/doc-common: Ditto.
7257 * tmac/doc-nroff: Ditto.
7258 * tmac/doc-ditroff: Ditto.
7259 * tmac/doc-syms: Ditto.
7260 * tmac/mdoc.local: New file.
7261 * tmac/groff_mdoc.samples.man: Replaced with ...
7262 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7263 * tmac/strip.sed: Updated.
7264 * tmac/Makefile.sub: Updated.
7267 * tmac/groff_man.man: Add `man.local' to the FILES section.
7269 2001-03-22 Werner LEMBERG <wl@gnu.org>
7271 * doc/groff.texinfo: Added many @noindent.
7272 Replaced @end_Example -> @endExample.
7273 Added info whether registers are r/o.
7274 Many other additions and fixes.
7276 2001-03-21 Werner LEMBERG <wl@gnu.org>
7278 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7279 in makeinfo of texinfo 4.0) to be used in @Def* macros.
7280 Improved @Def* macros: Now the exact syntax of request, register,
7281 and escapes is shown.
7282 Added macros for parentheses and brackets to be used in @Def*.
7283 Many fixes and improvements of the documentation.
7285 2001-03-20 Werner LEMBERG <wl@gnu.org>
7287 * doc/groff.texinfo: Added new index: `st' (for strings).
7288 Added macros @Defstr(x).
7289 Added macro @Example (adding @group).
7290 Other minor improvements.
7292 2001-03-19 Werner LEMBERG <wl@gnu.org>
7294 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7295 `rq' for requests. `fn' is no longer used.
7296 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7299 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7300 number with name of man page.
7302 2001-03-19 Larry Kollar <kollar@alltel.net>
7304 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
7307 2001-03-19 Werner LEMBERG <wl@gnu.org>
7309 * man/groff_font.man: Document `prepro', `postpro', and `print'.
7310 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7311 * src/devices/grohtml/grohtml.man: Fixing typos.
7313 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
7315 * tmac/s.tmac (@IP): Pass `.ip' html tag.
7316 * tmac/groff_mwww.man: Remove .LINE macro
7317 * tmac/www.tmac (LINE): Add `.ti'.
7319 * src/devices/grohtml/post-html.cc (html_printer): New member
7321 (html_printer::emit_raw): Use it.
7322 (html_printer::do_linelength): Ditto.
7323 (html_printer::do_pageoffset): Ditto.
7324 (html_printer::do_indentation): Ditto.
7325 (html_printer::do_tempindent): Ditto.
7326 (html_printer::do_break): Ditto.
7327 (html_printer::begin_page): Ditto.
7328 (html_printer::do_indentedparagraph): New function.
7329 (html_printer::troff_tag): Handle `.ip'.
7330 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7331 Add `<td width=...>' handling.
7332 (html_text::do_table): Add parameter.
7333 (html_text::do_indent): Updated.
7334 * src/devices/groohtml/html-text.h: Updated.
7336 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
7338 Introduced simple html tables to implement indentation.
7340 * src/devices/grohtml/html.h (word, word_list): New structures.
7341 (simple_output): Use it.
7342 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7343 (html_printer): Improve indentation handling.
7344 (html_printer::emit_raw): Set `in_table' element. Handle
7346 (html_printer::write_header): Move conditional downwards.
7347 Don't allow whitespace in tags.
7348 (html_printer::do_linelength): Handle line length and indentation
7350 (html_printer::do_pageoffset): Handle indentation conditionally.
7351 (html_printer::do_indentation): Ditto.
7352 (html_printer::do_tempindent): New function member.
7353 (html_printer::do_fill): Take care of indentation.
7354 (html_printer::do_flush): Finish table.
7355 (html_printer::do_links): Ditto.
7356 (html_printer::do_break): New function for handling `.br' and `.ti'.
7357 (html_printer::troff_tag): Use it.
7359 (html_printer::flush_globs): Fix.
7360 (html_printer::flush_page): Finish table.
7361 (html_printer::html_printer): Fix error message. Set up
7363 (html_printer::add_to_sbuf): Remove special handling of character
7365 (to_unicode): Remove `stop()'.
7366 (html_printer::write_title): Cleanup.
7367 (html_printer::begin_page): Use `put_string()'. Handle indentation.
7368 (html_printer::~html_printer): Flush text and end the line.
7370 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7371 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7373 (html_text::start_tag): Disable newlines.
7374 (html_text::table_is_void): New function.
7375 (html_text::issue_table_begin): Ditto.
7376 (html_text::issue_table_end): Ditto.
7377 (html_text::push_para): Better table handling.
7378 (html_text::do_indent): New function.
7379 (html_text::do_table): Ditto.
7380 (html_text::done_table): Ditto.
7381 (html_text::do_tt): Handle PRE_TAG.
7382 (html_text::is_in_table): New function.
7383 (html_text::check_emit_text): Handle tables.
7384 (html_text::do_emittext): Use `nl()'.
7385 (html_text::do_para): Handle table.
7386 (html_text::remove_def): New function.
7387 * src/devices/grohtml/output.cc (word, word_list): Implement
7389 (simple_output::end_line): Flush last word.
7390 (simple_output::simple_comment): Ditto.
7391 (simple_output::begin_comment): Recoded.
7392 (simple_output::end_comment): Ditto.
7393 (simple_output::comment_arg): Removed.
7394 (simple_output::check_newline): Improve test and flush last word.
7395 (simple_output::space_or_newline): Improved.
7396 (simple_output::write_newline): Replaced with...
7397 (simple_output::nl): This.
7398 (simple_output::put_raw_char): Flush last word.
7399 (simple_output::check_space): Removed.
7400 (simple_output::put_translated_string): Ditto.
7401 (simple_output::put_string): Simplified.
7402 (simple_output::put_number): Updated.
7403 (simple_output::put_float): Ditto.
7404 (simple_output::put_symbol): Removed.
7405 (simple_output::enable_newlines): Add `check_newline()'.
7406 (simple_output::flush_last_word): New function.
7408 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7409 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7411 * tmac/s.tmac (@PP, @IP): Add html conditional code.
7412 * tmac/an-old.tmac (TP): Ditto.
7414 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
7416 * mdate.sh: Make it POSIX compliant.
7418 2001-03-09 Werner LEMBERG <wl@gnu.org>
7420 Added the `return' request to end a macro immediately. It simply
7421 pops iterators from the input stack until a macro iterator is found.
7423 * src/roff/troff/input.cc (input_iterator::is_macro,
7424 macro_iterator::is_macro): New member.
7425 (input_return_boundary): New class to signal an immediate return
7427 (input_stack::add_return_boundary, input_stack::is_return_boundary):
7429 (input_stack::clear): Use it.
7430 (input_stack::pop_macro): New function.
7431 (while_request): Use `is_return_boundary()'.
7432 (return_macro_request): New function.
7433 (init_input_requests): Use it.
7435 * src/roff/troff/TODO: Updated.
7436 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7438 2001-03-08 Werner LEMBERG <wl@gnu.org>
7440 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7443 2001-03-07 Werner LEMBERG <wl@gnu.org>
7445 Make `\B' more rigid.
7447 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7449 (get_number_rigidly): New function.
7450 * src/roff/troff/input.cc (do_expr_test): Use it.
7451 * src/roff/troff/token.h: Updated.
7453 * src/roff/troff/request.h: Fix typo (init_html_request ->
7454 init_markup_request).
7456 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
7458 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
7459 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7460 are now `.begin', `.end', `.image'.
7462 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7463 (html_printer::add_to_sbuf): Changing type of `code' parameter.
7464 Use add_char_to_sbuf().
7465 (to_unicode): New function.
7466 (char_translate_to_html): Changing type of `ch' parameter.
7468 (html_printer::~html_printer): Comment out doctype string.
7469 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7470 instead of `.html-end'.
7471 (write_start_image): Use `.begin' and `.image' instead of
7472 `.html-begin' and `.html-image'.
7473 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7474 (html_begin): Renamed to ...
7476 (html_end): Renamed to ...
7478 (html_image): Renamed to ...
7480 (init_html_requests): Renamed to ...
7481 (init_markup_requests): This.
7482 * tmac/www.tmac: Updated.
7484 2001-02-28 Bram <bram@avontuur.org>
7486 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7489 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
7491 * doc/meref.me: Fixing some typos.
7493 2001-02-16 Werner LEMBERG <wl@gnu.org>
7495 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7496 method. Return `HYPHEN_MIDDLE' if it was `\:'.
7497 * src/roff/troff/node.h: Updated.
7499 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
7501 * tmac/groff_tmac.man: Fix typo.
7503 2001-02-16 Werner LEMBERG <wl@gnu.org>
7505 Fixing a bug which prevented proper end-of-sentence recognition
7506 between an `unformatted' box and the following text. As a
7507 consequence, vertical line distances are no longer preserved in
7508 boxes after a call to `.unformat' -- because boxes aren't
7509 line-oriented (contrary to diversions), this doesn't make sense
7512 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7514 (vertical_size_node::set_unformat_flag): New method.
7515 * src/roff/troff/node.hh: Updated.
7516 * src/roff/troff/input.cc (word_space_node::reread,
7517 hmotion_node::reread): Reset `unformat' flag after usage.
7518 (unformat_macro): Append only if `set_unformat_flag()' returns
7520 * src/roff/troff/troff.man: Updated.
7522 2001-02-15 Werner LEMBERG <wl@gnu.org>
7524 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7525 documentation of `asciify' and `unformat' requests.
7527 2001-02-13 Werner LEMBERG <wl@gnu.org>
7529 Redesigned the `unformat' request. It is no longer connected with
7530 `asciify' but rather uses new `reread()' methods if the `unformat'
7531 flag is set. Additionally, the handling of space characters after
7532 unformatting has been fixed so that they retain their width.
7534 * src/roff/troff/node.h (width_list): New structure to store
7535 original widths of spaces.
7536 (node): Added `unformat' member.
7537 Replaced `num_spaces' variable with `orig_width' list.
7538 * src/roff/troff/node.cc (*node::asciify,
7539 asciify_reverse_node_list): Removed `unformat_only' flag and related
7541 (word_space_node::asciify, word_space_node::word_space_node): Use
7543 (word_space_node::~word_space_node): New destructor.
7544 (word_space_node::copy): Updated to handle `orig_width'.
7545 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7546 (*node::merge_space): Update `orig_width' list if necessary.
7547 (*node::set_unformat_flag): New methods to set the `unformat' flag.
7548 * src/roff/troff/enc.cc (environment::space_newline): Use
7550 (environment::space): Added method to handle space width and
7551 sentence space width as parameters. Use `width_list'.
7552 (environment::make_tab_node): Updated.
7553 * src/roff/troff/env.h: Updated.
7554 * src/roff/troff/input.cc (word_space_node::reread,
7555 unbreakable_space_node::reread, hmotion_node::reread): New methods
7556 to handle nodes specially if `unformat' flag is set.
7557 (do_asciify_macro): Renamed back to ...
7558 (asciify_macro): This.
7559 (unformat_macro): New implementation to simply set the `unformat'
7562 * MORE.STUFF: Added more info about deroff.
7564 2001-02-08 Werner LEMBERG <wl@gnu.org>
7566 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7567 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7568 and `add_self()' methods to avoid hyphenation. For example, the
7569 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7570 soft hyphen after `foo'. Now the hyphen list is correctly
7571 `foo<ignore><ignore>bar'.
7573 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
7575 * tmac/groff_tmac.man: Fix `BIR' macro.
7577 2001-02-04 Werner LEMBERG <wl@gnu.org>
7579 A new escape sequence `\:', inserting a zero-width break point.
7581 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7582 * src/roff/troff/input.cc (get_copy, token::next, asciify):
7584 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7586 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
7587 and `asciify()' methods.
7588 * src/roff/troff/node.cc (space_node::space_node): Updated.
7589 (space_node::asciify): Handle `was_escape_colon'.
7590 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7592 Handle `\~' similar to other comparable requests.
7594 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7596 (token::next): Move creation of an unbreakable_space_node to...
7597 (token::add_to_node_list): Here.
7599 Fix a bug which sometimes prevented hyphenation of words connected
7600 with `\~' or `\ ' (and other escape sequences handled as
7601 TOKEN_NODE). This also fixes a hyphenation problem with boxes
7602 (after a call to the `unformat' request).
7604 * src/roff/troff/env.h (environment::possibly_break_line,
7605 environment::hyphenate_line): Introducing `start_here' parameter.
7606 * src/roff/troff/env.cc (environment::space_newline,
7607 environment::space): Use it.
7608 (environment::possibly_break_line, environment::hyphenate_line):
7610 * src/roff/troff/input.cc (process_input_stack): Use it.
7611 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7612 space_char_hmotion_node, overstrike_node): Add
7613 `get_hyphenation_type()' method.
7614 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7615 if `unformat_only' is active.
7617 2001-01-30 Werner LEMBERG <wl@gnu.org>
7619 Implemented new read-only number register `.linetabs' which
7620 returns 1 if in line-tabs mode, 0 otherwise.
7622 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7623 * src/roff/troff/env.cc (get_line_tabs): New function.
7624 (init_env_requests): Use it.
7625 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7627 * VERSION, REVISION: Changing to 1.17.0.
7629 2001-01-28 Werner LEMBERG <wl@gnu.org>
7631 Fixed a bug which prevented hyphenation of words which are finished
7634 * src/roff/troff/token.h (token): Add enum type
7635 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7636 * src/roff/troff/input.cc (token::next, token::description,
7637 get_line_arg, token::add_to_node_list, token::process): Use it.
7639 2001-01-27 Werner LEMBERG <wl@gnu.org>
7641 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7642 * src/roff/troff/div.cc (do_divert): Use it.
7644 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7646 2001-01-25 Werner LEMBERG <wl@gnu.org>
7648 Adding the `linetabs' request. If set, tab distances are not
7649 computed relative to the input line but relative to the output line.
7651 * src/roff/troff/env.h (environment): New member `line_tabs'.
7652 * src/roff/troff/env.cc (line_tabs_request): Implement request.
7653 (environment::environment, environment::copy): Updated.
7654 (environment::distance_to_next_tab): Use `line_tabs'.
7655 (init_env_requests): Register request.
7656 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
7659 2001-01-24 Werner LEMBERG <wl@gnu.org>
7661 Introducing a new read-only register `.int' which is set to a
7662 positive value if the last output line is interrupted (i.e., if it
7665 * src/roff/troff/env.cc (init_env_requests): Add it.
7666 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7668 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
7670 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7671 * src/preproc/html/pre-html.cc (findPrefix): New function which
7672 generates the troff executable name via the system prefix.
7673 * src/preproc/eqn/main.cc: Modified warning message.
7675 2001-01-23 Werner LEMBERG <wl@gnu.org>
7677 troff's `box' and `boxa' requests didn't preserve temporary
7680 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7681 `saved_target_text_length' members.
7682 * src/roff/troff/div.cc (do_divert): Use them.
7684 Tabs (but not yet leaders and fields) are now handled correctly by
7687 * node.h (hmotion_node): Add field `was_tab'.
7688 * env.cc (environment::make_tab_node): Set it.
7689 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7691 Added new request `unformat' which will, contrary to `asciify',
7692 preserve font information after unformatting (i.e., only nodes
7693 dealing with horizontal space are converted back to input
7696 * input.cc (asciify_macro): Renamed to ...
7697 (do_asciify_macro): this, having a new parameter `unformat_only'.
7698 (asciify_macro, unformat_macro): New; using do_asciify_macro.
7699 (init_input_requests): Added `unformat'.
7700 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7701 parameter to control asciification process.
7702 * node.h (*_node::asciify): Ditto.
7703 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7705 2001-01-20 Werner LEMBERG <wl@gnu.org>
7707 * doc/groff.texinfo: Minor improvement of `.in' documentation.
7709 2001-01-18 Werner LEMBERG <wl@gnu.org>
7711 * tmac/ps.tmac: Remove call of psold.tmac.
7712 * tmac/psold.tmac: Comment updated.
7713 * tmac/psnew.tmac: Removed since no longer needed.
7714 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7716 * font/devutf8/R.proto: Adding `shc' glyph.
7717 * font/devutf8/NOTES: Updated.
7719 * test-groff: Updated.
7721 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
7723 First cut of the new html device driver. Changes to pre-html and
7724 the new grohtml are too numerous to be documented here.
7726 Stuff related to `html' has been renamed to `html-old' and `html2'
7727 stuff has been renamed to `html' (including directories). The new
7728 html device driver is therefore invoked as `-Thtml'.
7730 Added new `\O' escape to suppress output (needed by html driver).
7732 Added functions and code to pass info about input-level commands
7733 (`.in', `.fl', etc.) to html driver.
7735 Three new functions (.html-begin, .html-end, and .html-image) for
7736 better html handling: `html-begin' will execute the remaining line
7737 if at the outermost nesting level, increasing an internal counter.
7738 `html-end' does the same but decreases the internal counter.
7739 `html_image' puts its arguments into a special node (suppress_node)
7740 to define an image region.
7742 The `output' request has been removed.
7744 * tmac/html-tags.tmac: Removed.
7745 * tmac/arkup.tmac: Updated and renamed to ...
7746 * tmac/www.tmac: New file.
7747 * tmac/markup.tmac Updated and renamed to ...
7748 * tmac/mwww.tmac: New file.
7749 * tmac/Makefile.sub: Updated.
7750 * tmac/an-old.tmac: Updated.
7751 * tmac/eqnrc: Updated.
7752 * tmac/groff_man.man
7753 * tmac/groff_markup.man: Updated and renamed to ...
7754 * tmac/groff_mwww.man: New file.
7755 * tmac/groff_tmac.man: Updated.
7756 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7757 * tmac/html.tmac: Updated and renamed from html2.tmac.
7758 * tmac/pspic.tmac: Updated html support.
7759 * tmac/s.tmac: Added html output support.
7760 * tmac/troffrc, tmac/troffrc-end: Updated.
7762 * Makefile.in, doc/Makefile: Updated.
7763 * doc/groff.texinfo: Added info about new `\O' escape.
7764 * doc/homepage.ms: Use `MAILTO' macro.
7766 * font/devhtml/DESC.proto: Add `C' font.
7767 * font/devhtml/Makefile.sub: Updated.
7768 * font/devhtml/R.proto: Minor fixes.
7769 * font/devhtml-old/Makefile.sub: Updated.
7771 * src/devices/grohtml-old/Makefile.sub: Updated.
7773 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7775 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7776 graphic_start): Add `inline' parameter. Update.
7777 (html_end_suppress, graphic_end): Update.
7779 * src/include/html-strings.h: New file.
7780 * src/include/htmlindicate.h: Comments updated.
7781 * src/include/printer.h: Updated.
7783 * src/preproc/eqn/main.cc (do_file, main): Updated.
7784 * src/preproc/pic/troff.cc (troff_output::start_picture,
7785 troff_output::finish_picture): Updated.
7786 * src/preproc/tbl/main.cc (process_input_file): Updated.
7788 * src/roff/groff/groff.cc (main): Updated.
7789 Pass device arguments to predrivers also.
7790 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7791 * src/roff/troff/env.h (environment): Updated.
7792 New elements `need_eol' and `ignore_next_eol' (for html output).
7793 * src/roff/troff/env.cc (environment::environment): Add initializers
7794 for `need_eol' and `ignore_next_eol'.
7795 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7797 (point_size, fill, no_fill, center, right_justify, line_length,
7798 indent, temporary_indent, break_request, handle_tab): Use
7800 (set_tabs): Use `add_html_tag_tabs()'.
7801 (environment::add_html_tag): Updated.
7802 (environment::do_break): Updated.
7803 * src/roff/troff/div.cc (space_request, flush_output): Use
7804 `environment::add_html_tag()'.
7805 * src/roff/troff/input.cc: Updated.
7806 New variable `html_level' to indicate nested `html-begin' requests.
7807 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7808 (non_interpreted_char_node, token_node, non_interpreted_node): Add
7809 `force_tprint()' method.
7810 (token::next): Handle `\O'.
7811 (do_suppress): Implement it.
7812 (html_begin, html_end, html_image): New functions.
7813 (init_output_requests): Renamed to ...
7814 (init_html_requests): this.
7816 (macro::append_str, macro::append_unsigned, macro::append_int): New
7818 New variable `output_low_mark_miny' to limit minimal value of y.
7819 (reset_output_registers): Use it.
7820 (output_request): Removed.
7821 (get_output_registers): New function.
7822 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7823 (*_node): Added `force_tprint()' if necessary.
7824 (special_node): New elements `tf' and `get_tfont()'.
7825 (suppress_node): New class.
7826 * src/roff/troff/node.cc:
7827 New global variables `image_no' and `suppress_start_page'.
7828 (real_output_file): New method `is_on()'.
7829 (troff_output_file): New method `start_special(tfont)'.
7830 (troff_output_file::really_print_line): Use `tprint' conditionally.
7831 (real_output_file::print_line): Updated.
7832 (real_output_file::on): Updated.
7833 (*_node): Added `force_tprint()'.
7834 (special_node::special_node): Initializer updated.
7835 (special_node::same, special_node::copy, special_node::tprint_start):
7837 (get_reg_int, get_reg_str): New functions.
7838 (suppress_node::*): New methods.
7839 New global variables last_position, last_image_filename;
7840 (min): New inline function.
7841 * src/roff/troff/reg.h, src/roff/troff/request.h,
7842 src/roff/troff/troff.h: Updated.
7844 2001-01-13 Werner LEMBERG <wl@gnu.org>
7846 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7847 documentation of `asciify' request.
7849 2001-01-12 Werner LEMBERG <wl@gnu.org>
7851 * src/roff/troff/input.cc: Move definition of special characters
7852 like `ESCAPE_TILDE' to ...
7853 * src/roff/troff/input.h: New file.
7854 * src/roff/troff/Makefile.sub (HDRS): Add it.
7856 Extending the .asciify request to `unformat' space characters also.
7858 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7859 to count input space characters.
7860 Update constructors to take care of it.
7861 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7862 `ESCAPE_SPACE' instead of normal space.
7863 (word_space_node::asciify): New method.
7864 (unbreakable_space_node::asciify): New method.
7865 (word_space_node::merge_space): New method.
7866 * src/roff/troff/env.cc (environment::space_newline,
7867 environment::space): Add code to initialize `num_spaces' (using the
7868 constructor of `word_space_node').
7869 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7872 2001-01-09 Werner LEMBERG <wl@gnu.org>
7874 * man/groff_char.man: Use table header traps only conditionally.
7876 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
7878 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7880 2001-01-08 Werner LEMBERG <wl@gnu.org>
7882 Introducing the `box' and `boxa' requests which are similar to
7883 `di' resp. `da' but omitting a partially filled line (which is
7884 restored after ending the diversion).
7886 * src/roff/troff/div.h (diversion): Add elements to save partially
7888 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7889 partially filled line.
7890 (divert, divert_append): Updated.
7891 (box, box_append): New functions.
7892 (init_div_requests): Use them.
7893 * src/roff/troff/env.h (environment): do_divert() is now a friend.
7894 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7896 * doc/groff.texinfo: Fix documentation of `lf' request.
7898 2000-12-25 Werner LEMBERG <wl@gnu.org>
7900 * src/roff/troff/troff.man, NEWS: Document `writem' request.
7902 2000-12-21 Werner LEMBERG <wl@gnu.org>
7904 Ignore `ss' request if in compatibility mode.
7906 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7907 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7908 * src/roff/troff/env.cc (space_size): Use it.
7910 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7911 `ss' request in nroff mode.
7913 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7916 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
7918 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7920 2000-12-13 Werner LEMBERG <wl@gnu.org>
7922 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7923 * src/preproc/eqn/neqn.man: Small fixes and additions.
7925 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
7927 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7930 * src/preproc/eqn/neqn.man: New file.
7932 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7935 * tmac/e.tmac: Add `T&' macro.
7936 Fix `indent cannot be negative' warning.
7937 * tmac/s.tmac: Fix `indent cannot be negative' warning.
7939 2000-12-07 Werner LEMBERG <wl@gnu.org>
7941 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7943 2000-12-06 Werner LEMBERG <wl@gnu.org>
7945 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7948 * MORE.STUFF: Added info about deroff for djgpp.
7950 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7951 documentation of -rcR switch.
7953 2000-12-03 Werner LEMBERG <wl@gnu.org>
7955 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7956 if -rcR=1 (which is now the default in nroff mode), a single, very
7957 long page is created instead of multiple pages: All `ne' and `wh'
7958 requests are put into conditionals; a new macro `an-end' is added to
7959 be called with `em'.
7961 Some other minor cleanups.
7963 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7965 2000-12-02 Werner LEMBERG <wl@gnu.org>
7967 Fixing a bug which prevented hyphenation in words followed
7968 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7970 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7971 Adding possibly_break_line().
7972 * src/roff/troff/env.h (environment): Make possibly_break_line()
7975 Make `\~' usable in .tr request.
7977 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7978 (token): Add stretchable_space().
7979 * src/roff/troff/input.cc (token::next, token::delimiter,
7980 token::description, process_input_stack, do_translate,
7981 add_to_node_list, token::process): Use it.
7982 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7983 for adjusting the space.
7984 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
7985 for stretchable space.
7986 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7987 (make_node): Add code for stretchable space.
7988 * src/roff/troff/env.cc (environment::add_char): Use it.
7989 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7990 (get_copy, token::next, transparent_translate, asciify): Use it.
7992 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7993 doc/groff.texinfo: Updated.
7994 * man/groff.man: Small reorderings.
7996 2000-11-23 Werner LEMBERG <wl@gnu.org>
7999 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8001 * src/roff/troff/input.cc (main): Add `config_macro_path' and
8002 `safer_macro_path' to -M option.
8003 * src/roff/troff/troff.man: Fixes.
8005 2000-11-22 Werner LEMBERG <wl@gnu.org>
8007 Use safer path (except for config files) if -U isn't specified. Add
8008 a special macro path (without home and current directory) for config
8009 files. Add home directory to unsafe path for consistency. Don't
8010 include the home directory in the font path.
8012 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8014 * src/include/macropath.h: Add `config_macrp_path'.
8015 * src/libs/libgroff/fontfile.cc: Fix font path.
8016 * src/roff/troff/input.cc (process_startup_file): Use
8017 `config_macro_path'.
8018 (main): Select unsafe path if -U is given.
8020 * src/preproc/eqn/main.cc (main): Fixing search path for
8022 * src/preproc/eqn/eqn.man: Updated.
8024 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8027 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8028 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8029 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8030 src/devices/grotty/grotty.man: Updated.
8032 * Makefile.in: Fix comments.
8034 2000-11-17 Werner LEMBERG <wl@gnu.org>
8036 * tmac/safer.tmac: Empty file added (again) for compatibility
8038 * tmac/Makefile.sub: Updated.
8040 2000-11-16 Werner LEMBERG <wl@gnu.org>
8042 * src/devices/grodvi/dvi.cc (main),
8043 src/devices/grohtml2/post-html.cc (main),
8044 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8045 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8046 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8047 (main), src/preproc/html2/pre-html.cc (main),
8048 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8049 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8050 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8051 (main), src/utils/hpftodit/hpftodit.cc (main),
8052 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8053 (main), src/utils/lookbib/lookbib.cc (main),
8054 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8055 (main): Use stdout for -v.
8056 * src/roff/groff/groff.cc (run_commands),
8057 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8058 to make direct printing to stdout possible.
8059 * src/roff/groff/pipeline.h: Updated.
8061 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8062 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8063 * src/utils/afmtodit/afmtodit.man: Updated.
8065 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8066 (version): New function.
8068 * src/utils/addftinfo/addftinfo.man: Updated.
8070 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8071 Fixing copyright dates.
8073 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8076 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8079 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8081 2000-11-15 Werner LEMBERG <wl@gnu.org>
8083 In all programs, make -v return immediately with exit status 0 to
8084 be compliant with the GNU standard.
8086 * src/devices/grodvi/dvi.cc (main),
8087 src/devices/grohtml2/post-html.cc (main),
8088 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8089 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8090 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8091 (main), src/preproc/html2/pre-html.cc (main),
8092 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8093 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8094 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8095 (main): Implement it.
8098 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
8099 and postprocessors to the -v option.
8101 * src/roff/grog/grog.pl: Implement -v.
8102 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8103 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8105 * src/roff/nroff/nroff.sh: Implement -v.
8106 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8107 * src/roff/nroff/nroff.man: Updated.
8109 * src/preproc/eqn/main.cc (main): Fix comment typo.
8111 * MORE.STUFF: Added info about djgpp port of grap.
8113 2000-11-14 Werner LEMBERG <wl@gnu.org>
8115 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8116 mode (or rather, implemented non-compatibility mode).
8117 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8119 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8120 replacing it -- we don't find gxditview otherwise.
8121 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8123 * src/preproc/pic/depend: Removed. Unnecessary.
8125 Implemented dummy keyword `solid' in pic for compatibility with
8128 * lex.cc (lookup_keyword): Added `solid'.
8129 * pic.y: Added SOLID with dummy rule.
8130 * pic.cc, pic_tab.h: Regenerated.
8131 * doc/pic.ms: Updated.
8133 2000-11-13 Werner LEMBERG <wl@gnu.org>
8135 For security reasons, don't use the current directory but the home
8136 directory while searching and scanning troffrc and troffrc-end.
8137 Similarly, replace the current directory with the home directory
8140 * Makefile.in (fontpath, tmacpath): Remove current directory.
8142 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8143 two parameters `add_home' and `add_current'.
8144 (search_path::~search_path, search_path::command_line_dir,
8145 search_path::open_file): Remove tests for `dirs' being zero.
8146 * src/include/searchpath.h: Adjust.
8147 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8149 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8151 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8152 * src/roff/troff/input.cc: Use `mac_path', initialized with
8154 (process_startup_file): Set `mac_path' to `safer_macro_path'.
8155 * src/roff/troff/env.cc: Use `mac_path'.
8157 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8159 * NEWS, man/roff.man, src/roff/troff/troff.man,
8160 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8163 2000-11-12 Werner LEMBERG <wl@gnu.org>
8165 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8167 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8168 * configure.in: Fix typo in comment.
8169 * configure: Regenerated.
8171 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8174 2000-11-08 Werner LEMBERG <wl@gnu.org>
8176 Add system tmac directory (/usr/local/lib/groff/site-tmac).
8178 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8179 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8182 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8183 * tmac/Makefile.sub (install_data): Create
8184 $(systemtmacdir) and $(localtmacdir).
8185 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8186 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8187 NEWS, doc/groff.texinfo: Updated and minor fixes.
8189 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8190 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8191 $(systemtmacdir) since the wrapper files are platform-dependent.
8193 2000-11-01 Werner LEMBERG <wl@gnu.org>
8195 * doc/groff.texinfo: Fix typo.
8197 2000-10-26 Werner LEMBERG <wl@gnu.org>
8199 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
8200 tmac.doc.old -> doc-old.tmac
8201 tmac.an.old -> an-old.tmac
8203 * tmac/tmac.*: Moved to ...
8204 * tmac/*.tmac: this.
8205 * tmac/man.local: Fix comment.
8206 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8207 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
8208 Added some `FILES' sections. More use of @...@ directives. Other
8210 * arch/djgpp/README, font/devutf8/NOTES: Updated.
8211 * doc/homepage.ms, doc/groff.texinfo: Updated.
8212 * man/groff.man, man/roff.man: Updated.
8213 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8214 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8215 src/devices/grotty/grotty.man: Updated.
8216 * src/preproc/pic/pic.man: Updated.
8217 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8218 instead of -mdoc.old.
8219 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8220 * src/roff/nroff/nroff.man: Updated.
8223 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8225 * tmac/mm.diff: Removed -- it has no use now since the mm package
8228 * tmac/*: Removed trailing spaces.
8230 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8231 the tmac subdirectory also).
8233 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8234 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8235 stuff since it is no longer needed.
8237 * README, PROBLEMS: Updated.
8239 2000-10-25 Werner LEMBERG <wl@gnu.org>
8241 Invert current behaviour: Search first FOOBAR.tmac, then
8244 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8245 (open_mac_file, macro_source): Implement it.
8246 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8247 doc/groff.texinfo, NEWS: Document it.
8249 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8250 Small documentation improvements.
8252 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8255 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8257 2000-10-24 Werner LEMBERG <wl@gnu.org>
8259 Add local tmac directory (groff/site-tmac).
8261 * Makefile.in: Add $(localtmacdir).
8262 (uninstall_dirs): Add $(localtmacdir).
8263 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8264 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8265 in $(localtmacdir). Create $(localtmacdir).
8266 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8267 Updated and minor fixes.
8269 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8271 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8273 2000-10-23 Werner LEMBERG <wl@gnu.org>
8275 Move hyphen.us to tmac directory.
8277 * src/roff/troff/hyphen.us: Removed.
8278 * src/tmac/hyphen.us: Added.
8279 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8281 Change installation structure for data files from .../groff/... to
8282 .../groff/<version><revision>/... to be conform with other GNU
8285 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8286 doc/Makefile: Implement it.
8287 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8288 * configure: Updated.
8289 * arch/djgpp/README, font/devutf8/NOTES: Use it.
8290 * NEWS: Document it.
8291 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8292 @MACRODIR@ instead of hard-coded directories.
8294 2000-10-22 Werner LEMBERG <wl@gnu.org>
8296 Implement $GROFF_BIN_PATH environment variable (which defaults to
8297 $bindir) used for child programs of groff and similar wrappers.
8299 * gendefs.sh: Improve documentation.
8300 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8301 src/preproc/eqn/Makefile.sub (neqn),
8302 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8303 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8305 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8306 $GROFF_PATH__ (the latter for communication with troff).
8307 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8309 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8310 doc/groff.texinfo: Document it.
8312 * doc/groff.texinfo: Improve documentation of troff's -a option.
8314 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
8316 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8317 non-intrusive eol marker.
8318 (troff_output_file::determine_line_limits): New function.
8319 (troff_output_file::draw): Use it.
8320 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8321 output_pending_lines() instead of output_line().
8322 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8323 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8324 createImage): Small fixes.
8326 2000-10-14 Werner LEMBERG <wl@gnu.org>
8328 Replace tmac.safer with a real secure solution.
8330 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8331 system_request, pipe_output): Disable requests if in safer mode.
8332 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8333 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8334 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8335 doc/groff.texinfo, src/roff/groff/groff.man,
8336 src/roff/troff/troff.man, arch/djgpp/README: Updated.
8338 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8339 (resource_manager::output_prolog): Replace setenv() with putenv().
8341 2000-10-09 Werner LEMBERG <wl@gnu.org>
8343 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8344 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8345 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8346 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8347 compilation errors with some compilers. It seems that this code
8348 is no longer necessary -- if yes, it is easy to add some #ifdef's
8349 for that particular old-fashioned compiler.
8351 * MORE.STUFF: Added info about Meta-tbl.
8353 * doc/groff.texinfo: Added more info about `.if "..."..."'.
8355 2000-10-07 Werner LEMBERG <wl@gnu.org>
8357 Adding a new escape sequence \B'...': If the string between
8358 the delimiters is a valid numeric expression, return the character
8359 `1', and `0' otherwise. This is an analogon to \A.
8361 * src/roff/troff/input.cc (do_expr_test): Implement it.
8362 (token::next): Use it.
8363 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8365 * tmac/tmac.trace: Made independent from escape character.
8367 2000-10-06 Werner LEMBERG <wl@gnu.org>
8369 Adding a new request .dei: define indirect. The first and second
8370 parameter of .dei are taken from string registers instead directly;
8371 this very special request is needed to make tmac.trace independent
8372 from the escape character (which might even be disabled).
8374 * src/roff/troff/input.cc (do_define_macro): Implement it.
8375 (define_macro_indirect): New function.
8376 (init_input_requests): Use it.
8378 Adding two requests .ecs and .ecr: Save and restore the escape
8379 character. These two requests are needed to make tmac.trace
8380 independent from the escape character (which might even be
8383 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8385 (init_input_requests): Use it.
8387 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8389 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
8391 Adding a new option -P and new environment variable GROPS_PROLOGUE
8392 to grops, selecting a different prologue file (minor modifications
8395 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8396 src/devices/grops/ps.cc (main): Implement it.
8397 * src/devices/grops/grops.man, NEWS: Document it.
8399 2000-09-22 Werner LEMBERG <wl@gnu.org>
8401 * INSTALL: Add info about selecting paper format.
8403 2000-09-21 Werner LEMBERG <wl@gnu.org>
8405 * src/roff/troff/input.cc (main): Fixing compiler warning.
8406 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8407 strings.h from the former to the latter.
8408 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8409 stuff from the former to the latter.
8411 2000-09-11 Werner LEMBERG <wl@gnu.org>
8413 Implementing two new requests .tm1 and .tmc: The former is similar
8414 to .tm but can output leading spaces; its syntax is similar to
8415 defining a string, i.e., a `"' can be used to mark the beginning of
8416 the string to be written to stderr: `.tm1 " test'. The latter is
8417 similar to .tm1 but doesn't write out a final newline character.
8419 * src/roff/troff/input.cc (terminal1, terminal_continue,
8420 do_terminal): New functions.
8421 (init_input_requests): Use them.
8422 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8424 2000-09-09 Werner LEMBERG <wl@gnu.org>
8426 * tmac/groff_mdoc.samples.man: Small fixes.
8428 2000-09-08 Werner LEMBERG <wl@gnu.org>
8430 * tmac/groff_mdoc.man: Fixing typo.
8432 2000-09-02 Werner LEMBERG <wl@gnu.org>
8434 Implementing a .nop request which does nothing.
8436 * src/roff/troff/input.cc (nop_request): New function.
8437 (init_input_requests): Use it.
8438 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8440 2000-09-01 Werner LEMBERG <wl@gnu.org>
8442 * doc/groff.texinfo: Added some comments.
8444 2000-08-30 Werner LEMBERG <wl@gnu.org>
8446 * src/roff/troff/TODO: Updated.
8448 2000-08-25 Werner LEMBERG <wl@gnu.org>
8450 * doc/groff.texinfo: Fix comment how to compile the DVI file.
8452 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8454 * font/devps/generate/Makefile (SHELL): Define explicitly to
8455 "/bin/sh", for non-Unix platforms.
8456 (extraclean): Use a more portable "" quoting instead of a
8457 backslash (which doesn't work on DOS/Windows).
8459 * font/devlj4/generate/Makefile (extraclean): Ditto.
8461 * font/devdvi/generate/Makefile (extraclean): Ditto.
8463 2000-08-25 Werner LEMBERG <wl@gnu.org>
8465 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8466 src/roff/troff/troff.man: Document Eli's latest changes.
8468 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8470 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8471 macro file names of the form NAME.tmac as well as tmac.NAME.
8473 2000-08-25 Werner LEMBERG <wl@gnu.org>
8475 * src/include/posix.h: Remove definition of FILENAME_MAX.
8477 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8478 `sys_fatal' and `stop' function().
8480 * test-groff: Updated.
8482 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
8484 Added the new troff command .output <arg> to suppress output (while
8485 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8486 registers (for passing the output dimensions to the output device).
8488 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8490 * src/roff/troff/node.h, src/roff/troff/node.cc
8491 (troff_output_file::really_print_line,
8492 ascii_output_file::really_print_line,
8493 supress_output_file::really_print_line): Use `width' parameter.
8494 (troff_output_file::really_on, troff_output_file::really_off,
8495 output_file::on, output_file::off, real_output_file::on,
8496 real_output_file::off, real_output_file::really_on,
8497 real_output_file::really_off): New functions.
8498 (real_output_file:public output_file): New variable `output_on'.
8499 (real_output_file::begin_page, real_output_file::copy_file,
8500 real_output_file::transparent_char, real_output_file::print_line):
8502 (real_output_file::print_line): Use check_output_limits.
8503 * src/roff/troff/reg.h, src/roff/troff/request.h,
8504 src/roff/troff/input.cc (assign_registers): New function to remove
8506 (do_ps_file): Use it.
8507 (check_output_limits, reset_output_registers, output_request,
8508 init_output_requests): New functions.
8509 (init_input_requests): Updated.
8511 Added new grohtml2 device and html2 preprocessor (coding
8512 not yet finished) which will eventually replace grohtml.
8514 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8516 * src/include/htmlindicate.h, src/include/htmlindicate
8517 (html_begin_suppress, html_end_suppress): New functions.
8518 * src/preproc/tbl/main.cc: Use it.
8519 * src/roff/groff/groff.cc: Add support for html2 device (which will
8520 automatically invoke the html2 preprocessor).
8521 * src/roff/troff/input.cc (is_html2): New variable.
8522 * src/roff/troff/troff.h, src/roff/troff/env.h,
8523 src/roff/troff/env.cc (environment::add_html_tag): New function
8525 (environment::do_break): Use it.
8526 * font/devhtml2/*: New files.
8527 * src/devices/grohtml2: New device.
8528 * src/preproc/html2: New preprocessor.
8529 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8531 2000-08-23 Werner LEMBERG <wl@gnu.org>
8533 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8535 2000-08-22 Werner LEMBERG <wl@gnu.org>
8537 * src/include/lib.h: Provide a fix for IRIX to not include
8540 2000-08-18 Werner LEMBERG <wl@gnu.org>
8542 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8543 since some non-GNU sed programs can't handle null regexps.
8544 * configure, src/preproc/eqn/Makefile.sub,
8545 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8547 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8548 bug (string.h and strings.h are both needed according to latest
8551 * MORE.STUFF: Added info about unroff and troffcvt.
8553 2000-08-08 Werner LEMBERG <wl@gnu.org>
8555 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8558 * tmac/tmac.man.old: Remove unused number register.
8560 * tmac.doc: Minor documentation fix.
8562 2000-08-07 Paul Eggert <eggert@twinsun.com>
8564 * src/roff/groff/pipeline.c (is_system_shell):
8565 Fix typo: "monocased_shell" no longer exists.
8567 2000-08-07 Paul Eggert <eggert@twinsun.com>
8569 Remove FILENAME_MAX limits.
8571 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8572 that the argument length is less than FILENAME_MAX.
8573 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8574 Use struct hack to allocate and free file name.
8575 (struct xtmpfile_list): fname is now part of the structure,
8576 not a pointer to another string.
8578 2000-08-07 Tom Schmidt <tschmidt@micron.com>
8580 * src/include/posix.h: Add a default value for FILENAME_MAX.
8582 2000-08-06 Paul Eggert <eggert@twinsun.com>
8584 Add support for new BSD-style man pages (with ".Dd" instead of
8585 ".TH"), so that "groff -man" understands both styles, even
8586 when running "groff -man" on a host whose system man page
8587 macros don't support ".Dd".
8589 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8590 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8591 in case the system man macros don't define Dd or TH.
8593 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8594 * tmac/tmac.an: New one-line file.
8595 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8597 2000-08-06 Werner LEMBERG <wl@gnu.org>
8599 * src/roff/troff/troff.man: Fixing typos.
8601 Version 1.16.1 released
8602 =======================
8604 2000-07-31 Werner LEMBERG <wl@gnu.org>
8606 Preparing release 1.16.1.
8608 * REVISION: Revision number set to 1.
8609 * MORE.STUFF: Added info about port to DOS.
8610 * NEWS, win32-diffs: Updated.
8612 * src/include/nonposix.h: Remove first line -- this file is used
8615 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8618 2000-07-30 Werner LEMBERG <wl@gnu.org>
8620 * doc/texinfo.tex: Update to latest version.
8622 2000-06-28 Paul Eggert <eggert@twinsun.com>
8624 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8625 commands that fail. Don't assume that "export a=b" is valid shell
8626 syntax. This is needed for Solaris 2.5.1.
8628 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8629 comment about missing Solaris headers.
8631 * PROBLEMS: Add section about problems with Sun Make and VPATH.
8633 2000-06-25 Werner LEMBERG <wl@gnu.org>
8635 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8638 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8640 * win32-diffs: Updated.
8641 * README.WIN32: Added CRs to make all Windows editors happy.
8643 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8644 src/roff/groff/pipeline.c).
8646 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8648 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8649 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8651 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
8653 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8654 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8656 (main): Support non-Posix systems with several different styles of
8657 slash characters in file names.
8659 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8660 (main) [SET_BINARY]: Switch stdin into binary mode.
8662 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8663 (main): Support file names with several possible slash-type
8664 characters, as given by DIR_SEPS[] in nonposix.h.
8665 (main) [__MSDOS__]: If renaming the temporary index file fails
8666 because it has more than one dot in its trunk, replace the dot
8667 with an underscore and try again.
8668 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
8670 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8672 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8673 (File::File): Open the input file in binary mode. Strip CR
8674 characters from each CR-LF pair.
8675 (xbasename): Support file names with several possible slash-type
8676 characters, as given by DIR_SEPS[] in nonposix.h.
8678 * src/include/Makefile.sub (HDRS): Add nonposix.h.
8680 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8681 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8682 [!_POSIX_VERSION]: Define for traditional Unix systems.
8683 (real_output_file::real_output_file): Remove the MSVC-specific
8684 call to popen, use instead POPEN_WT, appropriately defined on
8685 nonposix.h. #include nonposix.h.
8686 (real_output_file::~real_output_file): Remove the MSVC-specific
8687 call to pclose, a suitable macro is now defined on nonposix.h.
8688 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8689 and WEXITSTATUS instead of assuming traditional Unix
8690 interpretation of the status returned by pclose.
8692 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8693 call to popen, use POPEN_RT instead (appropriately defined on
8694 nonposix.h). #include nonposix.h.
8695 (ps_bbox_request): Open the PostScript file in binary mode.
8696 Close the file after processing it.
8697 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8700 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8701 A version of run_pipeline that doesn't use `fork'.
8702 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8703 (system_shell_name, system_shell_dash_c)
8704 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8705 the ugliness of testing DOS/Windows file names for equality, and
8706 support both stock shells and ports of Unix shells.
8708 * src/roff/groff/groff.cc: #include nonposix.h.
8709 (BSHELL): Definition moved to nonposix.h.
8710 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
8711 instead of a literal "-c".
8712 (xbasename): Support file names with several possible slash-type
8713 characters, as given by DIR_SEPS[] in nonposix.h.
8714 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8717 * src/preproc/soelim/soelim.cc: #include nonposix.h.
8718 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8720 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8723 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8725 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8728 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8730 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8731 P_tmpdir is defined, use it instead of the literal "/tmp".
8732 (remove_tmp_files, add_tmp_file): New functions.
8733 (xtmpfile): Record temporary files and register an atexit function
8734 to delete them explicitly, instead of relying on the OS to do
8735 that, which doesn't work on non-Unix systems.
8737 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8738 (search_path::search_path): Use PATH_SEP instead of a literal
8740 (search_path::command_line_dir): Ditto.
8741 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8742 to support non-Posix systems.
8744 * src/libs/libbib/search.cc: #include nonposix.h.
8745 (search_list::add_file): Open the file in binary mode.
8747 * src/libs/libbib/linear.cc: #include nonposix.h.
8748 (file_buffer::load): Remove \r characters preceding \n from the
8751 * src/libs/libbib/index.cc: #include nonposix.h.
8752 (make_index_search_item): Open index_filename in O_BINARY mode.
8753 (index_search_item_iterator::get_tag): Ditto. Remove \r
8754 characters before \n characters.
8755 (index_search_item::check_files): Open files in binary mode.
8756 (index_search_item::munge_filename): Support DOS-style file names
8757 with backslashes and drive letters, use IS_ABSOLUTE.
8759 * src/devices/grops/ps.cc: #include nonposix.h.
8760 (main) [SET_BINARY]: Switch stdout to binary mode.
8762 * src/devices/grolj4/lj4.cc: #include nonposix.h.
8763 (main) [SET_BINARY]: Switch stdout to binary mode.
8765 * src/devices/grolbp/lbp.cc: #include nonposix.h
8766 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8768 * src/devices/grodvi/dvi.cc: #include nonposix.h.
8769 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8771 (main) [SET_BINARY]: Switch stdout to binary mode.
8772 [_MSC_VER]: Remove an explicit call to _setmode.
8774 * src/include/nonposix.h: New file.
8776 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8777 operation when building with DJGPP.
8778 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8779 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8782 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8784 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8785 etc. can include a semi-colon on DOS/Windows.
8786 (depend.temp): Use depend1.temp instead of depend.temp1, to
8787 prevent files from overerwiting each other on 8+3 filesystems.
8789 * gendef.sh (t): Change definition to work with DOS/Windows.
8791 doc/groff.texinfo: Apart of some typo corrections, I also changed
8792 some index entris, to make them more non-ambiguous, and also put
8793 @ignore around some parts that are not yet written, to allow the
8794 Info output be readable.
8796 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
8798 Replaced specific checks for function declarations with a generic
8799 routine taken from GNU bfd.
8801 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8802 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8803 * configure.in: Use it.
8804 * src/devices/grolbp/lbp.cc, src/include/lib.h,
8805 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8806 src/roff/groff/groff.cc: Use it.
8807 * Makefile.in, configure: Updated.
8809 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
8811 * src/devides/grolbp/lbp.h: Removed unused variables.
8813 2000-05-31 Keith Thompson <kst@sdsc.edu>
8815 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8818 2000-05-31 Werner LEMBERG <wl@gnu.org>
8820 * aclocal.m4 (GROFF_SRAND): New function to test the return value
8821 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8822 * configure.in: Use it.
8823 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8824 * configure, Makefile.in: Updated.
8826 * configure.in: Add test for strncasecmp().
8827 * src/include/lib.h: Use it.
8829 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8831 * src/preproc/grn/Makefile.sub: Add MLIB.
8833 2000-05-29 Nix <nix@esperi.demon.co.uk>
8835 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8837 2000-05-29 Werner LEMBERG <wl@gnu.org>
8839 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8841 * PROBLEMS: Small update.
8843 * src/devices/grolbp/lbp.cc: Various small fixes.
8845 2000-05-28 Keith Thompson <kst@sdsc.edu>
8847 * src/roff/nroff/nroff.sh: Fix main loop syntax.
8849 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8851 2000-05-25 Werner LEMBERG <wl@gnu.org>
8853 * man/roff.man: Removed unused macro.
8855 2000-05-24 Werner LEMBERG <wl@gnu.org>
8857 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
8858 This is needed e.g. if you do
8859 `make distclean; ./configure; make dist'.
8861 Version 1.16 released
8862 =====================
8864 2000-05-23 Werner LEMBERG <wl@gnu.org>
8866 Adding font CWI (constant width italic) to devdvi.
8868 * font/devdvi/CWI: New file.
8869 * font/devdvi/generate/Makefile: Add generating rule.
8870 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8871 tmac/tmac.dvi: Use it.
8872 * NEWS: Announce it.
8874 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8875 * font/devlj4/generate/Makefile: Cosmetic changes only.
8877 * man/groff.man: Removed most of the redundant description of
8878 special characters (which is in groff_char.man). Added font
8879 translation CB->CR for devdvi. Other minor fixes.
8881 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8882 (registered) symbols.
8884 2000-05-22 Werner LEMBERG <wl@gnu.org>
8886 * doc/Makefile: Added rule for creating info files.
8888 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
8890 * font/devdvi/generate/Makefile: Fixed dependencies.
8892 * font/devps/*: Regenerated. Heavy changes for Bookman and
8893 NewCentury Schoolbook!
8894 * font/devps/generate/afmname: Will now run with GNU awk.
8895 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8896 * font/devps/generate/Makefile: Cosmetic changes only.
8898 2000-05-21 Werner LEMBERG <wl@gnu.org>
8900 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8901 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
8902 `.SS' now produces a heading with a smaller size than `.SH'.
8903 Completely formatted.
8904 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8906 * man/groff.man: Improved table appearance. Use of `eo' request
8907 to reduce number of doubled backslashes in macro definitions.
8908 Replacing `\e' with `\(rs'. Other minor fixes.
8910 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8911 to have correct line number.
8913 * INSTALL: Small improvement.
8915 2000-05-20 Bernd Warken <bwarken@mayn.de>
8917 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8920 2000-05-19 Bernd Warken <bwarken@mayn.de>
8922 * man/groff.man: Complete update (with a lot of corrections by WL).
8924 2000-05-18 Werner LEMBERG <wl@gnu.org>
8926 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8928 * font/*/*: Implement it.
8929 * man/groff_char.man, NEWS: Document it.
8931 * src/include/unix.h: Removed. It isn't used.
8933 * doc/groff.texinfo: Slight improvements.
8935 2000-05-17 Werner LEMBERG <wl@gnu.org>
8937 * README, win32-diffs: Small fixes and improvements.
8939 2000-05-16 Werner LEMBERG <wl@gnu.org>
8941 * FDL: New file (the Free Documentation License version 1.1).
8943 * doc/groff.texinfo: Added many start-up values for gtroff.
8944 Some structural improvements of the source code.
8946 2000-05-15 Werner LEMBERG <wl@gnu.org>
8948 * src/roff/troff/input.cc: Added small comment about troffrc-end.
8949 * src/roff/troff/troff.man: Added info about troffrc-end.
8951 2000-05-14 Werner LEMBERG <wl@gnu.org>
8953 * Makefile.in (EXTRADIRS): Fix typos.
8954 (dist): Handle deletion of old .tar.gz file correctly.
8955 (DISTDIRS): Include all tty output devices.
8957 * doc/groff.texinfo: Adding more cross references; countless other
8960 2000-05-13 Werner LEMBERG <wl@gnu.org>
8962 * MORE.STUFF: Added Robert Marks's utilities.
8964 2000-05-12 Werner LEMBERG <wl@gnu.org>
8966 Added win32 port contributed by Blake McBride
8967 <blake@florida-software.com>.
8969 * README.WIN32, win32-diffs: New files.
8972 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8973 (tmove, tmove2): Added parentheses to avoid compiler warnings.
8974 (change): Removed unused variables.
8976 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8977 (savebounds): Changed return value from `int' to `void'.
8978 * src/preproc/grn/hdb.cc: Ditto.
8980 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8981 final backslash in comment to avoid compiler warning.
8983 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8985 * doc/groff.texinfo: More fixes.
8987 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
8989 * tmac/tmac.doc: Documentation fix.
8991 2000-05-11 Werner LEMBERG <wl@gnu.org>
8993 * doc/groff.texinfo: Reading the source code shows up a lot of
8994 omissions and incorrect data... More conversion to @Deffn macros.
8996 2000-05-10 Werner LEMBERG <wl@gnu.org>
8998 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9001 * src/roff/troff/request.h: Removing unused `no_break_flag'.
9003 2000-05-09 Werner LEMBERG <wl@gnu.org>
9005 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9008 * doc/groff.texinfo: Extended history section. More conversion to
9009 @Deffn macros. More .tr documentation.
9011 2000-05-07 Werner LEMBERG <wl@gnu.org>
9013 * doc/groff.texinfo: Completed tab section. Added info about
9016 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
9018 * PROBLEMS: Describe configure script fix for OS/390 Unix.
9020 2000-05-05 Werner LEMBERG <wl@gnu.org>
9022 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9024 * NEWS: Document it.
9026 * man/troff.man: Minor optical improvements.
9028 2000-05-03 Werner LEMBERG <wl@gnu.org>
9030 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9032 * font/*/*: Implement it.
9033 * man/groff_char.man, NEWS: Document it.
9035 2000-05-02 Werner LEMBERG <wl@gnu.org>
9037 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9039 * NEWS: Document the three new man pages.
9041 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9042 * configure: Updated.
9044 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9046 2000-05-01 Werner LEMBERG <wl@gnu.org>
9048 Added grap support to grog.
9050 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9051 * src/roff/grog/grog.man: Document it.
9053 * doc/groff.texinfo, NEWS: Add info about grap support.
9055 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9056 (with slight fixes by me).
9058 * tmac/groff_tmac.man: New file documenting tmac mechanism.
9059 * tmac/Makefile.sub: Add groff_tmac.man.
9060 * man/roff.man: New file giving overview of roff system.
9061 * man/troff.man: A short reference of troff.
9062 * man/Makefile.sub: Add roff.man and troff.man.
9064 2000-04-30 Werner LEMBERG <wl@gnu.org>
9066 Added grap support to groff.
9068 * src/roff/groff/groff.cc: Implement it.
9069 * src/roff/groff/groff.man: Document it.
9071 * src/devices/grotty/grotty.man: Add cp1047 device.
9072 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9074 * src/roff/groff/groff.man: Ditto.
9075 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9076 * doc/groff.texinfo: Ditto.
9078 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9081 2000-04-29 Werner LEMBERG <wl@gnu.org>
9083 * man/groff_char.man: Add `pc' glyph.
9084 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9085 * tmac/tmac.tty: Add `pc' glyph.
9086 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
9087 we use cp1047 output device.
9089 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9090 there are still hardcoded latin1->unicode values in utf8's font
9092 * configure: Updated.
9093 * NEWS: Minor clarification. Updated.
9095 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
9098 2000-04-28 Werner LEMBERG <wl@gnu.org>
9100 Adding EBCDIC code page 1047.
9102 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9103 font/devcp1047/DESC.proto: New files.
9105 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9106 either ascii/latin1 or cp1047.
9107 * Makefile.in: Use it.
9108 * configure: Updated.
9110 Replacing and/or adding `md' (mathdot) glyph with `pc'
9111 (periodcentered) in all text fonts.
9113 * font/*/*: Change it.
9115 2000-04-27 Werner LEMBERG <wl@gnu.org>
9117 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9119 * configure.in: Add check for strings.h.
9120 * src/include/driver.h: Use HAVE_STRINGS_H.
9121 * src/devices/grolbp/lpb.cc: Remove string.h.
9123 * src/include/groff-getopt.h: New file. It will be used instead of
9124 getopt.h (to be included in lib.h) to avoid endless problems with
9125 picky C++ compilers.
9126 * src/include/lib.h: Use groff-getopt.h.
9127 * src/include/Makefile.sub: Updated.
9129 * configure: Updated.
9130 * Makefile.in: Updated.
9132 * NEWS: Mention EBCDIC support.
9134 2000-04-26 Werner LEMBERG <wl@gnu.org>
9136 * TODO: Some additions.
9138 2000-04-25 Werner LEMBERG <wl@gnu.org>
9140 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9143 2000-04-23 Werner LEMBERG <wl@gnu.org>
9145 * src/roff/troff/troff.man: Minor fixes.
9147 2000-04-22 Werner LEMBERG <wl@gnu.org>
9149 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9150 `.T' string register and the incompatible definition of the `.T'
9151 number register (compared to Unix troff).
9153 * man/groff_char.man: Add some missing characters.
9154 * font/devutf8/NOTES: Update.
9156 2000-04-21 Werner LEMBERG <wl@gnu.org>
9158 * src/include/htmlindicate.h, src/include/lib.h,
9159 src/include/posix.h: Fix copyright.
9161 * src/include/Makefile.sub: Update.
9163 2000-04-20 Werner LEMBERG <wl@gnu.org>
9165 * src/roff/troff/input.cc (input_char_description): Removing
9166 superfluous space char.
9168 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9170 * doc/groff.texinfo: Document EBCDIC.
9172 2000-04-19 Werner LEMBERG <wl@gnu.org>
9174 Introducing `shc' as the glyph name for the soft hyphen character.
9176 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9177 font/devlatin1/R.proto: Use it.
9181 2000-04-18 Werner LEMBERG <wl@gnu.org>
9183 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9184 dependency on ASCII order.
9186 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
9188 * src/libs/libgroff/illegal.c: Added EBCDIC table.
9189 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9191 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9192 to increase portability.
9194 2000-04-15 Werner LEMBERG <wl@gnu.org>
9196 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9197 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9198 the generic `\n' if under OS/390 Unix.
9200 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9202 * configure: Regenerated.
9204 2000-04-14 Werner LEMBERG <wl@gnu.org>
9206 * doc/groff.texinfo: More conversions to @Deffn.
9208 2000-04-12 Werner LEMBERG <wl@gnu.org>
9210 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9213 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9215 2000-04-10 Werner LEMBERG <wl@gnu.org>
9217 * doc/groff.texinfo: More conversions to @Deffn.
9219 2000-04-08 Werner LEMBERG <wl@gnu.org>
9221 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9222 Updated to latest version (glibc 2.1.3).
9224 2000-04-07 Werner LEMBERG <wl@gnu.org>
9226 * doc/Makefile (clean): Include more index files.
9227 Add rule texinfo->dvi.
9229 2000-04-05 Werner LEMBERG <wl@gnu.org>
9231 * doc/groff.texinfo: Added new index `op' for operators. More
9232 info on end of sentence characters. More use of @Deffn.
9234 2000-03-30 Werner LEMBERG <wl@gnu.org>
9236 * */*.man: Adding a note that a whitespace can be inserted between
9237 a command line option and its parameter -- we are using GNU getopt.
9239 * src/roff/groff/groff.man: Add example of `-m mandoc'.
9241 2000-03-28 Werner LEMBERG <wl@gnu.org>
9243 Correct anachronism of calling the man macro file with `-man'
9244 instead of `-m man' etc.
9246 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9247 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9248 load tmac.<package>.
9250 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
9254 * doc/groff.texinfo: Updated.
9256 * tmac/groff_man.man: Copyright added.
9258 2000-03-27 Werner LEMBERG <wl@gnu.org>
9260 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9261 typeset the request resp. escape name with a tt font -- due to a
9262 bug in texinfo.tex it is necessary to use the `-e' switch with
9265 Improving info about usage of groff units.
9269 2000-03-20 Werner LEMBERG <wl@gnu.org>
9271 * doc/groff.texinfo: Added section about man macro package
9272 (I've basically taken groff_man.man). Introducing new indices `ma'
9273 for macros/strings and `gl' for glyph names. Other minor fixes.
9275 * tmac/groff_man.man: Fixed some typos.
9277 2000-03-19 Werner LEMBERG <wl@gnu.org>
9279 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9282 * doc/texinfo.tex: New file.
9284 2000-03-18 Werner LEMBERG <wl@gnu.org>
9286 * doc/groff.texinfo: Improved section on number registers. Other
9289 2000-03-16 Werner LEMBERG <wl@gnu.org>
9291 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
9294 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9295 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9296 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9297 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9299 * src/preproc/grn/grn.man: Better synopsis; added copyright.
9301 * src/roff/grog/grog.man: Updated copyright date.
9303 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
9305 * configure.in: Added test for strdup.
9307 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9310 Replaced dynamic allocation of arrays `[...]' with `new' operator.
9314 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
9316 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9318 2000-03-11 Werner LEMBERG <wl@gnu.org>
9320 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9322 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9323 * src/include/lib.h: Remove some spaces.
9325 2000-03-10 Werner LEMBERG <wl@gnu.org>
9327 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9328 initializers from arguments (some compilers don't like this).
9330 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
9332 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9333 used by pic and eqn to tell grohtml where the graphic regions start
9335 * src/libs/libgroff/Makefile.sub: Use it.
9336 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9337 graphic_start() and graphic_end() from htmlindicate.cc.
9339 2000-03-09 Werner LEMBERG <wl@gnu.org>
9341 * tmac/tmac.safer: Will now work correctly in compatibility mode.
9342 * tmac/groff_man.man: More fixes.
9344 2000-03-08 Werner LEMBERG <wl@gnu.org>
9346 * doc/Makefile: Added texput.log to the `clean' target.
9347 * doc/groff.texinfo: Added info about delimiters for escapes.
9349 2000-03-08 Bernd Warken <bwarken@mayn.de>
9351 * src/preproc/pic/pic.man: Add info on conversion of pic images to
9352 other graphic formats.
9354 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
9356 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9357 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9358 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9361 2000-03-07 Werner LEMBERG <wl@gnu.org>
9363 * doc/groff.texinfo: Spelling fixes.
9365 2000-03-06 Werner LEMBERG <wl@gnu.org>
9367 * tmac/groff_man.man: Completely revised to cover everything in
9370 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9371 Other minor fixings.
9372 * src/roff/troff/env.cc (environment_copy): Improve error message and
9374 * src/roff/troff/TODO: Updated.
9376 * doc/Makefile: Bug fixes -- this is still provisional, though...
9378 * tmac/eqnrc: Small fixes.
9380 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
9382 Adding a request `evc' to copy environments.
9384 * src/roff/troff/env.cc (environment::copy, environment_copy):
9386 * src/roff/troff/env.h: Add prototype.
9388 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
9390 Adding strsep() -- Solaris 8 doesn't have it.
9392 * configure.in: Test it.
9393 * src/devices/grolbp/lbp.cc: Add code.
9395 2000-03-05 Werner LEMBERG <wl@gnu.org>
9397 * src/roff/troff/div.cc (macro_diversion::output,
9398 top_level_diversion::output): Fixing an incompatibility with
9399 original troff: \x'0' updates the .a register also. Thanks to
9400 <Andries.Brouwer@cwi.nl> for pointing this out.
9401 * doc/groff.texinfo: Document it.
9403 * Makefile.in: Create Makefile.dep if necessary before calling the
9404 submake process to avoid warning about nonexistent file.
9406 * NEWS, PROJECTS: Updated.
9408 2000-03-04 Werner LEMBERG <wl@gnu.org>
9410 * tmac/troffrc: Add tmac.lbp.
9412 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
9414 * tmac/tmac.lbp: New file.
9415 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9418 2000-03-03 Werner LEMBERG <wl@gnu.org>
9420 * Makefile.in: Fixing $(subdir).
9422 * README, NEWS: Small fixes.
9424 * test-groff: Adding path to grolbp.
9426 * configure.in: The (new) file src/xditview/Imakefile.in will be
9427 also configured -- it is now possible to build gxditview in a
9428 directory different from $srcdir.
9430 2000-03-02 Blake McBride <blake@florida-software.com>
9432 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9434 * MORE.STUFF: Added website of bell labs and info about plot2dev.
9436 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
9438 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9441 2000-02-29 Werner LEMBERG <wl@gnu.org>
9443 Adding GNU getopt to the groff distribution.
9445 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9447 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9448 * aclocal.a4: Remove GROFF_GETOPT function.
9449 * configure.in, Makefile.in, PROBLEMS: Update.
9450 * src/include/lib.h: Replace getopt tests with getopt.h.
9451 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9453 * doc/groff.texinfo: Further checking/updating. Adding more index
9456 * man/groff_out.man: Fix nroff mode activation (for emacs).
9457 * man/groff_font.man: Add missing ligature.
9459 2000-02-28 Werner LEMBERG <wl@gnu.org>
9461 * doc/groff.texinfo: Further checking/updating. Adding more index
9464 * src/devices/grolbp/grolbp.man: Added a comment line at the
9465 beginning of the file (similar to shell scripts) which indicates
9466 that `tbl' should be used as a preprocessor.
9468 2000-02-27 Blake McBride <blake@florida-software.com>
9470 Adapting groff to MS Visual C++ 6.0 compiler (tested with
9471 Windows NT 4.0). Uses _MSC_VER define where necessary.
9473 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9474 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9475 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9476 src/include/lib.h, src/libs/libgroff/errarg.cc,
9477 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9478 src/preproc/refer/label.y, src/preproc/refer/label.cc,
9479 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9480 src/roff/troff/div.cc, src/roff/troff/env.cc,
9481 src/roff/troff/input.cc, src/roff/troff/node.cc,
9482 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9483 if_to_a() to avoid name clashes.
9484 * src/include/posix.h: Don't use unistd.h.
9485 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9486 clause for integrating non-Unix xtmpfile() code.
9487 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9488 structure; use "rt" for popen() in pipe_source(); add getpid()
9490 * src/roff/troff/node.cc: Use special versions of popen() in
9491 real_output_file() and pclose() in ~real_output_file().
9493 2000-02-27 Werner LEMBERG <wl@gnu.org>
9495 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9496 LBP-8 series laser printers). This code has been contributed by
9497 Francisco Andrés Verdú <pandres@dragonet.es>.
9499 * src/devices/grolbp/*: The grolbp output device.
9500 * font/devlpb/*: The font description files.
9501 * Makefile.in: Add grolpb and devlbp subdirectories.
9503 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9504 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9507 * doc/groff.texinfo: Further checking/updating. Adding more index
9512 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9514 * man/groff_font.man: Adding info about obsolete DESC keywords.
9515 * src/devices/grolj4/grolj4.man: Documenting additional DESC
9518 2000-02-26 Werner LEMBERG <wl@gnu.org>
9520 * src/preproc/grn/grn.man: Added info about the gremlin file format
9521 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9523 2000-02-25 Werner LEMBERG <wl@gnu.org>
9525 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9526 friends to be non-integer.
9528 * src/preproc/grn/grn.man: Document it.
9530 * doc/groff.texinfo: Further checking/updating. Adding more index
9533 2000-02-24 Werner LEMBERG <wl@gnu.org>
9535 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9536 line thicknesses to be integer multiples of this value.
9538 * src/preproc/grn/grn.man: Commenting out the -s option -- the
9539 corresponding code doesn't work (yet).
9541 * doc/groff.texinfo: Further checking/updating. Adding more index
9544 2000-02-23 Werner LEMBERG <wl@gnu.org>
9546 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9547 specify line thickness instead of base units. The new default
9548 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9549 thick lines respectively.
9551 Removed unused variable `prevval'.
9553 * src/preproc/grn/grn.man: Updated.
9555 2000-02-22 Werner LEMBERG <wl@gnu.org>
9557 * src/preproc/grn/main.cc: Slight formatting.
9559 * src/roff/groff/groff.man: Formatting fix.
9560 * src/preproc/grn/grn.man: Ditto.
9562 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9564 * doc/groff.texinfo: Further checking/updating.
9566 2000-02-21 Werner LEMBERG <wl@gnu.org>
9568 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9570 * test-groff: Added grn subdir to path.
9572 * doc/groff.texinfo: Some restructing and other small improvements.
9574 * src/roff/groff/groff.cc (help): Fixed info string.
9576 2000-02-20 Werner LEMBERG <wl@gnu.org>
9578 * doc/meref.me: Fix description of .GS request.
9580 * src/roff/troff/troff.man: Fixing typo.
9582 Adding the `grn' preprocessor for gremlin graphic files.
9584 * src/preproc/grn/*: This is the Berkeley distribution written by
9585 David Slattengren and Barry Roitblat, adapted to groff by Daniel
9586 Senderowicz and Werner Lemberg.
9588 * doc/grnexampl.{me,g}: A sample for grn.
9590 * Makefile.in: Added subdirectory entry for grn.
9592 * src/roff/groff/groff.cc: Added support for grn. It can be now
9593 called with the switch `-g'.
9595 * src/roff/groff/groff.man: Updated.
9597 * src/roff/grog/grog.{man,pl,sh}: Updated.
9601 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
9603 * src/include/lib.h: Added xtmptemplate and made xtmpfile
9604 parametrically polymorphic.
9606 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9607 and the alterations to xtmpfile.
9608 xtmpfile can be requested to return the filename created
9609 and asked not to unlink the temp file. The default behaviour
9610 if parameters are absent is exactly the same as before.
9612 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
9614 A new request `length' is available which returns the length of a
9615 string in a number register:
9617 * src/roff/troff/input.cc (length_macro): Implement it.
9618 * src/roff/troff/input.cc (init_input_requests): Register it.
9620 2000-02-11 Werner LEMBERG <wl@gnu.org>
9622 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9623 of the `substring' request.
9625 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9628 * src/roff/troff/TODO, NEWS: Updated.
9630 2000-02-09 Werner LEMBERG <wl@gnu.org>
9632 * src/roff/groff/groff.man: Added an example.
9634 2000-02-06 Werner LEMBERG <wl@gnu.org>
9636 I've considerably modified the directory structure of the
9637 distribution to get a more vertical layout. For example, the number
9638 of top level directories has been reduced from 42 to 6.
9640 As a consequence, many changes, especially to the makefiles, were
9643 * The makefile variables `top_builddir' and `top_srcdir' have been
9644 introduced. Virtually all relative paths have been replaced with
9645 absolute ones using these two variables.
9647 * Dependencies (in the files `Makefile.dep') are no longer part of
9648 the distribution. Instead, they are created during a `make install'
9649 in the build directory.
9651 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9652 make `top_srcdir' and `top_builddir' absolute.
9656 * Man pages now depend on the files `VERSION' and `REVISION'.
9658 * The added shell script `mkinstalldirs' will replace `mkdir' in
9661 * VERSION: Version number increased to 1.16.
9663 2000-02-04 Werner LEMBERG <wl@gnu.org>
9665 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9667 * Makefile.in: Removed $(tmac_m) since it is no longer needed
9668 (after an update of the mm stuff).
9670 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9672 2000-02-03 Werner LEMBERG <wl@gnu.org>
9674 The .psbb request will now also accept Mac PS images (i.e. using LF
9675 as the EOL character).
9677 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9678 (with slight modifications).
9679 * troff/input.cc (do_ps_file): Use it.
9681 * test-groff: Add grohtml and grolj4 output devices to PATH.
9683 2000-01-30 Werner LEMBERG <wl@gnu.org>
9685 * NEWS, MORE.STUFF: Updated.
9687 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
9689 Add the `srand' command to pic.
9691 * pic/lex.cc, pic/pic.y: Implement it.
9692 * pic/pic.man: Document it.
9693 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9695 2000-01-30 Werner LEMBERG <wl@gnu.org>
9697 Add a new request `.psbb'. This does exactly what the external
9698 program psbb did. It scans a PostScript image file for a
9699 %%BoundingBox comment and extracts the bounding box values (in
9700 PostScript units) which are then stored in the four new (read-only)
9701 number registers `llx', `lly', `urx', and `ury'.
9703 This will allow the usage of the .PSPIC macro without worrying
9704 about unsafe behaviour of groff, i.e., it will work without the
9705 `-U' switch of groff.
9707 * troff/input.cc: Implement it.
9708 * tmac/tmac.pspic: Use it.
9709 * troff/troff.man, grops/grops.man, NEWS: Document it.
9710 * psbb/*, Makefile.in: Remove it since it is no longer needed.
9712 This is bloody C code simply adapted from psbb.c! Any improvements
9715 2000-01-29 Werner LEMBERG <wl@gnu.org>
9717 * man/groff_font.man: Minor clarifications.
9721 2000-01-28 Werner LEMBERG <wl@gnu.org>
9723 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9725 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
9727 * man/groff_font.man: Brought up to date regarding tcommand
9729 * libgroff/font.cc: Handle everything after `--' as a comment
9731 * devps/*: Added comment delimiter inside devps font files.
9733 2000-01-28 Werner LEMBERG <wl@gnu.org>
9735 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9736 \fC...\fP (which now works as expected).
9738 * troff/troff.man: Fix typo.
9740 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
9742 Completed the pass_filenames implementation in troff.
9744 * libdriver/input.cc: Will read the new `F' tcommand.
9745 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9746 * troff/input.cc: Use it.
9748 2000-01-26 Werner LEMBERG <wl@gnu.org>
9750 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
9751 font will now be updated even if an invalid font is selected.
9753 2000-01-24 Werner LEMBERG <wl@gnu.org>
9755 * doc/homepage.ms: Updated for new tmac.arkup.
9757 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9759 * tmac/tmac.arkup: Cleanup.
9761 Added `\&' to .HTML macro to `leave vertical mode', so to say.
9763 Removed obsolete .LINK macro completely.
9765 The macros .URL, .FTP, and .MAILTO now accept a third argument which
9766 will be immediately appended to the second argument (to be used with
9767 punctuation, for example).
9769 Disabled .CDFTP macro temporarily for security reasons.
9771 * tmac/groff_markup.man: Complete revision for latest changes in
9772 tmac.arkup -- note that it does not yet format correctly with
9775 2000-01-23 Bruno Haible <haible@clisp.cons.org>
9777 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9778 * devutf8/R.proto: Add mappings for wp, lh, rh.
9779 * devutf8/NOTES: Updated.
9781 2000-01-23 Werner LEMBERG <wl@gnu.org>
9783 * doc/groff.texinfo: Updated version/copyright info.
9785 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
9787 Added support for two new directives in device descriptions:
9788 `pass_filenames' (to pass the input file name to the output device)
9789 and `use_charnames_in_special' (to support e.g. accented characters
9790 in the `X' request).
9792 * include/font.h, troff/charinfo.h: Declare it.
9794 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9796 * devhtml/DESC: Use it.
9798 * troff/input.cc: New function encoded_char.
9800 * troff/token.h: Add test for `specialness'.
9802 2000-01-21 Werner LEMBERG <wl@gnu.org>
9804 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9805 mistake from the list of files to be installed.
9807 2000-01-18 Werner LEMBERG <wl@gnu.org>
9809 * README: Added info how to apply patches.
9811 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
9813 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
9815 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
9817 * troff/input.cc: Add support for troffrc-end.
9819 * tbl/main.cc: Altered to issue table-start and table-end special
9820 characters if using the html device.
9822 * devhtml/*: Modified font files to incorporate html encoding of
9825 * tmac/groff_markup.man: New file documenting tmac.arkup.
9827 * tmac/troffrc-end: New file. This is invoked after all user
9828 specified macros. Currently used by the html device to include
9829 tmac.html. Thus no need for users to specify -mhtml anymore.
9831 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9832 (MAN7): Add groff_markup.man.
9834 * tmac/tmac.an, tmac/tmac.html: Small html updates.
9836 * tmac/troffrc: tmac.arkup will now be called for the html device.
9838 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9839 extra device specific information about fonts.
9841 * doc/homepage.ms: New file. It is an example how an HTML home page
9842 could look like with grohtml.
9844 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
9846 2000-01-12 Bruno Haible <haible@clisp.cons.org>
9848 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
9851 * devutf8/NOTES: Updated.
9853 2000-01-08 Bruno Haible <haible@clisp.cons.org>
9855 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9856 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9857 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9858 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9859 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9860 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9861 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9862 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9865 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9867 2000-01-12 Fabrizio Polacco <fab@prosa.it>
9869 grolj4: Paper size will be searched case-insensitively.
9871 * include/lib.h: Add check for strcasecmp().
9872 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9873 * configure.in: Check for strcasecmp().
9875 2000-01-11 Werner LEMBERG <wl@gnu.org>
9877 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9880 2000-01-10 Werner LEMBERG <wl@gnu.org>
9882 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9885 Add a new read-only register, `.Y', which contains the groff
9888 * troff/input.cc (init_input_requests): Define it.
9889 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9890 * doc/groff.texinfo, troff/troff.man: Document it.
9892 * libgroff/Makefile.sub (version.cc): Add definition of
9893 `Version_string[]', consisting of `<major>.<minor>.<revision>'
9894 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9895 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9896 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9897 troff/input.cc, pfbtops/pfbtops.c: Use it.
9899 2000-01-10 Fabrizio Polacco <fab@prosa.it>
9901 Add a revision scheme to the groff package.
9903 * REVISION: New file.
9904 * libgroff/Makefile.sub (version.cc): Use it to define
9905 `revision_string[]'.
9906 * grops/psrm.cc: Use revision_string (converted to an unsigned
9907 integer) in constructor of resource_manager.
9909 2000-01-10 Bruno Haible <haible@clisp.cons.org>
9911 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9913 * Makefile.in (DEVDIRS): Add devutf8.
9914 * grotty/tty.cc: Include device.h.
9915 (glyph): Change type of `code' to `unsigned int'.
9916 (tty_printer): New field is_utf8. Constructor takes device argument.
9917 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9918 (tty_printer::add_char): Change type of first arg to `unsigned int'.
9919 (tty_printer::put_char): New function.
9920 (tty_printer::end_page): Use put_char() instead of ::putchar().
9921 (make_printer): Pass device to tty_printer constructor.
9922 * nroff.sh: Determine default device by calling 'locale'. As a
9923 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9924 Recognize UTF-8 locales.
9925 * tmac/eqnrc: Recognize utf8 like latin1.
9926 * tmac/troffrc: Device utf8 needs tmac.tty.
9928 2000-01-07 Werner LEMBERG <wl@gnu.org>
9930 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9932 2000-01-07 Paul Eggert <eggert@twinsun.com>
9934 Add a new predefined writeable number register, `year',
9935 which contains the current year.
9937 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9938 * tmac/tmac.s: Use it.
9939 * troff/input.cc (init_registers): Initialize it.
9941 2000-01-06 Werner LEMBERG <wl@gnu.org>
9943 * PROBLEMS: Fixed typo.
9945 2000-01-04 Paul Eggert <eggert@twinsun.com>
9947 * PROBLEMS: Add Y2k advice for the yr number register.
9949 2000-01-03 Paul Eggert <eggert@twinsun.com>
9951 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9953 2000-01-02 Werner LEMBERG <wl@gnu.org>
9955 * tmac/tmac.arkup: Slight modification of macros to provide better
9956 appearance for non-HTML formats.
9958 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
9960 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9961 does not automatically translate to malloc(n) on all OSes
9962 (e.g., SunOS) so do it explicitly. Also, check the returned
9965 2000-01-01 Werner LEMBERG <wl@gnu.org>
9967 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
9969 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9970 expects this variable
9972 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
9974 * doc/Makefile: Added instructions to create HTML and text
9975 versions of some files.
9977 1999-12-31 Werner LEMBERG <wl@gnu.org>
9979 * Updated INSTALL.gen.
9981 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9982 better resp. correctly with non-HTML devices.
9984 Version 1.15 released
9985 =====================
9987 1999-12-28 Werner LEMBERG <wl@gnu.org>
9989 * NEWS, VERSION: Changed to 1.15
9991 1999-12-27 Paul Eggert <eggert@twinsun.com>
9993 * nroff/nroff.man: -S is safer, not safe.
9995 * groff/groff.cc (main): Use `safer', not `safe', in variable
9996 names. This does not change the behavior.
9998 * troff/input.cc (main): Likewise.
10000 * nroff/nroff.sh: Likewise.
10002 * troff/input.cc (prepend_string): New function.
10003 (main): Prepend -msafer, so that we check macro libraries for
10006 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10008 Version 1.14 released
10009 =====================
10011 1999-12-26 Werner LEMBERG <wl@gnu.org>
10013 * NEWS, VERSION: Changed to 1.14.
10015 1999-12-24 Werner LEMBERG <wl@gnu.org>
10017 * refer/refer.cc: Fixing the last fix.
10019 Version 1.13 released
10020 =====================
10022 1999-12-23 Werner LEMBERG <wl@gnu.org>
10024 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10029 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10031 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10032 document conventions, the version number must be a real.
10034 Version 1.12.1 released
10035 =======================
10037 1999-12-22 Werner LEMBERG <wl@gnu.org>
10039 * VERSION: Changed to 1.12.1.
10041 1999-12-22 Alan Rooks <arooks@istar.ca>
10043 * refer/refer.cc (do_file): Slight modification to satisfy the
10044 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10047 1999-12-20 Werner LEMBERG <wl@gnu.org>
10049 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10052 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10053 list of unsafe requests.
10055 * pic/pic.man: Fixed a typo.
10057 * man/groff_out.man: Fixed a typo.
10059 1999-12-18 Werner LEMBERG <wl@gnu.org>
10061 * Makefile.in: Doc fixes.
10063 1999-12-17 Fabrizio Polacco <fab@prosa.it>
10065 * groff/groff.cc: Missing `U' option added to getopt().
10067 * troff/troff.man: Missing `U' option added to synopsis.
10069 Version 1.12 released
10070 =====================
10072 1999-12-14 Werner LEMBERG <wl@gnu.org>
10074 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10077 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10078 with the more appropriate terms `safer' and `unsafe'.
10080 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10081 sys_nerr and sys_errlist[].
10083 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10085 * pic/pic.y, pic/pic.cc: Added check for fmod().
10087 1999-12-13 Werner LEMBERG <wl@gnu.org>
10089 * VERSION: Changed to 1.12.
10091 Here some patches from various sources; most of them taken from
10092 the Debian distribution.
10094 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10095 tmac/Makefile.sub: New files copied directly from the NetBSD
10096 distribution. Probably, some additional adaptation later on is
10099 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10100 of unsafe requests.
10102 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10103 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10104 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
10105 (`-S') is now the default.
10107 * README, NEWS: Updated.
10109 1999-12-09 Werner LEMBERG <wl@gnu.org>
10111 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10113 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10115 1999-12-06 Werner LEMBERG <wl@gnu.org>
10117 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10118 grief than relief today. Additionally, it is against the GNU
10121 * configure: Recreated.
10123 1999-12-05 Werner LEMBERG <wl@gnu.org>
10125 * configure.in: Added GROFF_LIBM.
10127 * configure: Recreated.
10129 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10132 * Makefile.in: Added definition of $(LIBM).
10134 * Makefile.comm (LIBM): Removed.
10136 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10138 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
10140 * doc/Makefile: Added rule for generation pic.html.
10142 (clean): Files produced by grohtml will be removed also.
10144 * doc/pic.ms: Small fix.
10146 * tmac/tmac.html: Fixed suppression of headers.
10148 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
10150 * tmac/tmac.html: Fixing horizontal arrows.
10152 Turning off hyphenation.
10154 * tmac/tmac.an: Improved support for grohtml; better indentation,
10155 no footers/headers.
10157 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
10159 * tmac/tmac.arkup: Added CDFTP macro
10161 * tmac/tmac.html: All headers are turned off for ms, me, and mm
10164 * tmac/troffrc: Some additions for HTML stuff.
10166 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
10168 * tmac/tmac.html: Small changes.
10170 1999-09-26 Werner LEMBERG <wl@gnu.org>
10172 * doc/groff.texinfo: Minor fixes.
10174 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
10176 * devhtml/TR: Changed spacewidth to 3.
10178 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10180 * tmac/tmac.html: Moved markup macros to tmap.arkup.
10182 * tmac/tmac.arkup: New file.
10184 * grohtml/ChangeLog: New file.
10186 1999-09-16 Werner LEMBERG <wl@gnu.org>
10188 * doc/groff.texinfo (Common Features): Added Copying chapter.
10189 Changed format to @smallbook.
10191 1999-09-15 Werner LEMBERG <wl@gnu.org>
10193 * NEWS: Added info about groff.texinfo.
10195 * doc/groff.texinfo: Will now compile (using texi2dvi) without
10198 1999-09-14 Werner LEMBERG <wl@gnu.org>
10200 * groff/groff.man: More updates.
10202 1999-09-13 Werner LEMBERG <wl@gnu.org>
10204 * doc/groff.texinfo: New file. This manual is still very
10205 rudimentary. It has been originally contributed by Trent
10206 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10209 * INSTALL: Added information about the `doc' subdir
10211 * troff/troff.man: Minor fixes.
10213 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10216 * troff/input.cc (usage): Added missing `-ffam' to usage message.
10218 * Makefile.in (dist): groff-$(version).tar.gz must be removed
10219 also, otherwise it is included itself in another call of `make
10222 * groff/groff.cc (synopsis): Removed superfluous space.
10224 * PROJECTS, PROBLEMS, NEWS: Updated.
10226 * VERSION: Updated to 1.12beta.
10228 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
10230 * README: Updated: Included documentation about CVS repository,
10231 mailing lists, and daily snapshots.
10233 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10235 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
10237 * tmac/tmac.an: If the tag didn't fit into the space that the
10238 macro `TP' specifies, the rest of the tag went into the space for
10241 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
10243 * grolj4/lj4.cc: Added duplex printing (option `-d').
10245 * grolj4/grolj4.man: Document duplex printing.
10247 1999-09-12 Werner LEMBERG <wl@gnu.org>
10249 * doc/Makefile (pic.ps): Fixed rule which caused problems with
10250 non-GNUish sed programs.
10252 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10255 * configure.in (LIBS): Added `-lc'
10257 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10259 * pic/tex.cc (solid_arc): Casting M_PI to double.
10261 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10263 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10264 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10265 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10267 * groff/groff_man.man: New file. This manual page was originally
10268 written for the Debian GNU/Linux system by Susan G. Kleinmann
10271 * eqn/list.cc (list_box::compute_metrics,
10272 list_box::compute_sublist_width): Removed variable declaration to
10273 avoid shadowing warnings.
10275 * grops/psrm.cc (resource_manager::process_file): Ditto.
10277 * tfmtodit/tfmtodit.cc (main): Ditto.
10279 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10280 to avoid shadowing warnings.
10282 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10283 shadowing loop variable.
10285 * groff/groff.man, troff/troff.man: Added doc about grohtml.
10287 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
10289 New grohtml frontend to convert groff input to html.
10291 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10293 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10295 * tmac/eqnrc: Added html device.
10297 * tmac/tmac.html: New file.
10299 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10300 (troff_output::start_picture, troff_output::finish_picture),
10301 tbl/main.cc (process_input_file):
10302 Surrounded output with `graphics_start' and `graphics_end' so that
10303 the html driver can identify non-text portions.
10305 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10306 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10307 grotty/tty.ps (tty_printer::set_char): Additional parameter
10310 * include/printer.h: Class printer: New function
10311 set_char_and_width; new variables (is_char_named, is_named_set,
10312 named_command, named_char_s, named_char_n) to hold information
10313 about named characters -- needed by the html driver.
10315 * libdriver/printer.cc (printer::set_ascii_char,
10316 printer::set_special_char): Use set_char_and_width.
10318 * devhtml/*: New device files for html driver.
10320 * grohtml/*: New driver grohtml.
10322 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
10324 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10327 1999-09-11 Luke Mewburn <lukem@netbsd.org>
10329 * libgroff/string.cc (search): Small fix to test against NULL
10332 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
10334 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10335 \b'abc') were stacked in reverse order when processed in a
10338 * troff/node.h: Added `*last' to struct `node' to make the above
10341 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10342 The default scale for the 'f' and 't' graphics functions were 'm'
10343 rather than 'u' (i.e., no scaling).
10345 1999-09-11 Peter Miller <peterm@jna.com.au>
10347 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10348 do_file), soelim/soelim.man: Added `-I file' option to soelim,
10349 defining include paths.
10351 * soelim/soelim.cc (include_path_append): New function.
10353 1999-09-11 Larry Jones <larry.jones@sdrc.com>
10355 * tbl/main.cc (process_options): Unix (at least Documenter's
10356 Workbench) tbl allows arbitrary non-alpha characters between
10359 1999-09-11 Paul Eggert <eggert@twinsun.com>
10361 Y2k fixes. Don't assume that the current year precedes 2000.
10363 * doc/meref.me: Add \n(y2, \n(y4.
10365 * tmac/doc-common (Yr): New number register.
10366 (Dd): Don't assume current year precedes 2000.
10368 * tmac/tmac.e (td): Likewise.
10369 (y2, y4): New number registers.
10371 * pic/pic.man: Update reference for pic paper to May, 1991
10374 1999-09-11 Werner LEMBERG <wl@gnu.org>
10376 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10377 Removed quotation marks which prevented correct expansion of
10380 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10382 1999-09-10 Werner LEMBERG <wl@gnu.org>
10384 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10387 * Removed configure.old.
10389 1999-08-31 Werner LEMBERG <wl@gnu.org>
10391 * VERSION: Updated to 1.11.1
10393 1999-05-27 Werner LEMBERG <wl@gnu.org>
10395 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10397 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10398 added quotations around $(tmac_wrap) to avoid syntax error if
10401 * configure: Newly generated using autoconf 2.13.
10403 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10405 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
10407 * README, PROJECTS, NEWS, INSTALL, VERSION,
10408 doc/Makefile. doc/pic.ms, groff/groff.man:
10409 Prepare for 1.11 release. No code changes.
10410 Documentation for pic added (doc/pic.ms).
10412 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
10414 * Version 1.10 released.
10416 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
10418 * afmtodit/afmtodit.pl: Avoid comment on first line.
10420 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
10422 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10423 * configure.in: Call it.
10425 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10426 (distfiles): Doesn't depend on config.log or config.cache.
10428 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
10430 * grog/grog.sh: Use print "" rather than print in END rule.
10432 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
10434 * tbl/main.cc (process_data): Don't give error for excess data
10435 entries that are comments.
10437 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
10439 * tbl/main.cc (process_data): Fix case where new for-scope rules
10440 silently change meaning of code.
10442 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
10444 * troff/env.cc (hyphenate): Loop over all consecutive sequences
10445 of non-zero hyphenation codes.
10447 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
10449 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10451 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
10453 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10455 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
10457 * tmac/tmac.andoc: Make it work in compatibility mode.
10459 * refer/token.h (token_info::is_range_sep): New function.
10460 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10461 * refer/ref.cc (reference::output): More sophisticated check for
10464 * devps/prologue.ps (MANUAL): New procedure.
10465 * grops/ps.cc (main): New -m option.
10466 (usage): Include -m.
10467 (ps_printer::~ps_printer): Implement -m.
10469 * aclocal.m4 (GROFF_G): New macro.
10470 * configure.in: Call it.
10471 * Makefile.in (g): Provided by configure.
10473 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10475 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
10478 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10479 (tmac_m, tmac_s): Deleted.
10480 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10481 tmac_s_prefix): New variables.
10482 (MDEFINES): Change accordingly.
10483 * Makefile.comm (.man.n): Use new TMAC_* variables.
10484 * configure.in (GROFF_TMAC): Call.
10485 * aclocal.m4 (GROFF_TMAC): Define.
10486 * tmac/Makefile.sub (stamp_wrap): New target.
10487 (install_data, uninstall_sub): Handle macro wrapping.
10489 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
10491 * tbl/main.cc (main): Ignore -T option.
10493 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
10495 * devlj4/generate/special.map: Add definition of \(nb.
10497 * tmac/tmac.dvi: Add definition of \(nb.
10499 * troff/dictionary.c (dictionary::dictionary): association::v gets
10500 initialized by association::association.
10502 * tmac/Makefile.sub: Avoid using temporary files when installing.
10504 * troff/env.cc (environment::set_font): Make bad font number a
10507 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10509 * Makefile.in (datadir): Use share rather than lib.
10511 * groff/groff.cc (basename): Rename to xbasename.
10513 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
10515 * Makefile (CCLIBS): Don't use.
10516 * Makefile.ccpg: Likewise.
10518 * acgroff.m4: Rename to...
10519 * aclocal.m4: Modify extensively for autoconf 2.
10520 * configure.in: Likewise.
10521 * Makefile.in: Likewise.
10523 * groff/pipeline.c (const): Declare as empty if __STDC__ not
10525 (xstrsignal): Check for definition of NSIG. Conditionalize
10526 on SYS_SIGLIST_DECLARED. Make return type const.
10528 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
10530 * troff/input.cc (interpolate_macro): Rephrase missing space
10533 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10535 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10536 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10537 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10538 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10539 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10540 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10541 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10542 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10543 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10544 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10545 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10548 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
10550 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10552 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10554 (macro_iterator::macro_iterator): Add additional argument.
10556 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
10558 * troff/div.cc (vertical_size::vertical_size): In place of integer
10559 specifying line spacing use cunits specifying post vertical
10561 (macro_diversion::output, top_level_diversion::output): Likewise.
10562 * troff/div.h: Change declarations accordingly.
10563 * troff/env.cc (pending_output_line): Replace ls field by post_vs
10565 (pending_output_line::pending_output_line,
10566 pending_output_line::output, environment::output,
10567 environment::output_line, environment::output_title,
10568 environment::hyphenate_line): In place of
10569 integer specifying line spacing use cunits specifying post vertical
10571 (environment::environment): Add post_vertical_spacing and
10572 prev_post_vertical_spacing arguments.
10573 (environment::get_post_vertical_spacing): New function.
10574 (environment::total_post_vertical_spacing): New function.
10575 (environment::post_vertical_spacing): New function.
10576 (init_env_requests): Initialize pvs request and .pvs register.
10577 * troff/env.h: Change declarations.
10579 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
10581 * tmac/tmac.pspic: Immediately remove the temporary file.
10583 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
10585 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10586 height is specified.
10588 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
10590 * tbl/table.c (struct vertical rule, class table_entry): Use int
10591 not short for start_row and end_row.
10593 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
10595 * troff/input.cc (trapping_blank_line, blank_line_macro): New
10597 (diverted_space_node::reread, process_input_stack): Call
10598 trapping_blank_line() rather than blank_line().
10599 (init_input_requests): Bind "blm" to blank_line_macro().
10601 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10603 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
10605 * troff/env.cc (environment::possibly_break_line): Require that
10606 width total excluding width of final space node be greater than
10607 the target text length.
10609 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
10611 * troff/node.cc (kern_pair_node::vertical_extent): New function.
10613 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
10615 * troff/node.cc (charinfo_node): New class.
10616 (glyph_node, composite_node): Derive from charinfo_node. Change
10617 member functions accordingly.
10619 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
10621 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10623 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
10625 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10627 * devps/generate/textmap (notsubset): Add.
10629 * tmac/tmac.a4: New file.
10631 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
10633 * pic/main.cc (had_parse_error): New variable.
10634 (do_picture, do_whole_file): Set had_parse_error if yyparse()
10636 (main): Return 1 if had_parse_error is true.
10638 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
10640 * grolj4/lj4.cc (main): Avoid use of strtoul.
10642 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
10644 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10645 iso_8859_1 or $LESSCHARSET is latin1.
10647 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
10649 * hpftodit: New directory.
10650 * Makefile.in (CCPROGDIRS): Add hpftodit.
10651 * devlj4/generate: New directory.
10653 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
10655 * configure.in: Don't use AC_VFORK.
10656 * groff/pipeline.c (run_pipeline): Use fork() always.
10658 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
10660 * grops/ps.cc (main): Use %1 not %s in error message for -w.
10662 * Makefile.in (CCPROGDIRS): Add grolj4.
10663 (DEVDIRS): Add devlj4.
10664 * grolj4, devlj4: New directories.
10665 * tmac/troffrc: Handle lj4.
10666 * tmac/tmac.lj4: New file.
10668 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
10670 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10672 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
10674 * troff/input.cc (do_if_request): At end of second string, switch
10675 environments before getting next token.
10677 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
10679 * devps/psstrip.sed: Split rule that strips whitespace on either
10680 side of delimiters.
10682 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
10684 * troff/node.h (font_family::make_definition): Add return value to
10685 declaration. * troff/symbol.h (symbol::operator==,
10686 symbol::operator!=): Likewise.
10688 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
10690 * groff/groff.cc (main, help, synopsis): Handle -S.
10691 (possible_command::insert_arg): New function.
10693 * tmac/tmac.safer: New file.
10694 * tmac/msafer.man: New file.
10695 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10697 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
10699 * pic/pic.h, pic/main.cc (safer_flag): New variable.
10700 * pic/pic.y (placeless_element): Avoid unsafe operations if
10701 `safer_flag' is set.
10702 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10704 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
10706 * eqn/lex.cc (get_token): Put call to add_context() in block to
10707 work around Sun C++ 4.0 bug.
10709 * include/stringclass.h (operator +): Use ?: instead of `if' to
10710 work around Sun C++ 4.0 bug.
10712 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
10714 * tbl/main.cc (process_format): Accept - as a synonym for the _
10717 * libbib/index.cc (minus_one): Don't declare as const.
10719 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
10721 * troff/input.cc (get_char_for_escape_name): Push back a newline.
10723 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
10725 * troff/input.cc (write_macro_request): New function.
10726 (init_input_requests): Bind write_macro_request to writem.
10728 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
10730 * tmac/tmac.s (@EN): Turn filling back on even if there was no
10733 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10735 * tmac/tmac.s (@TS): Renamed from TS.
10736 (TS): Call LP then TS again.
10737 (cov*ab-init): Alias @TS to TS.
10739 * tmac/tmac.s: Allow QP or RS to initialize.
10741 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
10742 Move initializations of PS and LL here.
10743 (par@init): Don't initialize HY. Avoid changing environment 0.
10744 (par*env-init): Don't all par@reset.
10746 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
10748 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10750 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
10752 * Makefile.in (MDEFINES): Add LDFLAGS.
10753 (LDFLAGS): Add definition line.
10755 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
10757 * troff/input.cc (get_optional_char): Split off error check into...
10758 (check_missing_character): New function.
10759 * troff/token.h: Declare it.
10760 * troff/env.cc (margin_character): Don't call get_optional_char.
10761 Only call tok.next() after making the node.
10763 * include/lib.h (getopt): Make 2nd argument char *const *.
10765 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
10767 * nroff/conftest.sh: Deleted.
10769 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
10771 * pic/make-dos-dist: Deleted.
10773 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
10775 * devps/psstrip.sed: Strip comments before stripping trailing
10778 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
10780 * Version 1.09 released.
10782 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
10784 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10786 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
10788 * libgroff/font.cc (font::load_desc): Fix typo in error message.
10790 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
10792 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10793 about returning without a value.
10795 * troff/charinfo.h (charinfo::get_special_translation): Cast
10796 TRANSLATE_NONE to int.
10798 * refer/token.cc (lookup_token, store_token): Remove bogus loop
10799 test. Fix test so that it works with n unsigned.
10801 * pic/pic.y (defaults_table): Fully bracket initializer.
10802 * pic/lex.cc (lookup_keyword): Likewise.
10803 * eqn/lex.cc (token_table, def_table): Likewise.
10804 * eqn/box.cc (param_table): Likewise.
10805 * troff/input.cc (warning_table): Likewise.
10806 * libgroff/font.cc (table): Likewise.
10807 * grops/ps.cc (ps_printer::special): Likewise.
10808 * grops/psrm.cc (resource_manager::process_file): Likewise.
10809 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10810 * refer/command.cc (command_table): Likewise.
10811 * addftinfo/addftinfo.cc (param_table): Likewise.
10813 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10814 about temp's being unused.
10815 (unused): New function.
10817 * groff/pipeline.cc: Declare c_fatal.
10819 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10822 * libbib/index.cc (index_search_item::load): Prevent compiler
10823 warnings about fd_closer's being unused.
10824 (unused): New function.
10826 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
10828 * troff/input.cc (copy_mode_error): Make `prefix' static.
10831 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10833 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10834 HAVE_CC_OSFCN_H and modify accordingly.
10836 * troff/input.cc (init_charset_table): radicalex overlaps
10839 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10840 udodo!hans@relay.NL.net).
10841 * groff/configure.in: Call it.
10843 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10844 * groff/configure.in: Call it.
10845 * include/lib.h: Conditionalize declaration of pclose.
10847 * troff/div.cc (last_page_number): New global variable.
10848 (top_level_diversion::begin_page): Exit if we just printed the
10850 * troff/div.h (last_page_number): Declare it.
10851 * troff/input.cc (parse_output_page_list): Set last_page_number.
10853 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10854 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10855 tmac/tmac.X: Likewise.
10856 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10857 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10859 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
10861 * tmac/doc-ditroff (hK): Remove groff specific code which
10862 prevented page-breaks between separate manual entries. If this is
10863 the first page, don't set the page number to 1.
10865 * acgroff.m4 (GROFF_POSIX): New macro.
10866 * configure.in: Use it.
10868 * troff/node.cc (class real_output_file,
10869 real_output_file::real_output_file,
10870 real_output_file::~real_output_file): Conditionalize use of
10871 popen/pclose on POPEN_MISSING.
10872 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10873 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10874 (pipe_source): Similarily.
10876 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10878 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10879 presence of declarations by trying to compile example with
10880 conflicting declarations. (gcc only gives a warning for missing
10883 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
10885 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10886 (from Ulrich Lauther).
10888 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
10890 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10892 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
10894 * indxbib/indxbib.cc (write_hash_table): Add code for case where
10895 pointers and ints have different sizes.
10897 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
10899 * tmac/tmac.s (par*env-init): Call par@reset.
10901 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
10903 * tmac/tmac.s (@IP): Switch to a new environment when diverting
10905 (par*push-tag-env, par*pop-tag-env): New macros.
10907 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
10909 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10910 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
10912 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10913 comment. Include <time.h>.
10915 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
10917 * grops/ps.cc (is_small_h, is_small_v): Deleted.
10918 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10921 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
10923 * troff/input.cc (read_request): Only print a prompt if reading
10924 from the terminal. Also clearerr on EOF if reading from the
10925 terminal. Declare isatty.
10927 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
10929 * refer/label.y: Rename map_t to map_func and extractor_t to
10932 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
10934 * include/assert.h: Don't use volatile.
10935 * libgroff/assert.cc: Likewise.
10937 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
10939 * troff/input.cc (abort_request): Look at character in tok before
10940 calling get_copy().
10942 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
10944 * troff/troff.h (NO_RETURN): Deleted.
10945 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
10946 * troff/input.cc (exit_troff): Likewise
10948 * Makefile.in: Remove `Making ...' messages since GNU make now
10951 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10953 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
10955 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10956 to constant 1 inch.
10958 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
10960 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10962 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
10964 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10965 MARK_REG if there was no left delimiter.
10967 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
10969 * pic/troff.cc (troff_output::text): Set line thickness to
10970 relative before outputting text.
10972 * tmac/tmac.e (@k): Don't zero ?T.
10975 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
10977 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10979 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
10981 * troff/input.cc (decode_args): Warn about unquoted tabs (from
10984 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
10986 * troff/input.cc (ignoring): New variable.
10987 (ignore): Set ignoring during call to do_define_macro.
10988 (do_define_macro): Clear ignoring before interpolating terminating
10990 (copy_mode_error): New function.
10991 (get_char_for_escape_name, read_long_escape_name,
10992 interpolate_arg): Use copy_mode_error.
10993 (warning_table): Add WARN_IG.
10994 * troff/troff.h (WARN_IG): Declare.
10995 (WARN_TOTAL): Change accordingly.
10997 * groff/pipeline.c (strsignal): Rename to xstrsignal.
10998 * groff/groff.cc (strsignal): Delete declaration.
11000 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
11002 * troff/div.cc (page_offset): Use 'm' as default scaling.
11004 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
11006 * nroff/nroff.sh: Ignore -u.
11008 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
11010 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11012 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
11014 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11016 (B2): With -Tascii, leave additional vertical space before
11017 and after. Ensure that the left and right indent is restored to
11018 what it was even if the point size changes. Don't call
11019 par@finish. Change the indent, line length and title length
11020 directly. With -Tascii, make the width of the box 1n less.
11021 (B1): Remember 1n at the current point size. Don't call
11022 par@reset. Change the indent, line length and title length
11023 directly. Ensure that the temporary indent is preserved.
11024 (par*box-mark-top): Turn off no spacing mode.
11026 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
11028 * Makefile.in (dist): Use .gz suffix.
11030 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
11032 * troff/input.cc (main): Add return 0.
11033 * pic/main.cc (main): Use return instead of exit.
11034 * tbl/main.cc (main): Likewise.
11035 * eqn/main.cc (main): Likewise.
11036 * grops/ps.cc (main): Likewise.
11037 * grotty/tty.cc (main): Likewise.
11038 * groff/groff.cc (main): Likewise.
11039 * grodvi/dvi.cc (main): Likewise.
11040 * refer/refer.cc (main): Likewise.
11041 * indxbib/indxbib.cc (main): Likewise.
11042 * lkbib/lkbib.cc (main): Likewise.
11043 * soelim/soelim.cc (main): Likewise.
11044 * addftinfo/addftinfo.cc (main): Likewise.
11045 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11046 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11048 * troff/token.h (process_input_stack): Don't declare as static.
11049 * troff/input.cc: Likewise.
11051 * troff/node.c (invalidate_fontno): Make it a static member of
11052 class font_family. Change callers.
11053 * troff/node.c: Change declaration.
11055 * tbl/main.cc (struct input_entry_format): Add explicit public
11057 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11058 struct double_hline_stuff): Likewise.
11059 * tbl/table.h (struct entry_format): Likewise.
11060 * pic/object.h (struct saved_state): Likewise.
11062 * include/stringclass.h: Add forward declarations of friend
11063 functions that are later declared as inline. Don't include inline
11064 specifier in friend declaration.
11066 * libgroff/lib.h: Declare popen and pclose.
11067 * acgroff.m4 (GROFF_POPEN): New macro.
11068 * configure.in: Call it.
11070 * include/lib.h (PI): New constant. Undef first if necessary.
11071 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11072 * grops/ps.cc (degrees, radians): Likewise.
11073 * libgroff/font.cc (font::get_skew): Likewise.
11075 * grops/ps.cc (is_ascii): New function.
11076 (ps_output::put_string): Use is_ascii. Use csprint rather than
11078 (ps_printer::define_encoding): Use csspace.
11079 * libgroff/strtol.c (ISASCII): New macro.
11080 (strtol): Cast arguments to is*() and tolower() to unsigned char.
11081 Use ISASCII rather than isascii.
11082 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11083 * libgroff/cset.cc: Likewise.
11084 * libdriver/input.cc: Include cset.h.
11085 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11088 * refer/refer.cc (main): Use %ld rather than %d for longs.
11090 * libbib/index.cc (index_search_item_iterator::get_tag): Use
11093 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11095 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
11097 * troff/input.cc (hyphenation_code): Skip white space between
11100 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
11102 * tbl/table.h (table::entry_list_tailp): New member.
11103 (table::table): Initialize it.
11104 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11107 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
11109 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11110 with negative horizontal positions. Remove casts of glyph::hpos to
11112 (USHRT_MAX): Delete definition.
11113 (SHRT_MAX, SHRT_MIN): New definitions.
11114 (glyph::hpos): Change type to short.
11115 (tty_printer::end_page): Output multiple backspaces if necessary.
11116 Remove casts of glyph::hpos to int.
11118 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
11120 * tmac/tmac.s (@RT): New definition.
11122 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
11124 * refer/refer.cc (do_file): Make sure current_filename is set when
11127 * pic/common.cc (common_output::dot_line): Handle zero length
11130 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
11132 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11133 (par@init): Initialize \n[HY].
11135 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
11137 * troff/dictionary.cc (dictionary::remove): Continue when
11140 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
11142 * Makefile.com (.y.cc): Avoid ending up with two versions of
11145 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
11147 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11148 (\(,C): Likewise. Also fix typo.
11150 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
11152 * lib.h: Delete extraneous semi-colon.
11154 * Add pso request: `so' from a pipe.
11155 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11156 (file_iterator::close): New function.
11157 (file_iterator::~file_iterator, file_iterator::next_file): Use
11158 file_iterator::close.
11159 (file_iterator::backtrace): Say `process' rather than `file' when
11160 the stream is popened.
11161 (pipe_source): New function.
11162 (init_input_requests): Bind ".pso" to pipe_source.
11164 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
11166 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11168 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
11169 digits in lower case.
11171 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
11173 * Version 1.08 released.
11175 * Makefile.in (dist): Insert || true after ln -s commands that
11178 * mm: Update to mm 1.16.
11180 * acgroff.m4 (GROFF_CSH_HACK): New macro.
11181 * configure.in: Call GROFF_CSH_HACK. Substitute for
11183 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
11185 * nroff/Makefile.sub (nroff): New target.
11186 (install_data): Install nroff.
11187 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11188 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11190 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
11192 * eqn/Makefile.sub (neqn): Add chmod +x.
11194 * grog/Makefile.sub (grog): Remove spurious semi-colon.
11196 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
11198 * troff/input.cc (string_iterator::string_iterator()): Initialize
11201 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
11203 * troff/div.cc (macro_diversion::space,
11204 top_level_diversion::space): Don't set high_water_mark.
11205 (macro_diversion::output, top_level_diversion::output): Don't
11206 include post line space in high water mark.
11208 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
11210 * eqn/eqn.y: Don't define YYDEBUG.
11211 * pic/pic.y: Likewise.
11213 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
11215 * tmac/tmac.e ([3): Add space after comma following editors.
11216 Change double spaces to single spaces.
11217 ([4): Change double spaces to single spaces.
11219 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11220 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11221 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11222 after %!PS-Adobe- (for Newsprint).
11224 * troff/div.cc (top_level_diversion::begin_page): When
11225 before_first_page is 1, set page_number to 1.
11227 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
11229 * eqn/box.cc (box::top_level): Protect equation with \&.
11231 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
11233 * groff/groff.cc (possible_command::set_name): Delete old name.
11235 * groff/groff.cc (possible_command::~possible_command): Use
11238 * troff/node.cc (troff_output_file::begun_page): New member.
11239 (troff_output_file::troff_output_file): Initialize it.
11240 (troff_output_file::really_begin_page): Only output V command if a
11241 page has been begun.
11243 * pic/pic.y (placeless_element): Delete argument to PRINT after
11246 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
11248 * Make wrapman work.
11249 * troff/div.h (class top_level_diversion): Replace
11250 first_page_begun by before_first_page (with opposite sense).
11251 * Change first_page_begun to before_first_page inverting sense.
11252 * troff/div.cc (class nl_reg): New class.
11253 (init_div_requests): Use class nl_reg for \n(nl.
11254 (top_level_diversion::begin_page): Don't call
11255 output_file::begin_page if before_first_page is 2;
11256 reset before_first_page afterwards. If have_next_page_number is
11257 false, then always increment page_number.
11258 * tmac/tmac.an: Set traps within TH rather than at the top-level.
11259 Restore compatibility mode after loading, and then disable
11260 compatibility mode in TH.
11262 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
11264 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11266 * troff/node.h (output_file::trailer): Declare.
11267 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11268 * troff/node.cc (output_file::trailer): New function.
11269 (troff_output_file::~troff_output_file): Move most code into...
11270 (troff_output_file::trailer): New function.
11271 (class troff_output_file): Delete page_length member. Declare
11273 (troff_output_file::really_begin_page): Use current page length
11274 for final V command.
11276 * tbl/main.cc (struct options): New decimal_point_char member.
11277 (options::options): Initialize this.
11278 (process_options): Implement decimalpoint option.
11279 (process_data): Pass decimal_point_char option to table::table.
11280 * tbl/table.h (class table): New decimal_point_char member.
11281 (table::table): Add additional argument.
11282 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11283 second argument specifying decimal point character. Use this
11285 (table::table): Initialize decimal_point_char.
11286 (table::add_entry): Change call to find_dot.
11288 * troff/input.cc (get_copy, token::next): Implement \V.
11289 (interpolate_environment_variable): New function.
11291 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
11293 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11294 * pic/pic.y: Likewise.
11296 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11298 * refer/ref.cc (reference::insert_field, reference::delete_field):
11300 * troff/number.cc (parse_term): Likewise.
11302 * acgroff.m4 (GROFF_PROG_YACC): New macro.
11303 * configure.in: Use GROFF_PROG_YACC.
11305 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11307 * Makefile.in (OPTIMIZE): New define.
11308 (DEBUG): Empty by default.
11309 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11311 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11312 (GROFF_ARRAY_DELETE): Likewise.
11313 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11315 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11317 * devps/psstrip.sed: Use different delimiter on last line (so that
11318 it works with BSD 4.4 sed.)
11320 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
11322 * devps/psstrip.sed: Delete comments.
11324 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11325 optind, opterr, optarg.
11326 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11329 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
11331 * Makefile.in (check): Dummy target.
11333 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
11335 * Version 1.07 released.
11337 * Integrate mm 1.11.
11339 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11340 where start_col was meant.
11342 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
11344 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11346 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
11348 * troff/input.cc (token::next): Make \z\o'...' and similar things
11351 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11353 (environment): Add margin_character_flags member.
11354 * env.cc (environment::environment(symbol),
11355 environment::environment(const environment *): Initialize
11356 margin_character_flags.
11357 (margin_character): Rewrite.
11358 (environment::output_line): Add a margin character if
11359 margin_character_flags is non-zero. Turn off the
11360 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
11361 zero, use margin_character_node without copying and then set
11362 margin_character_node to 0.
11364 * devps/DESC.in: Change minimum size to 1000.
11366 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
11368 * troff/symbol.h (symbol::hash): Change return type to unsigned
11370 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11373 * test-groff: Use -r rather than -x.
11375 * grops/psfig.diff: Include in distribution again.
11377 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
11379 * Makefile.in (dist): Use gzip.
11381 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
11383 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11384 unistd.h as well as in stdlib.h.
11385 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11386 defined; otherwise include <sys/types.h> and <unistd.h> if
11387 UNISTD_H_DECLARES_GETOPT is defined.
11389 * configure.in: use builtin(include, ... rather than include(...
11390 * configure: Regenerate with autoconf 1.3.
11392 * libdriver/print.cc (printer::adjust_arc_center): Use new
11393 algorithm suggested by Andy Fyfe.
11395 * libdriver/printer.cc (printer::adjust_arc_center): New function.
11396 * include/printer.h: Declare this.
11397 * grops/ps.cc (ps_printer::draw): Use it.
11398 * grodvi/dvi.cc (dvi_printer::draw): Use it.
11400 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
11402 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11404 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
11406 * eqn/main.cc (main): Handle "eqn -".
11408 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
11410 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11412 * mm: Integrate version 1.08.
11414 * pic/troff.cc (troff_output::finish_picture): Set
11415 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11416 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11417 if it's not defined. Check whether the register is non-zero rather
11418 than whether it's not defined.
11419 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11421 * indxbib/indxbib.cc: Move all signal handling into...
11422 * indxbib/signal.c: New file.
11423 * configure.in: Call AC_RETSIGTYPE.
11425 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11426 * configure.in: Call GROFF_STRUCT_EXCEPTION.
11427 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11429 * troff/input.cc (token::token, token::operator=): Work round SGI
11431 * pic/object.cc (position::position): Likewise.
11433 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
11435 * pic/pic.h: Move declaration of hypot().
11437 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
11439 * pic/pic.h: Declare hypot().
11441 * pic/pic.h: Define M_PI if necessary.
11443 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
11445 * tmac/tmac.e (re): Add alternative version that doesn't use groff
11448 * devps/prologue.ps (RE): Handle the possibility that the old font
11449 doesn't have a FontName entry.
11451 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
11453 * tmac/tmac.e (fam): Redefine to set family in environment 2.
11454 (@C): Use @fam not fam.
11456 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
11458 * lookbib/lookbib.cc (main): Change type of start to const char *.
11459 * lkbib/lkbib.cc (main): Likewise.
11461 * eqn/lex.cc (definition::definition): Don't use member
11462 initializer syntax for members of anonymous unions.
11464 * troff/input.cc (input_stack::backtrace): Change type of to const
11467 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
11469 * include/stringclass.h (class string): Declare inline friend
11470 functions as inline in class declaration.
11471 * troff/hvunits.h (class hunits, class vunits): Likewise.
11472 * include/refid.h (class reference_id): Likewise
11473 * troff/troff.h (points_to_units(units), scale(units, double)):
11474 Delete declarations.
11475 * libdriver/input.cc (get_char): Delete declaration.
11476 * include/lib.h: Change 2nd argument of getopt from const char **
11478 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11479 char **' before assigning to a `const char **'.
11480 * tbl/table.cc: Delete extra declarations of prints().
11482 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
11484 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11485 char **' before assigning to a `const char **'.
11487 * libgroff/errarg.cc (errarg::errarg): Don't use member
11488 initializer syntax for members of anonymous unions.
11490 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
11492 * mm: Integrate version 1.07.
11494 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
11496 * troff/input.c (translate2): Rename to
11497 (translate_no_transparent).
11498 (init_input_requests): Rename tr2 to trnt.
11500 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
11502 * troff/charinfo.h (class charinfo): Add transparent_translate field.
11503 (charinfo::set_translation, charinfo::set_special_translation):
11504 Add second argument that specifies value for
11505 transparent_translate.
11506 (charinfo::get_translation, charinfo::get_special_translation):
11507 Add optional second argument that specifies whether translation is
11508 being used for transparent throughput.
11509 * troff/input.cc (charinfo::set_translation,
11510 charinfo::set_special_translation): Handle second argument.
11511 (charinfo::charinfo): Initialize transparent_translate.
11512 (translate): Split main part off into
11513 (do_translate): New function. Pass argument saying whether
11514 translation applies to transparent throughput.
11515 (translate2): New request.
11516 (init_input_requests): Bind translate2 to `tr2'.
11518 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
11520 * tbl/table.h (class table): Add `nokeep' flag.
11521 * tbl/main.cc (process_options): Handle `nokeep' option.
11522 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11523 table::do_bottom): Don't output keep/release macro definitions or
11524 calls when `nokeep' option has been specified.
11526 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
11528 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11530 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
11532 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11533 block_entry::divert, alphabetic_block_entry::divert): Add extra
11534 argument giving column separation.
11535 (table::compute_widths): Pass column separation to
11536 table_entry::divert().
11537 (block_entry::do_divert): If an entry spans multiple columns and a
11538 minimumum width has been specified for each column, then set the
11539 line length to the sum of the widths (plus possibly the column
11542 * troff/input.cc (set_escape_char): Don't set the escape_char
11543 until after calling has_arg().
11545 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
11547 * tbl/table.cc (table::do_top): Add missing \s0 for double box
11550 * tbl/table.cc (table::print_double_hline): Avoid extra new line
11551 in case where r > nrows - 1.
11553 * tbl/table.cc (BODY_HEIGHT): Deleted.
11554 (LINE_SEP): New definition.
11555 (table::print_single_hline, table::print_double_hline,
11556 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11557 table::do_row, table::do_top): Use LINE_SEP space before a line
11558 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11560 * tbl/table.cc (text_entry::print_contents): New function.
11561 (text_string_name, right_text_string_name): Deleted.
11562 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11563 (simple_text_entry::do_width, numeric_text_entry::do_width,
11564 alphabetic_text_entry::do_width): Don't store the contents of the
11566 (left_text_entry::simple_print, right_text_entry::simple_print,
11567 center_text_entry::simple_print,
11568 alphabetic_text_entry::simple_print,
11569 numeric_text_entry::simple_print): Print the entry directly
11570 instead of using the stored string.
11572 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
11574 * devps/Makefile: Strip PostScript files.
11575 * devps/prologue: Rename to...
11576 * devps/prologue.ps.
11577 * devps/psstrip.sed: New file.
11578 * devps/download: Use .pfa rather than .ps for installed versions
11581 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
11583 * troff/env.cc (input_trap): Give a warning if the argument is out
11586 * troff/env.cc (adjust): Treat negative argument as missing. Round
11587 argument > 5 down to 5.
11589 * troff/env.cc (center, right_justify): Make negative argument zero.
11591 * troff/div.cc (page_offset, vertical_position_traps): Treat
11592 invalid argument as missing.
11593 * troff/env.cc (line_spacing, line_length, title_length, indent,
11594 underline, hyphen_line_max_request, control_char,
11595 no_break_control_char, widow_control_request, adjust, input_trap,
11596 point_size): Likewise.
11597 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11598 constant_space): Likewise.
11599 * troff/input.cc (compatible, shift, warn_request,
11600 set_escape_char): Likewise.
11602 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11603 * tbl/table.cc (table::table): Likewise.
11605 * Makefile.dev (install_dev): depends on $(DEVFILES).
11607 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
11609 * devX75, devX75-12, devX100, devX100-12: New directories.
11610 * Makefile.in: Add these to DEVDIRS.
11612 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11613 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11614 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11615 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11617 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11618 (uninstall): New target.
11619 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11620 uninstall_prog, uninstall_dev): New targets.
11622 * troff/div.cc (return_request): Treat an invalid argument as
11625 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
11627 * tmac/tmac.e ((f): Set up the environment even when there's a
11628 current diversion. Transperently throughput a call to @N.
11631 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
11633 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11634 up to vertical resolution.
11636 * tbl/table.cc (table::do_row): Change row number after printing
11639 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11641 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
11643 * Rename CHANGES to NEWS.
11645 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
11647 * libgroff/new.cc (operator new): Avoid calling malloc(0).
11649 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
11651 * man.ultrix: Removed.
11653 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
11655 * Makefile.comm (extraclean): Delete files whose names begin with
11658 * pic/troff.cc (troff_output::text): Fix typo in implementation of
11661 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
11663 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11664 * troff/div.cc (page_length, need_space, space_request): Treat
11665 invalid optional argument as missing.
11666 * troff/env.cc (number_lines): If the first argument is present
11667 but not a number, turn on line numbering, don't change the next
11668 line number and parse the remaining arguments.
11670 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11672 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
11674 * eqn/box.h: Change declaration accordingly.
11675 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
11676 the specified size was bad but don't give an error. Check for
11678 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11679 * eqn/lex (do_size): Likewise.
11681 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
11683 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11684 compatible headers.
11686 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
11688 * tbl/table.cc (table::init_output): Improve error message when
11689 table won't fit on one page.
11691 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
11693 * pic/troff.cc (troff_output::start_picture): Generate line
11694 containing a horizontal motion equal to the width of the picture.
11696 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11697 using GROFF_COMMAND_PREFIX environment variable.
11699 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
11701 * mdate.sh: Use $NF rather than $(NF).
11703 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
11705 * pic/main.cc (main): Use %1 not %c in argument to warning.
11707 * eqn/main.cc (main): Output code to check that geqn was given the
11710 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
11712 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11713 `ln -s ../Makefile .; make; rm -f Makefile'.
11715 * troff/hyphen: Rename to...
11717 * troff/input.cc (main): Delete -H option. Don't call
11718 read_hyphen_file().
11719 * troff/env.cc: Include searchpath.h and macropath.h.
11720 (exception_dictionary): Deleted.
11722 (read_hyphen_file): Deleted.
11723 (hyphenation_language): New struct.
11724 (class trie, class hyphen_trie): Move declarations up.
11725 (trie_node::~trie_node): Deleted.
11726 (trie::delete_trie_node): New function.
11727 (trie::do_delete): New pure virtual function.
11728 (hyphen_trie::do_delete): New function.
11729 (trie::~trie): New function.
11730 (hyphen_trie::~hyphen_trie): New function.
11731 (trie::clear): No need to chcek that tp is not 0.
11732 (current_language, language_dictionary): New variables.
11733 (hyphen_word): Give an error if no current language. Use
11734 exceptions dictionary in current language.
11735 (hyphen_trie::read_patterns_file): Find file using macro_path.
11736 Allow comments (starting with %) in patterns file. Don't make it
11737 a fatal error if the file can't be found.
11738 (hyphenate): Return if no current language. Get the exceptions
11739 dictionary and the hyphenation patterns from the current language.
11740 (set_hyphenation_language): New variable.
11741 (hyphenation_patterns_file): New function.
11742 (hyphenation_language_reg): New class.
11743 (hyphenation_language_reg::get_string): New function.
11744 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11745 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
11747 * groff/groff.cc (main, help, synopsis): Delete -H option.
11748 * include/Makefile.sub: Don't define HYPHENFILE.
11749 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11750 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11751 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11752 hyphenation patterns.
11754 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
11756 * eqn/neqn.sh: New file.
11757 * eqn/Makefile.sub: Handle neqn.sh.
11759 * eqn/eqn.h: Declare `nroff' variable.
11760 * eqn/box.cc (param_table): Add `nroff' param.
11761 (nroff): Define it.
11762 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11764 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11766 * troff/troff.h (WARN_FONT): New warning.
11767 (WARN_TOTAL): Change accordingly.
11768 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11769 (warning_table): Add WARN_FONT.
11770 * troff/node.cc (mount_font_no_translate): Pass argument to
11771 font::load_font. If this is non-zero, give a warning.
11772 Don't give an error message when accessing a font that has already
11773 been found to be invalid.
11774 * include/font.h (font::load, font::load_font): Add additional
11775 optional argument which suppresses error message if the font is
11777 * libgroff/font.cc (font::load_font): Handle additional argument.
11778 (font::load): Add additional argument. If this is non-null, set it
11779 to 1 and don't give error message.
11781 * include/printer.h (printer::end_page): Add argument giving
11783 * libdriver/input.cc (do_file): Pass this.
11784 * grops/ps.cc (ps_printer::end_page): Add argument.
11785 * grodvi/dvi.cc (dvi_printer::end_page,
11786 draw_dvi_printer::end_page): Add argument.
11787 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11788 columns_per_page members. New member nlines.
11789 (DEFAULT_LINES_PER_PAGE): Deleted.
11790 (tty_printer::tty_printer): Don't compute lines_per_page from
11791 font::paperlength. Don't compute columns_per_page from
11793 (tty_printer::add_char): Don't check horizontal position against
11794 columns_per_page. Grow glyphs vector if neccessary.
11795 (tty_printer::end_page): Add argument giving page_length in units.
11796 Discard lines past end of page.
11798 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
11800 * tmac/tmac.tty-char: Fix definition of \(/l.
11802 * tmac/tmac.X: Define \(en.
11804 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
11806 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11807 lpq, then use lp rather than lpr.
11809 * tmac/tmac.s (par@reset): Don't call `ad'.
11810 (par*env-init): Call `ad'.
11812 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
11814 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11817 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11818 * indxbib/indxbib.cc: Likewise.
11820 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
11822 * libgroff/putenv.c: New file.
11823 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11824 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11825 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11826 stdlib.h with AC_HAVE_HEADERS.
11828 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
11830 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11833 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
11835 * eqn/box.cc (gsize): Make it an int.
11836 (set_gsize): Parse argument handling increment or decrement.
11837 (box::top_level): Convert gsize to a string.
11839 * troff/input.cc (exit_troff): Make buf unsigned char [].
11840 Call to make_temp_iterator casts buf to char*.
11842 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11844 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11845 * Makefile.cpg (depend.temp): Likewise.
11847 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11849 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11851 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
11853 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11855 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
11857 * Version 1.06 released.
11859 * Integrate mm 1.04.
11861 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
11863 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11865 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
11867 * afmtodit/afmtodit.pl: Add -n option that disables generation of
11869 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11870 afmtodit. Regenerate.
11872 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11873 @f back past the current position.
11875 * tmac/tmac.e: Change calls to @R so that comments are not part of
11878 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
11880 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11882 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11883 check that we can link a call to a function declared in <stdio.h>.
11884 (GROFF_UNISTD_H): New macro.
11885 * configure.in: Call it.
11886 * Makefile.in: Document it.
11887 * include/posix.h: New file.
11888 * troff/troff.h: Don't include <osfcn.h>
11889 * troff/input.cc: Include posix.h.
11890 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11892 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11893 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11895 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11896 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11897 * libbib/search.cc (O_RDONLY): Delete definition.
11898 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11899 Don't include <osfcn.h>.
11901 * acgroff.m4 (GROFF_TIME_T): New macro.
11902 * configure.in: Call it.
11903 * Makefile.in: Document it.
11905 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11906 * configure.in: Call it.
11907 * Makefile.in: Document -DTRADITIONAL_CPP.
11908 * include/ptable.h: Don't include generic.h.
11909 (name2): Define it.
11911 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11912 Afterwards remove [T1 and [T2.
11913 (ref*spec!0, ref*spec!2): Use T1 rather than T.
11914 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11915 (ref*add-T2): Renamed from ref*add-T.
11916 (ref*add-T1): New macro.
11918 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
11920 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11922 * libbib/index.cc: Include <fcntl.h>.
11923 (O_RDONLY): Define if necessary.
11924 (make_index_search_item, index_search_item_iterator::get_tag,
11925 index_search_item::check_files): Use O_RDONLY.
11926 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11927 (O_RDONLY): Define if necessary.
11928 (search_list::add_file): Use O_RDONLY.
11929 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11931 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11934 * libbib/index.cc (S_ISREG): Define it if necessary.
11935 (index_search_item::load): Use S_ISREG.
11937 * include/driver.h: Include <errno.h>.
11939 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
11941 * eqn/box.cc (body_height): Increase default value to 85.
11942 (body_depth): Increase default value to 35.
11944 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
11946 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11947 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11948 protected from expansion with \E.
11950 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11952 * Makefile (Makefile): New target.
11954 * Makefile.sub (configure, distfiles): New targets.
11956 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11959 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
11961 * eqn/box.cc (param_table): Add body_height and body_depth.
11963 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11965 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
11967 * psbb/Makefile.sub: Don't link with libgroff.a.
11969 * acgroff.m4 (GROFF_PUTENV): New macro.
11970 * configure.in: Call GROFF_PUTENV.
11971 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11972 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11975 * troff/env.cc (distribute_space): Rename force_forward argument
11976 to force_reverse. Reverse the list if force_reverse is true.
11978 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
11980 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11982 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11983 height or depth to be negative. Guard against SUP_RAISE quantity
11986 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
11988 * devps/generate/textmap: Add `an' (arrowhorizex).
11989 * tmac/tmac.ps: \(an overlaps horizontally.
11990 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11992 * devps/symbolchars: Add arrowverttp, arrowvertbt.
11993 * devps/textmap: Add arrowvertex.
11994 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11995 updownarrow delimiters.
11996 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11998 * tbl/table.cc (simple_entry::position_vertically,
11999 block_entry::position_vertically): For a centered entry, perform
12000 the motion in two stages.
12002 * refer/refer.cc (split_punct): Don't call lookup_token if there
12005 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
12007 * troff/input.cc (token::next): Delete token_node after copying
12010 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12013 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12015 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12017 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
12019 * grops/ps.cc (usage): -b option takes an argument.
12021 * devps/prologue (PLG): New procedure.
12022 * grops/ps.cc (main, usage): New -g option.
12023 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
12026 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
12028 * include/cset.h: Include <limits.h> if we have it.
12030 * libgroff/illegal.cc: New file.
12031 * include/lib.h (illegal_input_char): Use table.
12032 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12033 * pic/lex.cc (ARG1): Renumber to 14.
12034 * eqn/lex.cc (ARG1): Likewise.
12036 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12037 (eg 1.05.90) correctly.
12039 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
12041 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12042 Rename $r and $R registers to $v and $V.
12043 ($r, $R): Initialize to 0.
12044 (@v, @V): New macros.
12048 * troff/input.cc (main, usage): Add -R option that says not to
12050 * eqn/main.cc (main, usage): Rename -n to -R.
12052 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
12054 * devps/DESC.in: Leave font positions 5-9 blank.
12055 * devdvi/DESC.in: Likewise.
12057 * grog/grog.pl: Handle `.PS <file' correctly.
12059 * troff/input.cc (input_stack::push): Improve error message when
12060 input stack limit exceeded.
12062 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
12064 * refer/refer.cc (main): Fix typo in handling of `a' option.
12066 * refer/refer.cc (do_bib): In state START after a newline remain
12069 * groff/groff.sh: Deleted.
12070 * groff/Makefile.sub: Delete handling of groff.sh.
12072 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12073 to determine whether to use \X'ps:...'.
12074 * tmac/troffrc: Set 0p register to 0.
12075 * tmac/tmac.ps: Set 0p register to 1.
12077 * groff/groff.cc: Support -X option. Give warning for -TXps and
12078 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12079 * tmac/troffrc: Support -r.X=1.
12081 * pic/troff.cc (troff_output::dot): Don't test
12082 zero_length_line_flag.
12084 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
12086 * include/lib.h: Declare getopt() and friends unless
12087 STDLIB_H_DECLARES_GETOPT is defined.
12089 * doc/chars.tr: Delete.
12090 * man/groff_char.man: New file.
12092 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
12094 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12095 user has changed register format.
12097 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
12099 * groff/groff.cc: Get rid of device_table. Get postprocessor from
12100 `postpro' command in DESC file. Get spooler command from `print'
12101 command in DESC file. Execute spooler command with /bin/sh.
12103 * groff/groff.cc: Split Unix-specific parts into...
12104 * groff/pipeline.c: New file.
12107 * COPYING: New file.
12108 * all files: Update copyright notices.
12110 * Rearrange files. Redo Makefiles. Use autoconf.
12112 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
12114 * troff/input.c (charinfo_to_node_list): Interpret character
12115 definition with escape_char of `\'.
12117 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
12119 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12120 Define INT_DIGITS as big enough for 64-bit integer.
12121 * lib/strtol.c: Don't include lib.h.
12122 * lib/lib.h: Delete ifdef __cplusplus stuff.
12124 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
12126 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
12127 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
12128 get DESC from current directory.
12130 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
12132 * tbl/main.c (main): Always reset the line number when reading
12135 * tbl/table.c (table::print_single_hline, table::print_double_hline,
12136 table::define_bottom_macro, table::do_row, table::do_top): Round
12137 vertical spacing up to vertical resolution.
12139 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
12141 * ps/ps.h (enum resource_type): Avoid comma at end of
12143 * dvi/dvi.c (class dvi_printer): Likewise.
12144 * dvi/tfmtodit.c (gf::load): Likewise.
12145 * refer/label.y (struct expression): Likewise.
12146 * refer/refer.c (class label_processing_state): Likewise.
12147 * refer/indxbib.c (do_file): Likewise.
12148 * troff/troff.c (enum warning_type): Likewise.
12149 * tbl/main.c (process_data): Likewise.
12150 * troff/charinfo.h (class charinfo):
12152 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
12154 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
12156 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
12158 * groff.c: Move to new groff subdirectory.
12159 * groff/Makefile: New file.
12160 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12162 * man/mdate.sh: Use ls -L if supported.
12164 * Consolidate all header files produced by gendef into lib/defs.h.
12165 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12166 Don't include path.h.
12167 * lib/Makefile (path.h): Don't generate.
12168 * troff/input.c: Include defs.h. Don't include config.h.
12169 * troff/Makefile (config.h): Don't generate.
12170 * refer/index.h: Don't include suffix.h.
12171 * refer/index.c: Include defs.h.
12172 * refer/indxbib.c: Include defs.h.
12173 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12175 * refer/Makefile (suffix.h, path.h): Don't generate.
12176 * groff.c: Don't include config.h. Include defs.h.
12177 * Makefile (config.h): Don't generate.
12178 (lib/defs.h): Generate.
12179 (topclean): Remove lib/defs.h.
12181 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
12183 * lib/malloc.c, lib/getpagesize.h: Deleted.
12184 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
12186 * lib/Makefile: Delete malloc-related stuff.
12187 * lib/new.c: Workaround COOKIE_BUG if necessary.
12189 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
12190 needed header files directly.
12191 * refer/refer.h: Omit definition of DEFAULT_INDEX.
12192 * Makefile: Include definition of DEFAULT_INDEX in path.h.
12194 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
12196 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12198 * lib/font (font::load_desc, font::load): Don't split argument of
12200 (font::handle_unknown_font_command): Change type.
12201 * ps/ps.c (ps_font::handle_unknown_font_command,
12202 handle_unknown_desc_command): Change type.
12203 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12205 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
12207 * lib/font.h (font::handle_unknown_font_command): Add file and
12209 * lib/font.c (font::handle_unknown_font_command):
12210 * ps/ps.c (ps_font::handle_unknown_font_command):
12211 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12212 lineno arguments. Use _with_file_and_line functions for error
12215 * lib/fontfile.c (font::unknown_desc_command_handler): New static
12217 * lib/font.c (font::set_unknown_desc_command_handler): New
12219 (font::load_desc): For unknown commands, call
12220 unknown_desc_command_handler if not null.
12221 * lib/font.h (class font): Declare them.
12222 (FONT_COMMAND_HANDLER): New typedef.
12223 * ps/ps.c (handle_unknown_desc_command): New function.
12224 (main): Set bflag if we had a -b option. Call
12225 font::set_unknown_desc_command_handler.
12226 (broken.h): Don't include.
12227 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
12229 * ps/devps/Makefile: Add `broken' command to DESC file using
12230 BROKEN_SPOOLER_FLAGS.
12232 * macros/tmac.e ([, ]): Add as synonyms for { and }.
12234 * macros/tmac.e ($p): Only exdent if \$3 > 0.
12236 * macros/tmac.e (@R, @S): New macros.
12237 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12238 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12239 Declare $H, $[0-9], .. macros with @S.
12240 Declare |0, |1, |2, |3 strings with @S.
12242 * macros/tmac.e (@S): Rename to @U.
12244 * macros/tmac.e (@z): Define @b and bp as empty instead of
12247 * macros/tmac.e (@m): Deleted.
12248 (@h): Don't call @m.
12249 (@z): Don't set @m trap.
12251 * macros/tmac.e ($h, $f): Define |z as empty string.
12253 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12256 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12258 ()f): Likewise for * register.
12260 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12261 argument is missing, don't change $R. Call sr with three
12262 arguments when initializing.
12264 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
12266 * macros/tmac.e (sr): New macro.
12267 Initialize $r and $R using sr.
12269 * macros/tmac.e (,): Delete \*(#[.
12271 * troff/env.c (set_tabs): Read the tab type even if the position
12272 is bad. Allow the position of the first tab stop to be negative.
12274 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
12276 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12278 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12279 rather than -DPATHCONF_MISSING.
12280 * Makefile: Get rid of PATHCONF_MISSING.
12282 * refer/map.c: New file.
12283 * refer/index.c: Interface to mmap through map.c. Rename map_size
12285 * refer/Makefile: Handle map.c.
12286 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12288 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
12290 * Makefile: RANLIB should be `true' if there is no ranlib.
12291 * lib/Makefile (libgroff.a): Simplify.
12292 * driver/Makefile (libdriver.a): Simplify.
12294 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12295 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
12298 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
12300 * troff/env.c (compare_ranges): Declare as extern "C".
12302 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12304 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12306 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
12308 * pic/troff.c (troff_output::text): Merge in grops_output::text,
12309 but conditionalize use of \X based on \*(.T.
12310 (grops_output::*): Deleted.
12311 * pic/output.h: Delete declaration of make_grops_output.
12312 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
12313 by default. -n sets it to 0.
12314 (usage): Corresponding changes.
12315 * groff.c (main): Don't pass -x or -p to pic.
12316 * groff.sh: Likewise.
12318 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12321 * ps/devps/afmtodit: Change calculation of asc_boundary and
12322 desc_boundary. Make these bounds inclusive.
12323 * ps/devps: Regenerate font files.
12325 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
12327 * macros/tmac.latin1: New file.
12328 * macros/tmac.tty-char: Use tmac.latin1.
12329 (tmac.tty-tr): Deleted.
12330 * macros/Makefile: Install tmac.latin1.
12331 * macros/tmac.dvi: Use tmac.latin1.
12332 * macros/troffrc: Translate \[char160] onto no-break space here.
12333 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12335 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
12337 * macros/tmac.Xps: Use `do' request.
12339 * macros/tmac.ps: Use `do' request.
12341 * macros/tmac.e (@C): Use `do' request.
12343 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12344 * macros/Makefile: Install tmac.X*.
12346 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12347 * tty/Makefile: Don't install tmac.tty*.
12348 * macros/Makefile: Install tmac.tty*.
12350 * dvi/tmac.dvi: Move to macros.
12351 * dvi/Makefile: Don't install tmac.dvi.
12352 * macros/Makefile: Install tmac.dvi.
12354 * ps/tmac.ps*: Move to macros.
12355 * ps/Makefile: Don't install tmac.ps*.
12356 * macros/Makefile: Install tmac.ps*.
12358 * eqn/box.c: Provide draw_lines parameter corresponding to -D
12360 * macros/eqnrc: Set draw_lines parameter based on device.
12361 * groff.c: Don't pass -D flag to eqn.
12362 * groff.sh: Likewise.
12363 * eqn/main.c: Warn about use of -D.
12365 * troff/input.c (process_startup_file): New function.
12366 (main): Call process_startup_file().
12367 * macros/troffrc: New file.
12368 * macros/Makefile: Install troffrc.
12369 * groff.c (main): Don't pass extra -m option to troff. For a
12370 pseudo device pass the name of the pseudo device to troff using
12372 * groff.sh: Likewise.
12373 * groff.c (possible_command::prepend_arg): Deleted.
12375 * troff/input.c (do_request): New function.
12376 (init_input_requests): Bind "do" to do_request.
12378 * eqn/main.c (main): Instead of loading eqnchar from device directory,
12379 load eqnrc from macro directory.
12380 * macros/eqnrc: New file.
12381 * macros/Makefile: Install eqnrc.
12382 * ps/devps/eqnchar: Deleted.
12383 * ps/devps/Makefile: Don't install eqnchar.
12384 * dvi/devdvi/eqnchar: Deleted.
12385 * dvi/devdvi/Makefile: Don't install eqnchar.
12386 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12389 * lib/device.[ch]: New files.
12390 * lib/font.h (font::set_device_name, font::get_device_name):
12392 * lib/fontfile.c: Use device.h.
12393 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12394 * troff/input.c: Delete definition of `device'.
12395 (main): Don't initialize device.
12396 * troff/troff.h: Include device.h rather than declaring device.
12397 * troff/Makefile: No need to handle DEVICE.
12398 * driver/input.c: Include device.h. Don't use
12399 font::{set,get}_device_name.
12400 * groff.c, Makefile: Rename device.h to config.h.
12401 * groff.c: Use library device variable.
12402 * eqn/main.c: Use library device variable.
12403 * eqn/Makefile: No need to handle DEVICE.
12405 * lib/searchpath.[ch]: New files.
12406 * lib/Makefile: Handle searchpath.[ch].
12407 * troff/input.c (open_file, init_dirs): Deleted.
12408 (macro_dirs): Deleted.
12409 (open_mac_file, macro_source): Use class search_path.
12410 (add_string, struct string_list): Move definition.
12411 (main): Change -M option to use macro_path. Delete call to
12413 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12414 Rewrite to use class search_path.
12415 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12416 * lib/Makefile: fontfile.c depends on searchpath.h.
12417 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12419 * lib/macropath.[ch]: New files.
12420 * troff/Makefile: No need to handle MACROPATH.
12422 * troff/input.c: Delete DUMP code.
12423 * lib/fontfile.c, lib/font.h: Delete
12424 font::forget_command_line_font_dirs.
12426 * troff/input.c (push_token): New function.
12427 (handle_first_page_transition): Use push_token().
12428 (process_input_stack): Change handling of a space at the beginning
12431 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
12433 * troff/input.c (font_dirs): Delete unused variable.
12435 * eqn/lex.c (do_set): Correct error messages.
12437 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
12439 * troff/input.c (do_define_string): Allow the string name to be
12440 followed immediately by a tab.
12441 (define_character): Likewise.
12443 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
12445 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12448 * troff/input.c (input_iterator::is_file): New virtual function.
12449 (file_iterator::is_file): New function.
12450 (input_stack::end_file): New function.
12451 (input_stack::next_file): Handle the situation where there is no
12452 file on the input stack correctly. Avoid making two passes over
12454 (next_file): Make the filename optional; in this case call
12455 input_stack::end_file().
12457 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
12459 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12460 produce a real _ charater when the current font is CW and _
12463 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12464 expression to work around gcc 2.2 bug.
12466 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
12468 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12470 * troff/env.c (environment::add_padding): New function.
12471 (environment::add_char): Use add_padding().
12472 (environment::space): Likewise.
12473 (environment::wrap_up_field): Add some padding if there is none
12474 and there's no current tab.
12475 * troff/env.h: Declare environment::add_padding.
12477 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
12479 * pic/pic.y: undef fmod and rand before declaring them.
12481 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
12483 * troff/input.c (main): If the DESC file specifies a font name of
12484 0, then leave the corresponding font position empty.
12486 * nroff.sh: New file.
12487 * Makefile (install.nobin): Install nroff.sh.
12489 * tty/devlatin1/R.proto: Add ao as synonym for de.
12490 * tty/tmac.tty-char: Define ao as o.
12492 * tty/dev{ascii,latin1}/R.proto: Add aq.
12493 * tty/tmac.tty-char: Delete definition of aq.
12495 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
12497 * troff/input.c (init_charset_table): Don't translate 0240.
12498 * ps/tmac.ps: Translate char160 to space.
12499 * dvi/tmac.dvi: Likewise.
12500 * tty/tmac.tty: Likewise.
12502 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
12504 * dvi/tmac.dvi: Add support for all Latin-1 characters.
12506 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12507 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12510 * tty/tmac.tty-char: Add \(ah.
12512 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12513 No need to define \(FM and \(!/. Conditionalize all character
12516 * ps/devps/lgreekmap: Add +h, +f, +p.
12518 * ps/tmac.psnew: New file.
12519 * ps/Makefile: Install tmac.psnew.
12521 * troff/input.c (charinfo_to_node_list): Don't ever interpret
12522 character definitions in compatible mode.
12524 * troff/input.c (remove_character): New function.
12525 (init_input_requests): Bind remove_character to "rchar".
12527 * ps/tmac.psold: New file.
12528 * ps/Makefile: Install tmac.psold.
12529 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12530 characters into tmac.psold. Make these definitions unconditional.
12532 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12534 * ps/tmac.ps: Don't define \('c and \('C.
12536 * ps/devps/textmap: Move Greek characters to...
12537 * ps/devps/symbolchars:
12539 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
12541 * ps/devps/text.enc: Add quotesingle.
12542 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12543 * tty/tmac.tty-char: Likewise.
12544 * dvi/devdvi/texmi.map: Add +h, +f, +p.
12545 * dvi/devdvi/texi.map: Add Fn.
12546 * dvi/devdvi/msam.map: Add lz.
12547 * dvi/tmac.dvi: Handle Bq, bq, aq.
12549 * pic/lex.c (get_token): Recognize 'th.
12550 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12552 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
12554 * ps/devps/textmap: Move di, mu, +- to...
12555 * ps/devps/symbolchars:
12557 * macros/tmac.s (@XS): Don't call par@reset or fi.
12558 (XA): Call LP. Turn off adjustment. Reduce line length.
12560 * macros/tmac.s: Initially alias XS to LP.
12561 (XS): Rename to @XS.
12562 (cov*ab-init): Alias XS to @XS.
12564 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
12566 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12567 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12568 (token::is_size, token::changes_env): Deleted.
12569 * troff/number.c (parse_term): No need to process \s explicitly.
12570 Call tok.next() only after scale indicator has been processed.
12571 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12573 (token::next): Handle \s, \f, \S, \H immediately rather than
12574 returning them as tokens.
12575 (token::operator==, token::description, token::add_to_node_list,
12576 token::process): Remove handling of deleted tokens.
12578 * troff/env.c (environment::add_char): When adding padding
12579 indicator character, call start_line() if necessary.
12581 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
12583 * ps/devps/afmtodit: Don't output 0 kerns.
12585 * ps/devps/afmtodit: Remove directory from name of encoding in
12586 font description file.
12588 * ps/devps/afmtodit: Improve error messages.
12590 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12592 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12593 * ps/devps/FontMakefile: Deleted.
12594 * ps/devps/afmname: New file.
12596 * ps/devps/symbol.sed: New file.
12597 * ps/devps/symbol.diff: Deleted.
12598 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12599 Generate zapfdr.afm from zapfd.afm.
12601 * tty/tmac.tty (tty-char): Prefix definition with ".
12603 * macros/tmac.an (TP): Don't start a diversion if one has already
12606 * tty/tmac.tty-char: Add Latin-1 characters.
12608 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12610 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
12612 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12613 Move declaration of struct horizontal_span.
12615 * tbl/table.c (table::table): Initialize span_list.
12616 (table::~table): Delete span_list.
12618 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12620 * ps/devps/Makefile: Avoid dependency on GNU make.
12622 * ps/tmac.ps: Check that character does not already exist before
12625 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12626 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12627 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12630 * tty/tmac.tty-char: New file.
12631 * tty/Makefile: Install tmac.tty-char.
12632 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12635 * tty/tmac.tty: Fix definition of \(34.
12637 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12638 bracket-drawing characters onto |. Add *o.
12640 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12641 only if current_field.
12643 * troff/dictionary.c (dictionary::lookup): Free old_table after
12646 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
12648 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12649 whose glyphs are identical to glyphs of some Roman character.
12651 * tty/devlatin1/R.proto (bu): Deleted.
12652 * tty/devascii/R.proto (bu): Deleted.
12653 * tty/tmac.tty: Add definition of \(bu.
12655 * eqn/main.c (do_file): Pass FILE as argument.
12656 (main): Automatically load eqnchar. New options -F and -n.
12657 Pass do_file an opened FILE.
12658 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12659 No need to include font.h.
12660 * groff.sh: Likewise. Don't need to use - for standard input.
12661 Prefix files with -- if first file starts with -.
12663 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12665 * troff/env.c (environment::possibly_break_line): Don't set line
12666 to 0 across call to output_line(). Don't call output_line() until
12667 after discarding nodes after break.
12669 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
12671 * request.h (macro::empty): Declare it.
12672 * input.c (macro::empty): New method.
12673 (interpolate_macro): Don't give a WARN_SPACE if the two-character
12676 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
12678 * troff/env.c (environment::start_field): Decrement space_total
12679 when a space is frozen.
12681 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
12683 * macros/tmac.an (R): Delete macro.
12685 * troff/input.c (get_copy, token::next): Support \# (like \" but
12686 newline is ignored).
12688 * troff/input.c (token::next): Fix error message in 'Y' case.
12690 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
12692 * eqn/delim.c (define_extensible_string): Recognize any prefix of
12695 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
12697 * c++test.c: Include <osfcn.h>.
12699 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12702 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
12704 * tbl/table.c (table::divide_span): Don't count column separation
12705 if expand was specified.
12707 * tbl/main.c (process_format): Don't ignore width specs in
12708 continued format. Give warning for changing equal widths or
12709 column separation in continued format.
12710 (process_data): Set column separation, minimum width, equal
12711 columns at end of table.
12713 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
12715 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12716 node::add_discretionary_hyphen): Use soft_hyphen_char.
12717 (set_soft_hyphen_char): New function.
12718 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
12720 * Makefile (c++tested): Give more helpful message if test fails.
12722 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
12724 * troff/input.c (init_charset_table): Translate 0240 to
12725 an unbreakable space.
12727 * troff/token.h (token::hyphen_indicator): New function.
12728 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12730 * troff/input.c (translate): Allow translation to \%.
12731 * troff/node.c (node::add_char): Handle
12732 TRANSLATE_HYPHEN_INDICATOR.
12733 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12735 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12738 * tty/devlatin1/R.proto: \(hy and - should print as 055.
12740 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
12742 * groff.c (run_commands): If the last command gets a SIGPIPE send
12743 a SIGPIPE to all children than haven't yet terminated. When
12744 command terminates, set pid field to -1.
12746 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
12748 * groff.c (main): Pass an appropriate -filename option to gxditview.
12750 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
12752 * Makefile.bd (install): Remove existing program before copying.
12754 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12755 programs which have Unix counterparts to be installed with
12756 user-specified prefix.
12758 * troff/input.c (exit_troff): Don't check if exit_started.
12759 (exit_request): Don't call exit_troff if exit_started.
12761 * Makefile.bd (install.mm): Rename to install.dwbmm.
12763 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
12765 * driver/input.c (do_file): Add missing break for '#' case.
12767 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
12769 * troff/input.c (input_stack::clear): Clear past any boundaries and
12770 then add the boundaries back.
12772 * troff/input.c (exit_troff): Return immediately if already
12775 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
12777 (pg*end-page): If the text has ended and there are no more
12778 footnotes or keeps, exit.
12780 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12782 * troff/input.c (init_charset_table): Make \(rq transparent by
12785 * macros/tmac.an: Define lq and rq strings.
12787 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12789 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
12791 * troff/env.c (environment::final_break): New function.
12792 (environment::newline): Set prev_line_interrupted to 2 if
12794 * troff/env.h: Declare environment::final_break.
12795 * troff/input.c (exit_troff): Call environment::final_break()
12796 instead of environment::do_break().
12798 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12799 doesn't already exist.
12800 * macros/man.local: New file.
12801 * macros/tmac.an: Load man.local.
12802 * macros/man.ultrix: New file.
12804 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
12806 * troff/input.c (exit_groff): Rename to...
12807 (exit_troff): New function.
12809 * troff/div.c (exit_started, done_end_macro,
12810 seen_last_page_ejector): New global variables.
12811 (began_page_in_end_macro): New static variable.
12812 (exit_flag): Deleted.
12813 (top_level_diversion::top_level_diversion): Initialize
12815 (top_level_diversion): More elaborate test for whether
12816 cleanup_and_exit() should be called.
12817 Set began_page_in_end_macro if the end macro isn't yet finished.
12818 * troff/div.h (top_level_diversion::last_page_count): New data
12820 (top_level_diversion::set_last_page): New function.
12821 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12822 * troff/env.c (do_break): Zero prev_line_interrupted.
12823 * troff/input.c (exit_flag): Delete declaration.
12824 (LAST_PAGE_EJECTOR): New magic cookie.
12825 (token::next): Handle LAST_PAGE_EJECTOR.
12826 (exit_groff): Set exit_started and done_end_macro instead of
12827 exit_flag. Call top_level_diversion::set_last_page. Push a
12828 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
12829 another ejection after setting seen_last_page_ejector.
12831 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
12833 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12835 * macros/tmac.e (TH): Make sure there's room for the initial
12838 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12839 Set FVS in points rather than units.
12841 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
12843 * troff/div.c (top_level_diversion::add_trap): Don't consider the
12844 position of empty slots.
12846 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
12848 * ps/devps/S: Fix height and depth of parenrightex.
12849 * ps/devps/symbol.diff: Regenerate.
12851 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
12853 * tmac.e (u): Do underlining as in -mgs.
12855 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
12857 * tty/tty.c (tty_printer::end_page): If overstriking is
12858 suppressed, still turn overstruck horizontal and vertical lines
12861 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12864 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12866 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
12868 * Version 1.05 released.
12870 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
12872 * tty/tty.c: Instead of keeping an array of glyphs and then
12873 sorting it, keep a ordered linked list of glyphs for each line.
12875 * driver/driver.h: Include stddef.h.
12877 * tty/tty.c (compare_glyph):
12878 * refer/refer.c (rcompare):
12879 * troff/env.c (compare_ranges): Arguments of qsort comparison
12880 function should be const void *.
12882 * troff/number.c (parse_term):
12883 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12886 * refer/label.y (consider_authors): Don't access variables
12887 constructed under a condition outside that condition: put braces
12888 round for statement containing declaration; redeclare use of same
12891 * pic/pic.y (text_expr): Delete production that allows
12892 parenthesised text_expr.
12893 (expr): Allow a conditional_expr to appear in parentheses.
12894 (conditional_expr): Rename to any_expr.
12896 * mm: Install new version 1.01 from jh.
12898 * lib/font.c (font::get_width): Cache scaled widths.
12899 (font::font): Initialize widths_cache.
12900 (font::~font): Destroy widths_cache.
12901 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12903 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
12905 * c++test.c, c++test.ref: New files.
12906 * Makefile: Check that the C++ compiler works.
12908 * ps/tmac.pspic (PSPIC): Do a break.
12910 * ps/tmac.ps: Move definition of PSPIC into...
12911 * ps/tmac.pspic: New file.
12912 (PSPIC): Draw box around picture, but make it invisible to grops.
12913 * ps/tmac.ps: Load tmac.pspic.
12914 * ps/Makefile: Install tmac.pspic.
12916 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
12918 * lib/font.c (scale_round): If n is negative,
12919 subtract .5 before truncating floating point result.
12921 * lib/fontfile.c: Include <errno.h>.
12923 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
12925 * driver/input.c (get_char): Inline. Don't update current_lineno.
12926 Change callers to up date current_lineno if necessary.
12927 Use get_char() instead of getc(current_file).
12929 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
12931 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12933 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
12935 * tty/tty.c (tmac.tty): Define \(rg as (R).
12937 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
12939 * lib/lib.h: New define a_delete.
12940 * Use a_delete instead of delete when deleting an array of objects
12941 without destructors.
12943 * lib/lib.h: Rename adelete to ad_delete.
12944 * Change uses of adelete.
12946 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
12948 * eqn/eqn.y: Include lib.h.
12950 * troff/node.c (grow_font_table): Delete old_font_table.
12952 * mm: Install new version from jh.
12954 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
12956 * tbl/table.h (format_type): Make global instead of local to class
12957 entry_format. Prefix enumerators with FORMAT_.
12958 * tbl/table.c, tbl/main.c: Corresponding changes.
12959 * refer/token.h (token_type): Make global. Prefix enumerators
12961 * refer/token.[ch]: Corresponding changes.
12962 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12964 * troff/div.c (node::set_vertical_size): Don't name argument.
12966 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
12968 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12969 * lib/lib.h: Define adelete accordingly.
12970 * pic/object.c (graphic_object::graphic_object):
12971 * tbl/main.c (format::~format):
12972 * tbl/table.c (table::~table):
12973 * refer/ref.c (reference::~reference, reference::merge,
12974 reference::insert_field, reference::delete_field): Use adelete.
12976 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12978 * tbl/table.h: Corresponding changes.
12980 * common.c (common_output::dashed_arc, common_output::dotted_arc):
12981 Ensure total_angle is positive.
12983 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
12985 * refer/ref.c (reference::merge, reference::insert_field,
12986 reference::delete_field): Avoid delete[0].
12988 * refer/token.c (init_special_chars): Move calls to cmupper
12989 outside calls to init_two_char_letter to work around bug in gcc
12992 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
12994 * lib/new.c (operator new): Use __builtin_new for g++.
12996 * pic/object.c (graphic_object::~graphic_object): Don't use
12999 * pic/object.c (output::compute_scale): Initialize max_width and
13002 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
13004 * troff/input.c (write_request): Call fflush.
13006 * troff/node.h (class composite_node): Move declaration to node.c
13007 * troff/input.c (charinfo_to_node): Rename to ...
13008 (charinfo_to_node_list): Return node list rather than composite
13010 * troff/node.c (make_composite_node): New function.
13011 (make_node, add_char): Call make_composite_node instead of
13013 (class composite_node): Add a tfont * member. Delete font_size
13015 (composite_node::composite_node, composite_node::copy,
13016 composite_node::size): Corresponding changes.
13017 (composite_node::tprint): Provide constant spacing, emboldening
13018 and track kerning as specified in tfont.
13019 (composite_node::width): Change width calculation accordingly.
13020 * troff/env.h (environment::composite): New member.
13021 (environment::is_composite, environment::set_composite): New
13023 * troff/env.c (environment::environment): Initialize composite.
13024 * troff/input.c (charinfo_to_node): Call
13025 environment::set_composite.
13026 * troff/node.c (make_composite_node, make_glyph_node): Use the
13027 plain version of the tfont if the environment is composite.
13029 * troff/node.c (font_info::get_space_width): Additional argument
13030 giving space_size. Handle constant space correctly. Scale by
13031 space_size unless constant spaced.
13032 (env_sentence_space_width): New function.
13033 * troff/node.h: Declare it.
13034 * troff/env.h (environment::get_space_size,
13035 environment::get_sentence_space_size,
13036 environment::get_narrow_space_width,
13037 environment::get_half_narrow_space_width): Make inline.
13038 (environment::get_space_width): Make inline. Just call
13040 * troff/env.c: Delete definitions for funtions made inline.
13041 (environment::space_newline, environment::space): Use
13042 env_sentence_space_width(). Don't scale by space_size.
13043 * troff/node.h: Move declarations of env*space_width() functions
13046 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
13048 * macros/tmac.s (PS): Don't try to set negative indent.
13050 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
13052 * pic/pic.y: Fix min function.
13054 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
13056 * man/mdate.sh: Clear LANGUAGE.
13058 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
13060 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13061 * pic/lex.c: New COMMAND keyword.
13062 * pic/pic.y (print_args, print_arg): New rules.
13063 (placeless_element): Use print_args for PRINT.
13064 New COMMAND element.
13066 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
13068 * troff/input.c (terminal): Handle missing argument correctly.
13070 * pic/pic.y (text_expr): New rule.
13072 * pic/pic.y: Implement := operator.
13074 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
13076 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13079 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
13081 * ps/devps/dingbatsrmap: Include this in the distribution.
13083 * macros/tmac.doc: Replace with new version from 2nd Networking
13084 Release. Fix loading of doc-* files.
13085 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13086 * macros/tmac.doc.old: New file. Apply fixes that had been
13087 applied to old tmac.doc.
13088 * macros/tmac.andoc: Check that we're running under groff.
13089 * macros/Makefile: Rework.
13091 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
13093 * tbl/table.h (format_type):
13094 * refer/token.h (token_type): If NESTED_TYPES is defined, use
13095 typedef to make these types visible at file scope.
13096 * Makefile: Add NESTED_TYPES configuration option.
13098 * troff/div.c (mark): At the top level use the value of
13099 nl_reg_contents rather than the current vertical position.
13101 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
13103 * tty/tty.c: Implement \D for horizontal or vertical lines.
13104 (tty_printer::set_char): Use vec_used+2 as serial number.
13105 Don't allow size of vector to exceed USHRT_MAX-2.
13106 Split off part into...
13107 (tty_printer::add_char): New function.
13108 (tty_printer::draw): New function.
13109 (compare_glyph): Handle equal serial numbers.
13110 (tty_printer::end_page): Handle overstruck characters from \D.
13111 (main, usage): Implement -d option.
13113 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
13115 * tbl/main.c (process_format):
13116 * eqn/text.c (split_text):
13117 * troff/input.c (token::next): Use inner block for declarations
13118 with initializers in switch statement.
13120 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
13122 * pic/common.c (common_output::dash_line): Cope with zero-length
13125 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
13127 * Version 1.04 released.
13129 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
13131 * macros/tmac.an (TH): Define a macro an-init to define variables
13132 based on command line arguments.
13133 (an-header): Call it.
13135 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
13137 * Makefile (install.mm): Rename to install.dwbmm.
13139 * Makefile: Integrate mm.
13140 * mm: New directory.
13142 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
13144 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13147 * pic/troff.c (troff_output::simple_spline,
13148 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13149 shadowing parameter.
13151 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13153 * lib/ptable.h: Add explicit casts when converting from unsigned
13156 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13157 * dvi/devdvi/Makefile: Install SA, SB.
13159 * refer/indxbib.c: Add declaration of mktemp.
13161 * refer/lookbib.c: Add declaration of isatty.
13163 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
13165 * pic/lex.c (interpolate_macro_with_args): While collecting
13166 arguments, keep track of whether we're in a string.
13168 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
13170 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13171 down with \v, so as to avoid problems with top of page trap
13172 setting no space mode.
13174 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
13176 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13178 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
13180 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13181 Improve error message.
13183 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
13185 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13188 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
13190 * groff.c (possible_command::execp): Always use _exit() after a
13193 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13194 NO_SYS_WAIT_H configuration options.
13195 * groff.c: Use these options. Use POSIX-style macros to extract
13196 fields from the status returned by wait().
13198 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
13200 * tbl/table.c (table::compute_separation_factor): Allow the
13201 separation factor to drop to 0.
13203 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
13205 * refer/search.c: Include <errno.h>.
13207 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
13209 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13211 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13214 * pic/lex.c (input_stack::bol): Move definition out of class body.
13216 * pic/main.c: On MSDOS munge argv[0].
13218 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13220 * lib/ptable.c (hash_string): Use unsigned long rather than
13222 (next_ptable_size): Use unsigned rather than int. Give an error
13223 message if we've hit the largest table size.
13224 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
13227 * pic/object.h (object_spec): Make flags unsigned long. Declare
13228 flags as const unisgned long rather than as enums.
13230 * pic/output.c: Deleted.
13232 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13234 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13235 Add additional argument.
13236 (line_entry::note_double_vrule_on_{left,right}): Set value of
13237 douvle_vrule_on_{right,left} flag according to argument.
13238 (simple_line_entry::simple_print,
13239 simple_line_entry::double_line_print): If adjacent to double vrule
13240 on a corner extend rather than shorten the rule by half the double
13243 * troff/number.c (parse_term): In checking for overflow, handle the
13244 case where the current horizontal position is negative.
13246 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
13248 * pic/object.c (draw_arrow): Check for object having zero length.
13250 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
13252 * eqn/main.c (do_file): Split off inline equation handling into...
13253 (inline_equation): New function. Search for starting delimiter
13255 (delim_search): New function. Don't recognize a delimiter that
13256 occurs in the name of an escape sequence, number register, string
13259 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
13261 * eqn/delim.c (delim_box::compute_metrics): Don't call
13262 define_extensible_string if left is 0.
13263 (delim_box::output): Don't print the left delimiter if left is 0.
13264 (delim_box::debug_print): Check for left == 0 before calling printf.
13266 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
13268 * troff/Makefile (majorminor.c): Include only digits in
13271 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
13273 * refer/dirnamemax.c: new file.
13274 * refer/genlimits.c: Deleted.
13275 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13276 Don't check path length.
13277 * refer/Makefile: Add dir_name_max.o; delete genlimits.
13278 * Makefile: Add PATHCONF_MISSING option.
13280 * refer/indxbib.c (get_cwd): New function.
13281 (main): Use get_cwd().
13282 * lib/getcwd.c: New file.
13283 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13284 GETCWD in SUBFLAGS.
13285 * lib/Makefile: Compile getcwd.o.
13287 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13290 * refer/indxbib.c (main): Check success of mktemp.
13292 * lib/tmpfile.c: New file.
13293 * lib/Makefile: Add tmpfile.c.
13294 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13295 * ps/ps.h: Delete declaration of mktemp().
13296 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13297 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13298 * driver/driver.h: No need now to include errno.h.
13300 * everywhere: Set errno to 0 before calling fopen().
13302 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13303 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13304 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13306 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
13308 * troff/env.h (translate_space_to_dummy): Declare it.
13309 * troff/env.c (environment::space_newline, environment::space):
13310 If translate_space_to_dummy is set then make the width of spaces 0.
13311 * troff/input.c (translate): If the second character of a
13312 translation is a space, translate to unbreakable space. If the
13313 first character is a space, set or clear translate_space_to_dummy
13314 according to whether the second character is \&. Weird!
13316 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
13318 * groff.c (run_commands): Don't use non-zero exit code because a
13319 command gets SIGPIPE.
13321 * groff.c, groff.sh: Use -mXps with -TXps.
13323 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13324 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13325 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13326 (ps_printer::special): New specials invis and endinvis.
13327 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13328 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
13329 (ps_printer::end_page): Check that invis_count == 0.
13330 (ps_printer::invis_count): New member.
13331 (ps_printer::ps_printer): Initialize invis_count to 0.
13333 * troff/env.c (environment::hyphenate_line): Hyphenation
13334 indicator at beginning of word inhibits splitting after -, \(em
13337 * pic/pic.y (element): Allow another element to follow } without
13338 any intervening separator.
13340 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
13342 * pic/lex.c (get_delimited): Allow tabs before delimiter.
13344 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
13346 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
13347 declaration of wait() in header files.
13348 * Makefile: Get rid of -DHAVE_UNION_WAIT.
13350 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13352 * lib/lib.h: Declare return type of strerror as char *.
13354 * man/Makefile: Add g flag to sed substitutions.
13355 * Makefile (shgroff, bindist): Likewise.
13357 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
13359 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13360 * ps/devps/prologue (PBEGIN): Define showpage after pushing
13363 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
13365 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13368 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
13370 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13373 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
13375 * troff/input.c (define_number_reg): If currently undefined,
13376 don't define it if the argument is an invalid expression.
13378 * Makefile: Ignore return value of `if' commands without `else'
13381 * Makefile: Split up CPPDEFINES into a series of separate
13382 configuration options.
13384 * troff/input.c (init_registers): Use time_t instead of long
13385 unless LONG_FOR_TIME_T is defined. Use returned result rather
13386 than passing pointer.
13387 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13389 * lib/Makefile (fontpath.h): Use gendef.
13391 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
13393 * troff/input.c (input_iterator::shift): Delete argument name.
13394 * troff/node.c (suppress_output_file::really_begin_page,
13395 suppress_output_file::really_transparent_char, node::ascii_print,
13396 node::tprint): Delete names of unused arguments.
13398 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
13400 * refer/label.y (string): Pass $4 to command_error.
13402 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
13404 * Version 1.03 released.
13406 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
13408 * Makefile: Pass definition of SHELL in SUBFLAGS.
13410 * gendef: New file.
13411 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13412 ps/Makefile: Use gendef to construct header files that are
13413 constructed from the Makefile.
13415 * macros/Makefile: make all should build stripped version of tmac.e.
13417 * refer/Makefile (clean): Remove y.output.
13419 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
13421 * ps/pfbtops.c (main): Add -v option which prints out a version
13423 * ps/Makefile (pfbtops): Link with libgroff.a.
13425 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
13427 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13428 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13430 * refer/lkbib.c (main): Always terminate reference with blank
13432 * refer/lookbib.c (main): Likewise.
13434 * refer/linear.c (file_buffer::load): Check that the file is not a
13437 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13438 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13439 Delete second inclusion of <sys/param.h>.
13441 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
13443 * troff/token.h (token::special): Deleted.
13445 * tbl/main.c (process_format): Rework so that opt->tab_char is
13446 recognized only when appropriate.
13448 * ps/Makefile (clean): Remove pfbtops.
13450 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
13452 * lib/font.c (text_file::next): Don't return if we have got a
13455 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
13457 * refer/refer.c (store_reference): Get hash code from old_table[i]
13458 when rehashing the table.
13460 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
13462 * eqn/box.c (box::top_level): Save size and prev size using \R and
13463 restore it afterwards. Set the size to the size at the beginning
13465 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13466 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13468 * refer/Makefile (limits.h): Use ./genlimits.
13470 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
13472 * refer/index.c: Delete declarations of stat() and fstat().
13474 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
13476 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13478 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
13480 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13482 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
13484 * troff/input.c (token::get_char): Handle \e.
13486 * refer/linear.c: Delete declarations of fstat() and stat().
13488 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
13490 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13491 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13493 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
13495 * troff/input.c (do_define_macro): Improve error handling for end
13496 of file while defining macro.
13498 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
13500 * eqn/box.h: Fix declaration of set_gsize.
13501 * eqn/box.c (set_gsize): Make argument const char *.
13502 (gsize): Declare as char *.
13503 * eqn/main.c (main): Don't convert gsize to int.
13504 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13506 * Version 1.02 released.
13508 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
13510 * macros/tmac.andoc: New file.
13511 * macros/Makefile: Install tmac.andoc.
13513 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13514 operator new and delete on OP_DELETE_BROKEN not being defined.
13515 * Makefile: Mention OP_DELETE_BROKEN.
13517 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
13519 * Makefile (bindist): Pass SUBFLAGS.
13521 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
13523 * Makefile, groff.c: Pass definitions to groff.c via device.h.
13525 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13528 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13530 * ps/ps.h, ps/psrm.c: Make comment_table and
13531 header_comment_table local to resource_manager::process_file.
13533 * groff.sh: With -TXps pass -printCommand option to gxditview.
13535 * groff.c (possible_command::print): Implement using
13536 append_arg_to_string.
13538 * xditview: Merge in new implementation with own ChangeLog.
13540 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
13542 * groff.c (main): Implement PRINT_OPTION.
13543 (append_arg_to_string): New command.
13544 (device_table): Set PRINT_OPTION flag for Xps.
13546 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
13548 * troff/groff.h: Rename to troff.h.
13550 * pic/lex.c (lookup_keyword, docmp): New functions.
13551 (get_token): Use new lookup_keyword.
13552 Don't include key.h.
13553 * pic/key.[ch], pic/pic.gperf: Deleted.
13554 * pic/Makefile: Remove gperf stuff.
13556 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13558 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13560 * troff/Makefile, troff/node.c: Move definition of
13561 STORE_WIDTH into node.c.
13563 * etc/grog.pl, etc/grog.sh: Support -mdoc.
13565 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
13567 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13568 dvi/devdvi/texb.map: Add lq and rq.
13569 dvi/devdvi: Regenerate fonts.
13570 * ps/devps/textmap: Add lq and rq.
13571 * ps/devps: Regenerate fonts.
13572 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13573 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13575 * pic/object.c (position_rectangle): When checking radius
13576 cope with possiblity that width or height is negative.
13577 (box_object::box_object): Have separate xrad and yrad with
13578 signs matching signs of dim components.
13579 (box_object::{north,south}_{east,west}): Use xrad and yrad.
13580 (box_object::print): With rounded boxes use absolute values
13581 for dim and rad arguments.
13583 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13586 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13588 * various files: Add explicit destructors to keep Saber CC +d
13591 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
13593 * eqn/box.c (box::top_level): Restore fonts correctly after
13594 font changes in line containing inline equation. Also
13595 restore previous font as well as current font.
13596 * eqn/pbox.h: Define necessary string and register names.
13598 * troff/input.c (token::next): Case 'R' calls do_register.
13599 (do_register): New function.
13601 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
13603 * groff.c, groff.sh: Support Xps device. Allow each device
13604 to have a pseudo_name and a real_name.
13606 * groff.c (run_commands): Don't print `Broken pipe' messages.
13608 * ps/pfbtops.c: New file.
13609 * ps/Makefile: Add pfbtops.
13611 * troff/number.c (parse_term): Improved error message.
13613 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
13615 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13617 * Makefile: Integrate refer.
13618 * refer: New directory.
13619 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13620 man/lkbib.man: New files.
13621 * man/Makefile: Support refer man pages.
13623 * lib/lib.h: Declare is_prime.
13624 * lib/prime.c: New file.
13626 * troff/input.c (macro_source): New function.
13627 (init_input_requests): Bind "mso" to macro_source.
13629 * troff/env.c (environment::possibly_break_line): Maintain
13630 pointer to pointer to node to be split in ndp so as to avoid
13631 using address of freed node.
13633 * troff/env.c (environment::hyphenate_line): Maintain pointer to
13634 pointer to first node to be hyphenated in startp so as to
13635 avoid using address of freed node.
13637 * troff/env.c (class trie, class hyphen_trie): Make the
13638 elements of the trie be of type char not unsigned char.
13639 Declare arguments to be const char* instead of unsigned char *.
13641 * troff/env.c (hyphenate): Initialize hbuf[0].
13643 * troff/input.c (set_string): Declare p to be char * and cast
13644 *p to unsigned char when necessary.
13646 * troff/input.c (do_define_macro): Declare s to be const
13647 char*. Cast element to unisgned char when necessary, Declare
13648 d to be an int. Handle EOF better.
13650 * troff/Makefile, troff/input.c: Different scheme for passing
13651 definitions of MACROPATH, HYPHENFILE and DEVICE.
13653 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
13655 * tty/devascii/R.proto: Delete entry for em.
13656 * tty/devlatin1/R.proto: Likewise.
13658 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
13660 * troff/input.c (translate): Stop when we get a space. Treat eof
13663 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13665 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
13667 * tbl/main.c (process_format): A font name following a `f'
13668 modifier that starts with a digit can be only one character long.
13669 Also deal with EOF on the second character of the font name.
13671 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
13673 * troff/input.c (token::next): Turn \~ into an
13674 unbreakable_space_node.
13675 * troff/node.c (unbreakable_space_node): New class.
13676 * troff/node.h: Declare it.
13678 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
13680 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
13681 it's >= 0, before outputting it as a single byte.
13683 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
13685 * lib/font.c: Make font_char_metric::code an int.
13686 (font::get_code): Change return type to int.
13687 (font::load): Allow code to be arbitrary integer.
13688 * lib/font.h (font::get_code): Change return type to int.
13689 (font::number_to_index): Change argument type to int.
13690 * troff/input.c (token::next): In case 'N', allow any value.
13691 Store value in token::val.
13692 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13693 (token::get_char, token::add_to_node_list, token::process): Get
13695 (charinfo::set_number): Change argument to int.
13696 (charinfo::get_number): Require that NUMBERED flag be set.
13697 (get_charinfo_by_number): Store numbered characters not between 0
13698 and 255 in a dictionary.
13699 * troff/charinfo.h (get_charinfo_by_number): Change argument type
13701 (charinfo::number): Change type to int.
13702 (charinfo::set_number): Change type of set_number to int.
13703 * troff/node.c (troff_output_file::put_char_width,
13704 troff_output_file::put_char): Test whether character is numbered
13705 using charinfo::numbered().
13706 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13708 * lib/nametoindex.c: New implementation to cope with arbitrary
13711 * troff/input.c (token::operator==): Test val for
13712 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13715 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13716 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
13718 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
13720 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
13723 * all Makefiles: rm targets of cp and >.
13725 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13728 * eqn/lex.c (def_table): Add dollar.
13730 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
13732 * troff/input.c (do_width): Push back newline before closing delim
13735 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
13737 * groff.c (possible_command::prepend_arg): New function.
13738 (main): Prepend device -m option.
13739 * groff.sh: Put device -m options before command-line options.
13741 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
13743 * macros/tmac.an (IP): Quote argument to TP.
13745 * ps/ps.c (main): New option -b, which sets...
13746 (broken_flags): New variable.
13747 (ps_printer::~ps_printer): Incorporate the setup section in the
13748 prolog if (broken_flags & NO_SETUP_SECTION).
13749 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13750 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13751 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13752 ps_printer::print_needed_font_comment,
13753 ps_printer::print_supplied_font_comment,
13754 ps_printer::print_include_font_comments,
13755 ps_printer::lookup_doc_font, ps_printer::download_fonts,
13756 ps_printer::read_download_file, read_document_fonts, add_font,
13757 skip_line, parse_fonts_arg, document_font::document_font,
13758 document_font::~document_font, document_font::download,
13759 ps_output::include_file): Deleted.
13760 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13761 rather than %!PS-Adobe-2.0. Make calls to
13762 resource_manager::need_font for each font that we used. Replace
13763 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13764 print_supplied_font_comment, print_needed_font_comment by call to
13765 resource_manager::print_header_comments. Output %%Orientation
13766 comment. Output %%Requirements: numcopies comment if ncopies > 1.
13767 Don't output the prolog directly. Instead call
13768 resource_manager::output_prolog. Only define #copies when ncopies
13769 > 1. Delete calls to print_include_font_comments and
13770 download_fonts. Add call to resource_manager::document_setup.
13771 (ps_printer::do_file): Call resource_manager::import_file instead
13772 of including it ourselves.
13773 (ps_printer::do_import): Likewise. Also don't call
13774 merge_import_fonts. Push userdict on the dictionary stack before
13775 and pop it afterwards.
13776 Move declaration of ps_output into ps.h.
13777 * ps/psrm.c: New file implementing resource_manager class.
13778 * ps/ps.h: New file declaring ps_output and resource_manager
13780 * ps/devps/zapfdr.ps:
13781 * ps/devps/symbolsl.ps:
13782 * ps/devps/prologue: Use 3.0 conventions.
13783 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13784 Add default definition of BROKEN_SPOOLER_FLAGS.
13785 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
13786 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13788 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
13790 * etc/grog.pl: New file.
13791 * Makefile (GROG): New variable.
13792 Add GROG to SUBFLAGS.
13793 * etc/Makefile (GROG): New variable.
13794 (install.nobin): Install $(GROG) rather than grog.sh.
13796 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
13798 * eqn/special.c (special_box::compute_metrics): Make the input and
13799 output strings the same. Get the new height and depth from the
13800 predefined height and depth registers. Also make subscript kern
13801 and skew available.
13802 (special_box::compute_subscript_kern, special_box::compute_skew):
13805 * eqn/box.c (pointer_box::compute_skew,
13806 simple_box::compute_metrics, box::top_level)
13807 * eqn/text.c (prime_box::compute_metrics,
13808 prime_box::comput_subscript_kern)
13809 * eqn/limit.c (limit_box::compute_metrics):
13810 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13811 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13812 negative numbers in `nr' requests with a leading 0.
13814 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
13816 * eqn/special.c: New file.
13817 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
13818 Add new rule for simple.
13819 * eqn/lex.c (token_table): Add SPECIAL.
13820 * eqn/box.h: Declare make_special_box.
13821 * eqn/Makefile: Add special.[co].
13823 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
13825 * ps/devps/prologue: Possibly set packing to true while defining.
13826 Create grops dictionary here. Initialize local variables before
13827 defining procedures.
13828 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13829 the dictionary stack. Set strokeadjust and overprint to false if
13830 the relevant operators are defined.
13831 (PEND): New procedure.
13832 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13833 prologue. Do everything else in the setup section.
13834 (ps_printer::do_import): Just call PBEGIN and PEND around the
13835 picture. Also push userdict before, and pop it afterwards.
13837 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
13839 * troff/node.c (bracket_node::tprint): Brackets were being printed
13842 * macros/tmac.an (SH, SS): Set fill mode.
13844 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
13846 * troff/div.c (top_level_diversion::begin_page): Set
13847 high_water_mark to 0.
13849 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
13851 * man/mdate.sh: New file.
13852 * man/mdate.c: Deleted.
13853 * man/Makefile: Use mdate.sh instead of mdate.
13856 * eqn/lex.c (do_gsize): Supply missing argument to error message.
13858 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
13860 * man/mdate.c: New file.
13861 * man/*.man: Replace modification date by @MDATE@.
13862 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13863 (mdate): New target.
13865 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13866 Remove illegal input characters.
13868 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
13870 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13872 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
13874 * troff/div.c (begin_page): Change behaviour when
13875 !first_page_begun and !break_flag.
13877 * troff/input.c (do_name_test): Return 0 if argument is empty.
13879 * troff/input.c (read_long_escape_name): Require closing ] to be
13880 at same input level as opening [.
13882 * troff/input.c (read_increment_and_escape_name): New function.
13883 (get_copy, process_input_stack): Use this for \n.
13885 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
13887 * troff/div.c (top_level_diversion::begin_page): Ignore the
13888 current value of page_number if !first_page_begun.
13890 * groff.c (main): Fix declaration of buf.
13892 * troff/input.c (do_name_test): New function.
13893 (token::next): Implement \A.
13894 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13895 (token::description, token::add_to_node_list, token::process):
13896 Handle TOKEN_ESCAPE.
13897 * troff/token.h: New token TOKEN_ESCAPE.
13899 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
13901 * pic/main.c (do_picture): Allow space before and after filename
13902 following `<'. Check that the filename is not empty.
13904 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
13906 * Version 1.01 released.
13908 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13910 * dvi/tmac.dvi: ftr HR to H.
13912 * macros/tmac.e: Round up computation of $r.
13914 * xditview/tmac.X: Don't give up completely in compatibility mode.
13915 Use \n(.s instead of \n[.s].
13917 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13918 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13919 Add u to factors inside \s[...]. Rename frac to dvi-frac.
13920 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13921 short names in the char definitions.
13923 * ps/tmac.ps: Don't give up completely in compatibility mode.
13924 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13925 quote in front of \n(.s. Add u to factors inside \s[...].
13927 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
13929 * tty/tmac.tty: Call the nroff request.
13931 * macros/tmac.e ((x, )x): Better definitions that work properly
13933 (@0, @1): Helper macros for (x.
13935 * macros/tmac.e ($s, hl): Use \l rather than \D.
13937 * tty/tmac.tty: Make it work better in compatibility mode.
13938 (pchar): Rename to tty-char.
13940 * macros/tmac.e (@E): New macro.
13941 (r, i, b, rb, bi): Use @E.
13943 * macros/tmac.e (@F): Don't use (;...) syntax.
13945 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
13946 it was modified for groff.
13948 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13950 * macros/tmac.e (<., .>): Removed.
13951 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13953 * macros/tmac.e: Remove check that groff is being used.
13955 * macros/tmac.e (@C): Change families only if using groff; turn
13956 compatibility mode off while changing familes. Save compatibility
13957 mode before changing families and restore it afterwards.
13959 * macros/tmac.e (@h): Remove test for offset + line length.
13961 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
13962 (lo, th, ac): Define to call @S instead of using als.
13964 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13965 the ratio of the vertical spacing to the point size in units
13966 expressed as a percentage. Use these instead of $10r and $10R,
13967 Delete $10r and $10R.
13969 * lib/font.c (font::load): In default computation of space_width,
13970 divide by sizescale. Use scale_round.
13972 * macros/tmac.an (TP): Don't call `nf'.
13973 (an-do-tag): Don't call `fi'.
13975 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
13977 * troff/input.c (process_input_stack): Handle the case where
13978 spaces at the beginning of an input line are followed by a
13981 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
13983 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13984 * groff.sh: Use pic -x with the dvi device.
13986 * dvi/devdvi/FontMakefile (H): Don't use -s.
13988 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13989 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13990 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13993 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
13995 * ps/psfig.diff: New file.
13996 * ps/tmac.psfig: New file.
13998 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
14000 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14001 (]-): Don't call ref*do-tl.
14003 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14005 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14006 (fn@do-FS): Rename to fn*do-FS.
14008 * troff/input.c (transparent_translate): New function.
14009 (process_input_stack): Apply transparent_translate before calling
14010 diversion::transparent_output(unsigned char).
14012 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
14014 * troff/input.c (do_define_macro): Define the macro before calling
14017 * xditview/Makefile: Add DEVICES variable. Change install target
14020 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
14022 * groff.c (run_commands): Handle the possibility that there are
14023 child processes other than those forked by us.
14025 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
14027 * lib/string.c (string::append): New function.
14028 * lib/stringclass.h: Declare it.
14030 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
14032 * eqn/main.c (main): New option -N which sets
14033 no_newline_in_delim_flag.
14034 (do_file): If no_newline_in_delim_flag is set don't allow newlines
14036 * groff.c (main): Pass -N on to eqn.
14037 (help, synopsis): Mention -N.
14038 * groff.sh: Implement -N.
14040 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
14042 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14043 (]-): Call ref*do-tl if ref*need-tl is non-zero.
14044 (XP): Allow as initializer.
14046 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
14048 * troff/env.c (environment::wrap_up_field): If field_spaces are
14049 non-zero and we have a current_tab, subtract padding from
14050 tab_distance. If this makes tab_distance <= 0, use the next tab
14051 stop instead. If there isn't any next tab or it's a left tab,
14052 wrap up the current tab.
14053 (environment::start_field): Initialize tab_precedes_field.
14054 (environment::wrap_up_tab): If there's a current field, update
14055 pre_field_width, field_distance and tab_precedes_field.
14056 * troff/env.h (environment::tab_precedes_field): New member.
14058 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
14060 * ps/ps.c (ps_printer::do_file): New function.
14061 (ps_printer::special): Bind to `file' special.
14062 (ps_printer::do_exec): Set ndefined_styles to 0.
14064 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
14066 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14067 Avoid stripping first character from the start of unrecognized
14068 escapes. Use lex_error instead of error to report errors.
14069 * eqn/lex.c (get_token): Rework handling of escapes.
14070 (lex_error): Move declaration into...
14073 * xditview/xditview.c (main): Make -page option work.
14075 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14077 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
14079 * macros/tmac.s (B2): Correct size of box.
14081 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
14083 * macros/tmac.s (B2): Postpone drawing the box until in the
14084 top-level diversion.
14086 * tty/tmac.tty: Add font translations for C, CR, CW.
14088 * groff.c (synopsis, help): Document -i.
14089 * groff.sh: Implement -i.
14091 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14092 Simplify the construction of SN.
14094 * troff/number.c (parse_term): Give `|' a higher precedence.
14095 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14098 * macros/tmac.s (B2): Use par@finish instead of par@reset.
14100 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
14102 * lib/string.c (string::move): New function.
14103 * lib/stringclass.h: Declare it.
14105 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
14107 * troff/env.c (distribute_space): Add optional argument
14109 (environment::wrap_up_field): Call distribute_space with
14110 `force_forward' argument of 1.
14112 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
14114 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14115 Inline it. Move reallocation into...
14116 (string::grow1): New function.
14117 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14118 dependencies to include library header files.
14119 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14121 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
14123 * macros/tmac.s (@NH): Use the same number registers than -ms does
14124 for the heading level counters. Use the same string that -ms does
14125 for the number for this heading.
14127 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
14129 * lib/new.c (operator new): Cast result of malloc to char *.
14131 * troff/input.c (spring_trap, lookup_request): Add assert that nm
14134 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
14136 * groff.c (main): Support -i.
14138 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
14140 * pic/pic.h: Include <osfcn.h>.
14142 * ps/ps.c: Add declaration of mktemp.
14144 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14145 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14146 argument as union wait *.
14147 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14148 argument to union wait *.
14150 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
14152 * tty/tmac.tty: Add definition of \(co.
14154 * pic/object.c (make_arc): Only increase radius when radius
14155 strictly less than d.
14156 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14159 * troff/env.c (environment::environment(symbol),
14160 environment::environment(const environment *)): Initialize
14163 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
14165 * tbl/main.c (main): Add exit(0).
14167 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14169 * pic/main.c (main):
14170 * eqn/main.c (main):
14171 * tbl/main.c (main):
14172 * etc/soelim.c (main):
14173 * driver/printer.c (printer::~printer):
14174 * troff/node.c (real_output_file::~real_output_file,
14175 real_output_file::flush): Check for errors on stdout.
14177 * most files: Add 1991 to copyright notice.
14179 * macros/tmac.s: Don't test \n(.x and \n(.y.
14181 * troff/input.c (token::next): Rename `escape_char' label to
14182 `handle_escape_char' and `normal_char' label to
14183 `handle_normal_char'.
14185 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
14187 * groff.c (main, synopsis, help): Support -a option.
14188 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
14189 to trflags while parsing options.
14191 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
14193 * troff/number.c (parse_term): With `m', `M' and `n' scale
14194 indicators, convert scale factor to hunits before scaling.
14196 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
14198 * lib/font.c (scale_round): Better test for overflow when n is
14201 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
14203 * tbl/main.c (process_format): Add second argument of type
14204 options*. Change callers. Allow opt->tab_char as well as '\t'
14205 between format items.
14207 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
14209 * macros/tmac.an (PD): With no arguments, make sure register PD is
14211 (TH): Call PD with no argument, instead of setting register PD
14214 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
14216 * Version 1.00 released.
14218 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
14220 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14222 * dvi/devdvi/DESC: Mount CW instead of CR.
14224 * dvi/tmac.dvi: Add definition of \(tm.
14226 * dvi/devdvi/texsy.map: Add lh, and rh.
14227 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14228 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14230 * dvi/devdvi/FontMakefile: Generate H from cmss10.
14231 * dvi/devdvi/Makefile: Install H.
14232 * dvi/devdvi/H: New file.
14234 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
14236 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14239 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
14241 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14243 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14245 * macros/tmac.s (@EN): Handle the case where the equation is empty
14246 but the label is not.
14248 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
14250 * troff/groff.h: New warning category WARN_SPACE.
14251 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14252 WARN_SPACE to warning_table.
14253 (interpolate_macro): Give a warning of type WARN_SPACE if the name
14254 is longer than two characters and is not defined, but the first
14255 two characters do make a defined name.
14257 * PROBLEMS: New file.
14259 * CHANGES: New file.
14260 * README-0.6, README-1.00: Deleted.
14262 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14263 * xditview/devX75/Makefile: Make devX75-12.
14264 * xditview/devX100/Makefile: Make devX100-12.
14266 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14267 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14269 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
14271 * README-0.7: Rename to README-1.00.
14273 * macros/tmac.pic: New file.
14274 * macros/Makefile (install.nobin): Install tmac.pic.
14276 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
14278 * troff/env.c (hyphen_word): Correct the test for whether the
14279 token is a hyphen. Reset npos to 0.
14281 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14283 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
14285 * macros/tmac.s (ds*common-end): Call par*reset.
14287 (par@reset-indent): Deleted.
14289 * macros/tmac.s (@IP): Divert the label.
14291 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
14293 * xditview/draw.c (setGC): Use a line width of .1m rather than
14294 .04m by default; round rather than truncate value.
14296 * tbl/table.c (class empty_entry): New class.
14297 (empty_entry::empty_entry, empty_entry::line_type): New functions.
14298 (table::add_entry): Represent empty entries by objects of type
14300 (table_entry::line_type): Return -1.
14301 (table::determine_row_type): Ignore entries with line_type 0.
14302 Treat type -1 as non-lines.
14304 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
14306 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14307 macros/tmac.s: Rename \(-d to \(Sd.
14309 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
14311 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14312 * xditview/libXdvi/DviChar.c: Likewise.
14313 * dvi/devdvi/texsy.map: Add `<<', `>>'.
14315 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
14317 * troff/div.c (top_level_diversion::begin_page): Call
14318 init_output() if the_output is 0.
14320 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
14322 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14324 (get_copy): Turn \E into ESCAPE_E.
14325 (token::process, asciify): Handle ESCAPE_E.
14327 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14329 (DS): Implement `.DS R'.
14331 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
14333 * macros/tmac.s (FS): New macro.
14335 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14337 * macros/tmac.s (cov*tl-init): Remove after first execution
14338 instead of aliasing to @nop. Call top of page macro explicitly
14339 instead of setting trap; call @init first. Set pg@top as top of
14341 (cov*auto-init): Deleted. Set cov*tl-init instead of
14342 cov*auto-init as top of page trap.
14343 (TL, LP): Do a break instead of calling cov*tl-init.
14344 (cov*print): With RP format but no TL, alias FS and FE to @FS and
14345 @FE; in this case also give a warning and always start another
14346 page. No need to set pg@top here.
14347 (cov*tl-init): Rename to cov*first-page-init.
14349 * macros/tmac.s (RP): Do `.pn 0'.
14350 (cov*tl-init): With RP format don't do `.pn 0'.
14352 * macros/tmac.s (pg@cs-top): Set no space mode.
14354 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14355 (cov*ab-init): Alias TL, AU and AI to these.
14357 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
14359 * macros/tmac.s (@EQ): Move the space before the equation into @EN
14360 (@EN): Do nothing unless \n[dl] is > 0.
14362 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
14364 * pic/object.c (ellipse_object::radius): New function.
14366 * VERSION: Change version to 0.7.
14368 * tbl/table.c (block_entry::do_divert): Declare return type as
14370 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14372 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
14374 * troff/column.c: New file.
14375 * troff/Makefile: Corresponding changes.
14377 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
14380 * troff/div.c (top_level_diversion::space): If the space causes
14381 the first-page transition and springs a trap, truncate the space
14384 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
14386 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14389 * pic/troff.c (troff_output::line_thickness,
14390 troff_output::set_fill): Do a horizontal motion to compensate for
14391 the width of the \D escape sequence.
14393 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
14395 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14398 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
14401 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14402 Supply empty definition.
14403 (text_entry::simple_print, simple_text_entry::simple_print):
14404 Delete declarations.
14405 (table::add_entry): Represent empty entries by objects of type
14408 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
14410 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14412 * tbl/table.c (left_text_entry::add_tab): New function.
14414 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
14415 initialize like LP.
14417 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
14419 * troff/env.c (environment::start_field): Give an error message if
14420 there is no next tab.
14422 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
14424 * troff/env.c (hyphenate): Skip initial elements with zero
14427 * macros/tmac.s (par@init): Keep VS in points rather than units.
14429 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
14431 * pic/main.c (main): Implement `-c' option.
14432 * pic/output.h: Declare make_tpic_output().
14433 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14435 (tpic_output): New class.
14436 (tpic_output::tpic_output, tpic_output::set_pen_size,
14437 tpic_output::command, make_tpic_output): New functions.
14439 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
14441 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
14442 if they're not already defined.
14443 * tbl/table.c (init_output): Don't test \n(.g.
14445 * troff/input.c (do_if_request): Delete `g' condition. Recognize
14446 `d', `r' and `c' conditions even in compatibility mode.
14448 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
14450 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14453 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
14455 * troff/env.h (environment::prev_line_interrupted): New member.
14456 (environment::get_prev_line_interrupted): New function.
14457 * troff/env.c (environment::newline): Set prev_line_interrupted.
14458 (environment::environment(const environment *),
14459 environment::environment(symbol)): Initialize
14460 prev_line_interrupted.
14461 * troff/input.c (process_input_stack): Don't give special
14462 treatment to space and newline at the beginning of the line if the
14463 previous line was interrupted.
14465 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
14467 * eqn/eqn.y: Disallow PRIME by itself.
14468 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14470 (def_table): Remove definition of '. Define prime to be `.
14472 * eqn/eqn.y: Split off part of rule `script' into a new rule
14475 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
14477 * macros/tmac.s ({, }): New string aliases.
14479 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
14481 * README-0.7: New file.
14483 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
14485 * macros/tmac.s: New file.
14486 * man/groff_ms.man: New file.
14487 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14488 * Makefile.bd: Similarily.
14489 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14490 definition of TMAC_S.
14491 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14492 * macros/TODO: New file.
14494 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
14496 * troff/env.c (right_justify): New function.
14497 (init_env_requests): Bind this to request "rj".
14498 (center_lines): Set right_justify_lines to 0. If we get a bad
14499 integer, center 1 line.
14500 (environment::environment(symbol), environment::environment(const
14501 environment *)): Initialize right_justify_lines.
14502 (environment::get_right_justify_lines): New function.
14503 (init_env_requests): Bind this to number_register ".rj".
14505 * troff/env.c (environment::choose_breakpoint): Implement
14506 hyphenation_margin and hyphenation_space.
14507 (environment::get_hyphenation_space,
14508 environment::get_hyphenation_margin): New functions.
14509 (init_env_requests): Bind these to .hys and .hym.
14510 (hyphenation_space_request, hyphenation_margin_request): New
14512 (init_env_requests): Bind these to hys and hym.
14513 (environment::environment(symbol), environment::environment(const
14514 environment *)): Initialize hyphenation_margin and
14516 * troff/env.h: Corresponding changes to class environment.
14518 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
14520 * troff/div.c (blank_line): Always do a break.
14522 * eqn/box.c (do_text): Turn off escapes while appending text to
14525 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
14527 * troff/input.c (while_break_request, while_continue_request): New
14529 (init_input_requests): Bind these to "break" and "continue".
14530 (while_depth, while_break_flag): New variables.
14531 (while_request): Update while_depth. Break out of loop if
14532 while_break_flag is set.
14534 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
14536 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14539 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
14541 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
14543 * stringify: New file.
14544 * Makefile (groff.o): Use stringify.
14546 * xditview/tmac.X: Remove definition of \(rn.
14547 * xditview/libXdvi/DviChar.c: Remove radicalex from
14550 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
14552 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14553 (alphabetic_block_entry::alphabetic_block_entry,
14554 alphabetic_block_entry::divert, alphabetic_block_entry::print):
14556 (block_entry::divert): Split off body into ...
14557 (block_entry::do_divert): If the block is alphabetic, subtract 2n
14558 from the line length; also update the span width to dl+2n, and the
14559 alphabetic span width to dl.
14561 * driver/input.c (do_file): While reading argument to D command,
14562 when expanding buffer, multiply szp by sizeof(int) rather than 2
14563 in the argument to memcpy.
14565 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14566 width of alphabetic columns.
14568 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
14570 * troff/node.c (lookup_family): Supply second argument to lookup.
14572 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14573 search, return immediately if v is 0.
14575 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14576 (troff_output::start_picture): Set this reg.
14577 (troff_output::end_picture): Remove this reg
14578 * eqn/box.c (box::extra_space): Don't produce `\x's if
14579 EQN_NO_EXTRA_SPACE_REG is defined.
14581 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14582 * eqn/text.c (split_text): Map ' to \(fm when it's the first
14585 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
14587 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14590 * troff/div.c (top_level_diversion::top_level_diversion):
14591 Initialize page_number to 0.
14593 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
14595 * groff/troff (environment::environment(const environment *)):
14596 Initialize name to e->name, rather than "anonymous".
14598 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
14600 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14601 requested_page. Split middle part into ...
14602 (FindPage): New function.
14603 (SetValues): If we don't yet know the last page, and the requested
14604 page is greater than the current page, call FindPage.
14605 Update the font_map_string before doing this.
14607 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14608 Translate \(lh and \(rh into left and right double arrows.
14610 * troff/node.c (class hyphen_inhibitor_node): New class.
14611 (hyphen_inhibitor_node::hyphen_inhibitor_node,
14612 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14613 hyphen_inhibitor_node::type,
14614 hyphen_inhibitor_node::get_hyphenation_type): New functions.
14615 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14616 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14619 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
14621 * troff/node.h (dummy_node::get_hyphenation_type,
14622 transparent_dummy_node::get_hyphenation_type): Declare them.
14623 * troff/node.c: (dummy_node::get_hyphenation_type,
14624 transparent_dummy_node::get_hyphenation_type): New functions.
14626 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
14628 * xditview/libXdvi/draw.c: If M_PI not defined after including
14629 math.h, then define it.
14631 * xditview/Makefile: Add definition of AR. Pass it to the submake
14633 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14635 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
14637 * troff/dictionary.h (object_dictionary::alias): Declare return
14639 * troff/dictionary.c (object_dictionary::alias): Return non-zero
14640 if the old name was defined.
14641 * troff/input.c (alias_macro): Give a warning if the old name was
14643 * troff/reg.c (alias_reg): Likewise.
14645 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
14647 * troff/input.c (token::next): Delete implementation of \R.
14649 * macros/Makefile: Strip comments from tmac.e while installing it.
14651 * troff/input.c: New variable `nroff_mode'.
14652 (troff_request, nroff_request): New functions.
14653 (init_input_requests): Bind `troff' and `nroff' to troff_request
14655 (do_if_request): Compute results of t and n conditions from
14658 * text/text.c (split_text): Fix typo in >=.
14660 * eqn/lex.c: Add definition of `==' to def_table.
14662 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
14664 * pic/tex.c (tex_output::start_picture): Change the definitions of
14665 \graph and \graphtemp so that they work properly with Plain TeX.
14667 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14668 argument to `ar' is not less than the first.
14670 * pic/pic.y: Allow a comma between elements of the variable list
14671 in the argument to `reset'.
14673 * pic/object.c (arc_object::arc_object): Fix computation of
14676 * eqn/main.c (main): Add exit(0).
14678 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
14680 * troff/div.c (begin_page): Test no_space_mode after doing the
14681 break, but still push the page ejector cookie before doing the
14682 break. Also set the next page number after doing the break.
14684 * xditview/xditview.c (NewFile): Don't set the title and icon name
14685 if this is the first file and its name is `-'.
14686 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
14687 the X75 and X100 devices.
14688 (main): If a device has the XT_OPTION flag set and there's exactly
14689 one file argument, pass the driver -xrm and -title options to set
14690 the icon name and window title to the name of the file.
14692 * troff/env.c (environment_switch): If there was an argument but
14693 it wasn't a valid number or name, then pop an environment but
14694 don't give an error message on underflow.
14696 * troff/number.c (start_number): Correct spelling in error message.
14698 * troff/input.c (token::delimiter): Don't print an error message
14701 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14702 ParseDrawFunction if dw->display_enable is true.
14704 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
14706 * pic/pic.y: Parse text positioning like normal attributes, so as
14707 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
14708 positioning attribute.
14710 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
14712 * tbl/main.c (process_data): When in state START while reading a
14713 text block, don't change to state MIDDLE if c is a newline.
14715 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
14717 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14718 so as to avoid shadowing parameter.
14720 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
14722 * tbl/table.c (trim_space): Deleted.
14723 (table::add_entry): Don't call trim_space.
14725 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
14727 * VERSION: Change version to 0.6.
14729 * troff/number.c (parse_expr): Make == work.
14731 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
14733 * man/grog.man: New file.
14734 * man/Makefile: Add grog.n to MAN1PAGES.
14735 * etc/grog.sh: New file.
14736 * etc/Makefile: Install grog.sh as grog.
14738 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
14740 * troff/input.c (token::next): Implement \E.
14742 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
14744 * xditview/tmac.X: Change font translations to match tmac.ps.
14746 * troff/input.c (non_empty_name_warning): Don't give a warning if
14747 `\{' terminates the name.
14749 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
14751 * ps/devps/symbol.diff: New file.
14752 * ps/devps/FontMakefile: Mention symbol.diff.
14754 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
14756 * troff/node.c (font_position): Use get_long_name to read the
14759 * troff/env.c (environment_switch): If we get a number that's < 0
14760 or >= NENVIRONMENTS, treat it like a name.
14761 Change NENVIRONMENTS to 10.
14763 * troff/groff.h: Remove definition of FONTS_MAX.
14764 * troff/node.h (class font_family): Make map a pointer instead of
14765 an array. Add a map_size member. Make it a class. Make nm const
14766 and public. Make invalidate_fontno a friend.
14767 * troff/node.c: Define font_table_size. Make font_info a pointer
14768 rather than an array.
14769 (class troff_output_file): Allocate font_position dynamically. Add
14770 nfont_positions member.
14771 (troff_output_file::set_font): Grow font_position if necessary.
14772 (troff_output_file::~troff_output_file): Delete font_position.
14773 (troff_output_file::troff_output_file): Allocate font_position.
14774 (grow_font_table): New function.
14775 (troff_output_file::really_begin_page,
14776 troff_output_file:really_copy_page): Use nfont_positions rather
14778 (mount_font_no_translate, mount_style): Call grow_font_table if
14780 (font_family::font_family): Allocate map.
14781 (font_family::make_definite): Grow map if necessary. Use
14782 font_table_size instead of FONTS_MAX.
14783 (font_family::~font_family): New function.
14784 (invalidate_fontno): Use font_family::map_size.
14785 (get_fontno, env_space_width, env_half_narrow_space_width,
14786 env_narrow_space_width, symbol_fotno, is_good_fontno,
14787 get_bold_fontno, make_glyph_node): Use font_table_size rather than
14789 (next_available_font_position): Never return 0.
14791 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
14793 * ps/tmac.ps: Add font translations for compatibility with dpost.
14795 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
14797 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14798 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14799 Move definitions baseline_sep, shift_down, column_sep,
14800 matrix_side_sep into...
14801 * eqn/box.c: Add them to param_table.
14802 * eqn/pbox.h: Add declarations to pbox.h.
14804 * troff/input.c (set_string): Cast value to unsigned char *.
14806 * troff/token.h (process_input_stack): Declare it static before
14807 declaring it a friend.
14809 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
14811 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14813 * dvi/devdvi/EX: Regenerate.
14815 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14818 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
14820 * eqn/lex.c: In defaults_table, make definition of `dot' call
14821 `dot_def'. Don't explicitly make it roman. Similarily for other
14824 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14826 (for_input::get, for_input::peek): Use this.
14827 (do_for): Add by_is_multiplicative argument.
14828 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14829 Change semantic value of optional_by to be a double plus a flag
14830 saying whethet the by clause is multiplicative.
14832 * eqn/lex.c (get_delimited_text): Remember location of start of
14833 definition. Improve error handling when EOF is encountered.
14835 * lib/font.h: Rename handle_x_command to
14836 handle_unknown_font_command.
14837 * lib/font.c (font::load): Call handle_unknown_font_command for
14838 any unknown command in the font description file. Don't call
14839 handle_x_command. Include the name of the command in the argv.
14840 Improve message for unknown command after kernpairs or charset
14842 * ps/ps.c (ps_font::handle_x_command): Rename to
14843 handle_unknown_font_command. Remove message about `x download'
14844 command. Give error message for wrong number of arguments.
14845 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14846 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14847 handle_unknown_font_command. Give an error message for wrong
14848 number of arguments. Rename design_size to designsize.
14849 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14850 checksum', `designsize' instead of `design_size'.
14852 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
14854 * eqn/*.[chy]: Change underaccent to uaccent.
14856 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
14857 give it the same precedence as ACCENT.
14858 * eqn/other.c (make_underaccent_box): New function.
14859 * eqn/box.h: Declare it.
14860 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14863 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
14865 * pic/pic.y (reset_all): New function. Called in rule for RESET.
14866 (parse_init): Call reset_all.
14867 (define_variable): When defining scale reset only those
14868 pre-defined variables that are scaled.
14869 (defaults_table): Add `scale' as non-scaled value.
14871 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14872 together with the text; allow any number of positioning words;
14873 allow center as a positioning word.
14875 * pic/object.c (output::compute_scale): Get picture maximum height
14876 and width from variables called maxpswid and maxpsht.
14877 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14879 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
14881 * pic/object.c (object_spec::make_text): Multiply textht by number
14884 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14886 (do_sprintf): New function.
14887 (pic.gperf): Add sprintf token.
14888 (text, sprintf): New rules.
14890 * pic/pic.y: `rand()' with no arguments returns a random number
14891 in the range [0,1).
14893 * pic/pic.y: Allow a bare expression to be an attribute: change
14894 precedences to support this. Change optional_ordinal rule to
14895 optional_ordinal_last to avoid reduce/reduce conflict.
14896 * pic/object.c (object_spec::object_spec): Initialize direction.
14898 * pic/pic.y: Implement ^ operator meaning exponentiation.
14900 * troff/node.h: Add default argument to mount_font.
14901 * troff/node.c (font_position): Read an optional third argument
14902 giving the external_name.
14903 (mount_font): Add optional argument giving the external_name.
14904 (mount_font_not_translate): Have additional argument giving
14905 external name. Use this name to load the font. Pass both names
14906 to font_info::font_info.
14907 (font_info::font_info): Have additional argument giving
14909 (class tfont): New member external_name.
14910 (font_info::get_tfont): Use external name to construct tfont_spec.
14912 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
14914 * eqn/lex.c (init_table): Add argument giving device. Define
14915 name of device to be "1".
14916 (do_ifdef): Counts as true if the argument has been defined with
14918 * eqn/main.c (main): Call init_table with device argument. Make
14919 device local to main.
14920 * eqn/eqn.h: Change declaration of init_table. Remove declaration
14923 * pic/lex.c (get_delimited): Allow text to be delimited by
14924 matching {}s. Don't recognize ending delimiter within a string.
14926 * troff/input.c (get_delim_name): New function.
14927 (token::next): Implement \C.
14929 * lib/font.c (font::load): Grok ---. Add an alias for each
14930 character based on its code.
14931 (font::get_code_width): Deleted.
14932 * lib/font.h (class font): Declare font::number_to_index().
14933 Remove declaration of font::get_code_width.
14934 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14935 to indices of named characters.
14936 (font::number_to_index): New function.
14937 * troff/input.c (font::number_to_index): New function.
14938 (get_charinfo_by_number, charinfo::get_number,
14939 charinfo::set_number): New functions.
14940 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14941 (token::process, token::description, token::get_char,
14942 token::add_to_node_list, token::operator==): Handle
14943 TOKEN_NUMBERED_CHAR.
14944 * troff/charinfo.h: Declare get_charinfo_by_number,
14945 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
14947 (charinfo::numbered): New function.
14948 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14949 * troff/env.h (class environment): Remove declaration of ...
14950 * troff/env.c (environment::make_numbered_char_node): Deleted.
14951 * troff/node.c (make_numbered_node): Deleted.
14952 (class numbered_glyph_node): Remove.
14953 (troff_output_file::put_char_width, troff_output_file::put_char):
14954 Handle numbered chars.
14955 (troff_output_file::numbered_char): Removed.
14956 (tfont::get_code_width): Removed.
14957 (make_glyph_node): Don't search special fonts for numbered
14959 * troff/node.h: Remove declaration of make_numbered_node.
14960 * driver/input.c (do_file): Handle N command.
14961 * driver/printer.h: Add declaration of ...
14962 * driver/printer.c (printer::set_numbered_char): New function.
14963 * dvi/tfmtodit.c (main): Generate unnamed entries.
14964 * ps/devps/afmtodit: Likewise.
14965 * xditview/xtotroff.c (MapFont): Likewise.
14966 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14968 * tbl/main.c (process_format): If multiple widths are specified
14969 for a column but all the widths are the same, don't give an error
14972 * tbl/table.c (table::do_row): If the current row is all lines and
14973 the stuff doesn't contains a line, mark the top of the row after
14974 printing stuff before the row. If the current row is not all
14975 lines and the stuff doesn't contain a line, don't unnecessarily
14976 mark the top of the row before printing the stuff.
14978 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
14980 * troff/groff.h: Remove MAX_PATH.
14981 * troff/input.c (open_file): Dynamically allocate space for the
14983 (open_mac_file, process_macro_file): Corresponding changes.
14985 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
14987 * troff/node.h (class output_file): Make copy_file pure. Add
14988 vspace method ifdef COLUMN. Add is_printing method.
14989 * troff/node.c: Add class printing_reg. Add class
14990 real_output_file. Derive other output_file classes from
14991 real_output_file; in these classes rename begin_page to
14992 really_begin_page, print_line to really_print_line, copy_file to
14993 really_copy_file, transparent_char to really_transparent_char.
14994 Move output_file::flush to real_output_file. Add printing member
14995 to class output_file.
14996 * troff/div.h: Remove printing member from top_level_diversion.
14997 Add vspace member function to class diversion ifdef COLUMN. Add
14998 some declarations ifdef COLUMN.
14999 * troff/div.c (top_level_diversion::copy_file,
15000 top_level_diversion::transparent_output,
15001 top_level_diversion::output): Don't test printing member before
15003 * troff/input.c: Handle initial variable_space_request ifdef
15005 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15006 but comment it out.
15008 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
15010 * troff/div.c (diversion::need): Make any space forced. If we
15011 sprung a trap, set truncated_space to minus the distance to the
15012 trap and set needed_space to the amount that was needed.
15013 (top_level_diversion::space): A forced space turns no_space_mode
15015 (class constant_vunits_reg): New class.
15016 (init_div_requests): Implement number registers .trunc and .ne
15017 using constant_vunits_reg.
15018 (class truncated_space_reg): Deleted.
15020 * troff/div.h: Don't have a no_space_mode member in diversion.
15021 Instead have it in top_level_diversion.
15022 * troff/div.c (diversion::diversion): Don't initialize
15024 (top_level_diversion::top_level_diversion): Initialize
15026 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15027 (macro_diversion::output): Don't clear no_space_mode.
15029 * troff/input.c (diverted_space_node::reread): Don't call
15030 environment::do_break. In fill mode, act like a blank line.
15031 (diverted_copy_file_node::reread): Don't call
15032 environment::do_break.
15034 * troff/div.c (blank_line): New function.
15035 * troff/div.h: Declare it.
15036 * troff/input.c (process_input_stack): Call it.
15038 * troff/div.c (truncated_space_reg::get_string): New function.
15039 (init_div_requests): Bind to .trunc.
15040 (space_request, top_level_diversion::space,
15041 top_level_diversion::output, macro_diversion::space,
15042 macro_diversion::output): Update truncated_space.
15043 (macro_diversion::output): Redo calculations when trap sprung.
15044 (macro_diversion::output, macro_diversion::space): No need for
15047 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15048 after truncating post line spacing.
15050 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
15052 * ps/devps/prologue (MF, SF): Make them work even if setfont is
15053 defined as a procedure rather than as an operator.
15055 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
15057 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15059 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
15061 * troff/div.c (top_level_diversion::output): Merge
15062 output_file::print_line and output_file::end_of_line member
15064 * troff/div.h (class output_file):
15065 * troff/node.c (troff_output_file::print_line,
15066 troff_output_file::end_of_line, output_file::end_of_line,
15067 ascii_output_file::print_line, suppress_output_file::print_line):
15068 Corresponding changes.
15070 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
15072 * troff/input.c (token::next): Don't give a warning for `\.'.
15074 * troff/env.c (environment::get_center_lines): New function.
15075 (init_env_requests): Bind number register .ce to it.
15076 * troff/env.h: Declare it.
15077 * tbl/table.c (table::init_output): Define reset macro to restore
15078 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
15080 (table::print): If center option not given, then imply center
15081 option if SAVED_CENTER_REG > 0.
15083 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
15085 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15086 Troff.ps from DOWNLOAD.
15088 * troff/Makefile: Change comment in DEFINES to avoid confusing
15091 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15092 code. Don't try to catch errors with stopped.
15093 (check_line_lengths): New function.
15094 * ps/devps/prologue (EXEC): Deleted.
15095 (EBEGIN, EEND): New procedures.
15097 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
15099 * troff/input.c: Include request.h before node.h.
15100 * troff/node.c: Likewise.
15101 * troff/env.c: Likewise.
15102 * troff/div.c: Likewise.
15103 * troff/node.h (class special_node): Store argument as a macro
15104 rather than a char *.
15105 * troff/node.c (special_node::special_node, special_node::copy):
15107 (special_node::~special_node): Deleted.
15108 (special_node::tprint): Deleted.
15109 (special_node::tprint_start, special_node::tprint_end,
15110 special_node::tprint_char): New functions.
15111 (troff_output_file::special): Deleted.
15112 (troff_output_file::start_special, troff_output_file::end_special,
15113 troff_output_file::special_char): New functions.
15114 * troff/input.c (special_node::tprint): New function.
15115 (do_special): Use macro not char *.
15116 (do_transparent_macro): Deleted.
15117 (token::next): Don't call do_transparent_macro.
15119 * troff/input.c (token::next): Add 'Y' case.
15120 (do_transparent_macro): New function.
15121 * troff/node.c (troff_output_file::special): Handle newlines with
15122 argument using new continuation convention.
15123 * driver/input.c (get_string): Cope with continuation convention.
15124 (do_file): Don't call skip_line after calling get_string(1).
15125 * ps/ps.c (ps_printer::special, ps_printer::do_import,
15126 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15128 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15131 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
15133 * troff/input.c (asciify): By default, illegal input characters
15134 should return empty string.
15136 * troff/input.c (copy_file): Handle first page transition like title.
15137 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15139 * troff/input.c (token::next): Improve error message for EOF after
15141 (input_char_description): New function.
15142 (get_char_for_escape_name): Use input_char_description.
15143 (token::next): Warn about unrecognized escape sequences.
15144 (warning_table): Add WARN_ESCAPE.
15145 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15148 * troff/token.h: Remove declaration of process_input_stack.
15150 * troff/input.c: Remove declaration of init_hyphen_requests.
15151 * troff/request.h: Correct spelling in declaration of same.
15153 * troff/input.c (token::next): Check whether escape_char is 0.
15155 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
15157 * groff.c (main, usage, help): Implement -P and -L options.
15158 * groff.sh: Likewise.
15160 * troff/input.c (token::next): Use some gotos to avoid code
15163 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15164 Avoid calling symbol::symbol if name empty.
15166 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
15168 * troff/input.c (init_input_requests): Make \n(.x return the major
15169 version number and \n(.y return the minor version number.
15170 * troff/Makefile: Construct file majorminor.c defining
15171 major_version and minor_version automatically from ../VERSION.
15173 * troff/node.c (class glyph_node): Make operator new and operator
15175 (class ligature_node): Similarily.
15177 * troff/input.c (operator==(const macro &, const macro &)): New
15179 (non_interpreted_node::same): Use this.
15180 (string_iterator::string_iterator): Make macro& argument const.
15182 * troff/input.c (input_iterator::get): New function. Don't make
15183 asciify_macro or class non_interpreted_node friends of class
15185 (non_interpreted_node::interpret): Use input_iterator::get.
15186 (asciify_macro): Likewise.
15188 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15189 ~non_interpreted_node): Deleted.
15190 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15193 * troff/symbol.h: Make all symbol member functions const.
15195 * lib/strtol.c: New file.
15196 * lib/Makefile: Add strtol.c.
15197 * Makefile: Define STRTOL as strtol.o to include strtol in
15200 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
15202 * pic/troff.c (troff_output::simple_circle): Divide by scale.
15204 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
15206 * troff/input.c (do_special): Use input_level.
15208 * troff/token.h (TOKEN_BACKSPACE): New token.
15209 (token::backspace): New function.
15210 * troff/input.c (token::description, token::next, token::process):
15211 Grok TOKEN_BACKSPACE.
15212 (do_special): Turn TOKEN_BACKSPACE back into \b.
15214 * troff/token.h (token::leader): New function.
15215 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15217 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15219 * troff/input.c (do_special): Use token::description in error
15222 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
15224 * troff/input.c (decode_args): Combine quoted and
15225 quote_input_level variables. Make it a for (;;) loop.
15227 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15229 * troff/input.c (read_long_escape_name): The test for whether to
15230 expand buffer was off by 1.
15231 (read_string): Similarily.
15233 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
15235 * troff/input.c: Use `const int' rather than `static const int'.
15237 * troff/div.h (diversion::copy_file): Declare as pure virtual.
15238 (macro_diversion::copy_file): New function.
15239 * troff/node.h: New class diverted_copy_file_node.
15240 * troff/node.c: Implement it.
15241 * troff/input.c (copy_file): Use diversion::copy_file. Handle
15242 first page transition by pushing a diverted_copy_file_node.
15243 * troff/input.c (token::next, process_input_stack): Don't handle
15246 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
15248 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15249 whether space widths need adjusting.
15251 * troff/charinfo.h: Generalize translated_to_space to
15252 special_translation so as to allow translation to \&.
15253 * troff/input.c (translate): Allow translation to \&.
15254 (charinfo::*): Corresponding changes.
15255 * troff/node.c (make_node, node::add_char): Corresponding changes.
15256 * troff/node.h (dummy_node::dummy_node): Allow optional first
15259 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15260 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15262 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15263 TOKEN_REQUEST with an argument of TITLE_REQUEST.
15264 (token::process): Grok that.
15265 * troff/input.c (copy_file): Handle first page transition like
15266 title by pushing a COPY_FILE_REQUEST cookie.
15267 (token::next, process_input_stack): Grok that.
15268 * troff/node.h (output_file::copy_file): Add x and y arguments.
15270 * troff/div.c (top_level_diversion::copy_file): Supply them.
15271 * troff/node.c (troff_output_file::copy_file): Add x and y
15272 arguments; moveto specified position. Invalidate font_position
15273 array after copying file.
15274 (output_file::copy_file): New function.
15275 (suppressed_output_file::copy_file, ascii_output::copy_file):
15277 * troff/input.c (transparent_file): New function.
15278 (init_input_requests): Bind to "trf".
15279 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15280 (process_input_stack): Likewise.
15282 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15284 * troff/node.c (init_node_requests): New number registers .kern
15285 pointing to global_kern_mode, and .lg pointing to
15286 global_ligature_mode.
15288 * troff/node.c (ligature): Don't change it if we get a bad
15291 * troff/input.c (do_define_string): Don't strip tabs.
15293 * troff/input.c (asciify_macro): Make the string_iterator auto.
15295 * troff/node.c (init_font_requests): Rename to...
15296 (init_node_requests):
15297 * troff/node.h: Change declaration.
15298 * troff/input.c (main): Change call.
15300 * troff/input.c (node::reread, diverted_space_node::reread): New
15302 (process_input_stack): Call reread rather than
15303 get_diverted_space_node.
15304 * troff/node.c (node::get_diverted_space_node,
15305 diverted_space_node::get_diverted_space_node): Removed.
15306 * troff/node.h: Declare reread methods instead of
15307 get_diverted_space_node methods. Make `n' member private.
15308 * troff/input.c: (token::diverted_space): Removed.
15309 * troff/token.h: Removed declaration.
15312 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
15314 * eqn/script.c (script_box::compute_metrics): Don't let
15315 SUP_RAISE_FORMAT become negative.
15317 * tbl/table.c (table::do_row): Entries that don't end in the
15318 this row shouldn't make the row non-blank.
15320 * tbl/table.c (table::make_columns_equal): Only set the width of
15321 columns which are marked as equal.
15323 * tbl/main.c (process_data): Before issuing excess data error,
15324 if last character was a newline unget it; then get it again after
15325 the error. Also include the contents of the entry in the message.
15327 * groff.c: New file.
15328 * Makefile: Build groff from groff.c. Make it possible to use
15329 either groff.sh or groff.c as groff.
15330 * Makefile.bd: Similarily.
15332 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
15334 * groff.sh: Don't delay expansion of $@ in assignment to files.
15335 Remove occurrences of \".
15337 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
15339 * all Makefiles: Simplify and rearrange.
15341 * Makefile: Handle fmod like malloc.
15342 * lib/Makefile: Similarily.
15343 * lib/fmod.c: Remove #ifdef NEED_FMOD.
15345 * Makefile: Rename OPTIMISE to OPTIMIZE.
15347 * groff.sh: Remove assignment to PATH.
15348 * Makefile: Remove SHPATH variable.
15349 * Makefile.bd: Similarily.
15351 * groff.sh: Add -V option to print the pipeline instead of
15354 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
15356 * lib/font.c: Split off file searching into ...
15357 * lib/fontfile.c: New file.
15359 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15361 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
15363 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15364 Also change misleading comment.
15365 (table::do_vspan): Change similarily misleading comment.
15366 * tbl/main.c (process_data): A format row with an explicit `s'
15367 uses up a data line, even if all the other columns are `_' or `='.
15369 * troff/input.c (token::description): Fix description of
15370 TOKEN_DUMMY and TOKEN_EMPTY.
15372 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
15374 * groff.sh: Fix description of -Z in help message.
15376 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
15378 * pic/object.c (object_spec::make_object): Allow negative and zero
15380 * pic/pic.y: Give linethick default value of -1.0.
15381 * pic/troff.c (troff_output::troff_output): Initialize
15382 last_line_thickness to BAD_THICKNESS.
15383 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15384 (troff_output::line_thickness): Canonicalize negative thicknesses
15385 to RELATIVE_THICKNESS.
15386 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15387 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15389 (tex_output::start_picture): Set pen_size to -2.0.
15391 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15392 0, then use 0 linewidth.
15393 (ps_printer::ps_printer): Initialize line_thickness to -1.
15395 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15397 * ps/devps/symbolchars: Remove `or'.
15398 * ps/tmac.ps: Implement \(or with .char.
15400 * ps/devps/symbolchars: Move most characters into textmap.
15401 * ps/devps/textmap: Add names for troff bracket characters. Remove
15404 * ps/devps/TSymbol.ps: Removed.
15405 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15406 * ps/tmac.ps: Do with .char what TSymbol did.
15407 * ps/devps/download: Remove TSymbol.
15409 * ps/devps/T: Removed.
15410 * ps/devps/Troff.ps: Removed.
15411 * ps/devps/Troff.afm: Removed.
15412 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15413 * ps/devps/download: Remove Troff.
15414 * ps/devps/FontMakefile: Remove T target.
15415 * ps/devps/DESC-A4: Remove T from font list.
15416 * ps/devps/DESC-letter: Likewise.
15418 * troff/input.c (macro_to_node): Rename to ...
15419 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
15420 character's definition while processing it.
15421 * troff/node.c (node::add_char, make_node): Change calls to
15422 macro_to_node accordingly.
15424 * troff/input.c (token::next): Translate \_ to \(ul.
15426 * tty/devascii/R.proto: Add `|'.
15427 * tty/devlatin1/R.proto: Likewise.
15429 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
15431 * man: Put the version number in all the man pages.
15433 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
15435 * Makefile.bd: New file.
15436 * README.bd: New file.
15438 * VERSION: New file.
15439 * lib/version.c: Removed.
15440 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15443 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15444 environment variable.
15446 * all Makefiles: Split install target into install.bin for
15447 binaries, and install.nobin for everything else.
15448 * Makefile: Add bindist target.
15450 * man/afmtodit.man: New file.
15451 * man/Makefile: Add afmtodit.n to MAN1PAGES.
15452 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15454 * ps/Makefile: Pass BINDIR to make install in devps.
15456 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15457 the space character.
15459 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15461 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
15463 * ps/ps.c: Redo font downloading.
15464 * ps/devps/download: New file.
15465 * ps/devps/Makefile: Add download to DEVICEFILES.
15466 * ps/devps/afmtodit: Remove -d option.
15467 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15468 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15469 * ps/devps/zapfdr.ps: Likewise.
15470 * ps/devps/TSymbol.ps: Likewise.
15472 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
15474 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15476 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
15478 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15479 then strip the first line if it starts with %.
15480 * Makefile: Add a comment about this.
15482 * man/tfmtodit.man: New file.
15483 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15484 * dvi/Makefile: Install tfmtodit in BINDIR.
15486 * dvi/tfmtodit.c (usage): Mention -v option.
15488 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
15490 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15491 * troff/node.c (troff_output_file::transparent_char): Don't call
15494 * eqn: Add check_tabs method to most box classes.
15495 * eqn/box.c (box::top_level): Call check_tabs.
15497 * eqn/script.c (script_box::output): Use \Z.
15498 * eqn/limit.c (limit_box::output): Use \Z.
15500 * eqn/box.c (box::top_level): Use itoa.
15502 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
15504 * dvi/tmac.dvi: Add font translations for CR, C, TT.
15505 * dvi/devdvi/Makefile: Don't make links to CW.
15507 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15509 * xditview/tmac.X: Likewise.
15511 * troff/node.c: Add font translation feature.
15512 (get_font_translation): New function.
15513 (symbol_fontno): Translate the font name.
15514 (mount_font_no_translate): Rename to mount_font to this.
15515 (mount_font): New function.
15516 (font_family::make_definite): Call mount_font_no_translate instead
15518 (mount_style): Translate the font name.
15519 (font_translate): New function.
15520 (init_font_requests): Bind "ftr" to font_translate.
15522 * ps/devps/prologue (SN): New procedure that rounds a position to
15523 the nearest (pixel + (.25,.25)).
15524 (DL): Use SN to round endpoints.
15526 * lib/version.c: Changed version to 0.5.
15528 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
15530 * Makefile: Move definition of PAGE to the very beginning, so that
15531 people are less likely to miss it.
15533 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
15535 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15537 * troff/env.c (environment::choose_breakpoint): Make `can't find
15538 breakpoint' error a warning of type WARN_BREAK. Change message to
15539 `can't break line'.
15540 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15542 * troff/input.c: Add WARN_BREAK to warning_table. Include
15543 WARN_BREAK in DEFAULT_WARNING_MASK.
15545 * tty/tmac.tty: Add definition of \(+-.
15547 * groff.sh: Remove `--' option to set command.
15549 * dvi/devdvi/texsy.map: Remove duplicate md entry.
15551 * ps/devps/eqnchar: Better definition of cdot using md.
15552 * dvi/devdvi/eqnchar: Likewise.
15553 * xditview/devX100/eqnchar: Likewise.
15554 * xditview/devX75/eqnchar: Likewise.
15555 * eqn/lex.c: Add definition of cdot.
15557 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
15559 * troff/input.c (get_optional_char): New function.
15560 * troff/input.c (set_page_character): Use get_optional_char(),
15561 rather than has_arg() and tok.get_char(1).
15562 * troff/env.c (tab_character, leader_character, hyphen_char,
15563 field_characters): Likewise.
15564 (margin_character): Likewise. Also always delete the
15565 margin_character_node.
15567 * troff/input.c (token::get_char): Use token::description.
15569 * troff/input.c (has_arg): Don't skip over tab and \}.
15570 * troff/number.c (start_number): Give a warning if the number
15571 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15573 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
15575 * troff/input.c (empty_name_warning, non_empty_name_warning): New
15577 (get_name, get_long_name): Use these. Rename `warn' argument to
15580 * troff/node.c (get_fontno): Test that the symbol is not null.
15582 * troff/input.c (token::description): New function.
15583 * troff/number.c (parse_term): Use token::description in `numeric
15584 expression expected' message.
15585 * troff/groff.h: Add WARN_MISSING.
15586 * troff/number.c (start_number): New function.
15587 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15588 get_incr_number): Use start_number().
15589 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15591 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15592 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15594 * troff/input.c (token::get_char): Use WARN_MISSING.
15595 * troff/input.c (token::delimiter): Use token::description.
15596 * troff/env.c (environment_switch): Back out Aug 3 change.
15597 * troff/input.c (has_arg): Skip over \}s and tabs but give a
15599 * troff/token.h (token::tab): New function.
15600 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15601 * troff/reg.c (alter_format): Likewise.
15602 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15604 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
15606 * troff (most files): Redo warnings. Divide warnings into various
15607 categories; warning() has an additional first argument indicating
15608 the category it falls into.
15609 * troff/input.c (main): -w now takes an argument. New option -W.
15610 (enable_warning, disable_warning): New functions.
15612 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15613 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15615 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
15617 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15618 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15619 * xditview/devX75/eqnchar: Likewise.
15620 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15622 * eqn/other.c: When bar or over applies to a single character
15623 don't produce an overline_box or an underline_box. Instead produce
15624 an accent_box or an underaccent_box, with the accent a line
15625 whose width is accent_width. New classes underaccent_box,
15626 overline_char_box and underline_char_box.
15627 * eqn/box.h: Move overline_box, underline_box, accent_box class
15628 declarations into eqn/other.c. Add declarations of
15629 make_underline_box, make_overline_box, make_accent_box.
15630 * eqn/eqn.y: Call make_overline_box, make_underline_box
15631 make_accent_box instead of constructors.
15632 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15634 * eqn/other.c: Add accent_box::~accent_box.
15635 * eqn/box.h: Declare it.
15637 * groff.sh: With -Tps, use eqn -D.
15639 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15641 (underline_box::output): Similarily.
15642 (accent_box::output): Use \Z.
15644 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15647 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
15649 * troff/div.c (top_level_diversion::transparent_output(unsigned
15650 char)): Use asciify.
15651 * troff/input.c (asciify): Don't make it static.
15652 * troff/token.h (asciify): Declare it.
15654 * troff/input.c (get_name, get_long_name, token::get_char,
15655 token::delimiter): Add an extra default argument which says
15656 whether a warning should be printed.
15657 * troff: Pass a non-zero argument to one of these rather than
15658 printing a warning directly.
15660 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
15662 * troff: Consistently use symbol::is_null.
15664 * troff/dictionary.h: Move some inline functions into
15667 * troff/request.h: Move inline functions into input.c.
15668 (request_or_macro::invoke): Make it pure.
15670 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15671 * troff/input.c (init_input_requests): Use class constant_int_reg.
15672 (class compatible_reg): Deleted.
15673 * troff/div.c (init_div_requests): Use class constant_int_reg.
15674 (class last_post_line_extra_space_reg): Deleted.
15676 * troff/env.c (tab_character): Don't change the tab character if
15677 we get an invalid argument.
15678 (hyphen_char): Similarily.
15680 * troff/reg.c (alter_format): Check that nm is not null.
15682 * Makefile, groff.sh: Make it possible to customize the commands
15683 used for printing PostScript and dvi files. Also make it possible
15684 to customize the path used by groff.sh.
15686 * eqn/eqn.y: Make `left' right associative.
15688 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
15690 * pic/pic.h: Added definition of M_SQRT2 for those systems that
15693 * pic/pic.h: Removed definition of INT_MAX.
15695 * troff/node.c (italic_corrected_node::vertical_extent): Omit
15698 * troff/input.c (token::next): Handle \R like \n.
15700 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
15702 * ps/tmac.pc (PSPIC): Simplify.
15704 * troff/env.c (tab_stops::to_string):
15705 * pic/pic.y (object_type_name):
15706 * pic/troff.c (simple_output::line):
15707 * pic/tex.c (tex_output::spline):
15708 * pic/object.c (object_spec::make_object):
15709 * tbl/main.c (process_data): Add cases to switch statements to
15710 avoid cfront warnings. (Some of these are spurious, since the
15711 switch already has a default case.)
15713 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
15714 `ps-'. Don't test systat; instead check number of arguments to
15717 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
15719 * macros/tmac.e: Do not decrease the page offset by 0.5i.
15721 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15722 Unlink the file as soon as we have opened it, so that we don't
15723 have to bother with signal handlers.
15724 (handler): Deleted.
15725 (fatal_error_exit): Deleted.
15726 (main): Don't call signal.
15728 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15730 * dvi/devdvi/Makefile: Use the -k option with S and MI.
15732 * pic/pic.y: If there is a label, or an nth construction before
15733 the first `.' in the argument to `with', ignore it and generate a
15735 * pic/lex.c (lex_warning): New function.
15737 * tbl/table.c (table::init_output): In section keep and release
15738 macro, use 0 indent when diverting and the correct indent when
15741 * troff/input.c (interpolate_number_format): Do not interpolate
15742 anything if the number register is not defined.
15744 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15746 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
15748 * ps/devps/prologue (PICTURE): Set components of graphics state to
15749 their default values.
15751 * ps/devps/text.enc: Add trademark
15752 * ps/devps/textmap: Add names for club, spade, heart, diamond,
15753 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15754 * ps/devps/symbolchars: Add names for summation and product.
15756 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15757 suchthat. Add pp. Add upper-case letters.
15759 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15760 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15763 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15764 rA (right angle bracket) to ra. Introduce names for double-headed
15765 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15766 * ps/devps/textmap: Likewise for ps device.
15767 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15768 * tty/devascii/R.proto: Rename lA to la and rA to ra.
15769 * tty/devascii/R.proto: Likewise.
15770 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15772 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15774 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15776 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15779 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
15781 * troff/div.c (when_request): Use symbol::is_null rather than
15782 has_arg to determine whether we have an argument.
15783 (change_trap): Remove the trap if we get an invalid number. Give
15784 an error if we don't get at least the macro name.
15785 (diversion_trap): Remove trap if we get an invalid name or number.
15787 * troff/env.c (environment_switch): Pop if we get an invalid
15788 symbol or numeric expression.
15790 * troff/input.c (do_define_macro): If EOF is encoutered while
15791 defining the macro, do tok.next() before returning.
15793 * troff/token.h (has_arg): Move definition from here, to ...
15794 * troff/input.c (has_arg): ... here
15796 * troff/env.c (space_size): Do nothing if we get an invalid argument.
15797 * troff/input.c (shift): Likewise.
15799 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
15802 * pic/troff.c (troff_output::start_picture): Comment out calls to
15805 * eqn/main.c (do_file): Subtract 1 from current_lineno if
15806 interpret_lf_args succeeds.
15808 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15809 \\. This avoids problems with \$N.
15811 * groff.sh: Pass -C to preprocessors.
15813 * lib/lf.c (interpret_lf_args): Be more flexible.
15815 * tbl/main.c (main): Add -C option.
15816 (table_input::get): Do not recognize TE if followed by character
15817 other than a space or newline unless -C option given.
15818 (process_input_file): Likewise for lf, TS.
15819 (process_data): Likewise for lf in text blocks.
15821 * eqn/main.c (main): Add -C option.
15822 (do_file): Don't recognize EQ, EN or lf if followed by character
15823 other than space or newline unless -C option given.
15824 * eqn/lex.c (file_input::read_line): Similarily.
15825 * eqn/eqn.h: Declare compatible_flag.
15827 * etc/soelim.c (main): Add -C option.
15828 (interpret_lf_args): Use version in libgroff.
15831 * pic/main.c (main): Add -C option, which sets compatible_flag.
15832 (top_input::get), (top_input::peek): If -C option not given,
15833 do not recognize .PS/.PE/.PF/.lf if followed by a character
15834 other than space or newline.
15835 * pic/lex.c (file_input::read_line): Similarily.
15836 * pic/pic.h: Add declaration of compatible_flag.
15838 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
15840 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15842 * troff/node.c, troff/node.h: Add `asciify' methods to classes
15843 derived from node. New class space_char_hmotion_node.
15844 * troff/input.c (asciify_macro): New function.
15845 * troff/input.c (init_input_requests): New request `asciify' bound
15847 * macros/mm.diff: New file.
15848 * Makefile: In install.mm target use `patch' to apply
15851 * troff/input.c (macro::print_size): Just print the size in bytes.
15853 * troff/div.c (return_request): Correct the argument
15856 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
15858 * troff/node.h (class composite_node): Add sz member.
15859 * troff/node.c (composite_node::size): Return sz.
15860 * troff/input.c (macro_to_node): Use the initial size in the
15861 environment as the size of the composite_node.
15863 * troff/node.c (node::zero_width_tprint): Provide a reasonable
15866 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
15868 * troff/div.c (change_trap): If we get a bad number expression,
15871 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
15873 * lib/matherr.c (matherr): Define this only if math.h defines
15876 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
15878 * troff/div.c (macro_diversion::distance_to_next_trap): If there
15879 no diversion trap return vunits(INT_MAX - vresolution).
15881 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
15883 * troff/input.c (do_zero_width): New implementation that doesn't
15884 use a temporary environment. Use instead:
15885 (token::add_to_node_list): New function.
15886 * troff/env.c (environment::get_prev_char_height),
15887 (environment::get_prev_char_height),
15888 (environment::get_prev_char_skew): New functions.
15889 (environment::get_prev_char): New function.
15890 (environment::get_prev_char_width): Change to use get_prev_char.
15891 (init_env_request): Implement new registers .cht, .cdp, .csk.
15892 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15893 \Z being processed in a separate environment.
15895 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
15897 * tbl/table.c: Removed TABLE_BOTTOM_REG.
15899 * tbl/table.c (table::init_output): In the section release macro,
15900 give a warning message if the section won't fit on one page.
15902 * tbl/table.c (table::do_top): Emit table keep only if table is
15904 (table::do_bottom): Likewise for table release.
15905 (table::table), (table::add_vertical_rule): Remove reference to
15907 * tbl/table.h: Remove keep member.
15909 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15910 SECTION_RELEASE_MACRO, if there's not enough space before the next
15911 trap to output the diversion, call T# ourselves, set
15912 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15913 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
15914 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
15915 vertical position and return to it before turning traps on again.
15917 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
15919 * troff/node.c, troff/node.h: In classes derived from node,
15920 replace prev_char_width method by last_char_node method.
15921 * troff/env.c (environment::get_prev_char_width): Use
15922 node::last_char_node rather than node::get_prev_char_width.
15924 * Makefile: Added comment about -fno-inline on 68030-based
15927 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15928 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15929 expressions using sizeof to int.
15930 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15932 * macros/tmac.e (TS): Don't move @f back past the current
15935 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
15937 * ps/ps.c (main): Buffer stderr.
15938 * dvi/dvi.c (main): Likewise.
15939 * tty/tty.c (main): Likewise.
15941 * ps/ps.c (ps_printer::do_import): Improve error handling.
15943 * troff/input.c (abort_request): Use asciify.
15945 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15946 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15947 type of first argument int rather than char. This works around a
15948 bug on the 68030 based Apollo using g++ 1.37.1.
15950 * tbl/table.h (class table): Add `keep' member.
15951 * tbl/table.c (table::table): Initialize `keep'.
15952 (table::add_vertical_rule): Set `keep' to 1.
15953 (table::do_top): Only emit table keep macro is `keep' is non-zero.
15954 (table::do_bottom): Likewise for table release macro.
15955 (table::do_row): Emit section keep macro even if the row is 0.
15957 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
15959 * macros/tmac.e (@C): Preserve the font family across the change
15962 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
15964 * lib/font.c: Initialize font::hor and font::vert to 1.
15965 (font::load_desc): Check the values of font::hor and font::vert.
15967 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15968 be included in a C compilation.
15969 (iftoa): Use INT_DIGITS. Include lib.h.
15971 (as_string): Likewise.
15972 * tbl/table.c: Removed definition of INT_DIGITS.
15973 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15974 * troff/input.c (input_input_requests): Likewise.
15975 * ps/ps.c (make_encoding_name): Likewise.
15976 (ps_printer::set_style): Likewise.
15977 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15979 * tty/devascii/R.proto: Map fm onto '.
15980 * tty/devlatin1/R.proto: Likewise.
15982 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
15984 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15985 argument to \w is at a different input level.
15987 * tbl/table.c (table::init_output): Define a new macro
15988 REPEATED_VPT_MACRO, like vpt but if in a diversion also
15989 transparently outputs itself.
15990 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15992 (table::do_row): Likewise.
15994 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15995 TRANSPARENT_STRING_NAME.
15997 * tbl/table.c (table::init_output): In the table release macro
15998 print an error message and don't produce any output if after
15999 issuing the need request the table still will not fit. Also
16000 remove the diversion after bringing it back.
16002 * tbl/table.c (table::init_output): Define a new macro
16003 REPEATED_MARK_MACRO, like mk but if in a diversion also
16004 transparently outputs itself.
16005 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16006 is necessary because .TH might not call .T#.
16007 (table::do_top): Likewise TOP_REG.
16008 (table::define_bottom_macro): If TOP_REG is no longer valid, use
16009 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16010 table header might contain just the two top rules.
16012 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
16014 * troff/div.c: Implement new request `ptr' to print all traps.
16016 * troff/env.c (init_env_requests): Implement `.tabs' reg with
16017 init_string_env_reg.
16018 * troff/env.c (class tab_reg): Deleted.
16020 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
16022 * troff/div.c: New number register .pn returns the number of the
16023 next page as set by the pn request.
16025 * macros/tmac.an: Redid headers and footers. Number each manual
16026 entry starting from 1 unless \nC is > 0, like Sun. Added an
16027 optional 5th argument to .TH which specifies the manual name and
16028 appears in the center of the header. Understand the X, P and D
16029 registers like Sun.
16031 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
16033 * troff/env.c (init_env_requests): New number register `.lt' to
16034 return the title length.
16036 * troff/node.h (class transparent_dummy_node): New class.
16037 * troff/node.c (class transparent_dummy_node): Provide member
16039 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16042 * troff/input.c (token::next): New escape sequence \).
16043 * troff/input.c (get_copy): Recognize \) in copy mode.
16045 * troff/input.c (input_stack::clear): New function.
16046 * troff/input.c (exit_request): Use input_stack::clear.
16048 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16049 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16051 * troff/env.c: Move set_page_character to input.c. Move
16052 page_character to input.c also.
16053 * troff/env.c (title): Split off the reading of the parts of the
16054 title into read_title_parts.
16055 * troff/input.c (read_title_parts): New function. Check the
16056 input_level when testing whether a token matches the delimiter.
16058 * troff/input.c (exit_request): New function.
16059 * troff/input.c (init_input_requests): Bind ex request to
16060 exit_request rather than exit_groff.
16062 * troff/input.c (exit_groff): Call tok.next() before
16063 process_input_stack().
16065 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
16067 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16068 * troff/env.h: ditto.
16069 * troff/input.c: ditto.
16071 * troff/env.c (environment::is_empty): Test pending_lines.
16073 * troff/env.c (environment::have_pending_lines): Removed.
16075 * troff/input.c: Add request to flush pending lines from the
16078 * troff/env.c, troff/env.h: Add automatic widow control feature.
16080 * troff/input.c (exit_groff): Do process_input_stack() after
16081 do_break() but before setting exit_flag to 2.
16083 * troff/input.c: Remove FLUSH_PENDING_LINES and
16084 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16085 environment after END_TRAP token seen, but only if there aren't
16086 any more traps still unfinished.
16087 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16089 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
16091 * troff/env.c: Rename the `retain_size' member of class
16092 pending_output_line to `no_fill'.
16094 * troff/env.c (title): When the line is output, make the
16095 retain_size argument !fill.
16097 * troff/node.h: Add `hyphenated' member to struct breakpoint.
16098 * troff/node.c (space_node::get_breakpoints),
16099 (dbreak_node::get_breakpoints): Fill this in.
16100 * troff/env.c: Allow specification of maximum number of
16101 consecutive hyphenated lines.
16103 * troff/env.c (environment::is_empty): Add test for !current_tab.
16105 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
16107 * troff/env.c (environment::hyphenate_line): Don't completely give
16108 up if the word is not to be hyphenated; continue so that breaks
16109 can be made at break_char_node's.
16111 * lib/lib.h: Only define INT_MAX if it's not already defined;
16112 undef INT_MIN if it's already defined.
16114 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16116 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16117 This works around a bug in AT&T C++ 2.0 used with an ANSI C
16120 * macros/tmac.an (an-header): Set no-space mode.
16122 * macros/tmac.an (TH): Start a new page if necessary.
16124 * Started using ChangeLog at version 0.4.
16127 version-control: never