1 2003-12-30 Werner LEMBERG <wl@gnu.org>
3 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
5 2003-12-29 Werner LEMBERG <wl@gnu.org>
7 More fixes for MSVC compiler.
9 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
12 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
13 STDERR_FILENO) [_MSC_VER]: Define conditionally.
14 (getpid) [_MSC_VER]: Remove.
15 Include direct.h and process.h conditionally.
17 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
18 parentheses for a_delete.
20 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
22 * test-groff: Replaced with...
23 * test-groff.in: This new template to handle path separator
26 * configure.ac: Check for direct.h and process.h.
27 Generate test-groff script.
28 * configure, src/include/config.hin: Regenerated.
30 2003-12-28 Werner LEMBERG <wl@gnu.org>
32 Add integral extension glyph.
33 Add new option `-x' to afmtodit to suppress use of built-in AGL.
35 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
37 * font/devps/generate/textmap: Provide entry for `integralex' to
38 override (old) PUA value of the AGL.
39 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
40 * font/devps/*: Regenerated.
42 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
43 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
45 2003-12-27 Werner LEMBERG <wl@gnu.org>
47 Add forgotten `coproduct' symbol (already available for DVI).
49 * font/devhtml/R.proto, font/devps/generate/textmap,
50 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
51 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
52 U+2210 (\[coproduct]).
54 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
56 hpftodit has been extended to handle TrueType metric files and
57 more glyphs. See hpftodit.man for more details.
59 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
60 ctype.h, and unicode.h.
61 s/msl/charcode/ everywhere since we now handle Unicode values also.
62 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
63 Use it where appropriate.
64 (MULTIPLIER): Replaced with...
65 (multiplier): New global static variable.
67 (tag_type): Add more TFM tags.
68 (tag_name): New array.
69 (ENUM_TYPE, FLOAT_TYPE): Removed.
70 (BYTE_TYPE): New value assigned.
71 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
72 (text_symbol_sets, special_symbol_sets): Extended to cover more
74 (check_type): Add return value.
75 (check_units): Add parameters to get ppi and upem values.
76 Handle TrueType TFM data.
77 (output_font_name): New function.
78 (output_charset): Add parameter to handle TFM type.
79 Handle TrueType TFMs also.
80 (em_fract): New macro.
81 (dump_tags): Be much more verbose and handle more tags.
82 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
83 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
85 (read_map): Add parameter to handle TFM type.
86 Handle both MSL and Unicode mappings.
87 (main): Add two new command line options `-a' and `-q'.
88 Updated to make use of new functions.
91 * src/utils/hpftodit/hpuni.cpp: New file.
93 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
96 2003-12-25 Werner LEMBERG <wl@gnu.org>
98 * src/include/nonposix.h (read) [_MSC_VER]: Define.
100 2003-12-24 Werner LEMBERG <wl@gnu.org>
102 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
103 by Michail Vidiassov <master@iaas.msu.ru>.
105 2003-12-20 Werner LEMBERG <wl@gnu.org>
107 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
109 Add missing latin-2 glyphs.
110 * font/devutf8/R.proto: Add missing latin-2 glyphs.
112 * tmac/troffrc: Load `composite.tmac' earlier.
114 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
115 u00{53,73}_0327, and u0049_0307.
116 * tmac/X.tmac: Add u00{47,67}_0306.
117 * tmac/tty-char.tmac: Use composite glyph names for readability.
121 * src/include/unicode.h: Remove `extern' keywords.
123 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
125 * tmac/latin5.tmac: New file.
127 2003-12-19 Werner LEMBERG <wl@gnu.org>
129 Add some glyphs needed for Turkish.
131 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
134 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
135 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
136 u00{53,73}_0327, and u0049_0307.
138 2003-12-18 Werner LEMBERG <wl@gnu.org>
140 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
142 Remove trailing zeros.
144 2003-12-17 Werner LEMBERG <wl@gnu.org>
146 Make \? transparent to end-of-sentence recognition.
148 * src/roff/troff/input.cc (non_interpreted_node): Add
149 `ends_sentence' member function.
151 2003-12-16 Werner LEMBERG <wl@gnu.org>
153 * doc/groff.texinfo: Document `dt' request correctly.
154 Other minor typographical improvements.
156 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
158 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
160 2003-12-10 Richard Stallman <rms@gnu.org>
162 * LICENSE: Better wording.
164 2003-12-09 Werner LEMBERG <wl@gnu.org>
166 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
167 * configure, NEWS: Updated.
169 2003-12-08 Werner LEMBERG <wl@gnu.org>
171 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
173 2003-12-07 Bernd Warken <bwarken@mayn.de>
177 2003-12-07 Werner LEMBERG <wl@gnu.org>
181 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
183 Use path separator character of target platform for compiled-in
186 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
187 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
188 * configure: Regenerated.
189 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
191 2003-12-05 Werner LEMBERG <wl@gnu.org>
193 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
194 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
196 2003-12-04 Bernd Warken <bwarken@mayn.de>
200 2003-12-03 Werner LEMBERG <wl@gnu.org>
202 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
203 ligatures present in AFM files since groff currently only
204 understands some standard ligatures and nothing else.
206 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
208 * src/roff/groff/groff.cpp (main): Don't run the spooler if
211 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
214 Don't use Unix wait flags.
216 2003-12-02 Werner LEMBERG <wl@gnu.org>
218 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
219 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
220 src/roff/troff/uniuni.cpp: Moved to...
221 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
222 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
223 src/libs/libgroff/uniuni.cpp: Here.
225 * src/include/Makefile.sub.old (HDRS),
226 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
227 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
229 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
231 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
235 2003-12-01 Werner LEMBERG <wl@gnu.org>
237 * groff.texinfo: Document special behaviour of `.vs 0'.
238 Improve documentation of `cflags' request.
241 2003-11-29 Werner LEMBERG <wl@gnu.org>
243 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
244 * font/devlj4/CORONET: Regenerated.
246 2003-11-24 Werner LEMBERG <wl@gnu.org>
248 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
249 if processing hyphenation patterns in traditional mode.
250 Improve error messages.
252 2003-11-20 Werner LEMBERG <wl@gnu.org>
254 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
255 troff_output_file::put_char): Fix type of local variable `c'.
257 2003-11-19 Werner LEMBERG <wl@gnu.org>
259 * src/roff/groff/pipeline.c (P): Removed. Updated all function
261 (i_to_a): Removed. libgroff already provides this function.
262 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
264 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
266 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
269 2003-11-17 Werner LEMBERG <wl@gnu.org>
271 * COPYING: Use correct version.
273 2003-11-11 Werner LEMBERG <wl@gnu.org>
275 LynxOS 4.0.0 doesn't declare vfprintf.
277 * configure.ac: Check for vfprintf.
278 * configure: Regenerated.
279 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
280 * src/include/config.hin: Regenerated.
282 2003-11-10 Werner LEMBERG <wl@gnu.org>
284 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
286 * configure.ac: Check for vsnprintf.
287 * configure: Regenerated.
288 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
290 * src/include/config.hin: Regenerated.
292 2003-11-09 Werner LEMBERG <wl@gnu.org>
294 * aclocal.m4: Updated syntax to autoconf 2.59.
295 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
296 Don't check for gsos2.
297 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
298 working abs_top_srcdir and abs_top_builddir.
300 * configure.ac: Updated syntax to autoconf 2.59.
301 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
302 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
303 * configure: Regenerated.
305 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
306 s/@groff_top_builddir@/@abs_top_builddir@/.
308 * src/roff/groff/pipeline.c (xstrsignal):
309 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
311 2003-11-07 Werner LEMBERG <wl@gnu.org>
313 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
314 make start angle smaller than end angle to circumvent a bug in tpic
315 handling of some versions of dvipdfm (and dvipdfmx).
317 2003-10-30 Werner LEMBERG <wl@gnu.org>
319 * src/devices/grops/grops.man: Improve section on creating EPS.
321 2003-10-29 Werner LEMBERG <wl@gnu.org>
323 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
326 2003-10-28 Werner LEMBERG <wl@gnu.org>
328 * doc/groff.texinfo: Fix documentation of `.if'.
330 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
332 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
333 the form `uniXXXX' also.
335 2003-10-27 Werner LEMBERG <wl@gnu.org>
337 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
338 contrib/pic2graph/pic2graph.sh: Implement secure management of
340 Pass `-P-pletter' to groff to avoid data outside of the converted
341 area -- some versions of `convert' (for example 5.3.8) don't check
342 the bounding box of the image but always use a fixed image size
343 (letter paper format).
344 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
345 contrib/pic2graph/pic2graph.man: Updated.
347 * src/roff/groff/groff.man: Document $TMP and $TEMP.
349 2003-10-26 Werner LEMBERG <wl@gnu.org>
351 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
352 troff_output::simple_ellipse, troff_output::simple_arc,
353 troff_output::simple_line, troff_output::simple_spline,
354 troff_output::simple_polygon): Insert a space before arguments.
355 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
356 latter doesn't produce a node, so the following `.sp -1' would do
358 Don't emit `.sp -1' after \M. This also doesn't produce a token
359 (and we don't have to care about compatibility mode).
360 (troff_output::set_color, troff_output::reset_color): Don't emit
361 `.sp -1' after \M and \m.
363 * src/roff/troff/input.cpp (old_have_input): New global variable.
364 (input_stack::get): Handle `old_have_input'.
365 (process_input_stack) <token::TOKEN_NEWLINE>: Call
366 `trapping_blank_line' depending on `old_have_input', not
369 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
371 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
372 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
373 default directory names for temporary files.
374 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
376 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
377 [__MSDOS__] (run_pipeline): Honour environment variables.
378 Don't use `tmpnam' but `tempnam' to work around messy
381 * README.MinGW: New file.
383 2003-10-16 Werner LEMBERG <wl@gnu.org>
385 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
386 `(*t)->next' without testing validity of `*t'.
387 (usage): Make it more readable.
389 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
391 Make html device run under both MS-DOS and Win32.
393 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
394 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
395 spawn or fork+exec has to be used, and whether parent must sleep
396 until the child process terminates. Used in
397 `char_buffer::run_output_filter'.
398 (copyofstdoutfd): Removed.
399 (char_buffer): Replace `write_file_html' and `write_file_troff'
400 member functions with `emit_troff_output' and `run_output_filter'.
401 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
403 (replaceFd): Replaced with...
404 (set_redirection): New auxiliary function.
405 (waitForChild): Replaced with...
406 (save_and_redirect): New auxiliary function for.
408 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
411 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
413 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
414 (GROFF_LIBC): New function.
415 * configure.ac: Call GROFF_LIBC.
417 * configure: Regenerated.
419 * src/include/lib.h: Handle __MINGW32__.
420 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
421 Add macro for `pipe'.
424 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
427 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
430 2003-10-13 Werner LEMBERG <wl@gnu.org>
432 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
435 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
438 2003-10-12 Werner LEMBERG <wl@gnu.org>
440 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
441 src/roff/troff/input.cc (usage): Updated.
443 * NEWS, doc/groff.texinfo: Updated.
445 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
447 * src/libs/libgroff/searchpath.cpp
448 (search_path::open_file_cautious): New function which also handles
449 `-' as stdin and stdout depending on the access mode.
450 * src/include/searchpath.h (search_path): Updated.
452 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
453 * src/devices/grops/ps.h: Include `searchpath.h'.
454 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
455 Open resource file with `include_search_path.open_file_cautious'.
456 * src/devices/grops/grops.man: Document new `-I' switch.
458 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
459 (main), src/devices/grolj4/lj4.cpp (main),
460 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
462 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
464 (include_search_path): New global variable.
465 (include_path_append): Removed.
466 (main): Use `include_search_path.command_line_dir' to handle `-I'.
467 (do_file): Simplify, using new
468 `include_search_path.open_file_cautious'.
470 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
472 (main): Pass arguments to `-I' to both troff and devices.
473 Improve handling of `-V'.
474 * src/roff/groff/groff.man: Document changes to -I and -V.
476 * src/roff/troff/input.cpp (include_search_path): New global
478 (next_file, source, ps_bbox_request, transparent_file,
479 process_input_file): Use new
480 `include_search_path.open_file_cautious'.
481 (main) Handle `-I' switch.
482 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
483 Use new `include_search_path.open_file_cautious'.
484 * src/roff/troff/node.h: New extern symbol `include_search_path'.
485 * src/roff/troff/troff.man: Document new `-I' switch.
487 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
489 Support multiple calls of .Lb in LIBRARY section.
491 * tmac/doc-common (doc-in-library-section): New register.
492 (doc-section-library): New string.
493 (Sh): Set `doc-in-library-section'.
495 * tmac/doc-syms (Lb): Insert breaks before and after arguments
496 if in LIBRARY section.
497 * tmac/doc.tmac (doc-save-global-vars): Updated.
498 * NEWS, tmac/groff_mdoc.man: Updated.
500 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
502 * tmac/doc-common (doc-default-operating-system): New variable.
505 2003-09-08 Werner LEMBERG <wl@gnu.org>
507 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
509 2003-08-31 Werner LEMBERG <wl@gnu.org>
511 * contrib/mom/Makefile.sub: Fix last change to make it really work.
512 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
513 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
514 $(DEVFILES) are not empty.
515 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
517 2003-08-26 Chuck Silvers <chuq@chuq.com>
519 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
520 with parallel runs of `make'.
522 2003-08-23 Stephen Gildea <gildea@stop.mail-abuse.org>
524 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
525 insert SORT_SEP. With certain combinations of sort specifications,
526 refer sorted entries in the wrong order. In particular, entries
527 with a missing field should be be sorted before all entries that
528 have that field, before refer looks to the next field.
530 2003-08-23 Werner LEMBERG <wl@gnu.org>
532 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
533 g++ linker is used. Reported by Mark J. Reed
534 <mark.reed@turner.com>.
536 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
538 Add key character `x' to tbl which makes tbl call a user-defined
539 macro on a table cell.
541 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
542 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
543 `set_modifier' after printing the compatibility request.
544 (set_modifier): Print call to `m->macro' if not empty.
545 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
547 (process_format): Implement cases `x' and `X'.
548 * src/preproc/tbl/tbl.man, NEWS: Updated.
550 2003-08-15 Werner LEMBERG <wl@gnu.org>
552 * doc/groff.texinfo: Minor fixes.
554 2003-08-09 Werner LEMBERG <wl@gnu.org>
556 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
558 2003-08-07 Werner LEMBERG <wl@gnu.org>
560 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
561 argument list to nothing if there is no file to match. Use `ls' as
562 a protection, similar to autoconf.
564 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
565 empty argument lists.
567 * doc/groff.texinfo: Improve documentation how vertical spacing
568 and line breaks interact.
571 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
573 2003-08-03 Werner LEMBERG <wl@gnu.org>
575 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
576 EPS (using eps2eps or similar programs to compute the bounding box).
578 2003-07-24 Werner LEMBERG <wl@gnu.org>
580 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
581 * doc/texinfo.tex: Updated from texinfo 4.6.
582 * README.CVS: From now on we need texinfo 4.6.
584 2003-07-23 Werner LEMBERG <wl@gnu.org>
586 Add requests `dei1' and `ami1' for completeness.
588 * src/roff/troff/input.cc (calling_mode): Remove
589 CALLING_DISABLE_COMP.
590 (comp_mode): New enumeration.
591 (do_define_string, define_string, define_nocomp_string,
592 append_string, append_nocomp_string): Updated.
593 (do_define_macro): Add third parameter.
594 (define_macro, define_nocomp_macro, define_indirect_macro,
595 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
596 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
599 (init_input_requests): Add `dei1' and `ami1'.
601 * tmac/trace.tmac: Handle de1 and am1.
602 (de): Improve tracing message.
603 (am): Add missing `do'.
606 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
607 Document new requests.
609 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
611 Add option -G to .MPIMG to insert a gap between text and the image.
613 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
614 www-finish-left-ll): Updated.
615 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
616 (MPIMG): Make option -L and -R optional.
619 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
621 * src/devices/grohtml/post-html.cpp
622 (html_printer::do_file_components): Don't use `stdout' as lvalue
623 since it can be a macro.
625 2003-07-22 Werner LEMBERG <wl@gnu.org>
627 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
628 the corresponding test in aclocal.m4.
630 2003-07-21 Werner LEMBERG <wl@gnu.org>
632 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
633 names but RGB values directly. Otherwise pnmtopng depends on
634 an external file `rgb.txt' which maps colour names to values.
636 2003-07-20 Werner LEMBERG <wl@gnu.org>
638 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
639 * configure, src/include/config.hin: Regenerated.
641 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
643 2003-07-19 Werner LEMBERG <wl@gnu.org>
645 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
647 2003-07-18 Werner LEMBERG <wl@gnu.org>
649 * *.man: Switch to non-compatibility mode temporarily if GNU
650 syntax extensions are used in the particular man page.
652 * PROBLEMS: Add solutions for SGR problems.
654 2003-07-17 Werner LEMBERG <wl@gnu.org>
656 Don't ignore grotty's command line options if \X'tty: sgr ...' is
657 used to change the drawing scheme.
659 * src/devives/grotty/tty.cpp (bold_flag_option,
660 underline_flag_option, italic_flag_option, reverse_flag_option,
661 bold_underline_mode_option): New global variables.
662 (update_options): New function.
663 (tty_printer::special): Call update_options.
664 (main): Don't set xxx_flag but xxx_flag_option, then call
667 2003-07-14 Werner LEMBERG <wl@gnu.org>
669 Make grotty emit proper Unicode box drawing characters for -Tutf8.
671 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
673 (hline_char, vline_char): New global variables.
674 (tty_printer::tty_printer): Initialize them.
675 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
676 horizontal and vertical lines.
677 (crossings): New global array.
678 (tty_printer::end_page): Use it to determine the proper crossing
679 character for -Tutf8.
681 2003-07-12 Werner LEMBERG <wl@gnu.org>
683 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
684 (HTMLDOCFILES): Revert to `pic.html'.
685 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
687 2003-07-11 Werner LEMBERG <wl@gnu.org>
689 * doc/pic.ms: Improve documentation of absolute coordinates.
690 Document absolute positioning of pictures.
692 * NEWS: Add new pic capability.
694 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
696 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
699 2003-07-07 Werner LEMBERG <wl@gnu.org>
701 Implement support for dashed and dotted ellipses in pic. Based on
702 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
704 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
705 common_output::dashed_ellipse, common_output::dotted_ellipse): New
706 functions. Ellipse arcs are approximated with circle arcs.
707 * src/preproc/pic/common.h (common_output): Updated.
708 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
710 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
712 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
714 2003-07-06 Werner LEMBERG <wl@gnu.org>
716 Make grotty work on platforms which have unsigned char as the
717 default for char. Based on a patch by Thomas Klausner
720 * src/devices/grotty/tty.cpp (schar): New typedef.
721 Updated calls to declare_ptable and implement_ptable.
722 (glyph): Use schar for back_color_idx and fore_color_idx.
723 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
724 (tty_printer::tty_color, tty_printer::tty_printer,
725 tty_printer::color_to_idx, tty_printer::put_color): Updated.
727 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
729 * src/roff/nroff/nroff.sh: Add option -d for completeness.
730 * src/roff/nroff/nroff.man: Updated.
732 2003-07-05 Werner LEMBERG <wl@gnu.org>
734 * NEWS, tmac/groff_www.man: Updated.
735 * doc/Makefile.sub: Updated.
737 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
739 Implement support for multiple HTML output files.
741 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
742 -j command line option.
744 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
746 (file): New fields `new_output_file', `require_links',
748 (file::file): Updated.
749 (files::set_file_name, files::set_links_required,
750 files::are_links_required, files::is_new_output_file,
751 files::file_name, files::next_file_name): New functions.
752 (header_desc): New fields `no_of_level_one_headings',
754 (header_desc::header_desc): Updated.
755 (header_desc::write_headings): Handle multiple files.
756 (html_printer::write_header): Save file name in which header occurs.
757 (html_printer::determine_header_level): Possibly split files on
759 (html_printer::do_links, html_printer::troff_tag): Updated.
760 (html_printer::insert_split_file, html_printer::do_job_name,
761 html_printer::emit_link, html_printer::write_navigation,
762 html_printer::do_file_components): New functions.
763 (html_printer::~html_printer): Handle multiple files.
764 (main): Handle command line option `-j'.
766 * src/devices/grohtml/grohtml.man: Updated.
768 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
771 * tmac/www.tmac (JOBNAME): New macro.
772 * tmac/s.tmac (SH-NO-TAG): New macro.
773 (@SH): Call SH-NO-TAG.
776 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
778 * tmac/groff_mdoc.man: Improve documentation of punctuation
781 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
783 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
785 2003-07-03 Werner LEMBERG <wl@gnu.org>
787 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
789 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
791 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
794 (Fn, Fo): Reduce indentation in synopsis.
796 * tmac/doc-common (doc-check-depth): New macro.
797 (doc-end-macro, Sh, Ss): Use it.
798 (Cd): Fix behaviour in synopsis.
799 (In): Make it parsed and callable.
800 If not in the synopsis, represent the C header file enclosed in
802 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
803 Use minus, not hyphen.
805 * tmc/groff_mdoc.man: Updated.
807 2003-07-01 Werner LEMBERG <wl@gnu.org>
809 Integrated grap2graph, contributed by Eric S. Raymond.
811 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
813 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
814 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
816 2003-07-01 Colin Watson <cjwatson@debian.org>
818 * src/xditview/*.c: Add prototypes, fix return types, add includes.
819 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
821 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
823 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
825 2003-06-31 Werner LEMBERG <wl@gnu.org>
827 * doc/Makefile.sub (CLEANADD): Remove all files created by
828 running `make groff.{pdf,dvi}'.
830 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
833 2003-06-30 Werner LEMBERG <wl@gnu.org>
835 * Makefile.in (SHELL): Define as @SHELL@.
836 (mkinstalldirs): Use $(SHELL).
837 (MDEFINES): Add $(SHELL).
838 * Makefile.comm (SHELL): Removed.
840 2003-06-29 Werner LEMBERG <wl@gnu.org>
842 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
843 The X11 documentation files use them.
844 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
846 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
848 * tmac/e.tmac (@C): Handle .ad also.
850 2003-06-12 Werner LEMBERG <wl@gnu.org>
852 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
854 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
855 Assign `n' even here. It is possible to construct a node
856 immediately following an escape character:
864 2003-06-10 Werner LEMBERG <wl@gnu.org>
866 * README.WIN32: Removed.
869 2003-06-07 Werner LEMBERG <wl@gnu.org>
871 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
873 2003-06-05 Werner LEMBERG <wl@gnu.org>
875 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
876 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
878 2003-06-03 Werner LEMBERG <wl@gnu.org>
880 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
881 is done by the calling function.
883 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
885 * tmac/X.tmac: Fix definition of `em'.
887 2003-05-22 Werner LEMBERG <wl@gnu.org>
889 * src/roff/troff/input.cc (return_macro_request): Fix detection of
892 2003-05-18 Werner LEMBERG <wl@gnu.org>
894 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
895 to make items work which consist only of a tag.
897 2003-05-17 Werner LEMBERG <wl@gnu.org>
899 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
900 aren't stretched in a tag (this can fail with unformatted boxes).
901 Instead, insert a break and go back one line.
903 2003-05-16 Werner LEMBERG <wl@gnu.org>
905 * src/roff/troff/input.cc (return_macro_request): If called with
906 argument pop macro twice. We need this to trace `return'.
908 * tmac/trace.tmac: Handle `return'.
911 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
914 2003-05-15 Larry Kollar <kollar@alltel.net>
916 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
917 registers `FPS', `FVS', and `FPD'.
919 2003-05-15 Werner LEMBERG <wl@gnu.org>
921 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
924 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
926 * tmac/groff_mdoc.man: Slight improvements.
928 2003-05-03 Werner LEMBERG <wl@gnu.org>
930 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
931 `doc-header-space' after header line if register `cR' is set.
933 2003-05-02 Werner LEMBERG <wl@gnu.org>
937 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
939 * tmac/doc-common (Nd): Use \[em].
941 2003-05-01 Werner LEMBERG <wl@gnu.org>
943 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
944 doc-footer-space): Initialize to 0.5i.
945 (doc-setup-page-layout): Don't set doc-header-space and
948 2003-04-30 Werner LEMBERG <wl@gnu.org>
950 * REVISION: Set to 1.
952 * doc/pic.ms: Document possible problems with `figname'.
954 2003-04-29 Werner LEMBERG <wl@gnu.org>
956 Version 1.19 released
957 =====================
959 * VERSION: Set to 1.19.
960 * REVISION: Set to 0.
961 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
963 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
964 Define charset as `US-ASCII' in html output.
966 * tmac/www.tmac (ULE): Add missing scaling indicator.
968 * win32-diffs: Removed.
970 2003-04-28 Werner LEMBERG <wl@gnu.org>
972 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
974 Document how to insert discardable whitespace with `.ss'.
976 2003-04-27 Werner LEMBERG <wl@gnu.org>
978 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
979 work with plain TeX also.
981 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
983 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
985 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
988 2003-04-24 Werner LEMBERG <wl@gnu.org>
990 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
991 vbox with positive height and zero depth if in TeX mode.
993 * NEWS: Document glyph name changes for grodvi and grolj4.
995 2003-04-23 Werner LEMBERG <wl@gnu.org>
997 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1000 2003-04-21 Werner LEMBERG <wl@gnu.org>
1002 HP-UX 10.20 has `snprintf' but it isn't declared.
1004 * configure.ac: Add declaration test for snprintf.
1005 * configure: Regenerated.
1006 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1007 * src/include/config.hin: Regenerated.
1009 2003-04-19 Werner LEMBERG <wl@gnu.org>
1011 Add keyword `figname' to pic, specifying the name of the picture
1012 box in TeX mode. Based on a patch from William J Poser
1013 <wjposer@unagi.cis.upenn.edu>.
1015 * src/preproc/pic/pic.y: New token `FIGNAME'.
1016 (macro_name): New rule of type <str>.
1017 (placeless_element): Handle `FIGNAME'.
1018 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1019 * src/preproc/pic/main.cpp (graphname): New global variable.
1020 (do_picture): Initialize `graphname'.
1021 * src/preproc/pic/pic.h: Updated.
1022 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1025 (tex_output::text): Beautify output.
1026 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1027 `shaded' and `outlined' unconditionally.
1028 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1031 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1032 greater is necessary.
1034 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
1036 Add option -r to soelim to avoid emission of `.lf' lines.
1037 Add option -t to produces TeX comment lines instead of `.lf' lines.
1039 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1042 (main): Handle `-r' and `-t'.
1043 (set_location): Handle `raw_flag' and `tex_flag'.
1044 * src/preproc/soelim/soelim.man, NEWS: Updated.
1046 2003-04-17 Werner LEMBERG <wl@gnu.org>
1048 * tmac/hyphenex.sh: Replaced with...
1049 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1052 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1053 if --quiet is used for the configure script.
1054 * configure: Regenerated.
1056 2003-04-16 Werner LEMBERG <wl@gnu.org>
1058 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1059 Add `const' to second argument.
1060 (html_printer::add_table_end): Add `const' to argument.
1061 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1062 `const' to arguments.
1063 * src/devices/grohtml/html-text.h: Updated.
1065 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1066 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1069 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1070 cast for integer constant.
1072 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1073 (writeNbytes): Add `const' to first argument.
1074 (writeString): Add `const' to argument.
1075 (char_buffer::can_see): Add `const' to third argument.
1076 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1077 `const' to argument.
1078 * src/preproc/html/pushback.h: Updated.
1080 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1081 (include_path_append): Add `const' to argument.
1084 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1086 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1087 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1089 (unicode_decompose_init::unicode_decompose_init): Updated.
1090 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1092 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1093 * src/roff/troff/input.cc (process_startup_file): Add `const' to
1096 * tmac/hyphenex.sh: Make script more portable by using a here
1099 2003-04-15 Werner LEMBERG <wl@gnu.org>
1101 Renamed all `*.cc' files to `*.cpp'.
1102 Updated all configuration files, makefiles, and documentation.
1104 2003-04-14 Werner LEMBERG <wl@gnu.org>
1106 * tmac/hyphenex.sh: Slight improvements.
1108 2003-04-13 Werner LEMBERG <wl@gnu.org>
1110 * font/devascii/R.proto, font/devcp1037/R.proto,
1111 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1112 character slots with unnamed glyphs.
1114 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1115 (an-first): New global variable.
1116 (an-header): Emit vertical space between multiple man pages.
1118 2003-04-11 Werner LEMBERG <wl@gnu.org>
1120 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1123 2003-04-10 Werner LEMBERG <wl@gnu.org>
1125 * PROBLEMS: Revised.
1127 2003-04-10 Bernd Warken <bwarken@mayn.de>
1129 * doc/webpage.ms: Improved.
1131 2003-04-09 Werner LEMBERG <wl@gnu.org>
1133 Add register \n[.height] which returns the value of \H.
1134 Add register \n[.slant] which returns the value of \S.
1136 * src/roff/troff/env.cc (init_env_requests): Implement.
1137 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1140 2003-04-08 Werner LEMBERG <wl@gnu.org>
1142 * tmac/html.tmac: Move some of the data into html-end.tmac.
1143 Remove most of the character translations for eqn since html fonts
1144 now cover those characters.
1146 * tmac/html-end.tmac: New file.
1147 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1148 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1149 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1151 2003-04-07 Werner LEMBERG <wl@gnu.org>
1153 * man/groff_out.man: Document negative values of `N' if -Thtml is
1156 2003-04-06 Werner LEMBERG <wl@gnu.org>
1158 * Makefile.comm (depend.temp): Check location of YTABC.
1160 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1162 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1164 (groff_bin_path): Rename to GROFF_BIN_PATH.
1165 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1166 * doc/Makefile.in (TROFFBIN): New variable for troff
1168 (GROFFBIN): New variable for groff binary path.
1169 (groff_bin_path): Rename to GROFF_BIN_PATH.
1170 (TROFF): Use TROFFBIN.
1171 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1172 * doc/Makefile.sub (GROFFBIN): New variable for groff
1174 (groff_bin_path): Rename to GROFF_BIN_PATH.
1175 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1177 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1178 with INSTALL_SCRIPT.
1179 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1180 * Makefile.dev (all): Depend on DEVSCRIPTS.
1181 (install_dev): Likewise.
1182 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1184 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1185 (DEVGENSCRIPTS): New variable to hold generated scripts.
1187 2003-04-05 Werner LEMBERG <wl@gnu.org>
1189 * src/libs/libdriver/input.cc (IntArray::operator[],
1190 IntArray::get_data): Remove meaningless `const' in return value.
1192 * README.CVS: New file.
1194 2003-04-04 Werner LEMBERG <wl@gnu.org>
1196 Check for stdint.h in C++, not in C.
1198 * aclocal.m4 (GROFF_STDINT_H): New function,
1199 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1201 * configure, src/include/config.hin: Regenerated.
1202 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1205 Fix handling of in grohtml. To do this, troff emits `N'
1206 with a negative value, representing the width of the unbreakable
1207 space (only for -Thtml). grohtml then converts this back to
1208 and uses the value of N as its width.
1210 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1211 unbreakable_space_node::tprint): Emit `N-<width>'.
1212 * src/include/printer.h (printer::set_numbered_char): Make it
1214 Make members `font_table' and `nfonts' protected instead of private.
1215 * src/devices/grohtml/post-html.cc
1216 (html_printer::set_numbered_char): New member function.
1219 * src/libs/libgroff/maxfilename.cc:
1220 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1222 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1225 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
1227 * man/roff.man: Small fixes.
1229 2003-04-03 Werner LEMBERG <wl@gnu.org>
1231 Make groff independent from locale's numeric settings.
1233 * configure.ac: Check for `setlocale'.
1234 * configure, src/include/config.hin: Regenerated.
1236 * src/include/lib.h: Handle HAVE_SETLOCALE.
1238 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1239 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1240 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1243 * doc/groff.texinfo: Change dir category to `Typesetting'.
1244 (Man font macros): Mention that there is no space between arguments
1247 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1248 (*printer::change_color, *printer::change_fill_color): Add missing
1251 2003-04-02 Werner LEMBERG <wl@gnu.org>
1253 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1254 html_table::is_gap): Compute table widths after converting border
1255 positions to avoid rounding errors.
1257 2003-04-01 Werner LEMBERG <wl@gnu.org>
1259 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1260 `space_emitted' properly.
1262 2003-03-31 Werner LEMBERG <wl@gnu.org>
1264 * src/devices/grohtml/html-table.cc: Fix column width calculation.
1265 (html_table::set_linelength): Don't add 1.
1266 (html_table::add_indent): Don't subtract 1.
1268 * tmac/html.tmac: Set default page offset to zero.
1270 2003-03-30 Werner LEMBERG <wl@gnu.org>
1272 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
1274 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1275 unbreakable_space_node::tprint): New functions.
1276 (troff_output_file): Make space_char_hmotion_mode::tprint and
1277 unbreakable_space_node::tprint to friends.
1278 * src/roff/troff/node.h: Updated.
1280 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
1281 in the HTML standard).
1283 2003-03-29 Werner LEMBERG <wl@gnu.org>
1285 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1286 Otherwise, the following code
1295 produces `x a' instead of `xa'. This is a temporary fix, disabling
1296 font changes in diversions for -Thtml.
1298 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1300 (an-do-tag-html): Merge with ...
1301 (an-do-tag): This macro.
1302 Change code slightly to circumvent grohtml bug.
1303 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1305 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1306 html_table::is_gap): Round `width' properly.
1308 * tmac/html.tmac: Provide some default layout parameters for
1311 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1314 2003-03-28 Werner LEMBERG <wl@gnu.org>
1316 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1318 2003-03-27 Werner LEMBERG <wl@gnu.org>
1320 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1323 2003-03-20 Werner LEMBERG <wl@gnu.org>
1325 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1327 * doc/groff.texinfo: Updated.
1329 2003-03-19 Werner LEMBERG <wl@gnu.org>
1331 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1332 TOKEN_END_TRAP>: Reset `have_input'.
1334 2003-03-18 Werner LEMBERG <wl@gnu.org>
1336 * src/roff/groff/groff.man: Mention groff_trace man page.
1338 2003-03-16 Werner LEMBERG <wl@gnu.org>
1340 * Makefile.in (LIBEXT): New variable to indicate the file extension
1341 of library files. Computed heuristically from $(OBJEXT).
1342 (MDEFINES): Add $(LIBEXT).
1343 * Makefile.lib, Makefile.comm: Use it.
1345 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
1346 overlong lines into smaller chunks.
1347 (get_binary): New function.
1349 * src/utils/pfbtops/pfbtops.man: Updated.
1351 2003-03-15 Colin Watson <cjwatson@debian.org>
1353 * src/roff/groff/groff.man: Minor syntax fix.
1355 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
1357 * src/devices/grops/ps.cc (ps_printer::media_set,
1358 ps_printer::~ps_printer): Handle zero paper width and length.
1360 2003-03-13 Werner LEMBERG <wl@gnu.org>
1362 Add options -p and -l to grodvi.
1364 * src/devices/grodvi/dvi.cc: Include paper.h.
1365 (landscape_flag, user_paper_length, user_paper_width): New global
1367 (dvi_printer::begin_page): Emit `papersize' special.
1368 Set color after initialization of `cur_h' and `cur_v'.
1369 (main): Add options `-l' and `-p'.
1370 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1371 * src/devices/grodvi/grodvi.man, NEWS: Updated.
1373 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1375 2003-03-12 Werner LEMBERG <wl@gnu.org>
1377 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1378 * man/groff_tmac.man: This man page.
1379 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1382 * tmac/X.tmac: Don't load pspic.tmac.
1384 2003-03-11 Werner LEMBERG <wl@gnu.org>
1386 Make variable `pr' local to libdriver/input.cc. Based on a patch
1387 by Bernd Warken <bwarken@mayn.de>.
1389 * src/include/driver.h (pr): Removed.
1391 * src/libs/libdriver/input.cc (pr): New global variable.
1392 (do_file): Deallocate `pr'.
1393 * src/libs/libdriver/printer.cc (pr): Removed.
1395 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1396 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1397 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1398 (main): Don't delete `pr'.
1400 2003-03-10 Werner LEMBERG <wl@gnu.org>
1402 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1403 * tmac/papersize.tmac: New file.
1404 * tmac/troffrc: Include `papersize.tmac'.
1405 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1406 * tmac/an-old.tmac: Set LT to LL by default.
1408 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1409 doc/groff.texinfo: Updated.
1411 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1412 bug which caused all odd iso papers to have wrong dimensions.
1414 * src/devices/grops/ps.cc (user_paper_width): New global variable.
1415 (main) <'p'>: Set `user_paper_width' also.
1416 (ps_printer::media_width, ps_printer::media_height): Use values
1417 given with option `-p'.
1419 2003-03-09 Werner LEMBERG <wl@gnu.org>
1421 * src/include/nonposix.h: Provide default for SET_BINARY.
1423 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1424 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1427 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1428 (main): Treat \r\n as \n.
1430 2003-03-08 Werner LEMBERG <wl@gnu.org>
1432 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1433 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1435 2003-03-07 Werner LEMBERG <wl@gnu.org>
1437 Added support to access more than 256 glyphs in Type 1 fonts.
1439 * src/devices/grops/ps.cc (subencoding): New structure.
1440 (style): Add `sub' field.
1442 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1443 Add `set_subencoding', `get_subfont' and `encode_subfont' member
1446 (ps_printer::set_char): Use `set_subencoding'.
1447 (make_subencoding_name): New function.
1448 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1449 (ps_printer::~ps_printer): Emit subencoding definitions.
1451 * src/devices/grops/psrm.cc (valid_input_table): New array to
1452 properly support EBCDIC.
1453 (white_space): Add `\f'.
1454 (ps_get_line): Change first argument to be of type `string &'.
1455 Updated all callers.
1456 This allows to get lines of arbitrary length.
1457 Use `valid_input_table'.
1458 Remove warning about non-conforming PS line length. This seems
1459 not to be of great importance -- for example, dvips don't emit
1461 (PS_LINE_MAX): Removed.
1462 (matches_comment): Change first argument to be of type `string &'.
1464 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1466 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1467 %AGL_to_unicode, %default_ligatures): New hash tables.
1468 Read all map entries.
1469 Add unencoded characters.
1470 Check for default ligatures if there are no `L' entries.
1471 Print all kern entries.
1472 Print all characters in charset.
1473 * src/utils/afmtodit/afmtodit.man: Updated.
1475 * font/devps/*: Regerated all fonts.
1477 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1478 of characters, just use `.trin'. Otherwise the mapping depends
1479 on the font encoding.
1480 * tmac/ps.tmac: Add `fi' and `fl'.
1481 Improve `Fi' and `Fl'.
1482 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1483 * tmac/Xps.tmac: Fix `em'.
1487 2003-03-04 Werner LEMBERG <wl@gnu.org>
1489 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1492 2003-03-03 Werner LEMBERG <wl@gnu.org>
1494 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1496 * font/devps/generate/textmap: Remove entry `similarequal'.
1497 * font/devps/symbolmap: Updated.
1499 2003-03-02 Werner LEMBERG <wl@gnu.org>
1501 * src/libs/libgroff/font.cc (font::load): Fix error message for
1504 * src/devices/grops/grops.man: Improve documentation of the -b
1507 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1508 `ascii' and `cp1047'.
1510 2003-03-01 Werner LEMBERG <wl@gnu.org>
1512 Document composite glyphs and the `composite' request.
1514 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1516 2003-02-28 Werner LEMBERG <wl@gnu.org>
1518 * font/devdvi/generate/ec.map: Add some more Unicode entities.
1519 * font/devdvi/*EC: Updated.
1521 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1522 * tmac/latin1 (latin1-tr): Undo any previous mapping.
1523 * tmac/troffrc: Load `composite.tmac'.
1524 * tmac/Makefile.sub (NORMALFILES): Updated.
1526 * doc/groff.texinfo (Input Encodings): New section.
1529 2003-02-27 Werner LEMBERG <wl@gnu.org>
1531 * doc/texinfo.tex: New version 2003-02-11.06.
1533 * tmac/doc-common (Dt): Don't emit warning for unknown section.
1534 * tmac/groff_mdoc.man: Fix description of `Dt'.
1536 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
1538 * font/devps/prologue.ps: Fix for included Postscript that does
1539 a setpagedevice -- which is now safely ignored.
1543 * src/devices/grops/ps.cc: Now sets the page size in the generated
1544 document. This is done in two ways: Via a %%-comment for gv and
1545 the like, and via a PageSize and setpagedevice for programs that
1546 understands Postscript proper, like ps2pdf.
1548 * src/devices/grops/ps.h: New broken-flag to avoid page size
1549 definition, if required.
1551 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1553 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1554 Not really necessary due to the fix in prologue.ps, but cleaner:
1555 Such information does not belong in an .eps file.
1557 * doc/Makefile.sub: See doc/Makefile.in.
1559 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
1561 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1562 instead of P1 since the latter is broken in some versions of netpbm.
1563 * configure: Updated.
1565 2003-02-26 Larry Kollar <kollar@alltel.net>
1567 Make man pages more customizable.
1569 * tmac/an-old.tmac (FT): New register holding footer distance from
1571 (HF): New string holding the default heading font.
1572 (TH): Handle registers `IN' and `SN' set on the command line.
1574 (PT, BT): New strings to customize header and footer lines.
1575 (an-header, an-footer): Use them.
1577 * tmac/groff_man.man: Document changes.
1579 * doc/groff.texinfo: Document man changes.
1580 Document Ultrix extensions of man.
1582 2003-02-26 Werner LEMBERG <wl@gnu.org>
1584 * src/roff/troff/input.cc (do_width, do_if_request): Reset
1585 `have_input' after changing back to old environment.
1587 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1588 function up to be defined before first call. This is necessary to
1589 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1591 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1592 the default font directory also. Based on a patch from James
1593 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1594 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1595 * src/utils/afmtodit/afmtodit.man: Document it.
1599 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1601 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
1603 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1604 (GROFF_PNMTOPS_NOSETPAGE): New macro.
1605 * configure.ac: Use it.
1606 * configure: Regenerated.
1607 * Makefile.in: Updated.
1609 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1610 (CLEANADD): Add www.tmac-sed.
1611 (pnmtops_nosetpage): Define default.
1612 (install_data): Handle www.tmac-sed and substitute
1613 @PNMTOPS_NOSETPAGE@.
1614 (stamp-sed): Add www.tmac.
1615 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1616 It now breaks URLs at suitable places.
1617 (www:substring_ok): New register set by...
1618 (www:@test_substring): New macro.
1619 (www:error): New alias to www-error.
1620 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1622 (URL): Use www:url_breaks.
1623 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1624 (CDS, CDE): New macros.
1626 2003-02-25 Werner LEMBERG <wl@gnu.org>
1628 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1631 2003-02-24 Werner LEMBERG <wl@gnu.org>
1633 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1634 can be negative also.
1636 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1638 (read_char_table): Avoid negative ascenders.
1639 (output_charset): Add cast.
1640 * font/devlj4/*: Regenerated.
1642 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1645 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1646 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1648 * font/devdvi/*: Regenerated.
1650 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
1651 normal width, while the previously used characters (U+2329 and
1652 U+232A) are classified as wide due to canonical equivalence with the
1653 CJK punctuation characters U+3008 and U+3009.
1655 * font/devutf8/R.proto: Updated.
1656 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1658 * man/groff_char.man: Simplify handling of table traps by
1659 introducing `start block' and `end block' macros.
1660 (Ns, Ne, 2s, 2e, Ds, De): New macros.
1661 (DL): Make it work with Unix troff also.
1662 Fix code values of `la' and `ra'.
1664 * tmac/dvi.tmac: Define `<>' for CW and CWI.
1666 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
1668 * src/devices/grohtml/post-html.cc (element_list::~element_list):
1669 New destructor, fixing a major memory leak.
1671 2003-02-22 Werner LEMBERG <wl@gnu.org>
1673 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1674 to be in conformance with Unicode 3.0 and newer.
1676 * font/devlj4/generate/text.map: Add `Eu'.
1677 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1678 * font/devlj4/S: Regenerated.
1680 * man/groff_char.man: Completely rewritten.
1682 * doc/groff.texinfo: Fix description of request and macro arguments.
1684 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
1688 * src/devices/grohtml/html-table.cc (html_table::~html_table):
1689 Deallocate `columns' list.
1690 * src/devices/grohtml/post-html.cc (char_block::~char_block):
1692 (text_glob::text_glob_html, text_glob::text_glob_special,
1693 text_glob::text_glob_line, text_glob::text_glob_auto_image,
1694 text_glob::text_glob_tag): Avoid memory leaks.
1695 (text_glob::remember_table): Free memory before reassigning.
1697 2003-02-19 Werner LEMBERG <wl@gnu.org>
1699 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1700 alias `hbar'), the Planck constant over two pi.
1702 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1703 `+e' for position 34.
1704 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1705 `u2662' and `u2661'.
1706 * font/devdvi/{MI,S}: Regenerated.
1707 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1708 * font/devlbp/*: Add `hbar' alias.
1709 * font/devlj4/generate/special.map: Ditto.
1710 * font/devlj4/S: Regenerated.
1711 * font/devps/generate/symbolchars: Add `+e'.
1712 * font/devps/generate/textmap: Fix PS name for `-h'.
1714 * font/devps/symbolmap: Regenerated.
1716 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1718 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1720 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1723 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1725 * tmac/tty-char.tmac: Add `+e'.
1727 2003-02-17 Werner LEMBERG <wl@gnu.org>
1729 Another round trying to really fix problems with `have_input'.
1731 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1732 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1734 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1735 handling if both foreground and background colors are default.
1737 * doc/groff.texinfo (Debugging): Document .lf differences to
1740 2003-02-16 Werner LEMBERG <wl@gnu.org>
1742 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1743 null-bytes in created string.
1745 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1746 alias_macro, lookup_request): Improve warning messages.
1748 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1750 Free `last_image_filename'.
1752 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1754 (imageList::createPage, imageList::createImage): Use `free', not
1756 (imageItem::~imageItem): Free `imageName'.
1757 (addRegDef): Use `strsave', not `strdup'.
1758 (get_resolution): Free `pathp'.
1760 2003-02-15 Werner LEMBERG <wl@gnu.org>
1762 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1765 2003-02-14 Werner LEMBERG <wl@gnu.org>
1767 Add memory management for colors to deallocate unnamed colors
1770 * src/include/color.h (color): New members `free_list' and `next'.
1771 New member functions `new' and `delete'.
1773 * src/libs/libgroff/color.cc: Implement it.
1775 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1776 for array size of new operator.
1778 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1779 redundant comparison.
1781 * src/roff/troff/input.cc (word_space_node::reread,
1782 hmotion_node::reread): Avoid warning about unused parameter.
1783 (reset_output_registers): Remove redundant parameter.
1784 (define_color): Undo change 2003-02-12.
1786 * src/roff/troff/reg.h: Updated.
1788 * src/roff/troff/node.cc (troff_output_file::really_print_line,
1789 output_file::put_filename, real_output_file::really_put_filename,
1790 ascii_output_file::really_print_line,
1791 break_char_node::get_hyphen_list): Avoid warning about unused
1793 (suppress_node::tprint): Updated.
1795 * configure.ac: Check declaration for rand() and srand().
1796 * configure: Regenerated.
1798 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1800 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1803 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1804 to avoid compiler warnings.
1806 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1809 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1811 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1813 Updated all callers.
1815 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1817 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1818 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1820 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1821 Parameter is unused.
1822 (html_printer::add_table_end): Define parameter conditionally.
1823 * src/devices/grohtml/output.cc (simple_output::special): Parameter
1826 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1827 (lbp_printer::set_char): Last parameter is unused.
1829 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1831 2003-02-13 Werner LEMBERG <wl@gnu.org>
1833 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1834 Make \D'f ...' move horizontally again for backwards compatibility.
1835 Replace it with \D'Fg ...' where appropriate to avoid dependency
1836 on horizontal resolution.
1838 * src/roff/troff/input.cc (do_get_long_name): New function.
1839 (get_long_name): Call it.
1841 (read_draw_node): Handle `\D'Fx ...' by calling ...
1842 (read_color_draw_node): New function.
1844 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1846 Pass it to `do_get_long_name' which is used instead of
1849 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1850 unnecessary value guard.
1851 (parse_D_command) <'f'>: Add horizontal shift.
1853 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1854 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1855 (FILL_MAX): Removed.
1857 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1860 2003-02-12 Werner LEMBERG <wl@gnu.org>
1862 * src/roff/troff/input.cc (do_name_test, do_expr_test,
1863 do_zero_width): Push `\n' if closing delimiter is missing.
1865 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1866 <'F'>: Make \F non-transparent at the beginning of line.
1867 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1868 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1871 (define_color): Free color in case of reassignment.
1873 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1874 @DefescListEnd): Use @Var, not @var.
1877 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1879 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1880 `shaded' and `outlined' arrays.
1881 (object_spec::object_spec): Initialize `shaded' and `outlined'.
1882 (graphic_object::set_fill_color, graphic_object::set_outline_color):
1884 (closed_object::set_fill_color): Ditto.
1885 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1887 (troff_output::reset_color): Use a_delete instead of free.
1888 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1890 2003-02-11 Werner LEMBERG <wl@gnu.org>
1892 * doc/groff.texinfo: Improve documentation of `ad'.
1893 Document that \D'f...' is dependent on the horizontal resolution.
1894 * man/groff_diff.man: Improve documentation of \D'f...'.
1896 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1897 compensating \h'...' for \D'f ...' since the latter no longer moves
1899 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1901 2003-02-10 Werner LEMBERG <wl@gnu.org>
1903 Improve error messages for `x F' (and `F') commands.
1905 * src/include/error.h: Add declaration for
1906 `current_source_filename'.
1907 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1908 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1909 parameter for source file string.
1910 Updated all callers.
1912 * src/libs/libdriver/input.cc: Add `current_source_filename'.
1913 (remember_source_filename): New function.
1914 (parse_x_command <'F'>, do_file <'F'>): Use it.
1916 2003-02-09 Werner LEMBERG <wl@gnu.org>
1918 Make grotty not emit warnings about unknown colors more than
1921 * src/devices/grotty/tty.cc: Include `ptable.h'.
1922 (TTY_MAX_COLORS): Removed.
1923 (DEFAULT_COLOR_IDX): Defined to -1.
1924 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1925 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1926 Change `tty_colors' to be a ptable.
1927 First arg of `put_color' is now `char'.
1928 New functions `make_rgb_string' and `tty_color'.
1929 (tty_printer::tty_printer): Use `tty_color'.
1930 (tty_printer::color_to_idx): Return value is now `char'.
1933 * src/include/color.h (color): Add `print_color' member function.
1934 * src/libs/libgroff/color.cc (color::print_color): Implement it.
1936 2003-02-08 Werner LEMBERG <wl@gnu.org>
1940 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1943 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1944 assume that value has been allocated with `new[]', thus use
1945 `a_delete' for deallocation.
1947 * src/libs/libdriver/input.cc (get_integer_arg,
1948 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1951 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1952 * src/libs/libgroff/nametoindex.cc
1953 (character_indexer::named_char_index): Use `new <type>[1]'.
1955 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1957 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1958 (split_text): Use `a_delete'.
1960 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1963 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1964 harmless memory leak.
1965 (hyphen_trie::read_patterns_file): Initialize `buf'.
1966 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1967 Initialize `current_fill_color'and `current_glyph_color'.
1968 * src/roff/troff/glyphuni.cc
1969 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1970 * src/roff/troff/uniuni.cc
1971 (unicode_decompose_init::unicode_decompose_init): Ditto.
1972 * src/roff/troff/uniglyph.cc
1973 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1975 2003-01-26 Werner LEMBERG <wl@gnu.org>
1977 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1978 `access' before calling `unlink'.
1979 (do_file): Handle __EMX__.
1981 * src/include/nonposix.h: Handle __EMX__.
1983 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1984 (fontpath,tmacpath): Use it.
1986 Sorted alphabetically.
1988 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1990 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1993 2003-01-27 Werner LEMBERG <wl@gnu.org>
1995 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1996 New files, copied from gnulib.
1997 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1998 * configure.ac: Updated.
1999 * configure: Regenerated.
2001 * src/include/config.hin: Regenerated.
2002 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2003 Don't define `strcasecmp' as `strcmp'.
2004 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2005 Dont define `strncasecmp' as `strncmp'.
2007 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2010 2003-01-26 Werner LEMBERG <wl@gnu.org>
2012 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2015 2003-01-25 Werner LEMBERG <wl@gnu.org>
2017 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2019 2003-01-24 Werner LEMBERG <wl@gnu.org>
2021 Add US-english hyphenation exceptions (converted from Barbara
2022 Beeton's hyphenation exception log reports which appear irregularly
2025 * tmac/hyphen.us: Updated to latest version.
2026 * tmac/README: Updated.
2027 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2028 * tmac/troffrc: Load `hyphenex.us'.
2029 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2030 * doc/groff.texinfo: Updated.
2032 2003-01-23 Werner LEMBERG <wl@gnu.org>
2034 Improve hyphenation slightly. This is a first step in redesigning
2035 the hyphenation algorithm to make it more flexible (e.g. allowing
2036 kerns and ligatures between the hyphenation character and the
2037 following character -- while not used normally in English, other
2038 languages like German would benefit).
2040 * src/roff/troff/env.cc (environment::hyphenate_line): Use
2041 assertion instead of if-clause.
2042 Let `get_hyphen_list' return the number of involved characters in
2043 the hyphenation pattern instead of computing it directly (which
2044 often yields too small values).
2045 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2046 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2049 2003-01-22 Werner LEMBERG <wl@gnu.org>
2051 Fixing a bug which caused groff to hang if the hyphenation exception
2052 dictionary tried to grow.
2054 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2055 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2056 pointer to dictionary.
2058 2003-01-20 Werner LEMBERG <wl@gnu.org>
2060 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2061 negative left italic correction.
2062 * src/utils/afmtodit/afmtodit.man: Document it.
2064 * font/devps/generate/Makefile (RFLAG): Add `-m'.
2065 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2066 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2070 2003-01-16 Werner LEMBERG <wl@gnu.org>
2074 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
2076 * src/preproc/refer/refer.man: Mention REFER environment variable.
2078 2003-01-05 Werner LEMBERG <wl@gnu.org>
2080 Similar to \[is], the square root glyph (\[sr]) and the square root
2081 extension glyph (\[radicalex]) are now text symbols. The new
2082 mathematical versions are called \[sqrt] and \[sqrtex],
2085 * font/devX*/S: Regenerated.
2086 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2087 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2088 * font/devdvi/EX, font/devdvi/S: Regenerated.
2089 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2090 * font/devlj4/generate/special.map: Add `sqrt'.
2091 * font/devlj4/S: Regenerated.
2092 * font/devps/generate/textmap: Add `sqrt'.
2093 * font/devps/S, font/devps/symbolmap: Regenerated.
2095 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2096 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2097 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2098 overlap horizontally.
2100 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2101 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2104 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2105 and `sqrtex' are overlapping glyphs.
2107 2003-01-04 Werner LEMBERG <wl@gnu.org>
2109 * font/devdvi/generate/texsy.map: Add `is'.
2110 * font/devps/symbolmap: Regenerated.
2111 * font/devdvi/*TC, MI, S: Regenerated.
2113 * tmac/dvi.tmac: Remove `is'.
2115 2003-01-03 Werner LEMBERG <wl@gnu.org>
2117 `is' is now a text symbol (only relevant for dvi). The math variant
2118 can be accessed with `integral'.
2120 * font/devX*/S: Regenerated.
2121 * font/devdvi/generate/texex.map: Remove `is'.
2122 * font/devdvi/EX: Updated.
2123 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2124 * font/devlj4/generate/special.map: Ditto.
2125 * font/devlj4/S: Regenerated.
2126 * font/devps/generate/textmap: Add `integral'.
2127 * font/devps/S: Regenerated.
2129 * tmac/dvi.tmac: Define `is'.
2131 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2133 * src/preproc/tbl/main.cc (process_format): Fix error message.
2135 2003-01-02 Werner LEMBERG <wl@gnu.org>
2137 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2138 * font/devps/textmap: Fix entries for `ne' and `nc'.
2139 * font/devps/symbolmap: Regenerated.
2141 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2142 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2143 `38', `58', `78', `-+', `|=', `nc', `ne'.
2145 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2146 Use `schar' for `aq'.
2147 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2148 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2149 * tmac/tty.tmac: Add `ne'.
2151 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2152 for fallback glyphs.
2154 2002-12-29 Werner LEMBERG <wl@gnu.org>
2158 * font/devX*/*: Regenerated.
2159 * font/devdvi/generate/ec.map: Remove `eq'.
2160 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2161 Assign `|=' to position 39.
2162 * font/devdvi/*EC, S: Regenerated.
2163 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2164 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2165 Assign `|=' to position 549.
2166 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2168 Add `uni2243' for `|='.
2170 * tmac/ec.tmac: Add `eq'.
2171 * tmac/dvi.tmac: Add `=~'.
2172 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2175 2002-12-21 Werner LEMBERG <wl@gnu.org>
2177 * font/devdvi/generate/tc.map: Remove `**'.
2178 * font/devdvi/*TC: Regenerated.
2179 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2181 * font/devutf8/NOTES: Updated.
2183 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2184 Don't give default parameter to `set_macro'.
2185 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2186 instead of `set_macro'.
2187 (charinfo::setx_macro): Implement it.
2188 (charinfo::set_macro): Don't change `mode'.
2190 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2191 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2192 * tmac/dvi.tmac: Define `!=' with `.schar'.
2194 2002-12-20 Werner LEMBERG <wl@gnu.org>
2196 * font/devX*/S: Regenerated.
2197 * font/devdvi/generate/ec.map: Remove `pl'.
2198 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2199 * font/devdvi/*{TC,EC}: Regenerated.
2200 * font/devhtml/R.proto: Add `-+'.
2201 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2202 * font/devlbp/*: Remove `or'.
2203 * font/devlj4/generate/special.map: Remove `or'.
2204 * font/devlj4/S: Regenerated.
2205 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2206 `seveneighths', `threeeighths'.
2208 Replace `minusplus' with `uni2213'.
2209 * font/devps/symbolmap: Regenerated.
2210 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2213 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2215 * src/roff/troff/node.cc (troff_output_file::put_char_width):
2216 Call glyph_color and fill_color even if tcommand_flag isn't set.
2217 (make_node, node::add_char): Check not ci->is_fallback but
2220 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2221 * tmac/ec.tmac: Add .rchar entry for `f/'.
2222 Don't remove `12', `14', `34'.
2223 Define `pl' to be always roman.
2224 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2225 Define `18', `38', `58', `78'.
2226 * tmac/tty.tmac: Add `-+'.
2227 * tmac/dvi.tmac: Define `f/'.
2228 (dvi-frac): Use `f/'.
2229 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2230 Define `18', `38', `58', `78'.
2232 2002-12-15 Colin Watson <cjwatson@debian.org>
2234 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2236 2002-12-10 Werner LEMBERG <wl@gnu.org>
2238 Add glyph `tno', a textual variant of `no'.
2240 * font/devX*/*: Regenerated.
2241 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2242 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2243 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2244 * font/devdvi/*: Regenerated.
2245 * font/devlbp/*: Add `tno'.
2246 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2247 * font/devlj4/*: Regenerated.
2248 * font/devps/generate/textmap: Replace `no' with `tno'.
2249 * font/devps/generate/symbolchars: Add `no'.
2250 * font/devps/*: Regenerated.
2252 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2254 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2255 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2259 * tmac/dvi.tmac: Replace most `\\' with `\E'.
2260 Add definition for `sd'.
2261 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2263 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2265 2002-12-08 Werner LEMBERG <wl@gnu.org>
2267 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2268 mode to avoid rounding errors.
2269 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2271 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2272 src/roff/troff/troff.man: Improve documentation of -T.
2274 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
2276 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2277 (run_pipeline) [_WIN32]: Provide working function without `fork'.
2279 2002-12-06 Werner LEMBERG <wl@gnu.org>
2281 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2282 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2283 Scaling Euro.sansserif glyphs down to have the same height as
2285 Removed unnecessary points; added some extrema.
2287 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2290 2002-12-04 Werner LEMBERG <wl@gnu.org>
2292 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2293 and `Euro.symbol.bold.slanted'.
2294 Improve some glyph offsets and widths.
2295 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2297 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2299 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2302 * tmac/europs.tmac: Updated to new glyph indices.
2303 Use Euro.symbol for font familiy `A'.
2305 * doc/groff.texinfo: Minor improvements.
2307 2002-12-02 Werner LEMBERG <wl@gnu.org>
2309 * font/devdvi/generate.tc.map: s/%O/%0/.
2310 * font/devdvi/*TC: Regenerated.
2312 * src/roff/troff/div.cc (init_div_requests): Sorted.
2314 * tmac/dvi.tmac: Remove `Ye'.
2315 * tmac/ec.tmac: Remove `Ye'.
2316 Add .rchar entry for `de'.
2318 * man/groff.man, man/groff_diff.man: Document register `.pe'.
2319 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2322 2002-11-30 Werner LEMBERG <wl@gnu.org>
2324 Add PS font for various Euro glyphs.
2326 * font/devps/generate/freeeuro.sfd: New master font file for
2328 * font/devps/generate/sfdtopfa.pe: New conversion script for
2330 * font/devps/generate/Makefile (FONTS): Add `EURO'.
2331 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2332 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2334 * font/devps/EURO: Generated from `freeeuro.afm'.
2335 * font/devps/download: Add `freeuro.pfa'.
2336 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2339 * tmac/europs.tmac: New file.
2340 * tmac/ps.tmac: Include `europs.tmac'.
2341 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2343 2002-11-29 Werner LEMBERG <wl@gnu.org>
2345 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2346 * font/devdvi/S: Regenerated.
2347 * font/devhtml/R.proto: Fix `CR' and `ci'.
2349 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2351 * font/devps/symbolmap: Regenerated.
2352 * font/devutf8/R.proto: Fix `CR' and `ci'.
2354 * font/devutf8/NOTES: Updated.
2356 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2359 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2361 * tmac/dvi.tmac: Add `lh' and `rh'.
2362 * tmac/Xps.tmac: Fix `lh' and `rh'.
2363 * tmac/X.tmac: Add `OK'.
2364 * tmac/lj4.tmac: Ditto.
2366 2002-11-24 Werner LEMBERG <wl@gnu.org>
2368 * font/devX*/S: Regenerated.
2369 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2370 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2371 * font/devdvi/generate/texsy.map: Remove `or' glyph.
2372 * font/devdvi/S: Regenerated.
2373 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2374 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2375 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2376 `bracketleftbt', `bracketrighttp', `bracketrightex',
2377 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2378 `braceex', `braceleftex', `bracerightex', `bracerighttp',
2379 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2381 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2382 * font/devutf8/NOTES: Updated.
2383 * font/devlj4/generate/special.map: Add glyph `braceex'.
2384 * font/devlj4/S: Regenerated.
2386 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2388 2002-11-14 Werner LEMBERG <wl@gnu.org>
2390 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2393 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2395 * doc/texinfo.tex: New version from texinfo 4.3.
2396 * doc/groff.texinfo: Updated for texinfo 4.3.
2397 Use @tie{} where appropriate.
2398 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2399 * font/devdvi/generate/tc.map: Remove `rn'.
2400 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2401 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2403 * font/devX100/*, font/devX100-12/*, font/devX75/*,
2404 font/devX75-12/*: Regenerated.
2406 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2407 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2408 Improve definition of `an'.
2409 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2411 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2412 * tmac/X.tmac: Add definition for `or'.
2413 * tmac/Xps.tmac: Undo change 2002-11-05.
2414 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2416 2002-11-11 Werner LEMBERG <wl@gnu.org>
2418 * src/roff/troff/node.cc (troff_output_file::put_char): Always
2421 2002-11-10 Werner LEMBERG <wl@gnu.org>
2423 Added three new requests `schar', `fschar', and `rfschar'. `schar'
2424 defines a glyph which is searched after the check for fonts declared
2425 with `.special' (and before the check for all mounted special
2426 fonts). `fschar' defines a glyph for a particular font which is
2427 searched after the check for fonts declared with `.fspecial' (and
2428 before the check for fonts declared with `.special'). `rfschar'
2429 removes glyphs defined with `fschar'.
2431 * src/roff/troff/token.h (char_mode): New enum.
2432 Declare do_define_character.
2433 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2435 (charinfo::is_fallback): Updated.
2436 (charinfo::is_special): New method.
2437 * src/roff/troff/input.cc (do_define_character): Add and use
2438 optional second parameter used as a prefix for font-specific glyph
2440 (define_character, define_fallback_character): Updated.
2441 (define_special_character): New function.
2442 (init_input_requests): Add `schar'.
2443 (charinfo::charinfo, charinfo::set_macro): Updated.
2444 * src/roff/troff/node.cc: Include `stringclass.h'.
2445 (make_glyph_node): Handle special glyphs defined with `.schar' and
2447 (define_font_special_character, remove_font_special_character): New
2449 (init_node_requests): Sorted.
2450 Add `fschar' and `rfschar'.
2451 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2452 Document new requests.
2454 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2455 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2457 2002-11-08 Werner LEMBERG <wl@gnu.org>
2459 Added new font `SC' (cmtex10) to devdvi.
2461 * devdvi/generate/Makefile (FONTS): Add `SC'.
2463 * devdvi/generate/textex.map: New map file for cmtex.
2465 * devdvi/Makefile.sub (DEVFILES): Updated.
2466 * tmac/dvi.tmac: Add fspecial entries for SC.
2467 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
2468 found before `S' since the font position of `SC' is lower due to the
2469 gaps in DESC's `font' line.
2470 * tmac/ec.tmac: Add a `special' call.
2473 * font/devhtml/R.proto: Remove double entry for `ti'.
2474 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2475 * tmac/tty-char.tmac: Remove entry for `bq'.
2476 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2477 * tmac/ec.tmac: Don't remove `aq' glyph.
2478 * tmac/X.tmac: Fix entry for `em'.
2479 Add entries for `fo' and `fc'.
2480 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2482 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2483 documentation of `special' and `fspecial' requests.
2485 2002-11-05 Werner LEMBERG <wl@gnu.org>
2487 * font/devascii/R.proto, font/devcp1047/R.proto,
2488 font/devlatin1/R.proto: Remove entry for `.i'.
2489 * font/devdvi/generate/textt.map: Add entry for `ad'.
2490 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2491 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2492 We need this for getting kerning values to compose `/l' and `/L'.
2493 * font/devdvi: Regenerated font definition files for CM fonts.
2494 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2495 * font/devutf8/R.proto: Ditto.
2496 Remove double entry for `ti'.
2498 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2499 for (groff) ligatures, `la', and `ra'.
2500 Add "'C", "'c", `IJ', and `ij'.
2501 Remove double entry for `ti'.
2502 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2504 Add "'C", "'c", `IJ', and `ij'.
2505 Fix entries for (groff) ligatures, `la', and `ra'.
2507 * tmac/ps.tmac (ps-achar): New macro.
2508 Define "'c" and "'C".
2509 * tmac/tty.tmac: Add entry for `.i'.
2510 * tmac/X.tmac (X-achar): New macro.
2511 Define "'c", "'C", and `:Y'.
2512 Add entries for `IJ' and `ij'.
2513 * tmac/Xps.tmac (Xps-achar): New macro.
2514 Define "'c" and "'C".
2515 Add entries for `IJ' and `ij'.
2516 * tmac/lbp.tmac (lbp-achar): New macro.
2517 Add fallback characters for all groff ligatures and many other
2519 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2520 Add entries for `/l' and `/L'.
2521 Define "'c" and "'C".
2522 Add entries for `IJ' and `ij'.
2524 2002-11-02 Larry Kollar <kollar@alltel.net>
2526 * PROBLEMS: Document how to solve Mac OS X compilation problems.
2528 2002-11-02 Werner LEMBERG <wl@gnu.org>
2530 Adding support for composite glyphs: \[xxx yyy ...] and the
2531 `composite' request.
2533 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2534 to Unicode-based glyph names.
2535 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2536 glyph names to groff glyph names.
2537 * src/roff/troff/uniuni.cc: New file for canonically decomposing
2538 Unicode-based glyph names.
2539 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2540 for handling Unicode glyph names.
2541 * src/roff/troff/input.cc: Include unicode.h.
2542 (composite_glyph_name): New function.
2543 (token::next) <'['>: Handle Unicode glyph names and composite
2545 (composite_dictionary): New dictionary for the `composite' request.
2546 (composite_request): Implement `composite' request.
2547 (init_input_requests): Add `composite'.
2548 Alphabetically sorted.
2549 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2551 (init_env_requests): Alphabetically sorted.
2552 Removed `tas' and `tar' (already commented out).
2553 * src/roff/troff/Makefile.sub: Updated.
2555 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
2557 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2560 2002-10-29 Werner LEMBERG <wl@gnu.org>
2562 Fix computation of .trunc register. Additionally, its value (and
2563 the value of the .ne register) is now always set before entering the
2566 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2567 `needed_space' before calling `space'.
2568 (top_level_diversion::space): Remove special code for 'sp before the
2570 Call `begin_page' with the discarded space as a parameter.
2571 (top_level_diversion::begin_page): Add optional parameter to set
2573 * src/roff/troff/div.h: Updated.
2575 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2578 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2579 (LP): Remove superfluous call to `br'.
2580 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2581 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2583 2002-10-26 Werner LEMBERG <wl@gnu.org>
2585 * tmac/doc-ditroff: Remove useless switch/variable -rC.
2586 (doc-setup-header): Don't set page register `%'.
2587 * tmac/doc-nroff: Remove variable `C'.
2588 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2589 (doc-setup-header): Don't set page register `%'.
2591 * tmac/doc-common (doc-header): Call `ns'.
2592 (doc-paragraph): Protect .sp with .br so that it survives traps
2593 possibly set by the user.
2594 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2596 * tmac/doc*: Replace ' with . for consistency if no effect.
2598 2002-10-26 Werner LEMBERG <wl@gnu.org>
2600 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2601 so that it survives traps possibly set by the user.
2603 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2604 (troff_output_file::set_font): Call flush_tbuf if necessary.
2605 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2606 flush_tbuf and do_motion only if necessary.
2607 (troff_output_file::start_special,
2608 troff_output_file::put_char_width, troff_output_file::put_char,
2609 troff_output_file::draw): Updated.
2610 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2611 vmotion_node::tprint): Undo change 2002-10-23.
2613 2002-10-25 Werner LEMBERG <wl@gnu.org>
2615 * tmac/www.tmac (DC): Fix case of overlapping images.
2617 2002-10-23 Werner LEMBERG <wl@gnu.org>
2619 * src/roff/troff/node.cc (troff_output_file::fill_color,
2620 troff_output_file::glyph_color): Set current color before testing
2622 (troff_output_file::put_char_width, troff_output_file::put_char,
2623 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2625 (troff_output_file::file_color, troff_output_file::glyph_color):
2627 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2628 vmotion_node::tprint): Move first, then call fill_color.
2630 2002-10-20 Werner LEMBERG <wl@gnu.org>
2632 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2633 possible to use multiple main macro packages.
2635 2002-10-19 Werner LEMBERG <wl@gnu.org>
2637 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2638 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2639 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2641 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2642 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2644 2002-10-16 Werner LEMBERG <wl@gnu.org>
2646 * NEWS, doc/webpage.ms: Updated.
2648 2002-10-14 Werner LEMBERG <wl@gnu.org>
2650 * src/roff/troff/node.cc (troff_output_file::put_char_width,
2651 troff_output_file::put_char, troff_output_file::fill_color,
2652 troff_output_file::glyph_color): Handle case where color pointer
2655 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
2657 Add the new -r option to grotty. It is similar to the -i option
2658 except it tells grotty(1) to use the "reverse video" attribute to
2659 render italic fonts.
2661 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2662 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2663 (tty_printer::make_underline, tty_printer::put_color,
2664 tty_printer::end_page): Use it.
2665 (main): Add -r switch.
2667 * src/devices/grotty/grotty.man: Document it.
2669 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
2671 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2672 cast to `unsigned char' to properly read patterns with 8bit
2675 2002-10-08 Werner LEMBERG <wl@gnu.org>
2677 * REVISION: Increased to 2.
2679 Version 1.18.1 released
2680 =======================
2682 2002-10-08 Werner LEMBERG <wl@gnu.org>
2684 * doc/webpage.ms, NEWS: Updated.
2686 2002-10-07 Werner LEMBERG <wl@gnu.org>
2688 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2689 suppress additional whitespace after the header.
2691 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2694 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2696 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
2698 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2699 (Dt): Use it to improve language localization (especially Russian
2702 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
2704 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2705 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2707 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2709 Call `picurve' for BSPLINE.
2710 (HGPrintElt): Handle BSPLINE.
2711 * src/preproc/grn/README: Document it.
2713 2002-10-03 Werner LEMBERG <wl@gnu.org>
2715 * src/roff/troff/node.cc (break_char_node::col): New variable.
2716 Updated constructor.
2717 (space_node::tprint, word_space_node::tprint): Call `fill_color'
2719 (space_node::space_node): Remove assertion.
2720 (break_char_node::add_self): Pass color argument to space node.
2721 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2723 * src/roff/troff/env.cc (environment::do_break,
2724 environment::add_padding): Ditto.
2726 2002-10-02 Werner LEMBERG <wl@gnu.org>
2728 Redesigning color support in troff. Colors are no longer
2729 represented as separate nodes but are now part of glyph nodes and
2730 friends. This fixes the current formatting misbehaviour due to the
2731 changes introduced on 2002-09-20. Some extra code is necessary for
2732 proper grotty support: Without adding color variables to
2733 space-related nodes, the background color would be changed too late.
2735 * src/roff/troff/node.h, src/roff/troff/node.cc:
2736 s/current_pagecolor/current_fill_color/.
2737 s/current_glyphcolor/current_glyph_color/.
2738 (glyph_color_node, fill_color_node): Removed.
2739 (node::get_glyph_color, node::get_fill_color): New virtual member
2741 (space_node::col): New variable.
2742 Updated constructors of space_node and derived classes accordingly.
2743 (hmotion_node::col): New variable.
2744 Updated constructors of hmotion_node and space_char_hmotion_node
2746 (vmotion_node::col): New variable.
2747 Updated constructor accordingly.
2748 (draw_node::gcol, draw_node::fcol): New variables.
2749 Updated constructor accordingly.
2750 (special_node::gcol, special_node::fcol): New variables.
2751 Updated constructors accordingly.
2752 (troff_output_file::put_char, troff_output_file::put_charwidth,
2753 troff_output_file::draw): Set glyph and fill color.
2754 (troff_output_file::start_special): Set glyph and fill color.
2755 Always set current font.
2756 (troff_output_file::fill_color, troff_output_file::glyph_color):
2757 Don't call `do_motion'.
2758 (glyph_node::gcol, glyph_node::fcol): New variables.
2759 Updated constructors of glyph_node and ligature_node accordingly.
2760 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2762 (glyph_node::merge_glyph_node,
2763 kern_pair_node::add_discretionary_hyphen,
2764 node::add_discretionary_hyphen): Updated.
2765 (break_char_node::merge_self): Updated.
2766 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2767 vmotion_node::tprint): Handle color.
2768 (make_glyph_node, make_node, node::add_char): Updated.
2770 * src/roff/troff/env.cc (environment::space_newline,
2771 environment::space, environment::output_line, environment::do_break,
2772 environment::make_tab_node, environment::add_padding, title):
2774 (environment_switch, environment_copy): Don't add color nodes.
2776 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2778 (token::next): Updated.
2779 \m and \M now are as transparent as \s.
2780 (process_input_stack, token::add_to_node_list, token::process,
2781 read_draw_node): Updated.
2782 (charinfo_to_node_list): Don't add color nodes.
2784 * doc/groff.texinfo: Updated.
2786 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
2788 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2791 2002-09-27 Colin Watson <cjwatson@debian.org>
2793 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2795 2002-09-23 Werner LEMBERG <wl@gnu.org>
2797 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2799 (DEFAULT_LINEWIDTH_FACTOR): New macro.
2800 (linewidth_factor): New global variable.
2801 (lbp_printer::set_line_thickness): Fix case for size < 0, using
2803 (long_options): Add -w/--linewidth option.
2805 (main): Handle -w option to set linewidth_factor.
2806 (lbp_printer::lbp_printer): Initialize req_linethickness, not
2809 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2811 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
2813 Fixed a bug in the line thickness setting code.
2815 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2817 (lbp_printer::set_line_thickness): Pass environment as second
2819 Implement it actually.
2820 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2821 and `set_line_thickness, depending on the current font size.
2823 2002-09-21 Werner LEMBERG <wl@gnu.org>
2825 Some Debian patches.
2827 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2828 * src/roff/troff/node.cc (bracket_node::copy): Initialize
2831 2002-09-20 Werner LEMBERG <wl@gnu.org>
2833 * configure: Regenerated with autoconf 2.54.
2835 2002-09-20 Werner LEMBERG <wl@gnu.org>
2837 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2839 Rename cur_fill_color to fill_color.
2840 * src/roff/troff/env.cc: Updated.
2842 2002-09-20 Werner LEMBERG <wl@gnu.org>
2844 * src/roff/troff/env.cc (title): Copy color status after processing
2846 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2847 fill color nodes to reset colors properly.
2849 * tmac/www.tmac (DC): Fix color handling.
2851 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2852 * doc/groff.texinfo: Fixing documentation of `tl' request.
2853 * doc/webpage.ms: Updated.
2855 2002-09-19 Werner LEMBERG <wl@gnu.org>
2857 * src/roff/troff/env.cc (environent_switch, environment_copy):
2858 Emit glyph and fill color nodes to initialize colors properly.
2860 2002-09-17 Colin Watson <cjwatson@debian.org>
2862 * src/roff/troff/env.cc (environment::set_glyph_color,
2863 environment::set_fill_color): Fix typo which prevented \m[] work
2866 2002-09-17 Werner LEMBERG <wl@gnu.org>
2868 Add left and right italic correction to non-slanted PS fonts. This
2869 is an experimental feature to improve image rendering of grohtml.
2871 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2872 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2873 * font/devps/*: All non-slanted fonts regenerated.
2876 2002-09-16 Werner LEMBERG <wl@gnu.org>
2878 Add a site-specific font directory.
2880 * Makefile.in (localfontdir, legacyfontdir): New variables.
2881 (fontpath): Use them.
2882 (MDEFINES, uninstall_dirs): Updated.
2883 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2884 Remove `FONTPATH' and `MACROPATH'.
2886 * src/roff/troff/troff.man, NEWS: Updated.
2887 * doc/groff.texinfo (Font Directories): New section.
2890 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2891 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2892 src/preproc/grn/grn.man: Minor fixes.
2894 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2895 Remove unused variable.
2897 2002-09-11 Werner LEMBERG <wl@gnu.org>
2899 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2900 * man/groff_out.man: Fix documentation of 'N'.
2902 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
2904 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2905 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2907 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2908 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2909 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2910 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2911 PRE_TAG>: Call `begin' with `FALSE'.
2913 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2915 * src/libs/libgroff/string.cc (string::extract): Fix position of
2916 terminating null byte.
2918 2002-09-08 Werner LEMBERG <wl@gnu.org>
2920 Add global option `nospaces' to tbl so that leading and trailing
2921 spaces in data items are ignored.
2923 * src/libs/libgroff/string.cc (string::remove_spaces): New member
2924 function to remove leading and trailing spaces.
2925 * src/include/stringclass.h: Updated.
2927 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2929 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2931 Fix typo in error messages.
2932 (process_data): Implement `nospaces' option.
2933 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2935 2002-09-07 Werner LEMBERG <wl@gnu.org>
2937 * src/include/config.hin: Add `HAVE_ISATTY'.
2938 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2940 * src/libs/libgroff/tmpname.cc: Include `time.h'.
2941 * src/libs/libdriver/input.cc (Char): Add `operator==' and
2942 `operator!=' for `char'.
2943 * doc/groff.texinfo: Replace @ifnottex block for top node with
2946 2002-09-06 Werner LEMBERG <wl@gnu.org>
2948 * doc/Makefile.in (.texinfo.html): Add -I switch.
2949 * doc/groff.texinfo: Add @ifnottex block for top node to make
2950 translation to HTML work.
2952 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
2954 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2955 (get_papersize, determine_vertical_offset): Removed.
2956 (char_buffer::do_image): Always specify letter size.
2958 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2961 2002-09-05 Werner LEMBERG <wl@gnu.org>
2963 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2964 default indentation.
2966 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
2968 * src/preproc/html/pre-html.cc (imageList::createPage): Use
2970 (generateImages): Clean up push-back buffer.
2972 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2974 * doc/groff.texinfo: Minor fixes.
2976 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2978 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2979 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2981 (determine_vertical_offset): Use LETTER_LENGTH.
2982 (createPage): Moved to ...
2983 (imageList::createPage): This.
2984 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2985 (imageList::getMaxX): New function.
2986 (createImage): Moved to ...
2987 (imageList::createImage): This.
2988 (imageList::createImages): New function.
2989 (generateImages): Read `maxx' directly.
2991 (scanArguments): Don't specify `gsPaper' for `-o'.
2992 (makeTempFiles): Call `xtmpfile' with the last argument set to
2995 2002-08-24 Werner LEMBERG <wl@gnu.org>
2997 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2998 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2999 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3000 * src/preproc/html/pushback.cc: Include nonposix.h.
3001 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3004 2002-08-23 Werner LEMBERG <wl@gnu.org>
3006 Use $(OBJEXT) for the object file extension.
3008 * Makefile.comm (.SUFFIXES): Add .obj.
3009 (.cc.obj, .c.obj): New implicit rules.
3010 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3011 (MDEFINES): Add EXEEXT and OBJEXT.
3012 * */Makefile.sub: s/.o/.$(OBJEXT)/.
3014 2002-08-22 Werner LEMBERG <wl@gnu.org>
3016 * INSTALL: Mention texinfo 4.2 as a prerequisite.
3018 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
3020 * src/devices/grohtml/post-html.cc (colType): Make enum global to
3022 (html_printer::update_min_max, html_printer::add_table_end): New
3024 (html_printer::lookahead_for_tables): Use them.
3025 Reset page offset correctly.
3026 (html_printer::~html_printer): Add creation of creator comment up.
3028 2002-08-20 Werner LEMBERG <wl@gnu.org>
3030 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3031 * man/groff_tmac.man: Fix typos.
3032 * man/groff_font.man: Minor reordering.
3033 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3034 * contrib/groffer/groffer.man: Fix typos.
3036 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
3038 Avoid endless loops while scanning for tables.
3040 * src/devices/grohtml/post-html.cc (list::insert): Set
3042 (html_printer::next_horiz_pos): Add `text_glob' argument; update
3044 Return immediately if that argument is NULL.
3045 (html_printer::calc_nf): Don't test if `g' is NULL.
3046 (html_printer::lookahead_for_tables): Use
3047 `glyphs.move_right_get_data'.
3048 Don't test if `g' is NULL.
3050 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
3052 A better fix, replacing fix 2002-08-15, for increasing SIZE.
3054 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3056 (char_block::char_block): Allocate `buffer'.
3057 (char_buffer::add_string): Use it.
3059 2002-08-15 Werner LEMBERG <wl@gnu.org>
3061 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3062 src/devices/grodvi/grodvi.man: Document default line thickness.
3064 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
3066 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3069 2002-08-14 Werner LEMBERG <wl@gnu.org>
3071 * doc/webpage.ms: Updated.
3073 2002-08-09 Werner LEMBERG <wl@gnu.org>
3075 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3078 2002-08-08 Aaron Campbell <aaron@monkey.org>
3080 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3083 2002-08-08 Werner LEMBERG <wl@gnu.org>
3085 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3088 Don't push back a space but a newline onto the stack.
3090 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
3092 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3095 * src/devices/grohtml/post-html.cc (html_printer::end_font,
3096 html_printer::start_font): Handle them.
3097 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3099 (html_text::do_bold): Don't reset italic and tt.
3100 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3101 * font/devhtml/DESC.proto: Add those fonts.
3102 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3104 2002-08-07 Werner LEMBERG <wl@gnu.org>
3106 * MORE.STUFF: Added gpresent.
3108 * tmac/trace.tmac: Show nesting level by a corresponding amount of
3109 whitespace before printing the logging message.
3111 2002-07-31 Colin Watson <cjwatson@debian.org>
3113 * src/devices/grohtml/html-table.cc (html_table::finish_row):
3114 Initialize `n' to zero. This fixes a segfault on ARM.
3116 2002-07-30 Werner LEMBERG <wl@gnu.org>
3118 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3120 2002-07-29 Werner LEMBERG <wl@gnu.org>
3122 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3125 2002-07-28 Colin Watson <cjwatson@debian.org>
3127 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3129 (html_printer::html_printer): Initialize `pointsize'.
3131 2002-07-26 Werner LEMBERG <wl@gnu.org>
3133 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3135 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3136 (gnu.eps): Add -rle switch to pnmtops.
3137 (distfiles): Add gnu.eps and gnu.png.
3139 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
3141 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3144 2002-07-24 Werner LEMBERG <wl@gnu.org>
3146 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3147 ' \+' but ' *' for sed.
3148 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3150 2002-07-23 Werner LEMBERG <wl@gnu.org>
3152 * doc/groff.texinfo: Document `papersize' keyword.
3153 * NEWS, man/groff_font.man: Updated.
3155 2002-07-23 Colin Watson <cjwatson@debian.org>
3157 Extend papersize keyword to accept more than a single entry. The
3158 first valid will be used.
3160 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3161 (font::scan_papersize): Really skip final newline.
3162 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3164 2002-07-23 Werner LEMBERG <wl@gnu.org>
3166 * configure.ac: Test for isatty.
3167 * configure: Regenerated.
3168 * src/include/posix.h: Check HAVE_ISATTY.
3169 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3170 * src/utils/lookbib/lookbib.cc: Include posix.h.
3171 Don't declare isatty.
3173 2002-07-21 Werner LEMBERG <wl@gnu.org>
3175 * NEWS: Add `output' request.
3177 * REVISION: Increased to 1.
3179 Version 1.18.0 released
3180 =======================
3182 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
3184 Allow internal glyph indices > 0xFF in grohtml for input characters.
3186 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3188 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3189 Updated all callers.
3190 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3191 (html_printer): Updated.
3193 2002-07-19 Werner LEMBERG <wl@gnu.org>
3195 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3196 * font/devutf8/R.proto: Adding some missing glyphs.
3197 * font/devutf8/NOTES: Updated.
3199 * tmac/dvi.tmac: Add more composite glyphs.
3200 * tmac/html.tmac: Updated.
3202 * man/groff_char.man: Add `sum' and `product' entities.
3206 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
3208 Improved table, tab, and indenting support.
3210 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3211 string_iterator::suppress_newline_flag): Removed. Updated all
3212 function which have used it.
3214 * src/roff/troff/env.cc: Include `input.h'.
3215 (environment::add_node): Accept 0 as parameter.
3216 (environment::add_html_tag): Add `force' parameter.
3217 Updated all callers.
3218 (environment::add_html_tag_tabs): Ditto.
3219 For the moment, support left-aligned tabs only.
3220 (environment::make_html_tag): New function.
3221 (fill, no_fill): Set .br html tag additionally.
3222 (environment::newline): Emit `eol.ce' or `eol' tag for html.
3223 (environment::add_html_tag_eol): Removed.
3224 (tab_stops::distance_to_next_tab): Add variant for handling
3226 (environment::distance_to_next_tab): Ditto.
3227 Updated all callers.
3228 (environment::handle_tab): Handle tabs for html.
3230 * src/roff/troff/env.h: Updated.
3232 * src/roff/troff/div.cc: Updated all callers of
3233 `environment::add_html_tag'.
3235 * src/devices/grohtml/html-table.cc,
3236 src/devices/grohtml/html-table.h: New files.
3238 * src/devices/grohtml/html-text.cc (html_text): New members
3239 `blank_para' and `start_space'.
3240 (html_text::issue_tag): Don't emit TABLE_TAG.
3241 Handle indentation for PRE_TAG and P_TAG.
3242 (html_text::end_tag): Updated.
3243 (html_text::table_is_void, html_text::issue_table_begin,
3244 html_text::issue_table_end): Removed.
3245 (html_text::do_push): Simplified.
3246 [DEBUGGING]: Small fix.
3247 (html_text::push_para): Add new parameter for indentation; updated
3250 (html_text::do_indent, html_text::do_table, html_text::done_table,
3251 html_text::is_in_table): Removed.
3252 (html_text::do_pre): Handle P_TAG also.
3253 (html_text::shutdown): Handle p->indent.
3254 (html_text::check_emit_text): Simplified.
3255 (html_text::do_emittext): Reset `blank_para'.
3256 (html_text::do_para): Add new parameter for indentation; updated
3258 (html_text::remove_indent): New function.
3259 (html_text::do_space): Handle verbatim text properly.
3260 (html_text::ever_emitted_text, html_text::starts_with_space,
3261 html_text::remove_para_align): New functions.
3262 (html_text::dump_stack_element, html_text::dump_stack): Updated.
3264 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3267 * src/devices/grohtml/post-html.cc: Include html-table.h.
3268 (INDENTATION): Removed.
3269 (text_glob): Added many `is_<foo>' functions.
3270 Added table description `tab'.
3271 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3273 (list): Add `insert' and `move_to' member functions.
3274 (page): Add `insert_tag' member function.
3275 (page::dump_page) [DEBUG_TABLES]: Improved.
3276 (html_printer): Add `table' and `max_linelength' elements.
3277 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3278 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3279 `remove_tabs', `remove_courier_tabs'.
3280 (html_printer::emit_raw): Handle indentation.
3281 (html_printer::do_center, html_printer::write_header): Updated.
3282 (html_printer::is_courier_until_eol): Check for tag.
3283 (html_printer::do_linelength): Handle max_linelength.
3284 (html_printer::do_page_offset, html_printer::do_indentation): Handle
3286 (html_printer::do_tempindent): Updated.
3287 (html_printer::do_indentedparagraph): Removed.
3288 (html_printer::do_indent): Simplified.
3289 (html_printer::do_eol): Use `ever_emitted_text'.
3290 (html_printer::do_flush, html_printer::do_links): Don't call
3292 (html_printer::do_break): Handle end_tempindent.
3293 (html_printer::troff_tag): Get argument.
3295 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3296 (html_printer::flush_page): Call `lookahead_for_tables'.
3297 Don't call `done_table'.
3298 (html_printer::add_to_sbuf): Always call do_indent.
3300 * src/devices/grohtml/Makefile.sub: Updated.
3302 * tmac/an-old.tmac (TP): Don't handle html device specially.
3303 (an-do-tag-html): New function which will be used instead of
3304 `an-do-tag' if html device is used.
3306 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3308 * tmac/s.tmac (@IP): Don't handle html device specially.
3309 (@IP-html): New function which will be used instead of `@IP' if
3310 html device is used.
3312 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3313 is a hack which will eventually vanish again.
3314 (PIMG): Handle `-C' option correctly if not html.
3317 2002-07-17 Werner LEMBERG <wl@gnu.org>
3319 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3321 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
3323 * contrib/pic2graph/pic2graph.*: Use convert(1).
3324 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3326 2002-07-14 Bernd Warken <bwarken@mayn.de>
3328 * tmac/groff_trace.man: New file.
3329 * tmac/Makefile.sub: Updated.
3332 2002-07-13 Werner LEMBERG <wl@gnu.org>
3334 * src/roff/groff/groff.man: Add some cross references.
3336 2002-07-12 Werner LEMBERG <wl@gnu.org>
3338 * src/roff/troff/input.cc (substring_request): Add warnings for
3339 string indices out of range.
3341 2002-07-11 Werner LEMBERG <wl@gnu.org>
3343 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3344 * font/devdvi/*EC: Regenerated.
3346 2002-07-10 Bernd Warken <bwarken@mayn.de>
3348 * man/groff_char.man: Updated and extended.
3350 2002-07-10 Werner LEMBERG <wl@gnu.org>
3352 * src/roff/troff/input.cc (length_macro): Renamed to...
3353 (length_request): This.
3354 Move call of `tok.next()' to the very end, otherwise the register
3355 value hasn't been updated yet.
3356 (init_input_requests): Updated.
3358 2002-07-09 Werner LEMBERG <wl@gnu.org>
3360 * src/roff/troff/input.cc (substring_macro): Renamed to...
3361 (substring_request): This.
3362 (init_input_requests): Updated.
3363 * src/roff/troff/request.h: Updated.
3365 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
3367 * src/roff/grog/grog.sh: Fix typo.
3369 2002-07-08 Werner LEMBERG <wl@gnu.org>
3371 * win32-diffs: Updated.
3373 Handle `papersize' keyword properly in DESC.
3375 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3377 Updated all callers.
3378 * src/libs/libgroff/paper.cc: Add four more paper formats used by
3380 * src/include/paper.h: Updated.
3382 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3383 Other minor C syntax fixes.
3384 (papersize, paperlength, paperwidth): Renamed to `user_*'.
3385 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3387 (lbp_printer::lbp_printer): Pass three arguments.
3388 Set paper dimensions properly.
3389 (make_printer, main): Updated.
3390 (handle_unknown_desc_command): Fix error messages.
3391 (main): Handle papersize keyword in DESC properly.
3393 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3395 (lbp_printer::lbp_printer): Pass an argument.
3396 Set paper_size properly.
3397 (handle_unknown_desc_command): Removed.
3398 (make_printer, main): Updated.
3399 * src/devices/grolj4/grolj4.man: Minor documentation fix.
3401 * man/groff_font.man, NEWS: Updated.
3403 2002-07-07 Werner LEMBERG <wl@gnu.org>
3405 Integrated eqn2graph, contributed by Eric S. Raymond.
3407 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3409 * Makefile.in, NEWS: Updated.
3411 2002-06-04 Werner LEMBERG <wl@gnu.org>
3413 Changing the substring request to make it fit better with other
3414 string manipulation functions in other programming languages:
3415 Index 0 is now the first character in the string, and index -1
3416 indicates the last character. Since this request didn't work
3417 properly anyway in the last release, it doesn't harm too much to
3420 * src/roff/troff/input.cc (substring_macro): Use loops to get
3421 the real string length (ignoring COMPATIBLE_SAVE and
3422 COMPATIBLE_RESTORE) and offsets.
3423 Implement change described above.
3425 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3426 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3428 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3430 2002-06-03 Werner LEMBERG <wl@gnu.org>
3432 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
3433 COMPATIBLE_RESTORE are completely ignored.
3435 * src/roff/troff/input.cc (char_list::set, char_list::get): New
3437 (macro): `length' field renamed to `len'.
3438 Added new field `empty_macro' (1 if macro is empty), to be used
3439 instead of checking `len'.
3440 Updated all callers.
3441 (macro::empty): Updated.
3442 (macro::length, macro::set, macro::get): New functions.
3443 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3445 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3446 COMPATIBLE_RESTORE pairs.
3447 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3448 * src/roff/troff/request.h: Updated.
3450 * doc/groff.texinfo: Document .chop's behaviour better.
3452 2002-06-02 Werner LEMBERG <wl@gnu.org>
3454 * doc/pic.ms: Fix documentation for the addition of positions.
3456 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3458 2002-06-29 Werner LEMBERG <wl@gnu.org>
3460 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3462 * src/roff/troff/input.cc (have_string_arg): New global variable.
3463 (read_mode): New enumeration.
3464 (read_escape_name): Use it. Update all calls.
3465 (read_long_escape_name): Use it. Update all calls.
3466 Set have_string_arg if appropriate.
3467 (get_char_for_escape_name): Add parameter for handling space
3469 (interpolate_string_with_args, decode_string_args): New functions.
3470 (get_copy, token::next): Call it if necessary.
3471 (interpolate_string): Fix error message.
3473 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3476 2002-06-24 Bernd Warken <bwarken@mayn.de>
3478 * man/groff_tmac.man: Updated and extended.
3480 2002-06-24 Werner LEMBERG <wl@gnu.org>
3482 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3484 2002-06-23 Werner LEMBERG <wl@gnu.org>
3486 * doc/pic.ms: Improve documentation of composite block objects.
3488 2002-06-22 Werner LEMBERG <wl@gnu.org>
3490 * src/roff/troff/input.cc (init_registers): Add three registers
3491 `seconds', `minutes', and `hours' to hold the current time.
3493 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3496 2002-06-20 Werner LEMBERG <wl@gnu.org>
3498 Make \X accept both `\ ' and `\~', converting them to single space
3501 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3502 (token::unstretchable_space): New inline function.
3503 * src/roff/troff/input.cc (token::next, token::delimiter,
3504 token::description, token::add_to_node_list, token::process): Handle
3505 TOKEN_UNSTRETCHABLE_NODE.
3506 (encode_char): Handle tok.stretchable_space and
3507 tok.unstretchable_space.
3509 * NEWS, doc/groff.texinfo: Document it..
3511 2002-06-19 Werner LEMBERG <wl@gnu.org>
3513 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3515 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3516 keyword to enable/disable SGR output.
3517 (tty_printer::change_fill_color): New function.
3518 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3520 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3523 2002-06-18 Werner LEMBERG <wl@gnu.org>
3525 Add a `color' request and a `.color' register to control usage of
3528 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3529 (color_flag): This (which is the inverse).
3530 (activate_color): New function.
3531 (main, init_input_requests): Updated.
3532 * src/roff/troff/troff.h, src/roff/troff/node.cc
3533 (troff_output_file::fill_color, troff_output_file::glyph_color):
3536 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3537 Document the changes.
3539 2002-06-17 Colin Watson <cjwatson@debian.org>
3541 Circumvent bug in autoconf 2.53 regarding top_builddir.
3543 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3544 * Makefile.in, doc/Makefile.in:
3545 s/@top_builddir@/@groff_top_builddir@/.
3546 * configure: Regenerated (with autoconf 2.53).
3548 2002-06-17 Werner LEMBERG <wl@gnu.org>
3550 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3551 `paperwidth' and `paperlength' for the `papersize' keyword.
3553 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
3555 * src/devices/grops/grops.man: Add info about Type 42 fonts.
3557 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
3559 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3560 html_printer::do_linelength, html_printer::do_pageoffset,
3561 html_printer::do_indentation, html_printer::do_tempindent,
3562 html_printer::do_break, html_printer::begin_page): Clear indented
3564 * tmac/html.tmac: Disable hyphenation.
3566 2002-06-15 Werner LEMBERG <wl@gnu.org>
3568 Don't produce HTML files if utility programs are missing.
3570 * Makefile.in (make_html, make_install_html): New variables.
3571 (MDEFINES): Updated.
3573 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3575 * configure.ac: Use it.
3576 * configure: Regenerated.
3578 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3579 (HTMLEXAMPLESFILES): This new variable.
3580 (EXAMPLESIMAGEFILES): Renamed to...
3581 (HTMLEXAMPLEIMAGEFILES): This.
3582 (CLEANADD): Add HTMLEXAMPLEFILES.
3583 (all): Use `make_html'.
3585 (install_data): Use `make_install_html'.
3586 Move html stuff to...
3587 (install_html): This new target.
3588 (uninstall_sub): Updated.
3590 2002-06-14 Bernd Warken <bwarken@mayn.de>
3592 * src/roff/grog/Makefile.sub (grog): Renamed to...
3594 (grog): New rule to always install grog.sh as grog.
3596 2002-06-08 Bernd Warken <bwarken@mayn.de>
3598 * src/roff/grog/grog.pl: Fix typo.
3600 2002-06-07 Werner LEMBERG <wl@gnu.org>
3602 * doc/groff.texinfo: Add more info on .tr arguments.
3604 2002-06-05 Werner LEMBERG <wl@gnu.org>
3606 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3608 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3609 * configure: Regenerated.
3611 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3613 * src/roff/troff/symbol.cc (table_sizes): Add more values.
3615 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3617 2002-06-04 Werner LEMBERG <wl@gnu.org>
3619 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3620 is not initialized at the time we need it in case `--prefix' hasn't
3621 been set. Check for `ac_default_prefix' also.
3622 Test for `papersize' keyword also and generalize allowed whitespace.
3623 * configure: Regenerated.
3625 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3628 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3630 (src_version, src_revision): New variables to avoid overwriting
3631 from parent make process.
3632 (version.cc): Updated.
3634 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3635 (linebuf, linebufsize): New global variables.
3636 (sys_fatal): Use `fatal' to abort properly.
3637 (get_line): New function.
3638 (get_resolution): Use it.
3639 Improve error messages.
3640 (get_papersize): Check `papersize' also.
3642 Improve error messages.
3644 2002-06-03 Werner LEMBERG <wl@gnu.org>
3646 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3647 should be removed only if builddir is not srcdir.
3648 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3649 (clean): Depend on `mostlyclean'.
3650 (distclean): Depend on `clean'.
3651 (realclean, extraclean): Depend on `distclean'.
3652 (.y.cc, .y.o): Simplified. The output files are no longer written
3653 to srcdir but to builddir.
3654 * Makefile.in (MDEFINES): Add `version' and `revision'.
3655 (uninstall_dirs): Fix order of directories.
3656 * doc/Makefile.sub (version, revision): Removed.
3657 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3658 Added `HTMLDOCFILES'.
3659 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3660 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3661 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3664 * doc/texinfo.tex (\authortt): New macro.
3665 (\shortcontt): Define.
3666 (\titlepage): Set \tt to \authortt while defining \authorfont.
3667 (\appendixbox): New macro.
3668 (\chapmacro, \appendixentry): Use \appendixbox to get even
3669 indentation for letters.
3670 (\summarycontents): Set \tt.
3671 (\internalpagesize): Add two arguments for real paper width and
3672 height as needed by pdfTeX.
3673 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3675 (\tempdima, \tempdimb): New temporary dimensions.
3676 (\pagesizesyyy): Updated.
3678 2002-06-02 Werner LEMBERG <wl@gnu.org>
3680 Adding a new keyword `papersize' to the DESC file format (similar
3681 but not completely identical to grolbp's extension). grops now has
3682 a -p command line option to override `papersize'. Finally, grolbp
3683 has been adapted to the new syntax.
3685 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
3686 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3688 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3689 (CCSRCS): Add `paper.cc'.
3691 * src/include/font.h (font): Add `papersize' element.
3692 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3693 (font::scan_papersize): New function.
3694 (font::load_desc): Use it for handling `papersize' keyword.
3695 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3697 * src/devices/grops/ps.cc: Include paper.h.
3698 (user_paper_length): New global variable.
3699 (ps_printer): Use paper length as initializer.
3700 (make_printer): Updated.
3701 (main): Handle new `-p' option.
3702 * src/devices/grops/grops.man: Updated.
3704 * src/devices/grolbp/lbp.cc: Include paper.h.
3705 s/papersizes/lbp_papersizes/.
3706 (set_papersize): Use new `papersizes' array.
3707 (handle_unknown_desc_command): Don't handle `papersize'.
3708 (main): Use `font::scan_papersize' for handling `-p' option.
3709 * src/devices/grolbp/grolbp.man: Updated.
3711 * man/groff_font.man: Document `papersize'.
3714 2002-05-30 Werner LEMBERG <wl@gnu.org>
3716 * src/devices/grops/TODO: Updated.
3717 * src/devices/grops/grops.man: More info on paper formats.
3718 * man/groff_font.man: Document `paperheight' and `paperwidth'.
3720 2002-05-29 Werner LEMBERG <wl@gnu.org>
3722 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3723 to list only if srcdir != currdir.
3724 (distfiles): New target.
3726 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3727 (NOMAKEDIRS): New variable.
3730 2002-05-26 Werner LEMBERG <wl@gnu.org>
3732 Add .output request, similar to \! at top-level.
3734 * src/roff/troff/input.cc (transparent): Remove unused declaration.
3735 (output_request): New function.
3736 (init_input_requests): Add it.
3738 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3741 * Makefile.in (MDEFINES): Add INSTALL_INFO.
3742 (prepare_examples): Fix typo.
3743 * doc/groff.texinfo (@direntry): Fix it.
3745 2002-05-25 Werner LEMBERG <wl@gnu.org>
3747 Including the doc subdir into groff's Makefile system.
3749 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3750 * configure.ac: Use it.
3751 Generate `doc/Makefile'.
3752 * configure: Regenerated.
3754 * Makefile.in (infodir, INSTALL_INFO): New variables.
3755 (MDEFINES, uninstall_dirs): Updated.
3756 (OTHERDIRS): Add `doc'.
3757 * Makefile.comm (CLEANDIRADD): New variable.
3758 (mostlyclean): Use it.
3760 * doc/Makefile.sub, doc/Makefile.in: New files.
3761 * doc/Makefile: Removed.
3763 * NEWS, INSTALL: Updated.
3765 2002-05-24 Werner LEMBERG <wl@gnu.org>
3767 * doc/homepage.ms: Renamed to ...
3768 * doc/webpage.ms: This.
3771 2002-05-23 Werner LEMBERG <wl@gnu.org>
3773 Integrating the `mom' macro package, contributed by Peter Schaffter
3776 * contrib/mom/*: New subdirectory tree.
3777 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3778 be used for documentation files.
3779 (MDEFINES, uninstall_dirs): Use them.
3780 (OTHERDIRS): Add contrib/mom.
3781 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3783 * MANIFEST, NEWS: Updated.
3785 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
3787 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3788 if at outer level; at start-up we are at outer level.
3790 * src/roff/troff/input.cc (do_suppress): Implement it.
3793 Add option -p to show progress information.
3794 pre-grohtml will now render only one page at a time, reducing the
3795 size of needed disk resources enormously.
3797 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3798 (imagePageName): New global variable.
3799 (psPageName, show_progress, currentPageNo): New global variables.
3800 (html_system): Close saved stderr and stdout handles.
3801 (write_end_image): Accept a parameter to control \O escape.
3802 (write_start_image): Adapted to new \O meaning.
3803 (char_buffer::write_upto_newline): Updated.
3804 (createAllPages): Replaced with...
3805 (createPage): This new function to create a single page for images.
3806 It uses `psselect' from the psutils package.
3807 (removeAllPages): Removed.
3808 (createImage): Updated.
3809 Handle progress display.
3810 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3811 (scanArguments): Add option -p.
3812 (makeTempFiles): Updated to create temp files for psPageName and
3814 (removeTempFiles): Removed.
3817 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3818 html_printer::write_header): Append `\0' to `buffer'.
3819 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3821 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3822 Handle `text_emitted'.
3823 (html_text::table_is_void): Slightly rewritten.
3824 (stop): New external symbol.
3825 (html_text::do_push) [DEBUGGING]: Use it and simplify.
3826 (html_text::shutdown): Call `dump_stack'.
3827 (html_text::do_space): Rewritten.
3828 * src/devices/grohtml/grohtml.man: Document -p and the need of
3831 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3833 Call \O[0] if `ps4html' is active.
3834 * tmac/s.tmac (@EQ, @EN): Handle html better.
3836 * tmac/html.tmac: Don't use black for background colour.
3838 * src/roff/troff/node.cc: Include `div.h'.
3839 (troff_output_file::really_print_line): Don't use `is_on'.
3840 (troff_output_file::word_marker, troff_output_file::flush_tbuf
3841 troff_output_file::check_charinfo,
3842 troff_output_file::put_char_width, troff_output_file::put_char,
3843 troff_output_file::determine_line_limits, troff_output_file::draw,
3844 real_output_file::begin_page, glyph_color_node::tprintf,
3845 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3847 (troff_output_file::really_on): Call `do_motion'.
3848 (suppress_node::tprint): Use `get_page_number' instead of `%'
3850 Call `reset_output_registers' conditionally on `is_on'.
3852 * doc/groff.texinfo: Document new syntax of \O.
3853 * NEWS, man/groff_diff.man: Updated.
3855 2002-05-22 Werner LEMBERG <wl@gnu.org>
3857 * MORE.STUFF: Add info about David Frey's deroff implementation.
3860 2002-05-16 Werner LEMBERG <wl@gnu.org>
3862 Pic's `with' attribute now accepts positions.
3864 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3865 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3867 (object_spec): Add rule for `WITH' and `position'.
3868 (relative_path): Give `corner' the precedence of `CHOP'.
3869 * src/preproc/pic/object.h (path): New members `pos' and
3871 * src/preproc/pic/object.cc: Updated initializers of `path'.
3872 (path::follow): Handle `is_position'.
3874 * doc/pic.ms: Completely updated grammar description.
3875 Many typographical improvements.
3877 2002-05-15 Werner LEMBERG <wl@gnu.org>
3879 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3880 code of x in range 0-127) also.
3881 * doc/groff.texinfo, man/groff_diff.man: Updated.
3883 Added keywords `north', `south', `east', and `west' for corners
3886 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3888 (yylex): Handle them.
3889 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3890 (corner): Handle them.
3892 2002-05-14 Werner LEMBERG <wl@gnu.org>
3894 * src/devices/grops/grops.man: Clarify handling of `download' file.
3896 2002-05-11 Werner LEMBERG <wl@gnu.org>
3898 Adding `warnscale' and `spreadwarn' requests, based on a patch from
3899 Jeffrey Friedl <jfriedl@yahoo.com>.
3901 * src/roff/troff/input.cc (spread_limit, warn_scale,
3902 warn_scaling_indicator): New global variables.
3903 (warnscale_request, spreadwarn_requests): New functions.
3904 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3905 (init_input_requests): Updated.
3906 (error_type): Add `OUTPUT_WARNING'.
3907 (do_error): Handle it.
3908 (output_warning): New warning function which shows output location.
3909 * src/roff/troff/env.h (spread_limit): New external variable.
3910 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3912 (distribute_space): Emit warning if added space is larger than
3914 (environment::possibly_break_line): Emit warning if a line can't
3915 be adjusted on both sides.
3917 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3919 2002-05-08 Werner LEMBERG <wl@gnu.org>
3921 * src/roff/troff/node.cc (special_node::special_node): Use
3922 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
3923 \X''\% crashes, for example.
3925 * doc/groff.texinfo: Document \! and \? used at top-level.
3927 2002-05-06 Werner LEMBERG <wl@gnu.org>
3929 * src/preproc/pic/pic.man: Fix some keyword syntax.
3930 Other minor typographical fixes.
3932 * src/roff/groff/groff.man: Fix typos.
3934 2002-05-04 Werner LEMBERG <wl@gnu.org>
3936 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3937 (ShortOpt[]): This to avoid problems with refer.
3939 * doc/pic.ms: Fix typo.
3940 Fix pic grammar description.
3942 * tmac/an-old.tmac (ne): Use de1, not de.
3944 2002-05-03 Werner LEMBERG <wl@gnu.org>
3946 * doc/groff.texinfo: Finished separation of glyphs and characters.
3947 Don't use the string `Appendix' for appendix headers (both in
3948 the text and the table of contents).
3949 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3952 Use registers LL and LT (similar to -ms) for controlling the
3953 length of title and line, respectively, in the -man and -mdoc
3956 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3957 (doc-setup-page-layout): Use \n[LL] and \n[LT].
3958 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3960 (an-header, an-p-footer): Use \n[LT].
3961 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3962 doc/groff.texinfo: Document it.
3964 2002-05-02 Werner LEMBERG <wl@gnu.org>
3966 * doc/fdl.texi: New file.
3967 * doc/groff.texinfo: Include it.
3968 Define and use @copying.
3969 Starting with separating glyph, symbol, and character.
3971 2002-04-27 Werner LEMBERG <wl@gnu.org>
3973 * Makefile.in (EXEEXT): Set it.
3974 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3977 * src/include/nonposix.h: Define GS_NAME.
3978 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3980 Some preliminary changes for EMX support under OS/2.
3982 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3983 __EMX__ similar to __MSDOS__.
3984 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3986 2002-04-25 Werner LEMBERG <wl@gnu.org>
3988 * doc/groff.texinfo: Integrated groff_out.man.
3991 2002-04-23 Werner LEMBERG <wl@gnu.org>
3993 * man/groff_out.man: Minor fixes.
3995 2002-04-23 Werner LEMBERG <wl@gnu.org>
3997 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3998 correct page references.
3999 Fixed many index entries.
4001 2002-04-23 Bernd Warken <bwarken@mayn.de>
4003 * man/roff.man: Enlarged.
4005 2002-04-22 Werner LEMBERG <wl@gnu.org>
4007 * doc/groff.texinfo: More examples, other fixes.
4009 2002-04-20 Werner LEMBERG <wl@gnu.org>
4011 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4012 will now form a chain, e.g.
4021 This is for compatibility with plan 9's troff.
4023 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4027 * doc/groff.texinfo: Add documentation of remaining requests and
4030 2002-04-19 Werner LEMBERG <wl@gnu.org>
4032 * doc/groff.texinfo: Add documentation of remaining escapes.
4034 * font/devdvi/generate/tc.map: Remove entry for `sr'.
4035 * font/devdvi/*TC: Regenerated.
4037 2002-04-18 Werner LEMBERG <wl@gnu.org>
4039 * src/roff/troff/input.cc (token::next): Make \H behave consistently
4040 if not in compatibility mode, i.e., increment relative to the
4042 * doc/groff.texinfo: Updated accordingly.
4044 2002-04-17 Werner LEMBERG <wl@gnu.org>
4046 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4048 2002-04-16 Bernd Warken <bwarken@mayn.de>
4050 * src/roff/groff/groff.man: Improve documentation of -P option.
4053 2002-04-15 Werner LEMBERG <wl@gnu.org>
4055 Add new escape \F to switch font family.
4057 * src/roff/troff/input.cc (token::next): Handle \F.
4058 * src/roff/troff/env.cc (environment::set_family): Handle
4060 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4063 2002-04-14 Werner LEMBERG <wl@gnu.org>
4065 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4068 2002-04-13 Werner LEMBERG <wl@gnu.org>
4070 Implement \f[] as an alternative to \fP. Change \mP and \MP to
4071 \m[] and \M[], respectively.
4073 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4074 (symbol::symbol): Handle NULL string and empty string differently.
4075 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4076 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4077 Add optional parameter.
4078 Updated calling functions.
4079 (get_copy, do_glyph_color, do_fill_color, token::next): Use
4081 * src/roff/troff/env.cc (environment::set_font): Ditto.
4083 * src/preproc/pic/troff.cc (troff_output::set_fill,
4084 troff_output::reset_color: Updated.
4086 * tmac/www.tmac: Updated.
4088 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4089 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4092 * tmac/Xps.tmac: Remove some redundant code.
4094 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4095 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4096 man/groff_out.man, man/groff.man, man/groff_diff.man,
4097 src/roff/groff/groff.man: Replace \f[P] with \f[].
4099 2002-04-13 Bernd Warken <bwarken@mayn.de>
4101 * src/include/printer.h, src/libs/libdriver/printer.cc
4102 (printer::change_fill_color): New member function.
4103 * src/libs/libdriver/input.cc (parse_D_command): Use it.
4105 2002-04-12 Werner LEMBERG <wl@gnu.org>
4107 * doc/groff.texinfo: Completed pass on gtroff reference.
4109 2002-04-11 Werner LEMBERG <wl@gnu.org>
4111 * doc/groff.texinfo: More fixes.
4113 2002-04-11 Bernd Warken <bwarken@mayn.de>
4115 * src/include/color.h: Decorate with `const'.
4118 * src/libs/libgroff.color.cc: Decorate with `const'.
4120 (color::color): Initialize members.
4121 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4122 command according to the documentation.
4124 * man/groff_out.man: Updated.
4127 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
4129 * src/preproc/html/pre-html.cc (write_start_image): Remove
4131 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4133 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4134 \C'hy' caused an assertion failure.
4136 * src/roff/troff/env.cc (environment::environment): Initialize
4138 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4140 2002-04-10 Werner LEMBERG <wl@gnu.org>
4142 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4143 Document pvs request and .pvs register.
4145 2002-04-09 Werner LEMBERG <wl@gnu.org>
4147 * doc/groff.texinfo: Improve and fix documentation of diversions
4150 2002-04-08 Werner LEMBERG <wl@gnu.org>
4152 * doc/groff.texinfo: Fix documentation of drawing functions.
4155 2002-04-07 Werner LEMBERG <wl@gnu.org>
4157 * doc/groff.texinfo: Better documentation of double quotes as
4161 2002-04-06 Werner LEMBERG <wl@gnu.org>
4163 * man/groff_font.man: Document names of special characters better.
4164 * doc/groff.texinfo: Minor improvements.
4166 * tmac/lbp.tmac: Load latin1.tmac.
4167 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4169 * font/devX*/*: Regenerated (all chars > 0x80 removed).
4171 2002-04-05 Werner LEMBERG <wl@gnu.org>
4173 * tmac/tty.tmac: Don't use shc request.
4174 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4177 * man/groff_diff.man: Minor fixes.
4179 * font/devlbp/*: Remove all `charXXX' entities.
4181 * src/libs/libgroff/font.cc (font::~font): Deallocate
4182 `special_device_coding'.
4183 (font::load): Use `new' for allocating `special_device_coding'.
4184 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4185 Removed unused member.
4187 2002-04-05 Werner LEMBERG <wl@gnu.org>
4189 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4190 (resource_manager::do_begin_binary,
4191 resource_manager::do_begin_data): Use it.
4193 * doc/texinfo.tex: Updated to version 4.2.
4195 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4196 (token::zero_width_break): New inline function.
4197 * src/roff/troff/input.cc (token::next): Use it.
4198 (token::description): Updated.
4199 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4200 (token::add_to_node_list, token::process): Use it.
4201 * NEWS, doc/groff.texinfo: Updated.
4203 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4204 * tmac/tty.tmac: Add missing backslash.
4206 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
4208 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4209 `.ps' register instead of `.s' to handle fractional point sizes.
4210 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4211 limit_box::output): Ditto.
4212 * src/preproc/eqn/other.cc (size_box::compute_metrics,
4213 size_box::output): Ditto.
4214 * src/preproc/eqn/over.cc (over_box::compute_metrics,
4215 over_box::output): Ditto.
4216 * src/preproc/eqn/script.cc (script_box::compute_metrics,
4217 script_box::output): Ditto.
4218 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4219 sqrt_box::output): Ditto.
4221 2002-04-03 Michael Selway <mas@ssl.co.uk>
4223 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4226 2002-04-03 Werner LEMBERG <wl@gnu.org>
4228 * doc/homepage.ms: Reduce title size.
4229 * doc/groff.texinfo: Fix documentation of .t register.
4230 Fix handling of colon.
4233 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4234 only if page length is positive to avoid a loop.
4236 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4239 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
4241 * src/include/nonposix.h, src/roff/groff/pipeline.c:
4242 s/__CYGWIN32__/__CYGWIN__/.
4244 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
4246 * doc/gnu.xpm: New image contributed by Emily Mulley.
4247 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4248 (homepage.html): Be dependent on gnu.eps.
4249 * doc/homepage.ms: Updated to new image.
4251 * src/devices/grohtml/post-html.cc (html_printer): New member
4253 (html_printer::flush_sbuf, html_printer::set_char): Set it.
4254 (html_printer::sbuf_continuation): Use it.
4256 2002-03-28 Werner LEMBERG <wl@gnu.org>
4258 * src/libs/libgroff/getopt.c: Updated to latest version.
4260 * tmac/README: More on hyphen.tex license.
4262 2002-03-26 Larry Kollar <kollar@alltel.net>
4264 * doc/groff.texinfo: Add documentation of most missing requests.
4266 2002-03-25 Werner LEMBERG <wl@gnu.org>
4268 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4269 of `+-', `mu', and `di', respectively.
4271 * font/devascii/R.proto, font/devutf8/R.proto,
4272 font/devlatin1/R.proto, font/devhtml/R.proto,
4273 font/devcp1047/R.proto, font/devlpb/*: Add them.
4274 * font/devps/generate/textmap: Ditto.
4275 * font/devps/*: Regenerated.
4276 * font/devlj4/generate/text.map: Add them.
4277 * font/devlj4/*: Regenerated.
4278 * font/devdvi/generate/tc.map: Use them.
4279 * font/devdvi/generate/texsy.map: Add them.
4280 * font/devdvi/*: Regenerated.
4281 * font/devX*/*: Regenerated.
4283 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4284 tmac/tty-char.tmac: Updated.
4286 * NEWS, man/groff_char.man: Updated.
4288 2002-03-24 Werner LEMBERG <wl@gnu.org>
4290 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4291 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4292 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4293 we use `.fchar' in dvi.tmac.
4294 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4295 * tmac/Xps.tmac: Simplify some char definitions.
4296 Add definition for \[f/].
4297 * man/groff_char.man: Updated for new X.tmac.
4299 * tmac/README: New file.
4301 2002-03-23 Phil Lobbes <phil@perkpartners.com>
4303 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4304 internal .y.o rule took precendence over the .y.cc rule, compiling
4305 the yacc files with gcc instead of g++.
4307 2002-03-23 Werner LEMBERG <wl@gnu.org>
4309 * tmac/dvi.tmac: Add replacement font for `CB'.
4311 * tmac/doc.tmac: s/request/macro/ in messages.
4312 (doc-generic-macro): Improve error message.
4313 * tmac/groff_mdoc.man: Minor improvements.
4315 2002-03-22 Werner LEMBERG <wl@gnu.org>
4317 * doc/groff.texinfo: Document possible conflict between `tr' and
4320 2002-03-21 Werner LEMBERG <wl@gnu.org>
4322 Improve handling of hyphenation patterns. It is now possible to
4323 use most of TeX's pattern files unmodified. To make the process
4324 more flexible, a new request `hpfcode' has been added which
4325 provides a character code mapping for the `hpf' request. See
4326 comment before hpf_getc() for more details.
4328 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4330 (read_patterns_file): Additional parameter for exception dictionary.
4331 Extended to recognize \pattern, \hyphenation, and \endinput.
4332 (do_hyphenation_patterns_file): Updated.
4333 * src/roff/troff/env.h (hpf_code_table): New extern.
4335 * src/roff/troff/input.cc (hpf_code_table): New array.
4336 (init_hpf_code_table, hyphenation_patterns_file_code): New
4338 (hyphenation_code): Handle translation from `trin' correctly.
4339 (main, init_input_requests): Updated.
4340 (charinfo::set_translation): Handle hyphenation code also.
4342 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4345 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4346 char' is used for offsets in hyphenation exceptions.
4348 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4350 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4352 2002-03-20 Larry Kollar <kollar@alltel.net>
4354 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4357 2002-03-18 Werner LEMBERG <wl@gnu.org>
4359 * tmac/html.tmac: Fix serious typo.
4361 2002-03-17 Larry Kollar <kollar@alltel.net>
4363 * doc/groff.texinfo: Add documentation for `writec' request.
4365 2002-03-17 Werner LEMBERG <wl@gnu.org>
4367 Added request `hpfa' to append hyphenation patterns.
4369 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4371 (hyphenation_patterns_file): Renamed to...
4372 (do_hyphenation_patterns_file): This.
4373 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4375 (init_hyphen_requests): Updated.
4376 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4378 2002-03-16 Werner LEMBERG <wl@gnu.org>
4380 Added request `writec' in analogy to `tmc'.
4382 * src/roff/troff/input.cc (write_request): Renamed to...
4383 (do_write_request): This.
4384 Added one parameter.
4385 (write_request, write_request_continue): New functions.
4386 (init_input_requests): Updated.
4387 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4389 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4391 * NEWS: Document it.
4393 2002-03-15 Werner LEMBERG <wl@gnu.org>
4395 * man/groff.man: Add writem request.
4397 Add request `trin' (translate input) to make `.asciify' work
4398 correctly. This is necessary since `charXXX' entity names are no
4399 longer hardcoded in font definition files.
4401 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4402 `translate_input' members.
4403 (charinfo::set_asciify_code, charinfo::get_asciify_code,
4404 charinfo::set_translation_input): New methods.
4405 (charinfo::set_translation): Add third argument.
4406 * src/roff/troff/input.cc (charinfo:set_translation): Set
4408 (do_translate): Add second argument.
4409 (translate_input): New function.
4410 (init_input_requests): Updated.
4411 * src/roff/troff/node.cc (glyph_node::asciify,
4412 composite_node::asciify): Use `get_asciify_code'.
4414 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4416 * NEWS, man/groff.man, man/groff_diff.man: Updated.
4418 2002-03-14 Larry Kollar <kollar@alltel.net>
4420 * doc/groff.texinfo: Improve documentation of .RS and .RE.
4422 2002-03-14 Werner LEMBERG <wl@gnu.org>
4424 Add a new request `sizes' similar to the `sizes' command in DESC
4427 * src/roff/troff/env.cc (override_sizes): New function.
4428 (init_env_requests): Use it.
4429 * src/roff/troff/token.h: Export `read_string'.
4430 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4432 2002-03-12 Werner LEMBERG <wl@gnu.org>
4434 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4436 2002-03-10 Werner LEMBERG <wl@gnu.org>
4438 * tmac/pspic.tmac: Add support for -Tdvi.
4439 * tmac/dvi.tmac: Include pspic.tmac.
4440 * src/devices/grodvi/grodvi.man: Document it.
4443 * font/devlj4/generate/Makefile: Fix URL of metric files.
4445 2002-03-09 Werner LEMBERG <wl@gnu.org>
4447 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4449 2002-03-09 Larry Kollar <kollar@alltel.net>
4451 * tmac/groff_ms.man: Add documentation for RS and RE macros.
4453 2002-03-08 Werner LEMBERG <wl@gnu.org>
4455 * doc/groff.texinfo: Fixes for texinfo 4.1.
4457 2002-03-07 Werner LEMBERG <wl@gnu.org>
4459 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4461 Handle CYGWIN properly.
4463 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
4465 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4466 * tmac/lbp.tmac: Add some font translations.
4468 2002-03-02 Werner LEMBERG <wl@gnu.org>
4470 * font/devcp1047/R.proto, font/devlatin1/R.proto,
4471 font/devhtml/R.proto: Remove `charXXX' entries.
4472 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4475 * font/devlj4/generate/text.map: Remove `charXXX' entries.
4476 * font/devlj4/*: Regenerated all font definition files.
4477 * tmac/lj4.tmac: Load latin1.tmac.
4479 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4480 from 2000-06-17: LJ4 metric files are *not* text files.
4482 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4483 register to test for EBCDIC.
4485 2002-03-01 Werner LEMBERG <wl@gnu.org>
4487 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4488 files (as grops already does).
4489 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4491 * src/devices/grops/grops.man: Document comment lines in encoding
4494 * tmac/cp1047.tmac: New file.
4495 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4496 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4497 * tmac/Makefile.sub (NORMALFILES): Updated.
4499 * tmac/ec.tmac: Don't load latin1.tmac again.
4501 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4502 font/devps/generate/dingbats.map,
4503 font/devps/generate/dingbats.rmap, font/devps/text.enc,
4504 font/devps/generate/Makefile (symbolmap): Add header comment.
4505 * font/devps/generate/textmap: Ditto.
4506 Remove `charXXX' entries.
4507 * font/devps/symbolmap: Regenerated.
4508 * font/devps/*: Regenerated all font definition files.
4510 2002-02-28 Werner LEMBERG <wl@gnu.org>
4512 Add color support to grodvi (for drawing colors are currently
4513 translated to gray values).
4515 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4516 (dvi_printer): Add `cur_color' member.
4517 (dvi_printer::set_color): New function.
4518 (draw_dvi_printer): Remove `fill'.
4519 (draw_dvi_printer::fill_next): Pass environment as parameter.
4520 Update code for new color support translated to gray.
4521 (dvi_printer::set_char): Updated.
4522 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4523 changes crossing the page border.
4524 (dvi_printer::draw): Updated.
4525 Remove cases `f' and `F'.
4526 * tmac/dvi.tmac: Add color definitions.
4527 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4529 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4532 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4533 versions of autoconf.
4534 * configure: Updated.
4536 * doc/homepage.ms: Use `.blm'.
4537 * tmac/www.tmac (www-depth): New auxiliary variable.
4538 (www-pop-level): Don't issue HTML tag.
4539 (ULS, ULE, LI): Use absolute indentation.
4541 * src/devices/grops/ps.cc (ps_printer::begin_page,
4542 ps_printer::end_page): Switch forth and back to default color while
4543 starting a new page.
4545 2002-02-27 Werner LEMBERG <wl@gnu.org>
4547 Add EC and TC fonts to devdvi.
4549 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4550 * font/devdvi/generate/cork.map: Renamed to...
4551 * font/devdvi/generate/ec.map: This.
4552 Remove entry for `aq'.
4553 * font/devdvi/generate/tc.map: New file.
4554 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4557 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4558 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4559 * tmac/ec.tmac: New file.
4560 * tmac/Makefile.sub (NORMALFILES): Updated.
4561 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4562 * man/groff_char.man: Check `ECFONTS' register.
4564 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4566 2002-02-26 Werner LEMBERG <wl@gnu.org>
4568 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4569 * font/devdvi/generate/cork.map: Add 'y and 'Y.
4570 * font/devdvi/*: Updated.
4571 * tmac/dvi.tmac: Formatting.
4573 Add font `HBI' for the dvi output.
4574 Add support for font families `T' and `H'.
4576 * font/devdvi/HBI: New file.
4577 * font/devdvi/B: Renamed to ...
4578 * font/devdvi/TB: This.
4579 * font/devdvi/BI: Renamed to ...
4580 * font/devdvi/TBI: This.
4581 * font/devdvi/I: Renamed to ...
4582 * font/devdvi/TI: This.
4583 * font/devdvi/R: Renamed to ...
4584 * font/devdvi/TR: This.
4585 * font/devdvi/H: Renamed to ...
4586 * font/devdvi/HR: This.
4587 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4588 * font/devdvi/generate/Makefile (HBI): New rule.
4590 (R, I, B, BI, H): Renamed to ...
4591 (TR, TI, TB, TBI, HR): This, respectively.
4593 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4594 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4595 Add `styles' and `family' keywords.
4596 * tmac/dvi.tmac: Alias `H' to `HR'.
4597 Add some fspecial requests for italic fonts.
4598 Add TR and TI as special.
4599 Add support for `_' with font CWI.
4601 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4602 operator `:'. Until now, the expression `0:1' would return 2
4605 2002-02-25 Werner LEMBERG <wl@gnu.org>
4607 * man/groff_char.man: Added some missing PS glyph names (from the
4609 * font/devps/generate/textmap, font/devps/symbolmap: Add
4612 * doc/groff.texinfo: Minor additions and fixes.
4613 * man/groff_diff.man: Remove documentation of fp request. This
4614 is already covered in the original troff manual.
4615 Updated to be consistent with other doc files.
4618 2002-02-24 Werner LEMBERG <wl@gnu.org>
4620 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4622 Define new variable OTHERDEVDIRS (containing `font/devlj4
4623 font/devlbp' if not EBCDIC).
4624 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4625 (OTHERDEVDIRS): New variable.
4626 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4627 * configure: Regenerated.
4629 * NEWS, src/devices/grotty/grotty.man: Updated.
4631 2002-02-23 Werner LEMBERG <wl@gnu.org>
4633 * src/roff/troff/input.cc (do_overstrike, do_bracket,
4634 get_line_arg): Honour input level.
4636 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4638 * font/*/*: Implement it in all font files.
4639 * font/devps/generate/textmap, font/devps/generate/symbolchars,
4640 * font/devps/symbolmap: Updated.
4641 * font/devlj4/generate/text.map: Updated.
4642 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4643 * font/devdvi/generate/texmi.map: Updated.
4645 * font/devutf8/R.proto: Remove all `charXXX' entries.
4646 * font/devutf8/NOTES: Updated.
4648 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4651 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4653 * NEWS, man/groff_char.man: Updated.
4655 2002-02-21 Phil Lobbes <phil@perkpartners.com>
4657 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4659 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4661 * src/roff/grog/grog.pl: Fix computation of $refer.
4663 2002-02-19 Werner LEMBERG <wl@gnu.org>
4665 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4666 `snprintf' and `vsnprintf'.
4668 * src/include/htmlindicate.h: Renamed to...
4669 * src/include/htmlhint.h: This.
4670 * src/include/Makefile.sub: Updated.
4671 * src/preproc/eqn/main.cc: Updated.
4673 2002-02-18 Werner LEMBERG <wl@gnu.org>
4675 * man/roff.man, man/groff_out.man, man/groff.man,
4676 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4677 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4679 * win32-diffs: Updated.
4681 2002-02-17 Werner LEMBERG <wl@gnu.org>
4683 * doc/Makefile (clean): Add *.eps.
4684 (MEMACROS): Removed.
4685 (TFLAG): New variable.
4688 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4690 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4692 * tmac/www.tmac: Use dummy diversion while resetting and disabling
4694 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4696 * src/roff/troff/troff.man: Fix order of parameter description.
4700 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
4702 Simplify image handling for grohtml.
4705 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4707 (html_text::dump_stack): Don't emit newline while debugging.
4708 (html_text::do_push) [DEBUGGING]: Print more info.
4709 (html_text::check_emit_text): Fix handling of <p>.
4710 * src/devices/grohtml/html.h: Updated.
4711 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4712 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
4713 send its data to stderr also.
4715 (simple_output::space_or_newline) [DEBUGGING]: Removed.
4716 * src/devices/grohtml/post-html.cc (html_printer::do_links,
4717 html_printer::html_printer): Remove `DEBUGGING' conditionals.
4719 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4721 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4722 is_inline_image): Removed.
4723 (html_begin_suppress, html_end_suppress): Don't take a parameter.
4724 (graphic_start, graphic_end): Removed.
4725 * src/include/htmlindicate.h: Updated.
4726 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4727 (macroset_template): New global variable.
4728 (makeFileName): Use `macroset_template'.
4729 (write_end_image): Don't take a parameter.
4731 (write_start_image: Don't emit newline.
4732 (char_buffer::write_upto_newline): Updated.
4733 (char_buffer::skip_to_newline): Renamed to ...
4734 (char_buffer::skip_until_newline): This.
4736 (char_buffer::write_file_troff, char_buffer::write_file_html):
4738 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4739 (removeAllPages): Remove `DEBUGGING' conditionals.
4740 (addRegDef, dump_args): New functions.
4741 (char_buffer::do_html, char_buffer::do_image): Handle
4742 `www-image-template' command line variable.
4743 Add more debugging code.
4744 (addps4html): Removed.
4745 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4747 * src/preproc/eqn/main.cc: Include `ctype.h'.
4748 (suppress_html): Removed.
4750 (inline_equation): Use `html_begin_suppress' and
4751 `html_end_suppress'.
4752 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4753 (troff_output::start_picture, troff_output::finish_picture):
4755 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4756 (process_input_file): Updated.
4758 * src/roff/troff/div.cc (page_number): Set page number only if the
4759 `ps4html' register isn't defined.
4760 * src/roff/troff/input.cc (image_no): New external variable.
4761 (do_suppress): Use it.
4762 * src/roff/troff/node.h (suppress_node::image_id): New member.
4763 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4764 (suppress_node::suppress_node): Initialize `image_id' member.
4765 (suppress_node::same): Handle `image_id' also.
4766 (suppress_node::copy): Updated.
4767 (last_image_id): New global variable.
4768 (suppress_node::tprint): Use it.
4770 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4772 * tmac/pspic.mac (PSPIC): Fix html support.
4773 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4774 * tmac/www.tmac (www-image-template): Set up.
4775 (HTMLINDEX): Renamed to...
4777 (BODYCOLOR): Renamed to...
4779 (BACKGROUND): Renamed to...
4781 (URL): Change order of parameters for consistency.
4782 (MAILTO): Renamed to...
4784 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4785 (IMG, PIMG, MPIMG): This.
4786 (HTML-H-BEGIN, HTML-H-END): Renamed to...
4788 (LINKS): Renamed to...
4790 (LINE): Renamed to...
4792 (NO-AUTO-RULE): Renamed to...
4794 (HTML-TL): Renamed to...
4796 (UL-BEGIN, UL-END): Renamed to...
4798 (DROPCAP): Renamed to...
4800 (TS, TE, EQ, EN): Provide default definitions.
4801 (www-make-unique-name): Updated.
4802 (HTML-IMAGE-INLINE): Fix typo.
4803 * tmac/groff_www.man: Updated.
4805 * doc/Makefile (homepage.html): Add option -r to grohtml.
4806 Use shortened image name.
4807 * doc/groff.texinfo: Updated info on grohtml strings and macros.
4808 * doc/homepage.ms: Updated and extended.
4810 2002-02-14 Werner LEMBERG <wl@gnu.org>
4812 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4814 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4815 SGR_BACK_DEFAULT_COLOR): Replaced with ...
4816 (tty_printer::put_color): Use it.
4817 (ttr_printer::end_page): Simplify.
4819 2002-02-13 Werner LEMBERG <wl@gnu.org>
4821 * tmac/groff_tmac.man: Moved to...
4822 * man/groff_tmac.man: This place.
4823 * tmac/Makefile.sub, man/Makefile.sub: Updated.
4825 2002-02-12 Werner LEMBERG <wl@gnu.org>
4827 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4828 $(COMPILE.c) to not include groff's assert.h.
4830 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4832 * NEWS, src/drivers/grotty/grotty.man: Document it.
4834 2002-02-11 Werner LEMBERG <wl@gnu.org>
4836 * src/libs/snprintf/snprintf.c: Updated to latest version
4839 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
4840 test whether there is `.]' also.
4841 Don't check for spaces after `.['.
4842 * src/roff/grog/grog.sh: Do the same.
4844 2002-02-10 Werner LEMBERG <wl@gnu.org>
4848 * src/libs/libgroff/illegal.cc: Renamed to ...
4849 * src/libs/libgroff/invalid.cc: This.
4850 (illegal_char_table): Renamed to ...
4851 (invalid_char_table): This.
4852 * src/libs/libgroff/Makefile.sub: Updated.
4853 * win32-diffs: Updated.
4855 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4856 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4857 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4858 font::load), src/preproc/eqn/main.cc (read_line, main),
4859 src/preproc/eqn/lex.cc (file_input::read_line),
4860 src/preproc/pic/lex.cc (file_input::read_line,
4861 simple_file_input::get, simple_file_input::peek),
4862 src/preproc/pic/main.cc (top_input::get, top_input::peek),
4863 src/preproc/pic/pic.man, src/preproc/refer/main.cc
4864 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4865 do_bib), src/preproc/tbl/main.cc (table_input::get),
4866 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4867 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4868 do_zero_width, read_request, encode_char, ps_get_line,
4869 transparent_file, get_char_for_escape_name, transparent_translate,
4870 asciify, input_char_description, read_string, set_string),
4871 src/roff/troff/env.cc (environment::add_html_tag),
4872 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4874 * src/include/lib.h: Updated.
4876 * src/preproc/eqn/eqn.cc: Removed.
4880 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4882 2002-02-09 Werner LEMBERG <wl@gnu.org>
4884 * doc/gnu.xpm: New image.
4885 * doc/Makefile (DOCS): Add homepage.ps.
4886 Add rules for converting xpm->png and xpm->eps.
4887 Use `gnu.{xpm,eps}' as image names.
4888 * doc/homepage.ms: Updated.
4890 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
4892 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4893 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4894 Remove calls to `B1' and `B2'
4895 (PNG-IMAGE): New macro for inclusion of images in PNG format.
4896 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4897 auxiliary variables for MARGIN-PNG-IMAGE.
4898 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4899 auxiliary macros for MARGIN-PNG-IMAGE.
4900 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4902 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4903 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4904 (DROPCAP): New macro to produce dropcap characters.
4905 (www-do-image): Renamed back to...
4906 (HTML-DO-IMAGE): This.
4907 Updated all callers.
4909 * doc/Makefile (gnubw.eps): Updated.
4910 * doc/homepage.ms: Updated.
4912 2002-02-08 Werner LEMBERG <wl@gnu.org>
4914 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4915 Added `linethick' to table in section `Style Variables'.
4917 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
4919 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4921 2002-02-07 Werner LEMBERG <wl@gnu.org>
4923 Adding options -C (compatibility mode) and -c (grotty's old output
4926 * src/roff/nroff/nroff.sh: Implement it.
4928 * NEWS, src/roff/nroff/nroff.man: Updated.
4930 * PROBLEMS: Document bison 1.32 bug.
4932 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4934 * src/roff/troff/node.cc (make_tfont): Define it earlier.
4935 * src/roff/troff/div.h: Add prototype for `end_diversions'.
4936 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4937 * src/roff/troff/env.h: Add prototype for `title'.
4939 Adding EBCDIC support to grotty.
4941 * src/devices/grotty/tty.cc (CSI): New macro.
4942 (SGR_*, tty_printer::put_color): Use it.
4944 2002-02-06 Werner LEMBERG <wl@gnu.org>
4946 Implementing color support in grotty. The new switch -c activates
4947 the old drawing scheme, disabling color at the same time. The new
4948 switch `-i' selects italic instead of underlining (SGR only).
4950 * src/devices/grotty/tty.cc (putstring): New define instead of
4951 `fputs'. Updated all callers.
4952 (old_drawing_scheme): New global variable.
4953 (COLOR_CHANGE): New enum value.
4954 (SGR_*): New defines containing color handling escape sequences.
4955 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4956 (glyph): New members `back_color_idx' and `fore_color_idx'.
4957 (glyph::order): Add COLOR_CHANGE.
4958 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4959 `is_underline', `is_bold', `cu_flag', `tty_colors'.
4960 New methods `make_underline', `make_bold', `color_to_idx',
4961 `change_color', `put_color'.
4962 (cu_flag): Moved into `tty_printer' class.
4963 (tty_printer::tty_printer): Initialize colors.
4964 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4965 tty_printer::draw, tty_printer::end_page): Handle colors also.
4966 (main): Add options `-c' and `-i'.
4968 * NEWS, src/devices/grotty/grotty.man: Updated.
4970 * src/include/errarg.h (errarg): Add support for `unsigned int'.
4971 * src/libs/libgroff/errarg.c: Implement it.
4973 * src/include/printer.h (printer): Add `change_color' method
4974 (currently used by grotty only).
4975 * src/libs/libdriver/printer.cc: Implement it.
4976 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4977 call to `pr->change_color'.
4979 * src/roff/troff/node.cc (troff_output_file::fill_color,
4980 troff_output_file::glyph_color): Call `do_motion'.
4982 * tmac/tty.tmac: Add color definitions.
4984 * src/roff/groff/groff.man: Minor fixes.
4986 2002-02-05 Bernd Warken <bwarken@mayn.de>
4988 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4989 it. This is a preparation for future changes.
4991 2002-02-05 Werner LEMBERG <wl@gnu.org>
4993 * src/roff/troff/input.cc (process_input_stack): Fix the case
4994 where leading spaces are followed by \f or \s; previously, an
4995 incorrect space width has been used.
4997 * doc/roff.man (quoted_char): Fix argument.
4998 (comment): Define string.
5000 2002-02-04 Larry Kollar <kollar@alltel.net>
5002 * doc/groff.texinfo: More fixes.
5004 2002-02-04 Werner LEMBERG <wl@gnu.org>
5006 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5007 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5008 `restore_compatibility' before `output_string' -- the LINE_STRING
5009 register now already contains proper switches from and to
5012 * man/groff_char.man: Add Euro symbol.
5013 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5014 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5015 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5018 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5020 (.texinfo.html): Add support for texinfo->html.
5022 2002-02-03 Werner LEMBERG <wl@gnu.org>
5024 Added three new requests `ds1', `as1', and `ami'. The former two
5025 are equivalent to `ds' and `as' with the difference that
5026 compatibility mode is saved on entry, switched off during string
5027 expansion, and restored on exit. The latter is the pendant to `dei'
5030 (do_define_string): Use `define_mode' and `calling mode'.
5031 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5032 end of string, respectively.
5033 (define_string, append_string): Use `calling_mode'.
5034 (define_nocomp_string, append_nocomp_string,
5035 define_string_indirect): New functions.
5036 (init_input_requests): Updated.
5037 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5039 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5040 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
5041 mm macro package accesses this string register directly.
5042 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5044 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
5047 2002-02-02 Larry Kollar <kollar@alltel.net>
5049 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5051 2002-01-31 Werner LEMBERG <wl@gnu.org>
5053 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5055 2002-01-31 Bernd Warken <bwarken@mayn.de>
5057 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5058 * man/groff_out.man: Revised and updated.
5060 2002-01-30 Bernd Warken <bwarken@mayn.de>
5062 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5063 out the unused `{' and `}' commands. Undefined by default.
5064 (IntArray): Make `data' private.
5065 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5066 new methods instead.
5067 (skip_line_D, skip_to_end_of_line): New functions.
5068 (get_D_fixed_args): Use `skip_line_D'.
5069 Changed to handle dummy odd arguments by ...
5070 (get_D_fixed_args_odd_dummy): This new function.
5071 (get_D_variable_args): Split some code into ...
5072 (get_possibly_integer_args): This new function.
5073 (send_draw): Use more `const'.
5074 (delete_current_env): New function.
5075 (position_to_end_of_args): Use `size_t'.
5077 (send_draw): Updated.
5078 (parse_D_command): Handle `c', `C', and `t' better.
5082 2002-01-29 Werner LEMBERG <wl@gnu.org>
5085 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5086 @Def...ListEnd which replaces @Def...x. This is necessary to get
5087 proper HTML output -- see the comment in the file for more
5091 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
5093 Fixes to make color changes of 2002-01-21 work with grohtml.
5095 * src/devices/grohtml/post-html.cc (style): Updated.
5096 (html_printer): Remove unused methods.
5097 (html_printer::do_font, html_printer::draw, html_printer::set_char,
5098 html_printer::special): Updated.
5099 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5100 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5101 Added some debugging code.
5102 (html_text::start_tag): Updated.
5103 (html_text::do_push): New method.
5104 (html_text::push_para): Call it.
5105 Add method for handling color.
5106 (html_text::do_color): Updated.
5107 (html_text::shutdown): Handle color.
5108 * src/devices/grohtml/html-text.h (tag_definition): New member
5112 2002-01-28 Werner LEMBERG <wl@gnu.org>
5114 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5116 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
5118 Add two switches -a and -g to control the antialiasing bits for
5119 text and graphics, respectively.
5121 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5123 * src/devices/grohtml/grohtml.man: Document them.
5124 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5126 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5127 (setupAntiAlias): New function.
5128 (createAllPages): Updated.
5129 (scanArguments): Handle `-a' and `-g'.
5130 (main): Call `setupAntiAlias'.
5133 2002-01-27 Werner LEMBERG <wl@gnu.org>
5135 * doc/groff.texinfo (Def*): Call index function after deffn.
5137 * tmac/html.tmac: Call `nroff' request.
5139 2002-01-26 Larry Kollar <kollar@alltel.net>
5141 * tmac/groff_ms.man: Add some omissions.
5143 2002-01-25 Larry Kollar <kollar@alltel.net>
5145 * tmac/groff_ms.man: Typographical improvements.
5147 2002-01-25 Werner LEMBERG <wl@gnu.org>
5149 * doc/groff.texinfo: Updated version and copyright.
5150 * src/devices/grops/grops.man: Updated.
5152 * tmac/groff_tmac.man: Fix `ig' macro.
5154 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5156 Use `.ne' unconditionally everywhere.
5157 (TS): Only insert some vertical space. Doing a page break is no
5158 longer necessary due to the redefinition of the `ne' request.
5160 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5161 warning for unknown subcommands but parse and pass them to the
5164 2002-01-24 Werner LEMBERG <wl@gnu.org>
5166 * tmac/groff_www.man, NEWS: Fix typos.
5168 2002-01-21 Werner LEMBERG <wl@gnu.org>
5170 Complete revision of color support:
5172 Adapt programs to the new libdriver/input.cc.
5174 Color spaces are no longer converted to RGB but transferred as-is
5175 in the troff intermediate output format.
5177 Handle default color gracefully. troff now supports a `default'
5178 color (which can't be changed).
5180 grops will now use the proper color space functions if available.
5184 Note that currently grohtml doesn't handle colors properly. This
5187 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5188 (ui_to_a): New function.
5189 * src/include/lib.h: Updated.
5191 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5192 (color): Simplified; removed all `double' members and methods.
5193 A new array `components' now holds the color parameters.
5194 (color::is_default, color::get_components): New methods.
5195 (color::operator==, color:operator!=): New.
5196 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5197 to make access to the `components' array more comprehensible.
5198 * src/libs/libgroff/color.cc: Implement new color support.
5199 (atoh): Small fixes.
5200 (color::read_encoding): Simplified for new troff intermediate color
5202 (default_color): New global variable.
5204 * src/roff/troff/input.cc (default_symbol): New global variable.
5205 (lookup_color): Use it.
5206 (default_black): Removed.
5207 (do_glyph_color, do_fill_color): Simplified.
5208 (define_color): Handle default color.
5210 (do_if_request): Handle default color.
5211 * src/roff/troff/env.cc (environment::environment): Initialize
5212 colors with `default_color'.
5213 * src/roff/troff/node.cc (troff_output_file::put): Add method
5215 (troff_output_file::hex): Removed.
5216 (troff_output_file::fill_color, troff_output_file::glyph_color):
5217 Updated to include/color.h and libdriver/input.cc.
5219 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5220 fill color properly (identically to the outline color). \D'f...'
5221 doesn't work any more.
5222 All function calls to it updated.
5224 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5226 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5229 * src/devices/grops/ps.cc (ps_output::put_color): New method.
5230 (ps_printer::sbuf_color): Make a real member instead of pointer.
5231 (ps_printer::fill_color, ps_printer::output_color): Removed.
5232 (ps_printer::ps_printer): Updated.
5233 (ps_printer::set_char): Ditto.
5234 (ps_printer::set_color): Use various color schemes.
5235 Use `put_color' method.
5236 (ps_printer::flush_sbuf): Don't set color.
5237 (ps_printer::fill_path): Take `environment' as parameter.
5238 Simplify color handling.
5239 (ps_printer::set_line_thickness): Renamed to ...
5240 (ps_printer::set_line_thickness_and_color): This (and updated).
5241 (ps_printer::set_color): Change second parameter from `complete'
5242 to `fill' which better describes what it does.
5243 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5244 and text in the right order.
5246 Remove branches for `f' and `F'; this is handled by
5248 * src/devices/grops/ps.h: Updated.
5249 * font/devps/prologue (FL): Redefined.
5250 ({F,C}r,k,g: New color functions (with and without filling).
5252 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5253 * man/groff_diff.man, man/groff.man, man/groff_out.man,
5254 doc/groff.texinfo, NEWS: Updated.
5256 2002-01-20 Bernd Warken <bwarken@mayn.de>
5258 * src/libs/libdriver/input.cc: Completely rewritten. See comments
5259 in this file for what has been changed.
5261 2002-01-19 Werner LEMBERG <wl@gnu.org>
5263 * test-groff: Fix GROFF_FONT_PATH.
5264 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5265 is read before .TH or .Dd is parsed.
5267 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
5269 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5270 quadrant boundaries.
5272 2002-01-18 Werner LEMBERG <wl@gnu.org>
5274 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
5277 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
5279 * tmac/doc.common: Initialize %I register for the %I macro to
5280 avoid (harmless) warning.
5281 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5282 when in the SYNOPSIS section.
5284 2002-01-17 Bruno Haible <haible@clisp.cons.org>
5286 * src/preproc/pic/lex.cc (get_token): Fix typo.
5288 2002-01-17 Werner LEMBERG <wl@gnu.org>
5290 * devices/grops/ps.cc: Fix incorrectly applied last patch.
5292 2002-01-17 Larry Kollar <kollar@alltel.net>
5294 * tmac/groff_ms.man: Completely rewritten.
5296 2002-01-16 Werner LEMBERG <wl@gnu.org>
5298 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5300 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
5302 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5304 (ps_printer::draw): Ditto.
5306 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
5308 * tmac/groff_mdoc.man: Minor fixes.
5310 2002-01-13 Werner LEMBERG <wl@gnu.org>
5312 * man/groff_out.man: Some fixes.
5314 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
5316 * doc/pic.ms: Fix typos.
5318 2002-01-12 Werner LEMBERG <wl@gnu.org>
5320 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5322 2002-01-10 Werner LEMBERG <wl@gnu.org>
5324 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5328 2002-01-09 Bernd Warken <bwarken@mayn.de>
5330 * man/groff_out.man: Revised.
5331 * man/roff.man: Minor fixes.
5332 * src/roff/troff/troff.man: Some reordering.
5334 2002-01-09 Werner LEMBERG <wl@gnu.org>
5336 * tmac/an-old.tmac: Add dummy macros for equation support.
5338 2002-01-07 Werner LEMBERG <wl@gnu.org>
5340 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5342 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
5344 * tmac/groff_man.man: Small improvements.
5346 2002-01-07 Bernd Warken <bwarken@mayn.de>
5348 * man/groff_diff.man: Revised.
5350 2002-01-06 Werner LEMBERG <wl@gnu.org>
5352 * tmac/www.tmac: Remove extraneous backslash.
5354 2002-01-06 Bernd Warken <bwarken@mayn.de>
5356 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5358 2002-01-05 Werner LEMBERG <wl@gnu.org>
5360 Integrated groffer, contributed by Bernd Warken.
5362 * contrib/groffer/*: New.
5363 * Makefile.in, NEWS: Updated.
5365 2002-01-04 Werner LEMBERG <wl@gnu.org>
5367 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5368 registers defined in macro packages.
5369 Revising the ms part.
5371 2002-01-04 Larry Kollar <kollar@alltel.net>
5373 * doc/groff.texinfo: Add documentation for ms macros.
5375 2002-01-02 Werner LEMBERG <wl@gnu.org>
5377 First step in adding PS support for the Euro symbol. `eu' is the
5378 official Euro logo, `Eu' is a font-specific glyph variant.
5380 * font/devps/text.enc: Add `Euro' at position 9.
5381 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5382 * font/devps/symbolmap: Regenerated.
5386 2002-01-02 Bernd Warken <bwarken@mayn.de>
5388 * man/roff.man: Revised.
5390 2002-01-01 Bernd Warken <bwarken@mayn.de>
5392 * src/roff/groff/groff.man: Completely rewritten.
5394 2001-12-31 Werner LEMBERG <wl@gnu.org>
5396 * doc/Makefile: Updated.
5398 2001-12-30 Werner LEMBERG <wl@gnu.org>
5400 * tmac/www.tmac: Make all names of internal macros/registers/strings
5401 lowercase, and prepend `www-'.
5402 Other minor changes.
5403 * src/roff/troff/troff.man: Add preprocessor string at BOF.
5405 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
5407 Implement option `-b' in grohtml to set the HTML background colour.
5409 * src/devices/grohtml/post-html.cc (default_background): New global
5411 (html_printer::html_printer): Initialize `background' to
5412 `default_background'.
5413 (main): Implement option `-b'.
5415 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5417 * src/devices/grohtml/grohtml.man: Updated.
5418 * doc/Makefile (.ms.html): Use `-b'.
5419 * tmac/html.tmac: Don't set background color.
5421 Add new grohtml tag `.html-tl'.
5423 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5425 (title_desc::title_desc): Updated.
5426 (html_printer::troff_tag): Handle `.html-tl'.
5427 (html_printer::write_title): Use `with_h1'.
5428 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5429 (HTML-TL): New macro.
5431 Add support for unordered lists in HTML.
5433 * tmac/www.tmac (www-level): New auxiliary register.
5434 (www-level1, www-level2, www-level3): New auxiliary strings.
5435 (www-push-level, www-pop-level): New auxiliary macros
5436 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5440 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5441 (DEFAULT_VERTICAL_OFFSET): Removed.
5442 (IMAGE_BOARDER_PIXELS): Set to 0.
5443 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5444 (vertical_offset): Initialize with 0.
5445 (gsPaper): New global variable.
5446 (get_resolution): Scan for and return unsigned int.
5447 (get_papersize): New function to get paper length from devps/DESC.
5448 (determine_vertical_offset): New function.
5449 (createAllPages): Produce gray-level images and use proper page
5451 (createImage): Use `-quiet' option of pnmcrop.
5452 (addZ): Fix passing of `-Z'.
5453 (scanArguments): Fix handling of `-o'.
5454 (main): Call `determine_vertical_offset'.
5455 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5458 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5459 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5460 glyph descenders properly.
5462 * doc/homepage.ms: Include `gnubw.eps'.
5463 * doc/Makefile (gnubw.eps): New rule.
5464 (homepage.html): Depend on `gnubw.eps'.
5466 2001-12-25 Werner LEMBERG <wl@gnu.org>
5468 * src/roff/troff/input.cc (default_black): Fix return value.
5470 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
5472 * tmac/doc-common (Dt): Change output of architecture strings.
5473 Do some syntax cleanup.
5474 * tmac/groff_mdoc.man: Updated.
5476 2001-12-23 Werner LEMBERG <wl@gnu.org>
5478 Adding an `itc' request (input line trap accepting \c).
5480 * src/roff/troff/env.h (environment): New member
5481 `continued_input_trap'.
5482 Make `do_input_trap' a friend function instead of `input_trap'.
5483 * src/roff/troff/env.cc (environment::environment,
5484 environment::copy): Updated.
5485 (environment::newline): Implement it.
5486 (do_input_trap): New function.
5487 (input_trap): Call `do_input_trap'.
5488 (input_trap_continued): New function.
5489 (init_env_requests): Updated.
5490 * src/roff/troff/TODO: Updated.
5492 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5495 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5497 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
5499 * tmac/doc-common, tmac/doc-syms: Small updates.
5501 2001-12-22 Colin Watson <cjwatson@debian.org>
5503 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5505 2001-12-22 Bernd Warken <bwarken@mayn.de>
5507 * MANIFEST: New file.
5509 2001-12-22 Werner LEMBERG <wl@gnu.org>
5511 * src/preproc/grn/grn.man: Updated.
5513 2001-12-22 Solar Designer <solar@openwall.com>
5515 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5518 2001-12-19 Werner LEMBERG <wl@gnu.org>
5520 Implement a fallback character request `.fchar'.
5522 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5523 (is_fallback): New inline function.
5524 * src/roff/troff/input.cc (do_define_character): New function.
5525 (define_character): Call `do_define_character'.
5526 (define_fallback_character): New function.
5527 (init_input_requests): Add `fchar'.
5528 (charinfo::charinfo): Updated.
5529 (charinfo::set_macro): New argument to set `fallback' flag.
5530 * src/roff/troff/node.cc (make_glyph_node, make_node,
5531 node::add_char): Check `fallback' flag.
5532 * NEWS, man/groff_diff.man, man/groff_man: Updated.
5534 2001-12-16 Werner LEMBERG <wl@gnu.org>
5536 * groff.texinfo: Document exact search algorithm for glyphs.
5538 2001-12-15 Werner LEMBERG <wl@gnu.org>
5540 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5541 the left side of $(MANPAGES) rule to make it always non-empty.
5543 2001-12-14 Werner LEMBERG <wl@gnu.org>
5545 * src/roff/troff/input.cc (default_black): Define default color
5546 `black' if not yet defined.
5548 2001-12-13 Werner LEMBERG <wl@gnu.org>
5550 Implement new string-valued register `.fn' to return the current
5551 real (internal) font name.
5553 * env.cc (environment::get_font_name_string): New function.
5554 (init_env_requests): Add `.fn' register.
5555 * env.h (environment): Updated.
5556 * node.cc (font_info): Make `get_font_name' a friend.
5557 (get_font_name): New function.
5560 * man/groff_diff.man, man/groff.man, NEWS: Updated.
5562 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5564 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5566 2001-12-12 Werner LEMBERG <wl@gnu.org>
5568 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5570 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
5572 * man/groff_diff.man: Adding documentation for \O.
5574 2001-12-10 Werner LEMBERG <wl@gnu.org>
5576 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5577 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5579 2001-12-09 Werner LEMBERG <wl@gnu.org>
5581 * man/roff.man: Revised.
5582 * src/roff/groff/groff.man: Replace man page references with a
5583 pointer to roff.man.
5585 2001-12-09 Bernd Warken <bwarken@mayn.de>
5587 * man/roff.man: Completely rewritten.
5589 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5591 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5593 2001-12-05 Werner LEMBERG <wl@gnu.org>
5595 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5597 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5598 order of initializers.
5601 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
5603 * doc/groff.texinfo: Fix documentation of \O.
5605 * src/devices/grohtml/html-text.cc (html_text::do_indent,
5606 html_text::do_table, html_text::do_emittext, html_text::do_para):
5607 Use `const' for first argument.
5608 (html_text::do_table): Use cast.
5609 * src/devices/grohtml/html-text.h: Updated.
5610 * src/devices/grohtml/output.cc (simple_output::put_string): Add
5611 method for `const string &s'.
5612 * src/devices/grohtml/html.h: Updated.
5613 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5614 (ANCHOR_TEMPLATE): Modified.
5615 (manufacture_headings): New global variable to handle `-h' option.
5616 (is_subsection): Removed.
5617 (char_buffer::add_string): Add `const' to first argument.
5618 Protect against invalid string argument.
5619 Add method for `const string &s'.
5620 (text_glob): Completely redesigned.
5621 (page): Use `const' for strings and remove string length variable.
5622 (page::add_html): Removed.
5623 (page::add_end_encode): New member function.
5624 (to_unicode): Moved upwards.
5625 (title_desc, header_desc): Updated.
5626 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5628 (html_printer::is_bold, html_printer::make_bold): New member
5630 (html_printer::end_of_line): Updated.
5631 (generate_img_src, html_printer::do_auto_image,
5632 html_printer::do_title, html_printer::write_header,
5633 html_printer::determine_header_level, html_printer::do_heading,
5634 html_printer::do_linelength, html_printer::do_pageoffset,
5635 html_printer::do_indentation, html_printer::do_tempindent,
5636 html_printer::do_indentedparagraph, html_printer::do_break,
5637 html_printer::flush_sbuf, get_html_translation,
5638 html_printer::begin_page, html_printer::special): Rewritten to get
5639 rid of static string length limit.
5640 (html_printer::troff_tag): Added `.no-auto-rule'.
5641 (html_printer::flush_globs): Small fix.
5642 (html_printer::determine_space): Don't compute `space_width'.
5643 (html_printer::translate_to_html): Renamed to ...
5644 (html_printer::emit_html): This (with updates).
5645 (html_printer::write_header): Implement `-h' option.
5646 (html_printer::draw): Remove commented-out code. Handle `F'
5648 (html_printer::add_char_to_sbuf): Removed.
5649 (html_printer::add_to_sbuf): Rewritten.
5650 (html_printer::sbuf_continuation): Fixed.
5651 (html_printer::seen_backwards_escape, reverse,
5652 html_printer::remove_last_char_from_sbuf): Removed.
5653 (char_translate_to_html, str_translate_to_html): Removed.
5654 (html_printer::overstrike): New function member.
5655 (html_printer::set_char): Use it.
5656 (html_printer::do_body): New function member.
5657 (html_printer::~html_printer): Use it.
5658 (main): Handle `-h' option.
5660 * src/devices/grohtml/grohtml.man: Document -h switch.
5662 * src/preproc/html/pre-html.cc: Include searchpath.h
5663 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5664 (get_resolution): New function.
5665 (checkImageDir): Use `0777' permissions in mkdir()
5666 (write_start_image): Rewritten to use `\O[5...]'.
5667 (createImage, generateImages): Updated.
5668 (main): Handle `F' and `h' options.
5669 Use `get_resolution'.
5671 * src/roff/troff/input.cc (begin, end, image): Removed.
5672 (do_suppress): Take parameter.
5673 Handle modified syntax of `\O'.
5674 (token::next): Updated.
5675 (init_markup_requests): Removed.
5678 * src/roff/troff/div.h: Add declaration for begin_page().
5680 * tmac/color-html.tmac: Removed. Contents moved to...
5681 * tmac/html.tmac: Here. Set background color.
5682 * tmac/color.tmac: Removed. Contents moved to...
5683 * tmac/ps.tmac: Here.
5684 * tmac/www.tmac: Remove the title command when generating images
5686 (NO_AUTO_RULE): New macro.
5687 (HTML_DO_IMAGE): Use revised `\O' escapes.
5688 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5690 2001-12-02 Werner LEMBERG <wl@gnu.org>
5692 * tmac/groff_mdoc.man: Fix typo.
5694 2001-12-01 Colin Watson <cjwatson@debian.org>
5696 * man/roff.man: Fix typo.
5698 2001-11-29 Werner LEMBERG <wl@gnu.org>
5700 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5703 * src/roff/troff/input.cc (read_draw_node): Emit error message if
5704 more than one argument to \D'f ...'.
5706 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5708 2001-11-28 Werner LEMBERG <wl@gnu.org>
5710 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5713 * tmac/groff_man.man: Minor cosmetic fix.
5715 2001-11-27 Werner LEMBERG <wl@gnu.org>
5717 * src/roff/groff/groff.man, tmac/groff_tmac.man,
5718 tmac/groff_www.man: s/mwww/www/.
5720 2001-11-26 Werner LEMBERG <wl@gnu.org>
5722 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5723 * configure: Regenerated.
5724 * win32-diffs: Updated.
5726 * tmac/groff_mwww.tmac: Renamed to ...
5727 * tmac/groff_www.tmac: This.
5728 * tmac/mwww.tmac: Removed.
5729 * NEWS, tmac/Makefile.sub: Updated.
5731 2001-11-21 Werner LEMBERG <wl@gnu.org>
5733 * doc/groff.texinfo: Improve documentation of the `\v' escape.
5734 Fix explanation of `\D' and `rt'.
5736 2001-11-20 Werner LEMBERG <wl@gnu.org>
5738 * tmac/an-old.tmac (an-header): Set header length equal to page
5740 * doc/groff.texinfo: Improve documentation of `ne' request. Other
5744 2001-11-19 Werner LEMBERG <wl@gnu.org>
5746 * NEWS, man/Makefile.sub: Updated.
5748 2001-11-19 Bernd Warken <bwarken@mayn.de>
5750 * man/ditroff.man: New file.
5752 2001-11-17 Werner LEMBERG <wl@gnu.org>
5754 * man/groff_differences.man: Renamed to ...
5755 * man/groff_diff.man: This. Updated.
5756 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5758 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5759 * src/preproc/html/pushback.cc: This. Updated.
5760 * src/preproc/html/pushbackbuffer.h: Renamed to ...
5761 * src/preproc/html/pushback.h: This.
5762 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5765 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5766 * src/libs/libgroff/htmlhint.cc: This.
5767 * src/libs/libgroff/Makefile.sub: Updated.
5769 * tmac/an-old.tmac (an-end): Fix page length.
5771 2001-11-16 Werner LEMBERG <wl@gnu.org>
5773 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5774 * man/Makefile.sub: Include groff_differences.man.
5775 * VERSION: Set to 1.18.
5776 * REVISION: Set to 0.
5778 2001-11-16 Bernd Warken <bwarken@mayn.de>
5780 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5781 the second dot (or ending macro name) to end a macro.
5782 * doc/groff.texinfo: Doc fix.
5784 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
5786 * tmac/doc-common (doc-header): Handle very long document titles
5789 2001-11-16 Werner LEMBERG <wl@gnu.org>
5791 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5793 2001-11-15 Werner LEMBERG <wl@gnu.org>
5795 * src/roff/troff/troff.man: Revised and split into troff.man and...
5796 * man/groff_differences.man: New file.
5799 2001-11-13 Werner LEMBERG <wl@gnu.org>
5801 * tmac/an-old.tmac (TS, TE): New macros for table support.
5803 2001-11-12 Werner LEMBERG <wl@gnu.org>
5805 * src/include/lib.h: Provide a fix for emx to not include
5808 2001-10-27 Werner LEMBERG <wl@gnu.org>
5810 * src/roff/troff/input.cc (substring_macro): Fix computation of
5813 2001-10-20 Werner LEMBERG <wl@gnu.org>
5815 Undo change from 2001-08-28.
5817 * src/roff/troff/input.cc (have_input): New global variable.
5818 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5819 in compatibility mode.
5820 (process_input_stack): Use it.
5822 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
5824 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5825 being handled as end-of-sentence characters,
5827 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
5829 * src/roff/troff/input.cc (file_iterator): New members
5830 `suppress_newline_flag' and `seen_escape'.
5831 (file_iterator::next_file): Updated.
5832 (file_iterator::fill): Use it.
5833 (string_iterator): New member `suppress_newline_flag'.
5834 (string_iterator::fill): Set it.
5835 (get_color_element): Use MAX_COLOR_VAL.
5836 * src/roff/troff/env.cc (environment): Remove `need_eol'.
5837 (no_fill): Don't set `env->ignore_next_eol'.
5838 (environment::newline): Handle `eol' tag properly.
5840 (environment::add_html_tag): Set `env->ignore_next_eol'.
5842 * src/roff/troff/env.h (environment): Updated.
5844 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5846 (html_printer::outstanding_eol): New member function.
5847 (html_printer::do_title): Use new functions.
5848 (html_printer::troff_tag): Test `id_eol_ce'.
5850 2001-10-10 Werner LEMBERG <wl@gnu.org>
5852 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5853 files work with -C also.
5855 2001-10-05 Werner LEMBERG <wl@gnu.org>
5857 * doc/pic.ms: Minor fix.
5858 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5859 as a valid command line switch.
5860 * src/devices/grohtml/post-html.cc (main): Ditto.
5862 * src/devices/grohtml/grohtml.man: Updated.
5863 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5865 2001-10-04 Werner LEMBERG <wl@gnu.org>
5867 Implementing color support in troff, pic, grops, and grohtml. These
5868 changes are based on a major patch provided by Gaius Mulley
5871 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5872 definitions with both hex values and fractions.
5874 New escapes: \m and \M for drawing and background color,
5875 respectively. This corresponds to the troff output commands `m'
5878 groff and troff accept command line switch `-c' to disable color
5879 output (which is automatically disabled in compatibility mode).
5881 New scaling indicator `f' for fractions (1f = 65536u).
5883 New conditional operator `m' to test for defined colors with `if'
5886 New keywords `color' (or `colour', `colored', `coloured'), `outline'
5887 (or `outlined'), and `shaded' added to pic.
5889 * src/include/color.h: New file.
5890 * src/include/driver.h: Include it.
5891 * src/include/printer.h: Include color.h.
5892 (environment): New members `col' and `fill'.
5893 (printer): Remove `adjust_arc_center' member function.
5894 * src/include/Makefile.sub: Updated.
5896 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5898 Handle `m' and `DF' troff commands.
5899 * src/libs/libgroff/color.cc: New file.
5900 * src/libs/libgroff/Makefile.sub: Updated.
5902 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5904 (createImage): Fix computation of `y2'.
5906 (buffer::write_file_html): Remove calls to `stop'.
5908 * src/preproc/pic/common.h (common_output): New abstract function
5909 members `set_color', `reset_color', `get_last_filled', and
5910 `get_outline_color'.
5911 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5912 (object_spec): Add members `shaded' and `outlined'.
5913 * src/preproc/pic/output.h (output): `command' is now abstract.
5914 New function members `set_color', `reset_color', `get_last_filled',
5915 and `get_outline_color'.
5916 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5917 `outline[d]', and `shaded'.
5918 * src/preproc/pic/object.cc (output::command): Removed.
5919 (output::set_location): Moved to output.h.
5920 (graphic_object): Add protected members `outline_color' and
5922 Add member functions `set_outline_color', `get_outline_color', and
5924 (closed_object): Add member function `set_fill_color'.
5925 Add member `color_fill'.
5926 (graphic_object::print_text): Use `out->set_color' and
5928 (box_object::print, ellipse_object::print, circle_object::print,
5929 line_object::print, spline_object::print, arc_object::print): Ditto.
5930 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5931 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5932 `SHADED', making them `%left'.
5933 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5934 * src/preproc/pic/tex.cc (tex_output): New dummy function members
5935 `set_color', `reset_color', `get_last_filled', and
5936 `get_outline_color'.
5937 * src/preproc/pic/troff.cc (simple_output): New abstract function
5938 members `set_color', `reset_color', and `get_last_filled'.
5939 (simple_output::polygon, simple_output::circle,
5940 simple_output::ellipse): Use `get_last_filled'.
5941 (troff_output): New members `last_filled' and `last_outlined'.
5942 New function members `set_color', `reset_color', `get_last_filled',
5943 and `get_outline_color'.
5944 (troff_output::finish_picture): Use `reset_color'.
5945 (troff_output::set_fill): Test `last_filled'.
5946 * src/preproc/pic/pic.man: Updated.
5948 * src/roff/groff/groff.cc (main): Implement `-c' option.
5949 (synopsis, help): Updated.
5950 src/roff/groff/groff.man: Updated.
5952 * src/roff/troff/troff.h: Include color.h.
5953 (warning_type): Add WARN_COLOR.
5954 * src/roff/troff/env.h (environment): New members
5955 `{cur,prev}_{glyph,fill}_color'.
5956 New member functions `get_{prev_,}{glyph,fill}_color'.
5957 * src/roff/troff/env.cc: Initialize and implement them.
5958 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5959 Replace `NULL' with `0' everywhere for consistency.
5960 (lookup_color, default_black, do_glyph_color, do_fill_color,
5961 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5962 define_color): New functions.
5963 (token::next): Implement \M and \m escapes.
5964 (do_if_request): Implement `m' operator.
5966 (main): Implement `-c' option.
5967 (init_markup_requests): Add `defcolor' request.
5968 (warning_table): Add `color' warning.
5969 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5971 * src/roff/troff/node.cc (troff_output_file): New members
5972 `current_{page,glyph}color'. New member functions `put_hex',
5973 `glyph_color', and `fill_color'.
5974 (glyph_color_node::*, fill_color_node::*): Implement it.
5975 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5976 (parse_term): Add support for `f'.
5977 * src/roff/troff/troff.man: Updated.
5979 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5981 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5982 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5984 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5985 (tag_definition): Use `void *' for arg1.
5986 (html_text): New member functions `do_color' and `done_color'.
5987 Use `void *' for second parameter of `push_para' member function.
5988 New `push_para' member function with a single parameter.
5989 Use `char *' for parameter of `issue_table_begin' member funtion.
5990 New `issue_color_begin' member function.
5991 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5993 (html_text::issue_color_begin): New function.
5994 (html_text::issue_table_begin): Use `char *' for parameter.
5995 (html_text::start_tag, html_text::shutdown,
5996 html_text::check_emit_text): Updated.
5997 (html_text::push_para): Use `void *' for second parameter.
5998 Add same function with only one parameter.
5999 (html_text::do_*): Updated.
6000 (html_text::do_color, html_text::done_color): New functions.
6001 * src/devices/grohtml/post-html.cc (style): New member `col'.
6002 Mew member `style' with 6 parameters.
6003 (style::style, style::operator==): Updated.
6004 (html_printer::do_font): Use it.
6005 (html_printer::draw): Add dummy entry for `F'.
6006 (html_printer::set_char): Updated.
6007 * src/devices/grohtml/grohtml.man: Updated.
6009 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6010 trailing zeroes removed.
6011 (ps_printer): New members `sbuf_color', `fill_color', and
6013 Removed member `fill'.
6014 New member function `set_color'.
6015 (ps_printer::ps_printer, ps_printer::set_char): Updated.
6016 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6017 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6019 * tmac/color-html.tmac, tmac/color.tmac: New files.
6020 * tmac/troffrc: Include them.
6021 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6022 * tmac/Makefile.sub: Updated.
6024 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6025 man/groff.man: Updated.
6026 * font/devps/prologue.ps: Define FC and CO functions.
6028 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
6030 Fix incorrect cropping of images and incorrect handling of special
6031 characters. Fix handling of file names in \O.
6033 * src/include/geometry.h: New file.
6034 * src/libs/libgroff/geometry.cc: New file.
6035 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6037 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6039 (do_suppress): Updated.
6040 * src/roff/troff/node.cc: Include geometry.h.
6041 (troff_output_file::flush_tbuf): Fixed parameters to
6042 `check_output_limits'.
6043 (troff_output_file::check_charinfo): Ditto.
6044 (troff_output_file::determine_line_limits): Add support for `Da'
6047 * src/devices/grohtml/post-html.cc (str_translate_to_html):
6048 Add new parameter `is_special' to decode special characters from
6050 (html_printer::do_title, html_printer::do_heading,
6051 html_printer::do_indentedparagraph,
6052 html_printer::translate_to_html, html_printer::special): Updated.
6054 2001-10-03 Werner LEMBERG <wl@gnu.org>
6056 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6057 Fix entry for config.h.
6058 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6059 * tmac/troffrc: Translate nonbreakable space character to `\~'.
6060 * src/preproc/eqn/eqn.man: Document -d command line option.
6062 2001-09-27 Werner LEMBERG <wl@gnu.org>
6064 * man/groff.man: Use
6072 instead of the old code (`.ad .hy' after the table) to suppress
6073 incorrect hyphenation for grohtml output.
6075 2001-09-22 Werner LEMBERG <wl@gnu.org>
6077 * man/groff_font.man, man/groff_out.man: Minor fixes.
6079 2001-09-20 Werner LEMBERG <wl@gnu.org>
6081 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
6082 Arnold Robbins <arnold@skeeve.com>).
6084 2001-09-09 Werner LEMBERG <wl@gnu.org>
6086 * configure: Regenerated with autoconf 2.52.
6088 * doc/groff.texinfo: Complete revision of indices.
6090 2001-09-07 Werner LEMBERG <wl@gnu.org>
6092 * doc/Makefile (clean): Updated to delete all indices.
6094 2001-09-05 Werner LEMBERG <wl@gnu.org>
6096 * src/roff/troff/troff.man: Remove superfluous line.
6098 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6099 given on the command line (or rather, if only the default warnings
6102 2001-09-03 Werner LEMBERG <wl@gnu.org>
6104 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6105 use .ne for TTY devices.
6107 2001-08-31 Werner LEMBERG <wl@gnu.org>
6109 * src/roff/troff/token.h, src/roff/troff/input.cc:
6110 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6112 2001-08-28 Werner LEMBERG <wl@gnu.org>
6114 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6115 * src/roff/troff/input.cc (token::next): Return
6116 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6118 (token::description): Updated.
6119 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6120 (token::add_to_node_list, token::process): Ignore
6121 TOKEN_TRANSPARENT_ESCAPE.
6123 2001-08-27 Werner LEMBERG <wl@gnu.org>
6125 * tmac/an-old.tmac: Fix `S' string.
6127 2001-08-26 Werner LEMBERG <wl@gnu.org>
6129 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6131 2001-08-25 Werner LEMBERG <wl@gnu.org>
6133 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6135 Many other minor fixes.
6137 * configure.ac: Add message at end to inform how to compile
6139 * configure: Regenerated.
6141 2001-08-24 Werner LEMBERG <wl@gnu.org>
6143 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6144 Updated to latest version of libc.
6146 2001-08-23 Werner LEMBERG <wl@gnu.org>
6148 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6149 Autoconf 2.50 and newer can handle this.
6150 * configure: Regenerated.
6152 2001-08-21 Werner LEMBERG <wl@gnu.org>
6154 * doc/pic.ms: Fix typo.
6155 * src/preproc/tbl/tbl.man: Document case of global options.
6157 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
6159 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6160 handling of `CR' font.
6162 2001-08-20 Werner LEMBERG <wl@gnu.org>
6164 Use a config.h file.
6166 * src/include/lib.h: Include config.h.
6167 * All C files: Ditto (if necessary).
6168 * All C++ source and header files: Include lib.h first (if
6171 * src/include/config.hin: New file (autogenerated by autoheader).
6172 * stamp-h.in: New file.
6173 * configure.ac: Updated.
6174 * aclocal.m4: Add third parameters to AC_DEFINE macros.
6175 (GROFF_ARRAY_DELETE): Simplified.
6176 * Makefile.sub (DISTCLEANFILES): Updated.
6177 Added targets for remaking config.status, config.hin, config.h,
6178 stamp-h.in, and stamp-h.
6179 * configure: Regenerated.
6181 2001-08-19 Werner LEMBERG <wl@gnu.org>
6185 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
6187 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6188 (do_sprintf): Use snprintf().
6190 2001-08-18 Werner LEMBERG <wl@gnu.org>
6192 * src/libs/snprintf/*: Added an snprintf module written by Mark
6194 * src/libs/libgroff/Makefile.sub: Updated.
6195 * configure.ac: Add test for snprintf().
6196 * Makefile.in: Updated.
6197 * configure: Regenerated.
6199 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6202 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
6204 * tmac/doc.tmac (Ex): New implementation.
6205 * tmac/doc-common, tmac/groff_tmac.man: Updated.
6207 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
6209 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6211 * tmac/groff_tmac.man: Updated.
6213 2001-08-13 Werner LEMBERG <wl@gnu.org>
6215 * src/preproc/tbl/tbl.man: Minor documentation update.
6217 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
6219 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6220 * configure.ac: Add declaration test for gettimeofday().
6221 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6222 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6223 * configure: Regenerated.
6225 2001-08-11 Werner LEMBERG <wl@gnu.org>
6227 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6228 * configure.ac: Add declaration test for strcasecmp().
6229 * Makefile.in: Updated.
6230 * configure: Regenerated.
6231 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6232 this is necessary because groff's mkstemp.cc is C++.
6233 Add declaration conditionally for strcasecmp().
6235 2001-08-10 Werner LEMBERG <wl@gnu.org>
6237 Integrated pic2graph, contributed by Eric S. Raymond.
6239 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6241 * Makefile.in, NEWS: Updated.
6243 * src/preproc/tbl/tbl.man: Revised.
6245 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
6247 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6249 2001-08-09 Werner LEMBERG <wl@gnu.org>
6251 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6254 2001-08-08 Paul Eggert <eggert@twinsun.com>
6256 * Makefile.sub (configure): Depend on configure.ac, not
6258 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6260 2001-08-07 Werner LEMBERG <wl@gnu.org>
6262 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6265 2001-08-06 Werner LEMBERG <wl@gnu.org>
6267 * src/roff/troff/troff.man: Improve documentation of -E option.
6269 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6271 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6274 2001-07-27 Werner LEMBERG <wl@gnu.org>
6276 * src/preproc/refer/refer.cc: Undo last change.
6277 * src/devices/grohtml/post-html.cc: Ditto.
6279 2001-07-26 Werner LEMBERG <wl@gnu.org>
6281 * src/preproc/refer/refer.cc: Include `lib.h'.
6282 * src/devices/grohtml/post-html.cc: Ditto.
6284 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
6286 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6287 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6288 * Makefile.in: Comment updated.
6289 * configure: Regenerated.
6291 2001-07-25 Werner LEMBERG <wl@gnu.org>
6293 * src/preproc/pic/pic.cc: Removed.
6294 * src/preproc/pic/pic_tab.h: Removed.
6295 * src/preproc/refer/label.cc: Removed.
6297 * doc/Makefile (.ms.html): Don't use a file name extension in
6298 argument to grohtml's -I option.
6299 * Makefile.in (dist): Remove CVS directories.
6300 Call `distfiles' target.
6302 * src/devices/grohtml/grohtml.man: Add information about valid
6303 versions of pnmtopng.
6304 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6305 name instead of number.
6307 2001-07-24 Werner LEMBERG <wl@gnu.org>
6309 * doc/groff.texinfo: Minor fixes.
6311 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
6313 * doc/Makefile (.ms.html): Put image files into a subdirectory.
6316 2001-07-20 Werner LEMBERG <wl@gnu.org>
6318 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6319 * src/libs/libgroff/mkstemp.cc: New file.
6320 * src/libs/libgroff/mksdir.cc: New file.
6321 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6322 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6323 * src/libs/libgroff/Makefile.sub: Updated.
6324 * src/include/lib.h: Add mksdir() prototype.
6325 * src/include/posix.h: Define S_IXUSR if not yet defined.
6327 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6328 (createAllPages): Use mksdir() instead of current code.
6329 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6330 (main): [!HAVE_MKSTEMP]: Removed.
6332 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6333 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6335 * configure.ac: Add tests for stdint.h, sys/time.h, and
6337 Call new GROFF_xxx macros.
6338 * configure: Regenerated.
6339 * Makefile.in: Comments updated.
6341 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
6343 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6344 instead of current code.
6345 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6346 * src/roff/groff/groff.cc (possible_command::insert_args): New
6348 (main): Use it for predriver handling instead of insert_arg().
6350 2001-07-19 Werner LEMBERG <wl@gnu.org>
6352 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6355 * src/include/posix.h: Define S_IWUSR if not yet defined.
6357 2001-07-18 Werner LEMBERG <wl@gnu.org>
6361 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
6363 * tmac/groff_mdoc.man: Document new -width and -column syntax.
6364 Some other minor fixes.
6365 * tmac/an-old.tmac: Add `AT' and `UC' macros.
6367 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
6369 Replace call to `troff' with `groff -Z' to make it aware of
6372 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6373 (troff_command, command_prefix): Removed.
6374 (alterDeviceTo): Use groff.
6375 (addZ): New function.
6376 (char_buffer::do_html): Use it.
6377 (scanArguments): Use TROFF_COMMAND.
6378 (findPrefix): Removed.
6380 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6382 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
6384 * doc/pic.ms: Documentation fixes.
6386 2001-07-17 Werner LEMBERG <wl@gnu.org>
6388 Replace atexit() with global destructor.
6390 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6391 (xtmpfile_list_init): New global structure to deallocate
6392 xtmpfile_list on exit. Its destructor inherits most code from
6394 (remove_tmp_files): Deleted.
6395 (add_tmp_file): Simplified.
6397 2001-07-16 Werner LEMBERG <wl@gnu.org>
6399 Replace strdup() with strsave().
6401 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6402 (set_papersize): Use strsave() and a_delete.
6403 (main): Use strsave().
6404 * src/preproc/html/pre-html.cc (make_message, createAllPages,
6405 removeAllPages): Use strsave() and a_delete.
6407 * configure.ac: Remove test for strdup.
6408 * Makefile.in: Comment updated.
6409 * configure: Regenerated.
6411 2001-07-15 Werner LEMBERG <wl@gnu.org>
6413 * win32-diffs: Updated.
6415 2001-07-14 Werner LEMBERG <wl@gnu.org>
6417 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6418 removing the old one.
6419 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6421 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6423 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6425 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
6427 Merge -xwidth into -width. Add -xwidth functionality to -column
6430 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6432 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
6433 string immediately following a leading dot starts with a valid mdoc
6435 Add similar code to the -column branch.
6436 (doc-Bl-usage): Updated.
6437 * groff_mdoc.man: s/-xwidth/-width/.
6439 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
6441 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6442 running into centered or non-formatted text.
6444 2001-07-11 Werner LEMBERG <wl@gnu.org>
6446 Introduce short and long prefixes to have the selection at run-time
6447 whether there is a 8+3 limit for names of temporary files.
6449 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6450 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6451 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6453 (temp_init): New global structure to initialize above three
6455 (xtmptemplate): Use two parameters for long and short prefix.
6456 Simplify code use above three variables.
6457 (xtmpfile): Use long and short prefixes as parameters.
6458 * src/include/lib.h: Updated.
6460 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6462 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6463 (createAllPages, makeTempFiles): Updated.
6465 2001-07-09 Werner LEMBERG <wl@gnu.org>
6467 * REVISION: Increased to 3.
6469 Version 1.17.2 released
6470 =======================
6472 2001-07-07 Werner LEMBERG <wl@gnu.org>
6474 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6477 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6479 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6481 * tmac/groff_mdoc.man: Fix synopsis.
6483 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6485 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6486 Restore `doc-Pa-font'.
6488 2001-07-04 Werner LEMBERG <wl@gnu.org>
6490 * src/utils/indxbib/dirnamemax.c: Moved to ...
6491 * src/libs/libgroff/maxfilename.cc: Here.
6492 s/dir_name_max/file_name_max/.
6494 * src/include/lib.h: Add file_name_max.
6495 * src/utils/indxbib/indxbib.cc: Updated.
6496 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6499 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6501 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6503 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6504 REGION_TEMPLATE): New macros.
6505 (createAllPages, makeTempFiles): Use them.
6506 Include `nonposix.h'.
6507 (html_system): New function.
6508 (createAllPages, createImage): Use it.
6511 * tmac/www.tmac: Fix typos.
6513 2001-07-03 Werner LEMBERG <wl@gnu.org>
6515 * tmac/www.tmac: Disable hyphenation in normal text only if output
6517 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6518 * tmac/groff_mwww.man, NEWS: Updated.
6520 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
6522 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6525 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
6527 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6528 doc-display-ps-stack): Implement font and font size stack for
6531 2001-07-02 Werner LEMBERG <wl@gnu.org>
6533 * REVISION: Increased to 2.
6534 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6536 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6537 beginning of a line.
6538 * src/groff/grog/grog.sh: Ditto.
6540 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
6542 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6545 2001-06-27 Werner LEMBERG <wl@gnu.org>
6547 Fix problems with preprocessor string for `man' program.
6549 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
6550 Updated/added copyright.
6551 Moved Emacs's local variable to identify nroff mode to the end of
6552 the file; add local variable if missing.
6554 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
6556 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6557 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6558 * configure: Regenerated.
6560 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
6562 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6563 * configure: Regenerated.
6565 2001-06-24 Werner LEMBERG <wl@gnu.org>
6567 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6569 * doc/pic.ms: Fix typos.
6571 Version 1.17.1 released
6572 =======================
6574 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
6576 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6577 * configure: Updated.
6579 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
6581 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6583 * src/roff/troff/dic.cc (blank_line): Add html tag.
6585 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
6587 * src/roff/troff/input.cc (do_suppress): Fix typo.
6589 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
6591 Added two new options (-D and -I) to specify image names and a
6592 subdirectory to place the images in.
6594 Change syntax from \\Ox to \\O[x].
6596 * src/devices/grohtml/post-html.cc (main): Add options.
6598 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6599 Use `NULL' instead of `0' for null string pointers.
6600 (MAX_RETRIES): New macro.
6601 (lengthOfintToStr, intToStr, make_message): New functions.
6602 (makeFileName): Make function static.
6603 Implement -D and -I options.
6604 (checkImageDir): New function.
6605 (write_end_image, write_start_image): Use new syntax of \O.
6606 (createAllPages, removeAllPages): Implement -D and -I options. Use
6608 (createImage): Use make_message().
6609 (addps4html): Add guard for malloc().
6610 (usage, scanArguments): Updated.
6611 (makeTempFiles): Use mkstemp().
6612 (removeTempFiles): Use unlink().
6613 (findPrefix): Add guard for malloc().
6615 * src/roff/troff/input.cc (get_delim_file_name): New function to
6617 (do_suppress): Updated to parse new syntax.
6618 * src/devices/grohtml/grohtml.man: Updated.
6619 * tmac/www.tmac: Updated to new syntax.
6623 2001-06-15 Werner LEMBERG <wl@gnu.org>
6625 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6627 * src/devices/grohtml/grohtml.man: Minor improvements.
6629 2001-06-14 Werner LEMBERG <wl@gnu.org>
6631 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6633 2001-06-11 Werner LEMBERG <wl@gnu.org>
6635 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6636 line to specify preprocessor options -- mandb 2.3.1 only recognizes
6638 * src/preproc/grn/grn.man: Add proper '\" string.
6640 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
6642 * test-groff: Don't use PATH but GROFF_BIN_PATH.
6644 2001-06-08 Werner LEMBERG <wl@gnu.org>
6646 Updated to autoconf 2.50.
6648 * configure.in: Renamed to...
6649 * configure.ac: This.
6650 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6651 (GROFF_OS390): Updated.
6652 * configure: Regenerated.
6654 2001-05-18 Werner LEMBERG <wl@gnu.org>
6656 * src/roff/troff/env.c, src/roff/troff/env.h,
6657 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6660 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
6662 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6664 2001-05-16 Werner LEMBERG <wl@gnu.org>
6666 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6667 less than or equal zero; set it to 1 then.
6668 * src/roff/troff/node.h (node::node): Initialize `last'.
6670 2001-05-08 Werner LEMBERG <wl@gnu.org>
6672 * tmac/an-old.tmac: Make predefined strings work in compatibility
6674 Add troff version guard.
6675 * tmac/doc.tmac: Simplify version guard.
6677 2001-05-07 Werner LEMBERG <wl@gnu.org>
6679 The .ns and .rs requests are now honoured not only in the top-level
6680 but in all diversions (similar to UNIX troff).
6682 This change is based on a patch from Tadziu Hoffmann
6683 <hoffmann@usm.uni-muenchen.de>.
6685 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6686 (top_level_diversion): Remove `no_space_mode' member.
6687 * src/roff/troff/div.cc (diversion::diversion,
6688 top_level_diversion::top_level_diversion): Updated.
6689 (macro_diversion::output): Reset `no_space_mode'.
6690 (no_space, restore_spacing): Use `curdiv' unconditionally.
6691 (space_request, blank_line): Check `curdiv->no_space_mode'.
6692 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6693 `curdiv' unconditionally.
6694 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6697 2001-05-06 Werner LEMBERG <wl@gnu.org>
6699 Added two new requests `de1' and `am1' which are similar to `de' and
6700 `am' with the difference that compatibility mode is saved on entry,
6701 switched off during macro execution, and restored on exit.
6703 * src/roff/troff/input.h: Added two new special characters
6704 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6705 * src/roff/troff/input.cc (input_iterator): Added two member
6706 functions `save_compatible_flag' and `get_compatible_flag'.
6707 (input_stack): Ditto.
6708 (string_iterator): Ditto. Also add private member
6709 `saved_compatible_flag'.
6710 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6711 (calling_mode): New enumeration.
6712 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
6713 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6714 (define_macro, define_indirect_macro, append_macro, ignore): Use
6716 (define_nocomp_macro, append_nocomp_macro): New functions.
6717 (init_input_requests): Updated.
6718 (do_request): Rename local variable `saved_compatible_flag' to
6719 `old_compatible_flag'.
6720 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6722 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6723 public and trap-invoked macros. As a consequence, the man macros
6724 work in compatibility mode also.
6726 2001-05-06 Solar Designer <solar@openwall.com>
6728 * Makefile.in: Use $(mandir).
6730 2001-05-06 Alexios Zavras <zvr@pobox.com>
6732 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6734 2001-05-05 Werner LEMBERG <wl@gnu.org>
6736 Added `.ns' number register: Returns 1 in no-space mode (if in
6737 top-level diversion), 0 otherwise.
6739 * src/roff/troff/div.cc (no_space_mode_reg): New class.
6740 (init_div_requests): Updated.
6741 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6744 2001-05-04 Werner LEMBERG <wl@gnu.org>
6746 * src/roff/nroff/nroff.man: Improved documentation (especially
6749 2001-05-02 Werner LEMBERG <wl@gnu.org>
6751 Added `brp' request: This is \p as a request.
6753 * src/roff/troff/env.cc (environment::do_break): Add parameter
6755 (do_break_request): New function (was `break_request').
6756 (break_request): Calls `do_break_request'.
6757 (break_spread_request): New; calls `do_break_request'.
6758 (init_env_requests): Updated.
6759 * src/roff/troff/env.h: Updated.
6760 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6762 * REVISION: Increased to 1.
6763 * win32-diffs: Updated.
6765 2001-05-01 Werner LEMBERG <wl@gnu.org>
6767 * tmac/an-old.tmac: Fix minor compatibility mode issue.
6768 * tmac/troffrc-end: Make it really work in compatibility mode.
6770 2001-04-27 Werner LEMBERG <wl@gnu.org>
6772 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6775 2001-04-22 Werner LEMBERG <wl@gnu.org>
6777 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6778 latest versions from glibc CVS archive.
6780 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6781 <c.zeelenberg@hccnet.nl>.
6783 2001-04-21 Werner LEMBERG <wl@gnu.org>
6785 * configure.in: Move check for mkstemp() to...
6786 * aclocal.m4 (GROFF_MKSTEMP): This new function.
6787 * configure: Regenerated.
6789 * src/include/groff-getopt.h: Don't use variable names in
6792 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
6793 * src/devices/grohtml/Makefile.sub,
6794 src/devices/grohtml/post-html.cc: Updated.
6796 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
6798 * configure.in: Add special check for mkstemp().
6799 * src/libs/libgroff/tmpfile.cc: Use it.
6800 * src/utils/indxbib/indxbib.cc: Ditto.
6801 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6802 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6805 2001-04-20 Bruce Lilly <blilly@erols.com>
6807 `Version_string' as C++ object was not visible to linker from C
6809 Add `const' to `Version_string'.
6811 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6812 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6813 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6814 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6815 (scanArguments), src/preproc/refer/refer.cc (main),
6816 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6817 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6818 (main), src/devices/grohtml/post-html.cc (main),
6819 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6820 (main), src/utils/hpftodit/hpftodit.cc (main),
6821 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6822 (main), src/utils/lkbib/lkbib.cc (main),
6823 src/utils/addftinfo/addftinfo.cc (main): Implement it.
6825 * src/roff/groff/pipeline.c: Add _UWIN.
6826 * src/include/nonposix.h: Ditto.
6828 2001-04-20 Werner LEMBERG <wl@gnu.org>
6830 * src/include/lib.h: Use HAVE_STRERROR.
6831 * src/roff/groff/pipeline.c: Ditto.
6832 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6833 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6834 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6835 * win32-diffs: Updated.
6836 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6838 2001-04-19 Werner LEMBERG <wl@gnu.org>
6840 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6841 instead of hardwired `"troff"'.
6842 (char_buffer::read_file): Remove unused variables.
6843 (char_buffer::write_file_troff): Ditto.
6844 (char_buffer::write_file_html): Ditto.
6845 (generateImages): Ditto.
6847 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6849 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6851 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6852 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6853 index_search_item::search1): Ditto.
6854 * src/roff/troff/node.h (width_list): Reorder members.
6855 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6856 (lookup_warning): Ditto.
6857 (prepend_string): Commented out.
6858 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6859 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6860 * src/preproc/tbl/main.cc (process_format): Ditto.
6861 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6863 * src/preproc/pic/pic.cc: Updated.
6864 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6865 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6866 * src/preproc/refer/command.cc (execute_command): Ditto.
6867 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6868 * src/preproc/refer/token.cc (lookup_token): Ditto.
6869 * src/preproc/soelim/soelim.cc: Ditto.
6870 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6871 (isHexDigit): Commented out.
6872 (pushBackBuffer::isString): Remove unused variable.
6873 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6875 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6876 resource_manager::read_resource_arg, read_one_of, parse_extensions):
6878 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6879 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6880 lookup_paper_size): Ditto.
6881 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6882 (text_glob, element_list): Reorder members.
6883 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6885 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6886 return value to `void'.
6887 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6889 * src/devices/grohtml/html.h (simple_output::check_newline,
6890 simple_output::space_or_newline, simple_output::enable_newlines):
6892 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6894 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6895 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6896 output_ligatures, output_charset, read_map): Ditto.
6897 * src/utils/lookbib/lookbib.cc (main): Ditto.
6898 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6899 (do_file): Fix typo (`=' -> `==').
6900 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6901 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6903 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
6905 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6906 Fix usage of GROFF_BIN_PATH.
6907 * src/roff/nroff/nroff.man: Updated.
6909 2001-04-18 Werner LEMBERG <wl@gnu.org>
6911 * NEWS: Fixing typos.
6914 Version 1.17 released
6915 =====================
6917 2001-04-17 Werner LEMBERG <wl@gnu.org>
6919 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6920 directory, not in $(srcdir).
6922 2001-04-16 Werner LEMBERG <wl@gnu.org>
6924 * doc/groff.texinfo: More info on conditionals.
6926 2001-04-15 Werner LEMBERG <wl@gnu.org>
6928 * doc/groff.texinfo: Added some info about groff internals.
6930 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6931 about missing special character only if the name is non-null.
6933 2001-04-14 Werner LEMBERG <wl@gnu.org>
6935 Removing the grohtml-old device driver which is now obsolete.
6937 * src/devices/grohtml-old/*: Removed.
6938 * font/devhtml-old/*: Removed.
6939 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6941 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6942 * test-groff (PATH): Updated.
6943 * tmac/Makefile.sub (NORMALFILES): Updated.
6944 * tmac/an-old.tmac: Remove special code for html-old device.
6945 Replace `html-or-html-old' register with `an-html'.
6946 * tmac/eqnrc: Updated.
6947 * tmac/html-old.tmac: Removed.
6948 * tmac/troffrc, tmac/troffrc-end: Updated.
6949 * tmac/www.tmac: Remove special code for html-old device.
6950 Replace `html-or-html-old' register with `www-html'.
6952 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6953 src/libs/libgroff/htmlindicate.cc (graphic_end),
6954 include/htmlindicate.h, src/preproc/grn/*.cc,
6955 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6956 single argument for consistency with rest of source code.
6958 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6960 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
6962 * src/roff/troff/troff.man: Fixing typos.
6964 2001-04-13 Werner LEMBERG <wl@gnu.org>
6966 * doc/pic.ms: Fixing many font switches.
6967 * doc/groff.texinfo: Fixes, additions.
6968 * MORE.STUFF: Updated.
6970 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
6972 * src/devices/grohtml/grohtml.man: Updated manual page regarding
6974 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6976 (removeTempFiles): New function to tidy up temporary files.
6977 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6978 Many fixes to do with the new inline suppress node and image regions
6980 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6981 (generate_img_src): New function.
6982 (html_printer::do_auto_image): Utilizes it.
6983 (do_heading, do_title): Include inline images within their contents.
6984 (html_printer::begin_page): Tidied up comments that are issued to
6985 the html output file.
6986 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6988 (text_glob::is_br): New method used by do_heading.
6989 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6990 equivalent diversion.
6991 * src/include/html-strings.h: Altered image tags to reflect the
6993 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6995 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6996 it is already inside a pic image. Only emit tags if the argument
6997 `-Tps:html' is present.
6998 * src/preproc/tbl/main.cc: Changes to reflect additional
6999 `html_end_suppress' parameter.
7000 * src/roff/troff/env.cc: Only emit eol tag if a node has been
7001 emitted since the last eol tag was written.
7002 * src/roff/troff/env.h: New boolean `emitted_node'.
7003 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7004 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
7005 * src/roff/troff/node.cc (check_charinfo): New method.
7006 (troff_output_file::determine_line_limits): Alterations to limit
7008 * tmac/www.tmac: Changes to reflect new suppress nodes.
7010 2001-04-12 Bruno Haible <haible@clisp.cons.org>
7012 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7013 Escape the html_glyph in the buffer.
7014 (str_translate_to_html): Output the unescaped escaped_char.
7015 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7016 `frame=void', not `frame=none'. Add `border=0'.
7018 2001-04-12 Werner LEMBERG <wl@gnu.org>
7020 * PROBLEMS: Add some words on how to avoid wrapper macros.
7022 2001-04-11 Blake McBride <blake@florida-software.com>
7024 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7026 2001-04-11 Werner LEMBERG <wl@gnu.org>
7028 * font/devlbp/Makefile.sub (CLEANADD): Set it.
7029 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7030 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7031 * Makefile.sub (DISTCLEANFILES): Here.
7033 * libs/libgroff/new.cc: Include `nonposix.h'.
7034 * win32-diffs: Updated.
7036 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
7038 Added skeleton macro for defunct macros.
7040 Updated documentation.
7042 When inside displays, an empty input line warning should be
7043 suppressed. If another macro call is put inside a display,
7044 all subsequent empty lines found in that display caused a
7045 warning to be emitted.
7047 * tmac/doc.tmac (doc-defunct-macro): New macro.
7048 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7049 (doc-restore-global-vars): Fixed typo.
7050 (doc-empty-line): Check the `doc-display-depth' register to
7051 determine whether we are inside display or not.
7053 * tmac/doc-common: Removed `Or' and `Sf' registers.
7054 Moved obsolete `Ds' macro to doc.tmac.
7056 * tmac/groff_mdoc.man: Bump document date.
7057 Document `.Vt' under ``Variable Types''.
7058 Removed documentation for obsolete `.Or' macro.
7060 2001-04-10 Werner LEMBERG <wl@gnu.org>
7063 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7065 2001-04-10 Bruno Haible <haible@clisp.cons.org>
7067 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7068 (usage): Add stream argument. Don't exit.
7069 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7070 Write --version output to stdout, not stderr.
7071 (usage): Add stream argument. Don't exit.
7072 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7073 (usage): Add stream argument. Don't exit.
7074 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7076 (usage): Add stream argument. Don't exit.
7077 (main): Write --help output to stdout, not stderr.
7078 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7079 (usage): Add stream argument. Don't exit.
7080 * src/devices/grops/ps.cc (main): Accept --help and --version.
7081 (usage): Add stream argument. Don't exit.
7082 * src/devices/grotty/tty.cc (main): Accept --help and --version.
7083 (usage): Add stream argument. Don't exit.
7084 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7085 (main): Accept --help and --version.
7086 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7087 (main): Accept --help and --version.
7088 * src/preproc/html/pre-html.cc (usage): Add stream argument.
7089 (scanArguments): Accept --help and --version.
7090 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7091 (main): Accept --help and --version.
7092 * src/preproc/refer/refer.cc (main): Accept --help and --version.
7093 (usage): Add stream argument. Don't exit.
7094 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7096 (main): Accept --help and --version.
7097 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7098 (main): Accept --help and --version.
7099 * src/roff/groff/groff.cc (main): Accept --help and --version.
7100 (synopsis): Add stream argument.
7101 (help): Write --help output to stdout, not stderr.
7102 (usage): Add stream argument. Don't exit.
7103 * src/roff/grog/grog.pl: Accept --help and --version.
7105 * src/roff/grog/grog.sh: Accept --help and --version.
7106 * src/roff/nroff/nroff.sh: Accept --help and --version.
7107 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7108 (usage): Add stream argument. Don't exit.
7109 (main): Accept --help and --version.
7110 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7111 (usage): New function with stream argument, doesn't exit.
7112 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7113 (usage): New function with stream argument, doesn't exit.
7114 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7115 (usage): Add stream argument. Don't exit.
7116 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7117 (main): Accept --help and --version.
7118 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7120 (main): Accept --help and --version.
7121 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7122 (main): Accept --help and --version.
7123 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7124 (usage): Add stream argument. Don't exit.
7126 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
7128 Fix indentation in SYNOPSIS.
7130 Updated to include changes of latest BSD mdoc version (basically,
7131 the only change is that `.Fn' and `.Fc' put a final semicolon after
7132 a function declaration in the SYNOPSIS section).
7134 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7135 (doc-in-synopsis-section): New variable. Updated all related
7137 (doc-indent-synopsis-active): New register.
7138 (Nd, Fn, Fo): Use it.
7139 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7140 `.Cd' with long argument line produces indented wrapped lines.
7141 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7142 undesirable line break to be output.
7143 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7145 (Fn, Fc): Add final `;' to output.
7146 (doc-save-global-vars, doc-restore-global-vars): Updated.
7147 * tmac/doc-common: Remove `Ex' register.
7149 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7152 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
7154 * tmac/doc.tmac (Cd): Simplify code.
7155 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7157 2001-04-06 Werner LEMBERG <wl@gnu.org>
7159 Implement continuous underlining for nroff mode. To do that, a new
7160 request in the ditroff language has been added: `x u N' (N is 0
7163 \X and \Y are now transparent to end-of-sentence recognition.
7165 * src/include/printer.h (printer): Add `type' parameter to `special'
7167 * src/libs/libdriver/printer.cc (printer::special): Updated.
7168 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7170 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7171 specials of type `p'.
7172 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7173 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7174 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7175 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7176 (glyph::order): New method.
7177 (tty_printer::add_char): Use it.
7178 (tty_printer::special): New method.
7179 (tty_printer::end_page): Implement it.
7181 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7182 * src/roff/troff/node.cc (special_node::special_node): Add parameter
7183 to set `no_init_string'.
7184 (special_node::tprint_start): Use it.
7185 (special_node::same, special_node::copy): Updated.
7186 (special_node::ends_sentence): New method.
7187 (troff_output_file::start_special): Add parameter to include
7188 inititialization of special conditionally.
7190 * src/roff/troff/env.h (environment): New member `underline_spaces'.
7191 * src/roff/troff/env.cc (do_underline_special): New function.
7192 (environment::set_font): Use it.
7193 (do_underline): Use it. This was `underline()'.
7194 (underline): Call `do_underline()'.
7195 (continuous_underline): New function which calls `do_underline()'.
7196 (environment::newline): Use `do_underline_special()'.
7197 (init_env_requests): Updated.
7199 * NEWS, man/troff_out.man: Updated.
7201 2001-04-06 Bruno Haible <haible@clisp.cons.org>
7203 * font/devutf8/R.proto: Fix code of 'shc'.
7205 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
7207 Many fixes. Diag lists can now be nested also; additionally,
7208 `-compact' and `-offset' are supported.
7210 * tmac/doc.tmac (doc-have-indent): Replaced with ...
7211 (doc-list-have-indent-stackXXX): A new register stack.
7212 (doc-have-diag-list): Removed.
7213 (Bl): Use `doc-list-have-indent-stackXXX'.
7215 (doc-diag-list): Use `doc-compact-list-stackXXX'.
7216 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7217 (doc-set-vertical-and-indent): Ditto.
7218 (doc-next-list-depth): Removed.
7219 (doc-increment-list-stack): Updated.
7220 (doc-decrement-list-stack): Use `doc-list-depth' instead of
7221 `doc-next-list-depth'.
7222 (doc-end-list, doc-end-column-list): Don't use
7223 `doc-increment-list-stack'.
7224 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7225 (doc-save-global-vars, doc-restore-global-vars): Updated.
7226 * tmac/doc-common: Updated.
7227 * tmac/groff_mdoc.man: Updated.
7230 2001-04-02 Werner LEMBERG <wl@gnu.org>
7232 * src/devices/grotty/grotty.man: Fix grammatical error.
7234 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
7236 Remove .Ld from mdoc package; replace it with special handling of
7239 * tmac/doc-common: Remove `Ld' register.
7240 Uncomment `doc-volume-ds-*' strings.
7241 Remove `doc-operating-system-default'.
7243 * tmac/doc-syms (Ld): Removed.
7244 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7248 * tmac/groff_mdoc.man: Many fixes and updates.
7250 2001-03-29 Werner LEMBERG <wl@gnu.org>
7252 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
7253 Bond <tkb@tkb.mpl.com>.
7254 * tmac/www.tmac: Save compatibility mode.
7256 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
7258 * tmac/groff_mdoc.man: Many fixes.
7260 2001-03-28 Werner LEMBERG <wl@gnu.org>
7262 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7265 2001-03-27 Werner LEMBERG <wl@gnu.org>
7267 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7268 diversion. This fixes overlong tags.
7270 2001-03-26 Werner LEMBERG <wl@gnu.org>
7272 * doc/groff.texinfo: Fixed and improved documentation of fonts.
7273 * tmac/doc-syms: Fix error messages.
7274 * tmac/an-old.tmac: Remove incorrect double backslashes.
7276 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
7278 * tmac/Makefile.sub: Strip mdoc.local also
7279 * tmac/strip.sed: Fixed.
7281 2001-03-24 Werner LEMBERG <wl@gnu.org>
7283 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7284 selecting the font size.
7285 * tmac/groff_mdoc.man, NEWS: Document it.
7287 2001-03-23 Werner LEMBERG <wl@gnu.org>
7289 * src/roff/troff/div.cc (save_vertical_space): Add default argument
7291 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7292 argument to restore previous font family.
7293 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7295 * doc/groff.texinfo: More fixes and additions (mainly for font
7296 manipulating commands).
7298 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7299 * tmac/groff_mdoc.man: This. The quick reference has been removed.
7300 * tmac/Makefile.sub, NEWS: Updated.
7302 2001-03-23 Werner LEMBERG <wl@gnu.org>
7304 Replaced mdoc implementation. The new version is `state of the
7305 art', using almost all new features of groff 1.17 -- it won't run
7306 with older versions.
7308 * tmac/doc.tmac: Completely rewritten.
7309 * tmac/doc-common: Ditto.
7310 * tmac/doc-nroff: Ditto.
7311 * tmac/doc-ditroff: Ditto.
7312 * tmac/doc-syms: Ditto.
7313 * tmac/mdoc.local: New file.
7314 * tmac/groff_mdoc.samples.man: Replaced with ...
7315 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7316 * tmac/strip.sed: Updated.
7317 * tmac/Makefile.sub: Updated.
7320 * tmac/groff_man.man: Add `man.local' to the FILES section.
7322 2001-03-22 Werner LEMBERG <wl@gnu.org>
7324 * doc/groff.texinfo: Added many @noindent.
7325 Replaced @end_Example -> @endExample.
7326 Added info whether registers are r/o.
7327 Many other additions and fixes.
7329 2001-03-21 Werner LEMBERG <wl@gnu.org>
7331 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7332 in makeinfo of texinfo 4.0) to be used in @Def* macros.
7333 Improved @Def* macros: Now the exact syntax of request, register,
7334 and escapes is shown.
7335 Added macros for parentheses and brackets to be used in @Def*.
7336 Many fixes and improvements of the documentation.
7338 2001-03-20 Werner LEMBERG <wl@gnu.org>
7340 * doc/groff.texinfo: Added new index: `st' (for strings).
7341 Added macros @Defstr(x).
7342 Added macro @Example (adding @group).
7343 Other minor improvements.
7345 2001-03-19 Werner LEMBERG <wl@gnu.org>
7347 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7348 `rq' for requests. `fn' is no longer used.
7349 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7352 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7353 number with name of man page.
7355 2001-03-19 Larry Kollar <kollar@alltel.net>
7357 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
7360 2001-03-19 Werner LEMBERG <wl@gnu.org>
7362 * man/groff_font.man: Document `prepro', `postpro', and `print'.
7363 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7364 * src/devices/grohtml/grohtml.man: Fixing typos.
7366 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
7368 * tmac/s.tmac (@IP): Pass `.ip' html tag.
7369 * tmac/groff_mwww.man: Remove .LINE macro
7370 * tmac/www.tmac (LINE): Add `.ti'.
7372 * src/devices/grohtml/post-html.cc (html_printer): New member
7374 (html_printer::emit_raw): Use it.
7375 (html_printer::do_linelength): Ditto.
7376 (html_printer::do_pageoffset): Ditto.
7377 (html_printer::do_indentation): Ditto.
7378 (html_printer::do_tempindent): Ditto.
7379 (html_printer::do_break): Ditto.
7380 (html_printer::begin_page): Ditto.
7381 (html_printer::do_indentedparagraph): New function.
7382 (html_printer::troff_tag): Handle `.ip'.
7383 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7384 Add `<td width=...>' handling.
7385 (html_text::do_table): Add parameter.
7386 (html_text::do_indent): Updated.
7387 * src/devices/groohtml/html-text.h: Updated.
7389 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
7391 Introduced simple html tables to implement indentation.
7393 * src/devices/grohtml/html.h (word, word_list): New structures.
7394 (simple_output): Use it.
7395 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7396 (html_printer): Improve indentation handling.
7397 (html_printer::emit_raw): Set `in_table' element. Handle
7399 (html_printer::write_header): Move conditional downwards.
7400 Don't allow whitespace in tags.
7401 (html_printer::do_linelength): Handle line length and indentation
7403 (html_printer::do_pageoffset): Handle indentation conditionally.
7404 (html_printer::do_indentation): Ditto.
7405 (html_printer::do_tempindent): New function member.
7406 (html_printer::do_fill): Take care of indentation.
7407 (html_printer::do_flush): Finish table.
7408 (html_printer::do_links): Ditto.
7409 (html_printer::do_break): New function for handling `.br' and `.ti'.
7410 (html_printer::troff_tag): Use it.
7412 (html_printer::flush_globs): Fix.
7413 (html_printer::flush_page): Finish table.
7414 (html_printer::html_printer): Fix error message. Set up
7416 (html_printer::add_to_sbuf): Remove special handling of character
7418 (to_unicode): Remove `stop()'.
7419 (html_printer::write_title): Cleanup.
7420 (html_printer::begin_page): Use `put_string()'. Handle indentation.
7421 (html_printer::~html_printer): Flush text and end the line.
7423 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7424 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7426 (html_text::start_tag): Disable newlines.
7427 (html_text::table_is_void): New function.
7428 (html_text::issue_table_begin): Ditto.
7429 (html_text::issue_table_end): Ditto.
7430 (html_text::push_para): Better table handling.
7431 (html_text::do_indent): New function.
7432 (html_text::do_table): Ditto.
7433 (html_text::done_table): Ditto.
7434 (html_text::do_tt): Handle PRE_TAG.
7435 (html_text::is_in_table): New function.
7436 (html_text::check_emit_text): Handle tables.
7437 (html_text::do_emittext): Use `nl()'.
7438 (html_text::do_para): Handle table.
7439 (html_text::remove_def): New function.
7440 * src/devices/grohtml/output.cc (word, word_list): Implement
7442 (simple_output::end_line): Flush last word.
7443 (simple_output::simple_comment): Ditto.
7444 (simple_output::begin_comment): Recoded.
7445 (simple_output::end_comment): Ditto.
7446 (simple_output::comment_arg): Removed.
7447 (simple_output::check_newline): Improve test and flush last word.
7448 (simple_output::space_or_newline): Improved.
7449 (simple_output::write_newline): Replaced with...
7450 (simple_output::nl): This.
7451 (simple_output::put_raw_char): Flush last word.
7452 (simple_output::check_space): Removed.
7453 (simple_output::put_translated_string): Ditto.
7454 (simple_output::put_string): Simplified.
7455 (simple_output::put_number): Updated.
7456 (simple_output::put_float): Ditto.
7457 (simple_output::put_symbol): Removed.
7458 (simple_output::enable_newlines): Add `check_newline()'.
7459 (simple_output::flush_last_word): New function.
7461 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7462 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7464 * tmac/s.tmac (@PP, @IP): Add html conditional code.
7465 * tmac/an-old.tmac (TP): Ditto.
7467 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
7469 * mdate.sh: Make it POSIX compliant.
7471 2001-03-09 Werner LEMBERG <wl@gnu.org>
7473 Added the `return' request to end a macro immediately. It simply
7474 pops iterators from the input stack until a macro iterator is found.
7476 * src/roff/troff/input.cc (input_iterator::is_macro,
7477 macro_iterator::is_macro): New member.
7478 (input_return_boundary): New class to signal an immediate return
7480 (input_stack::add_return_boundary, input_stack::is_return_boundary):
7482 (input_stack::clear): Use it.
7483 (input_stack::pop_macro): New function.
7484 (while_request): Use `is_return_boundary()'.
7485 (return_macro_request): New function.
7486 (init_input_requests): Use it.
7488 * src/roff/troff/TODO: Updated.
7489 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7491 2001-03-08 Werner LEMBERG <wl@gnu.org>
7493 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7496 2001-03-07 Werner LEMBERG <wl@gnu.org>
7498 Make `\B' more rigid.
7500 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7502 (get_number_rigidly): New function.
7503 * src/roff/troff/input.cc (do_expr_test): Use it.
7504 * src/roff/troff/token.h: Updated.
7506 * src/roff/troff/request.h: Fix typo (init_html_request ->
7507 init_markup_request).
7509 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
7511 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
7512 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7513 are now `.begin', `.end', `.image'.
7515 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7516 (html_printer::add_to_sbuf): Changing type of `code' parameter.
7517 Use add_char_to_sbuf().
7518 (to_unicode): New function.
7519 (char_translate_to_html): Changing type of `ch' parameter.
7521 (html_printer::~html_printer): Comment out doctype string.
7522 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7523 instead of `.html-end'.
7524 (write_start_image): Use `.begin' and `.image' instead of
7525 `.html-begin' and `.html-image'.
7526 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7527 (html_begin): Renamed to ...
7529 (html_end): Renamed to ...
7531 (html_image): Renamed to ...
7533 (init_html_requests): Renamed to ...
7534 (init_markup_requests): This.
7535 * tmac/www.tmac: Updated.
7537 2001-02-28 Bram <bram@avontuur.org>
7539 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7542 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
7544 * doc/meref.me: Fixing some typos.
7546 2001-02-16 Werner LEMBERG <wl@gnu.org>
7548 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7549 method. Return `HYPHEN_MIDDLE' if it was `\:'.
7550 * src/roff/troff/node.h: Updated.
7552 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
7554 * tmac/groff_tmac.man: Fix typo.
7556 2001-02-16 Werner LEMBERG <wl@gnu.org>
7558 Fixing a bug which prevented proper end-of-sentence recognition
7559 between an `unformatted' box and the following text. As a
7560 consequence, vertical line distances are no longer preserved in
7561 boxes after a call to `.unformat' -- because boxes aren't
7562 line-oriented (contrary to diversions), this doesn't make sense
7565 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7567 (vertical_size_node::set_unformat_flag): New method.
7568 * src/roff/troff/node.hh: Updated.
7569 * src/roff/troff/input.cc (word_space_node::reread,
7570 hmotion_node::reread): Reset `unformat' flag after usage.
7571 (unformat_macro): Append only if `set_unformat_flag()' returns
7573 * src/roff/troff/troff.man: Updated.
7575 2001-02-15 Werner LEMBERG <wl@gnu.org>
7577 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7578 documentation of `asciify' and `unformat' requests.
7580 2001-02-13 Werner LEMBERG <wl@gnu.org>
7582 Redesigned the `unformat' request. It is no longer connected with
7583 `asciify' but rather uses new `reread()' methods if the `unformat'
7584 flag is set. Additionally, the handling of space characters after
7585 unformatting has been fixed so that they retain their width.
7587 * src/roff/troff/node.h (width_list): New structure to store
7588 original widths of spaces.
7589 (node): Added `unformat' member.
7590 Replaced `num_spaces' variable with `orig_width' list.
7591 * src/roff/troff/node.cc (*node::asciify,
7592 asciify_reverse_node_list): Removed `unformat_only' flag and related
7594 (word_space_node::asciify, word_space_node::word_space_node): Use
7596 (word_space_node::~word_space_node): New destructor.
7597 (word_space_node::copy): Updated to handle `orig_width'.
7598 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7599 (*node::merge_space): Update `orig_width' list if necessary.
7600 (*node::set_unformat_flag): New methods to set the `unformat' flag.
7601 * src/roff/troff/enc.cc (environment::space_newline): Use
7603 (environment::space): Added method to handle space width and
7604 sentence space width as parameters. Use `width_list'.
7605 (environment::make_tab_node): Updated.
7606 * src/roff/troff/env.h: Updated.
7607 * src/roff/troff/input.cc (word_space_node::reread,
7608 unbreakable_space_node::reread, hmotion_node::reread): New methods
7609 to handle nodes specially if `unformat' flag is set.
7610 (do_asciify_macro): Renamed back to ...
7611 (asciify_macro): This.
7612 (unformat_macro): New implementation to simply set the `unformat'
7615 * MORE.STUFF: Added more info about deroff.
7617 2001-02-08 Werner LEMBERG <wl@gnu.org>
7619 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7620 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7621 and `add_self()' methods to avoid hyphenation. For example, the
7622 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7623 soft hyphen after `foo'. Now the hyphen list is correctly
7624 `foo<ignore><ignore>bar'.
7626 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
7628 * tmac/groff_tmac.man: Fix `BIR' macro.
7630 2001-02-04 Werner LEMBERG <wl@gnu.org>
7632 A new escape sequence `\:', inserting a zero-width break point.
7634 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7635 * src/roff/troff/input.cc (get_copy, token::next, asciify):
7637 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7639 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
7640 and `asciify()' methods.
7641 * src/roff/troff/node.cc (space_node::space_node): Updated.
7642 (space_node::asciify): Handle `was_escape_colon'.
7643 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7645 Handle `\~' similar to other comparable requests.
7647 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7649 (token::next): Move creation of an unbreakable_space_node to...
7650 (token::add_to_node_list): Here.
7652 Fix a bug which sometimes prevented hyphenation of words connected
7653 with `\~' or `\ ' (and other escape sequences handled as
7654 TOKEN_NODE). This also fixes a hyphenation problem with boxes
7655 (after a call to the `unformat' request).
7657 * src/roff/troff/env.h (environment::possibly_break_line,
7658 environment::hyphenate_line): Introducing `start_here' parameter.
7659 * src/roff/troff/env.cc (environment::space_newline,
7660 environment::space): Use it.
7661 (environment::possibly_break_line, environment::hyphenate_line):
7663 * src/roff/troff/input.cc (process_input_stack): Use it.
7664 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7665 space_char_hmotion_node, overstrike_node): Add
7666 `get_hyphenation_type()' method.
7667 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7668 if `unformat_only' is active.
7670 2001-01-30 Werner LEMBERG <wl@gnu.org>
7672 Implemented new read-only number register `.linetabs' which
7673 returns 1 if in line-tabs mode, 0 otherwise.
7675 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7676 * src/roff/troff/env.cc (get_line_tabs): New function.
7677 (init_env_requests): Use it.
7678 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7680 * VERSION, REVISION: Changing to 1.17.0.
7682 2001-01-28 Werner LEMBERG <wl@gnu.org>
7684 Fixed a bug which prevented hyphenation of words which are finished
7687 * src/roff/troff/token.h (token): Add enum type
7688 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7689 * src/roff/troff/input.cc (token::next, token::description,
7690 get_line_arg, token::add_to_node_list, token::process): Use it.
7692 2001-01-27 Werner LEMBERG <wl@gnu.org>
7694 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7695 * src/roff/troff/div.cc (do_divert): Use it.
7697 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7699 2001-01-25 Werner LEMBERG <wl@gnu.org>
7701 Adding the `linetabs' request. If set, tab distances are not
7702 computed relative to the input line but relative to the output line.
7704 * src/roff/troff/env.h (environment): New member `line_tabs'.
7705 * src/roff/troff/env.cc (line_tabs_request): Implement request.
7706 (environment::environment, environment::copy): Updated.
7707 (environment::distance_to_next_tab): Use `line_tabs'.
7708 (init_env_requests): Register request.
7709 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
7712 2001-01-24 Werner LEMBERG <wl@gnu.org>
7714 Introducing a new read-only register `.int' which is set to a
7715 positive value if the last output line is interrupted (i.e., if it
7718 * src/roff/troff/env.cc (init_env_requests): Add it.
7719 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7721 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
7723 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7724 * src/preproc/html/pre-html.cc (findPrefix): New function which
7725 generates the troff executable name via the system prefix.
7726 * src/preproc/eqn/main.cc: Modified warning message.
7728 2001-01-23 Werner LEMBERG <wl@gnu.org>
7730 troff's `box' and `boxa' requests didn't preserve temporary
7733 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7734 `saved_target_text_length' members.
7735 * src/roff/troff/div.cc (do_divert): Use them.
7737 Tabs (but not yet leaders and fields) are now handled correctly by
7740 * node.h (hmotion_node): Add field `was_tab'.
7741 * env.cc (environment::make_tab_node): Set it.
7742 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7744 Added new request `unformat' which will, contrary to `asciify',
7745 preserve font information after unformatting (i.e., only nodes
7746 dealing with horizontal space are converted back to input
7749 * input.cc (asciify_macro): Renamed to ...
7750 (do_asciify_macro): this, having a new parameter `unformat_only'.
7751 (asciify_macro, unformat_macro): New; using do_asciify_macro.
7752 (init_input_requests): Added `unformat'.
7753 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7754 parameter to control asciification process.
7755 * node.h (*_node::asciify): Ditto.
7756 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7758 2001-01-20 Werner LEMBERG <wl@gnu.org>
7760 * doc/groff.texinfo: Minor improvement of `.in' documentation.
7762 2001-01-18 Werner LEMBERG <wl@gnu.org>
7764 * tmac/ps.tmac: Remove call of psold.tmac.
7765 * tmac/psold.tmac: Comment updated.
7766 * tmac/psnew.tmac: Removed since no longer needed.
7767 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7769 * font/devutf8/R.proto: Adding `shc' glyph.
7770 * font/devutf8/NOTES: Updated.
7772 * test-groff: Updated.
7774 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
7776 First cut of the new html device driver. Changes to pre-html and
7777 the new grohtml are too numerous to be documented here.
7779 Stuff related to `html' has been renamed to `html-old' and `html2'
7780 stuff has been renamed to `html' (including directories). The new
7781 html device driver is therefore invoked as `-Thtml'.
7783 Added new `\O' escape to suppress output (needed by html driver).
7785 Added functions and code to pass info about input-level commands
7786 (`.in', `.fl', etc.) to html driver.
7788 Three new functions (.html-begin, .html-end, and .html-image) for
7789 better html handling: `html-begin' will execute the remaining line
7790 if at the outermost nesting level, increasing an internal counter.
7791 `html-end' does the same but decreases the internal counter.
7792 `html_image' puts its arguments into a special node (suppress_node)
7793 to define an image region.
7795 The `output' request has been removed.
7797 * tmac/html-tags.tmac: Removed.
7798 * tmac/arkup.tmac: Updated and renamed to ...
7799 * tmac/www.tmac: New file.
7800 * tmac/markup.tmac Updated and renamed to ...
7801 * tmac/mwww.tmac: New file.
7802 * tmac/Makefile.sub: Updated.
7803 * tmac/an-old.tmac: Updated.
7804 * tmac/eqnrc: Updated.
7805 * tmac/groff_man.man
7806 * tmac/groff_markup.man: Updated and renamed to ...
7807 * tmac/groff_mwww.man: New file.
7808 * tmac/groff_tmac.man: Updated.
7809 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7810 * tmac/html.tmac: Updated and renamed from html2.tmac.
7811 * tmac/pspic.tmac: Updated html support.
7812 * tmac/s.tmac: Added html output support.
7813 * tmac/troffrc, tmac/troffrc-end: Updated.
7815 * Makefile.in, doc/Makefile: Updated.
7816 * doc/groff.texinfo: Added info about new `\O' escape.
7817 * doc/homepage.ms: Use `MAILTO' macro.
7819 * font/devhtml/DESC.proto: Add `C' font.
7820 * font/devhtml/Makefile.sub: Updated.
7821 * font/devhtml/R.proto: Minor fixes.
7822 * font/devhtml-old/Makefile.sub: Updated.
7824 * src/devices/grohtml-old/Makefile.sub: Updated.
7826 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7828 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7829 graphic_start): Add `inline' parameter. Update.
7830 (html_end_suppress, graphic_end): Update.
7832 * src/include/html-strings.h: New file.
7833 * src/include/htmlindicate.h: Comments updated.
7834 * src/include/printer.h: Updated.
7836 * src/preproc/eqn/main.cc (do_file, main): Updated.
7837 * src/preproc/pic/troff.cc (troff_output::start_picture,
7838 troff_output::finish_picture): Updated.
7839 * src/preproc/tbl/main.cc (process_input_file): Updated.
7841 * src/roff/groff/groff.cc (main): Updated.
7842 Pass device arguments to predrivers also.
7843 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7844 * src/roff/troff/env.h (environment): Updated.
7845 New elements `need_eol' and `ignore_next_eol' (for html output).
7846 * src/roff/troff/env.cc (environment::environment): Add initializers
7847 for `need_eol' and `ignore_next_eol'.
7848 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7850 (point_size, fill, no_fill, center, right_justify, line_length,
7851 indent, temporary_indent, break_request, handle_tab): Use
7853 (set_tabs): Use `add_html_tag_tabs()'.
7854 (environment::add_html_tag): Updated.
7855 (environment::do_break): Updated.
7856 * src/roff/troff/div.cc (space_request, flush_output): Use
7857 `environment::add_html_tag()'.
7858 * src/roff/troff/input.cc: Updated.
7859 New variable `html_level' to indicate nested `html-begin' requests.
7860 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7861 (non_interpreted_char_node, token_node, non_interpreted_node): Add
7862 `force_tprint()' method.
7863 (token::next): Handle `\O'.
7864 (do_suppress): Implement it.
7865 (html_begin, html_end, html_image): New functions.
7866 (init_output_requests): Renamed to ...
7867 (init_html_requests): this.
7869 (macro::append_str, macro::append_unsigned, macro::append_int): New
7871 New variable `output_low_mark_miny' to limit minimal value of y.
7872 (reset_output_registers): Use it.
7873 (output_request): Removed.
7874 (get_output_registers): New function.
7875 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7876 (*_node): Added `force_tprint()' if necessary.
7877 (special_node): New elements `tf' and `get_tfont()'.
7878 (suppress_node): New class.
7879 * src/roff/troff/node.cc:
7880 New global variables `image_no' and `suppress_start_page'.
7881 (real_output_file): New method `is_on()'.
7882 (troff_output_file): New method `start_special(tfont)'.
7883 (troff_output_file::really_print_line): Use `tprint' conditionally.
7884 (real_output_file::print_line): Updated.
7885 (real_output_file::on): Updated.
7886 (*_node): Added `force_tprint()'.
7887 (special_node::special_node): Initializer updated.
7888 (special_node::same, special_node::copy, special_node::tprint_start):
7890 (get_reg_int, get_reg_str): New functions.
7891 (suppress_node::*): New methods.
7892 New global variables last_position, last_image_filename;
7893 (min): New inline function.
7894 * src/roff/troff/reg.h, src/roff/troff/request.h,
7895 src/roff/troff/troff.h: Updated.
7897 2001-01-13 Werner LEMBERG <wl@gnu.org>
7899 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7900 documentation of `asciify' request.
7902 2001-01-12 Werner LEMBERG <wl@gnu.org>
7904 * src/roff/troff/input.cc: Move definition of special characters
7905 like `ESCAPE_TILDE' to ...
7906 * src/roff/troff/input.h: New file.
7907 * src/roff/troff/Makefile.sub (HDRS): Add it.
7909 Extending the .asciify request to `unformat' space characters also.
7911 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7912 to count input space characters.
7913 Update constructors to take care of it.
7914 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7915 `ESCAPE_SPACE' instead of normal space.
7916 (word_space_node::asciify): New method.
7917 (unbreakable_space_node::asciify): New method.
7918 (word_space_node::merge_space): New method.
7919 * src/roff/troff/env.cc (environment::space_newline,
7920 environment::space): Add code to initialize `num_spaces' (using the
7921 constructor of `word_space_node').
7922 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7925 2001-01-09 Werner LEMBERG <wl@gnu.org>
7927 * man/groff_char.man: Use table header traps only conditionally.
7929 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
7931 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7933 2001-01-08 Werner LEMBERG <wl@gnu.org>
7935 Introducing the `box' and `boxa' requests which are similar to
7936 `di' resp. `da' but omitting a partially filled line (which is
7937 restored after ending the diversion).
7939 * src/roff/troff/div.h (diversion): Add elements to save partially
7941 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7942 partially filled line.
7943 (divert, divert_append): Updated.
7944 (box, box_append): New functions.
7945 (init_div_requests): Use them.
7946 * src/roff/troff/env.h (environment): do_divert() is now a friend.
7947 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7949 * doc/groff.texinfo: Fix documentation of `lf' request.
7951 2000-12-25 Werner LEMBERG <wl@gnu.org>
7953 * src/roff/troff/troff.man, NEWS: Document `writem' request.
7955 2000-12-21 Werner LEMBERG <wl@gnu.org>
7957 Ignore `ss' request if in compatibility mode.
7959 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7960 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7961 * src/roff/troff/env.cc (space_size): Use it.
7963 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7964 `ss' request in nroff mode.
7966 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7969 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
7971 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7973 2000-12-13 Werner LEMBERG <wl@gnu.org>
7975 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7976 * src/preproc/eqn/neqn.man: Small fixes and additions.
7978 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
7980 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7983 * src/preproc/eqn/neqn.man: New file.
7985 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7988 * tmac/e.tmac: Add `T&' macro.
7989 Fix `indent cannot be negative' warning.
7990 * tmac/s.tmac: Fix `indent cannot be negative' warning.
7992 2000-12-07 Werner LEMBERG <wl@gnu.org>
7994 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7996 2000-12-06 Werner LEMBERG <wl@gnu.org>
7998 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8001 * MORE.STUFF: Added info about deroff for djgpp.
8003 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8004 documentation of -rcR switch.
8006 2000-12-03 Werner LEMBERG <wl@gnu.org>
8008 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8009 if -rcR=1 (which is now the default in nroff mode), a single, very
8010 long page is created instead of multiple pages: All `ne' and `wh'
8011 requests are put into conditionals; a new macro `an-end' is added to
8012 be called with `em'.
8014 Some other minor cleanups.
8016 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8018 2000-12-02 Werner LEMBERG <wl@gnu.org>
8020 Fixing a bug which prevented hyphenation in words followed
8021 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8023 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8024 Adding possibly_break_line().
8025 * src/roff/troff/env.h (environment): Make possibly_break_line()
8028 Make `\~' usable in .tr request.
8030 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8031 (token): Add stretchable_space().
8032 * src/roff/troff/input.cc (token::next, token::delimiter,
8033 token::description, process_input_stack, do_translate,
8034 add_to_node_list, token::process): Use it.
8035 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8036 for adjusting the space.
8037 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
8038 for stretchable space.
8039 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8040 (make_node): Add code for stretchable space.
8041 * src/roff/troff/env.cc (environment::add_char): Use it.
8042 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8043 (get_copy, token::next, transparent_translate, asciify): Use it.
8045 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8046 doc/groff.texinfo: Updated.
8047 * man/groff.man: Small reorderings.
8049 2000-11-23 Werner LEMBERG <wl@gnu.org>
8052 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8054 * src/roff/troff/input.cc (main): Add `config_macro_path' and
8055 `safer_macro_path' to -M option.
8056 * src/roff/troff/troff.man: Fixes.
8058 2000-11-22 Werner LEMBERG <wl@gnu.org>
8060 Use safer path (except for config files) if -U isn't specified. Add
8061 a special macro path (without home and current directory) for config
8062 files. Add home directory to unsafe path for consistency. Don't
8063 include the home directory in the font path.
8065 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8067 * src/include/macropath.h: Add `config_macrp_path'.
8068 * src/libs/libgroff/fontfile.cc: Fix font path.
8069 * src/roff/troff/input.cc (process_startup_file): Use
8070 `config_macro_path'.
8071 (main): Select unsafe path if -U is given.
8073 * src/preproc/eqn/main.cc (main): Fixing search path for
8075 * src/preproc/eqn/eqn.man: Updated.
8077 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8080 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8081 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8082 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8083 src/devices/grotty/grotty.man: Updated.
8085 * Makefile.in: Fix comments.
8087 2000-11-17 Werner LEMBERG <wl@gnu.org>
8089 * tmac/safer.tmac: Empty file added (again) for compatibility
8091 * tmac/Makefile.sub: Updated.
8093 2000-11-16 Werner LEMBERG <wl@gnu.org>
8095 * src/devices/grodvi/dvi.cc (main),
8096 src/devices/grohtml2/post-html.cc (main),
8097 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8098 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8099 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8100 (main), src/preproc/html2/pre-html.cc (main),
8101 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8102 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8103 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8104 (main), src/utils/hpftodit/hpftodit.cc (main),
8105 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8106 (main), src/utils/lookbib/lookbib.cc (main),
8107 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8108 (main): Use stdout for -v.
8109 * src/roff/groff/groff.cc (run_commands),
8110 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8111 to make direct printing to stdout possible.
8112 * src/roff/groff/pipeline.h: Updated.
8114 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8115 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8116 * src/utils/afmtodit/afmtodit.man: Updated.
8118 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8119 (version): New function.
8121 * src/utils/addftinfo/addftinfo.man: Updated.
8123 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8124 Fixing copyright dates.
8126 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8129 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8132 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8134 2000-11-15 Werner LEMBERG <wl@gnu.org>
8136 In all programs, make -v return immediately with exit status 0 to
8137 be compliant with the GNU standard.
8139 * src/devices/grodvi/dvi.cc (main),
8140 src/devices/grohtml2/post-html.cc (main),
8141 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8142 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8143 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8144 (main), src/preproc/html2/pre-html.cc (main),
8145 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8146 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8147 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8148 (main): Implement it.
8151 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
8152 and postprocessors to the -v option.
8154 * src/roff/grog/grog.pl: Implement -v.
8155 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8156 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8158 * src/roff/nroff/nroff.sh: Implement -v.
8159 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8160 * src/roff/nroff/nroff.man: Updated.
8162 * src/preproc/eqn/main.cc (main): Fix comment typo.
8164 * MORE.STUFF: Added info about djgpp port of grap.
8166 2000-11-14 Werner LEMBERG <wl@gnu.org>
8168 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8169 mode (or rather, implemented non-compatibility mode).
8170 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8172 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8173 replacing it -- we don't find gxditview otherwise.
8174 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8176 * src/preproc/pic/depend: Removed. Unnecessary.
8178 Implemented dummy keyword `solid' in pic for compatibility with
8181 * lex.cc (lookup_keyword): Added `solid'.
8182 * pic.y: Added SOLID with dummy rule.
8183 * pic.cc, pic_tab.h: Regenerated.
8184 * doc/pic.ms: Updated.
8186 2000-11-13 Werner LEMBERG <wl@gnu.org>
8188 For security reasons, don't use the current directory but the home
8189 directory while searching and scanning troffrc and troffrc-end.
8190 Similarly, replace the current directory with the home directory
8193 * Makefile.in (fontpath, tmacpath): Remove current directory.
8195 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8196 two parameters `add_home' and `add_current'.
8197 (search_path::~search_path, search_path::command_line_dir,
8198 search_path::open_file): Remove tests for `dirs' being zero.
8199 * src/include/searchpath.h: Adjust.
8200 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8202 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8204 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8205 * src/roff/troff/input.cc: Use `mac_path', initialized with
8207 (process_startup_file): Set `mac_path' to `safer_macro_path'.
8208 * src/roff/troff/env.cc: Use `mac_path'.
8210 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8212 * NEWS, man/roff.man, src/roff/troff/troff.man,
8213 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8216 2000-11-12 Werner LEMBERG <wl@gnu.org>
8218 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8220 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8221 * configure.in: Fix typo in comment.
8222 * configure: Regenerated.
8224 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8227 2000-11-08 Werner LEMBERG <wl@gnu.org>
8229 Add system tmac directory (/usr/local/lib/groff/site-tmac).
8231 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8232 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8235 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8236 * tmac/Makefile.sub (install_data): Create
8237 $(systemtmacdir) and $(localtmacdir).
8238 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8239 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8240 NEWS, doc/groff.texinfo: Updated and minor fixes.
8242 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8243 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8244 $(systemtmacdir) since the wrapper files are platform-dependent.
8246 2000-11-01 Werner LEMBERG <wl@gnu.org>
8248 * doc/groff.texinfo: Fix typo.
8250 2000-10-26 Werner LEMBERG <wl@gnu.org>
8252 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
8253 tmac.doc.old -> doc-old.tmac
8254 tmac.an.old -> an-old.tmac
8256 * tmac/tmac.*: Moved to ...
8257 * tmac/*.tmac: this.
8258 * tmac/man.local: Fix comment.
8259 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8260 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
8261 Added some `FILES' sections. More use of @...@ directives. Other
8263 * arch/djgpp/README, font/devutf8/NOTES: Updated.
8264 * doc/homepage.ms, doc/groff.texinfo: Updated.
8265 * man/groff.man, man/roff.man: Updated.
8266 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8267 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8268 src/devices/grotty/grotty.man: Updated.
8269 * src/preproc/pic/pic.man: Updated.
8270 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8271 instead of -mdoc.old.
8272 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8273 * src/roff/nroff/nroff.man: Updated.
8276 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8278 * tmac/mm.diff: Removed -- it has no use now since the mm package
8281 * tmac/*: Removed trailing spaces.
8283 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8284 the tmac subdirectory also).
8286 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8287 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8288 stuff since it is no longer needed.
8290 * README, PROBLEMS: Updated.
8292 2000-10-25 Werner LEMBERG <wl@gnu.org>
8294 Invert current behaviour: Search first FOOBAR.tmac, then
8297 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8298 (open_mac_file, macro_source): Implement it.
8299 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8300 doc/groff.texinfo, NEWS: Document it.
8302 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8303 Small documentation improvements.
8305 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8308 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8310 2000-10-24 Werner LEMBERG <wl@gnu.org>
8312 Add local tmac directory (groff/site-tmac).
8314 * Makefile.in: Add $(localtmacdir).
8315 (uninstall_dirs): Add $(localtmacdir).
8316 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8317 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8318 in $(localtmacdir). Create $(localtmacdir).
8319 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8320 Updated and minor fixes.
8322 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8324 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8326 2000-10-23 Werner LEMBERG <wl@gnu.org>
8328 Move hyphen.us to tmac directory.
8330 * src/roff/troff/hyphen.us: Removed.
8331 * src/tmac/hyphen.us: Added.
8332 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8334 Change installation structure for data files from .../groff/... to
8335 .../groff/<version><revision>/... to be conform with other GNU
8338 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8339 doc/Makefile: Implement it.
8340 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8341 * configure: Updated.
8342 * arch/djgpp/README, font/devutf8/NOTES: Use it.
8343 * NEWS: Document it.
8344 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8345 @MACRODIR@ instead of hard-coded directories.
8347 2000-10-22 Werner LEMBERG <wl@gnu.org>
8349 Implement $GROFF_BIN_PATH environment variable (which defaults to
8350 $bindir) used for child programs of groff and similar wrappers.
8352 * gendefs.sh: Improve documentation.
8353 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8354 src/preproc/eqn/Makefile.sub (neqn),
8355 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8356 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8358 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8359 $GROFF_PATH__ (the latter for communication with troff).
8360 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8362 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8363 doc/groff.texinfo: Document it.
8365 * doc/groff.texinfo: Improve documentation of troff's -a option.
8367 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
8369 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8370 non-intrusive eol marker.
8371 (troff_output_file::determine_line_limits): New function.
8372 (troff_output_file::draw): Use it.
8373 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8374 output_pending_lines() instead of output_line().
8375 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8376 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8377 createImage): Small fixes.
8379 2000-10-14 Werner LEMBERG <wl@gnu.org>
8381 Replace tmac.safer with a real secure solution.
8383 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8384 system_request, pipe_output): Disable requests if in safer mode.
8385 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8386 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8387 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8388 doc/groff.texinfo, src/roff/groff/groff.man,
8389 src/roff/troff/troff.man, arch/djgpp/README: Updated.
8391 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8392 (resource_manager::output_prolog): Replace setenv() with putenv().
8394 2000-10-09 Werner LEMBERG <wl@gnu.org>
8396 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8397 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8398 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8399 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8400 compilation errors with some compilers. It seems that this code
8401 is no longer necessary -- if yes, it is easy to add some #ifdef's
8402 for that particular old-fashioned compiler.
8404 * MORE.STUFF: Added info about Meta-tbl.
8406 * doc/groff.texinfo: Added more info about `.if "..."..."'.
8408 2000-10-07 Werner LEMBERG <wl@gnu.org>
8410 Adding a new escape sequence \B'...': If the string between
8411 the delimiters is a valid numeric expression, return the character
8412 `1', and `0' otherwise. This is an analogon to \A.
8414 * src/roff/troff/input.cc (do_expr_test): Implement it.
8415 (token::next): Use it.
8416 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8418 * tmac/tmac.trace: Made independent from escape character.
8420 2000-10-06 Werner LEMBERG <wl@gnu.org>
8422 Adding a new request .dei: define indirect. The first and second
8423 parameter of .dei are taken from string registers instead directly;
8424 this very special request is needed to make tmac.trace independent
8425 from the escape character (which might even be disabled).
8427 * src/roff/troff/input.cc (do_define_macro): Implement it.
8428 (define_macro_indirect): New function.
8429 (init_input_requests): Use it.
8431 Adding two requests .ecs and .ecr: Save and restore the escape
8432 character. These two requests are needed to make tmac.trace
8433 independent from the escape character (which might even be
8436 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8438 (init_input_requests): Use it.
8440 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8442 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
8444 Adding a new option -P and new environment variable GROPS_PROLOGUE
8445 to grops, selecting a different prologue file (minor modifications
8448 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8449 src/devices/grops/ps.cc (main): Implement it.
8450 * src/devices/grops/grops.man, NEWS: Document it.
8452 2000-09-22 Werner LEMBERG <wl@gnu.org>
8454 * INSTALL: Add info about selecting paper format.
8456 2000-09-21 Werner LEMBERG <wl@gnu.org>
8458 * src/roff/troff/input.cc (main): Fixing compiler warning.
8459 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8460 strings.h from the former to the latter.
8461 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8462 stuff from the former to the latter.
8464 2000-09-11 Werner LEMBERG <wl@gnu.org>
8466 Implementing two new requests .tm1 and .tmc: The former is similar
8467 to .tm but can output leading spaces; its syntax is similar to
8468 defining a string, i.e., a `"' can be used to mark the beginning of
8469 the string to be written to stderr: `.tm1 " test'. The latter is
8470 similar to .tm1 but doesn't write out a final newline character.
8472 * src/roff/troff/input.cc (terminal1, terminal_continue,
8473 do_terminal): New functions.
8474 (init_input_requests): Use them.
8475 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8477 2000-09-09 Werner LEMBERG <wl@gnu.org>
8479 * tmac/groff_mdoc.samples.man: Small fixes.
8481 2000-09-08 Werner LEMBERG <wl@gnu.org>
8483 * tmac/groff_mdoc.man: Fixing typo.
8485 2000-09-02 Werner LEMBERG <wl@gnu.org>
8487 Implementing a .nop request which does nothing.
8489 * src/roff/troff/input.cc (nop_request): New function.
8490 (init_input_requests): Use it.
8491 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8493 2000-09-01 Werner LEMBERG <wl@gnu.org>
8495 * doc/groff.texinfo: Added some comments.
8497 2000-08-30 Werner LEMBERG <wl@gnu.org>
8499 * src/roff/troff/TODO: Updated.
8501 2000-08-25 Werner LEMBERG <wl@gnu.org>
8503 * doc/groff.texinfo: Fix comment how to compile the DVI file.
8505 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8507 * font/devps/generate/Makefile (SHELL): Define explicitly to
8508 "/bin/sh", for non-Unix platforms.
8509 (extraclean): Use a more portable "" quoting instead of a
8510 backslash (which doesn't work on DOS/Windows).
8512 * font/devlj4/generate/Makefile (extraclean): Ditto.
8514 * font/devdvi/generate/Makefile (extraclean): Ditto.
8516 2000-08-25 Werner LEMBERG <wl@gnu.org>
8518 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8519 src/roff/troff/troff.man: Document Eli's latest changes.
8521 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8523 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8524 macro file names of the form NAME.tmac as well as tmac.NAME.
8526 2000-08-25 Werner LEMBERG <wl@gnu.org>
8528 * src/include/posix.h: Remove definition of FILENAME_MAX.
8530 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8531 `sys_fatal' and `stop' function().
8533 * test-groff: Updated.
8535 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
8537 Added the new troff command .output <arg> to suppress output (while
8538 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8539 registers (for passing the output dimensions to the output device).
8541 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8543 * src/roff/troff/node.h, src/roff/troff/node.cc
8544 (troff_output_file::really_print_line,
8545 ascii_output_file::really_print_line,
8546 supress_output_file::really_print_line): Use `width' parameter.
8547 (troff_output_file::really_on, troff_output_file::really_off,
8548 output_file::on, output_file::off, real_output_file::on,
8549 real_output_file::off, real_output_file::really_on,
8550 real_output_file::really_off): New functions.
8551 (real_output_file:public output_file): New variable `output_on'.
8552 (real_output_file::begin_page, real_output_file::copy_file,
8553 real_output_file::transparent_char, real_output_file::print_line):
8555 (real_output_file::print_line): Use check_output_limits.
8556 * src/roff/troff/reg.h, src/roff/troff/request.h,
8557 src/roff/troff/input.cc (assign_registers): New function to remove
8559 (do_ps_file): Use it.
8560 (check_output_limits, reset_output_registers, output_request,
8561 init_output_requests): New functions.
8562 (init_input_requests): Updated.
8564 Added new grohtml2 device and html2 preprocessor (coding
8565 not yet finished) which will eventually replace grohtml.
8567 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8569 * src/include/htmlindicate.h, src/include/htmlindicate
8570 (html_begin_suppress, html_end_suppress): New functions.
8571 * src/preproc/tbl/main.cc: Use it.
8572 * src/roff/groff/groff.cc: Add support for html2 device (which will
8573 automatically invoke the html2 preprocessor).
8574 * src/roff/troff/input.cc (is_html2): New variable.
8575 * src/roff/troff/troff.h, src/roff/troff/env.h,
8576 src/roff/troff/env.cc (environment::add_html_tag): New function
8578 (environment::do_break): Use it.
8579 * font/devhtml2/*: New files.
8580 * src/devices/grohtml2: New device.
8581 * src/preproc/html2: New preprocessor.
8582 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8584 2000-08-23 Werner LEMBERG <wl@gnu.org>
8586 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8588 2000-08-22 Werner LEMBERG <wl@gnu.org>
8590 * src/include/lib.h: Provide a fix for IRIX to not include
8593 2000-08-18 Werner LEMBERG <wl@gnu.org>
8595 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8596 since some non-GNU sed programs can't handle null regexps.
8597 * configure, src/preproc/eqn/Makefile.sub,
8598 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8600 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8601 bug (string.h and strings.h are both needed according to latest
8604 * MORE.STUFF: Added info about unroff and troffcvt.
8606 2000-08-08 Werner LEMBERG <wl@gnu.org>
8608 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8611 * tmac/tmac.man.old: Remove unused number register.
8613 * tmac.doc: Minor documentation fix.
8615 2000-08-07 Paul Eggert <eggert@twinsun.com>
8617 * src/roff/groff/pipeline.c (is_system_shell):
8618 Fix typo: "monocased_shell" no longer exists.
8620 2000-08-07 Paul Eggert <eggert@twinsun.com>
8622 Remove FILENAME_MAX limits.
8624 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8625 that the argument length is less than FILENAME_MAX.
8626 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8627 Use struct hack to allocate and free file name.
8628 (struct xtmpfile_list): fname is now part of the structure,
8629 not a pointer to another string.
8631 2000-08-07 Tom Schmidt <tschmidt@micron.com>
8633 * src/include/posix.h: Add a default value for FILENAME_MAX.
8635 2000-08-06 Paul Eggert <eggert@twinsun.com>
8637 Add support for new BSD-style man pages (with ".Dd" instead of
8638 ".TH"), so that "groff -man" understands both styles, even
8639 when running "groff -man" on a host whose system man page
8640 macros don't support ".Dd".
8642 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8643 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8644 in case the system man macros don't define Dd or TH.
8646 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8647 * tmac/tmac.an: New one-line file.
8648 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8650 2000-08-06 Werner LEMBERG <wl@gnu.org>
8652 * src/roff/troff/troff.man: Fixing typos.
8654 Version 1.16.1 released
8655 =======================
8657 2000-07-31 Werner LEMBERG <wl@gnu.org>
8659 Preparing release 1.16.1.
8661 * REVISION: Revision number set to 1.
8662 * MORE.STUFF: Added info about port to DOS.
8663 * NEWS, win32-diffs: Updated.
8665 * src/include/nonposix.h: Remove first line -- this file is used
8668 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8671 2000-07-30 Werner LEMBERG <wl@gnu.org>
8673 * doc/texinfo.tex: Update to latest version.
8675 2000-06-28 Paul Eggert <eggert@twinsun.com>
8677 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8678 commands that fail. Don't assume that "export a=b" is valid shell
8679 syntax. This is needed for Solaris 2.5.1.
8681 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8682 comment about missing Solaris headers.
8684 * PROBLEMS: Add section about problems with Sun Make and VPATH.
8686 2000-06-25 Werner LEMBERG <wl@gnu.org>
8688 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8691 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8693 * win32-diffs: Updated.
8694 * README.WIN32: Added CRs to make all Windows editors happy.
8696 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8697 src/roff/groff/pipeline.c).
8699 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8701 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8702 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8704 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
8706 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8707 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8709 (main): Support non-Posix systems with several different styles of
8710 slash characters in file names.
8712 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8713 (main) [SET_BINARY]: Switch stdin into binary mode.
8715 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8716 (main): Support file names with several possible slash-type
8717 characters, as given by DIR_SEPS[] in nonposix.h.
8718 (main) [__MSDOS__]: If renaming the temporary index file fails
8719 because it has more than one dot in its trunk, replace the dot
8720 with an underscore and try again.
8721 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
8723 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8725 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8726 (File::File): Open the input file in binary mode. Strip CR
8727 characters from each CR-LF pair.
8728 (xbasename): Support file names with several possible slash-type
8729 characters, as given by DIR_SEPS[] in nonposix.h.
8731 * src/include/Makefile.sub (HDRS): Add nonposix.h.
8733 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8734 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8735 [!_POSIX_VERSION]: Define for traditional Unix systems.
8736 (real_output_file::real_output_file): Remove the MSVC-specific
8737 call to popen, use instead POPEN_WT, appropriately defined on
8738 nonposix.h. #include nonposix.h.
8739 (real_output_file::~real_output_file): Remove the MSVC-specific
8740 call to pclose, a suitable macro is now defined on nonposix.h.
8741 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8742 and WEXITSTATUS instead of assuming traditional Unix
8743 interpretation of the status returned by pclose.
8745 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8746 call to popen, use POPEN_RT instead (appropriately defined on
8747 nonposix.h). #include nonposix.h.
8748 (ps_bbox_request): Open the PostScript file in binary mode.
8749 Close the file after processing it.
8750 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8753 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8754 A version of run_pipeline that doesn't use `fork'.
8755 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8756 (system_shell_name, system_shell_dash_c)
8757 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8758 the ugliness of testing DOS/Windows file names for equality, and
8759 support both stock shells and ports of Unix shells.
8761 * src/roff/groff/groff.cc: #include nonposix.h.
8762 (BSHELL): Definition moved to nonposix.h.
8763 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
8764 instead of a literal "-c".
8765 (xbasename): Support file names with several possible slash-type
8766 characters, as given by DIR_SEPS[] in nonposix.h.
8767 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8770 * src/preproc/soelim/soelim.cc: #include nonposix.h.
8771 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8773 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8776 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8778 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8781 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8783 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8784 P_tmpdir is defined, use it instead of the literal "/tmp".
8785 (remove_tmp_files, add_tmp_file): New functions.
8786 (xtmpfile): Record temporary files and register an atexit function
8787 to delete them explicitly, instead of relying on the OS to do
8788 that, which doesn't work on non-Unix systems.
8790 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8791 (search_path::search_path): Use PATH_SEP instead of a literal
8793 (search_path::command_line_dir): Ditto.
8794 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8795 to support non-Posix systems.
8797 * src/libs/libbib/search.cc: #include nonposix.h.
8798 (search_list::add_file): Open the file in binary mode.
8800 * src/libs/libbib/linear.cc: #include nonposix.h.
8801 (file_buffer::load): Remove \r characters preceding \n from the
8804 * src/libs/libbib/index.cc: #include nonposix.h.
8805 (make_index_search_item): Open index_filename in O_BINARY mode.
8806 (index_search_item_iterator::get_tag): Ditto. Remove \r
8807 characters before \n characters.
8808 (index_search_item::check_files): Open files in binary mode.
8809 (index_search_item::munge_filename): Support DOS-style file names
8810 with backslashes and drive letters, use IS_ABSOLUTE.
8812 * src/devices/grops/ps.cc: #include nonposix.h.
8813 (main) [SET_BINARY]: Switch stdout to binary mode.
8815 * src/devices/grolj4/lj4.cc: #include nonposix.h.
8816 (main) [SET_BINARY]: Switch stdout to binary mode.
8818 * src/devices/grolbp/lbp.cc: #include nonposix.h
8819 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8821 * src/devices/grodvi/dvi.cc: #include nonposix.h.
8822 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8824 (main) [SET_BINARY]: Switch stdout to binary mode.
8825 [_MSC_VER]: Remove an explicit call to _setmode.
8827 * src/include/nonposix.h: New file.
8829 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8830 operation when building with DJGPP.
8831 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8832 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8835 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8837 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8838 etc. can include a semi-colon on DOS/Windows.
8839 (depend.temp): Use depend1.temp instead of depend.temp1, to
8840 prevent files from overerwiting each other on 8+3 filesystems.
8842 * gendef.sh (t): Change definition to work with DOS/Windows.
8844 doc/groff.texinfo: Apart of some typo corrections, I also changed
8845 some index entris, to make them more non-ambiguous, and also put
8846 @ignore around some parts that are not yet written, to allow the
8847 Info output be readable.
8849 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
8851 Replaced specific checks for function declarations with a generic
8852 routine taken from GNU bfd.
8854 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8855 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8856 * configure.in: Use it.
8857 * src/devices/grolbp/lbp.cc, src/include/lib.h,
8858 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8859 src/roff/groff/groff.cc: Use it.
8860 * Makefile.in, configure: Updated.
8862 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
8864 * src/devides/grolbp/lbp.h: Removed unused variables.
8866 2000-05-31 Keith Thompson <kst@sdsc.edu>
8868 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8871 2000-05-31 Werner LEMBERG <wl@gnu.org>
8873 * aclocal.m4 (GROFF_SRAND): New function to test the return value
8874 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8875 * configure.in: Use it.
8876 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8877 * configure, Makefile.in: Updated.
8879 * configure.in: Add test for strncasecmp().
8880 * src/include/lib.h: Use it.
8882 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8884 * src/preproc/grn/Makefile.sub: Add MLIB.
8886 2000-05-29 Nix <nix@esperi.demon.co.uk>
8888 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8890 2000-05-29 Werner LEMBERG <wl@gnu.org>
8892 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8894 * PROBLEMS: Small update.
8896 * src/devices/grolbp/lbp.cc: Various small fixes.
8898 2000-05-28 Keith Thompson <kst@sdsc.edu>
8900 * src/roff/nroff/nroff.sh: Fix main loop syntax.
8902 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8904 2000-05-25 Werner LEMBERG <wl@gnu.org>
8906 * man/roff.man: Removed unused macro.
8908 2000-05-24 Werner LEMBERG <wl@gnu.org>
8910 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
8911 This is needed e.g. if you do
8912 `make distclean; ./configure; make dist'.
8914 Version 1.16 released
8915 =====================
8917 2000-05-23 Werner LEMBERG <wl@gnu.org>
8919 Adding font CWI (constant width italic) to devdvi.
8921 * font/devdvi/CWI: New file.
8922 * font/devdvi/generate/Makefile: Add generating rule.
8923 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8924 tmac/tmac.dvi: Use it.
8925 * NEWS: Announce it.
8927 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8928 * font/devlj4/generate/Makefile: Cosmetic changes only.
8930 * man/groff.man: Removed most of the redundant description of
8931 special characters (which is in groff_char.man). Added font
8932 translation CB->CR for devdvi. Other minor fixes.
8934 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8935 (registered) symbols.
8937 2000-05-22 Werner LEMBERG <wl@gnu.org>
8939 * doc/Makefile: Added rule for creating info files.
8941 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
8943 * font/devdvi/generate/Makefile: Fixed dependencies.
8945 * font/devps/*: Regenerated. Heavy changes for Bookman and
8946 NewCentury Schoolbook!
8947 * font/devps/generate/afmname: Will now run with GNU awk.
8948 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8949 * font/devps/generate/Makefile: Cosmetic changes only.
8951 2000-05-21 Werner LEMBERG <wl@gnu.org>
8953 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8954 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
8955 `.SS' now produces a heading with a smaller size than `.SH'.
8956 Completely formatted.
8957 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8959 * man/groff.man: Improved table appearance. Use of `eo' request
8960 to reduce number of doubled backslashes in macro definitions.
8961 Replacing `\e' with `\(rs'. Other minor fixes.
8963 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8964 to have correct line number.
8966 * INSTALL: Small improvement.
8968 2000-05-20 Bernd Warken <bwarken@mayn.de>
8970 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8973 2000-05-19 Bernd Warken <bwarken@mayn.de>
8975 * man/groff.man: Complete update (with a lot of corrections by WL).
8977 2000-05-18 Werner LEMBERG <wl@gnu.org>
8979 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8981 * font/*/*: Implement it.
8982 * man/groff_char.man, NEWS: Document it.
8984 * src/include/unix.h: Removed. It isn't used.
8986 * doc/groff.texinfo: Slight improvements.
8988 2000-05-17 Werner LEMBERG <wl@gnu.org>
8990 * README, win32-diffs: Small fixes and improvements.
8992 2000-05-16 Werner LEMBERG <wl@gnu.org>
8994 * FDL: New file (the Free Documentation License version 1.1).
8996 * doc/groff.texinfo: Added many start-up values for gtroff.
8997 Some structural improvements of the source code.
8999 2000-05-15 Werner LEMBERG <wl@gnu.org>
9001 * src/roff/troff/input.cc: Added small comment about troffrc-end.
9002 * src/roff/troff/troff.man: Added info about troffrc-end.
9004 2000-05-14 Werner LEMBERG <wl@gnu.org>
9006 * Makefile.in (EXTRADIRS): Fix typos.
9007 (dist): Handle deletion of old .tar.gz file correctly.
9008 (DISTDIRS): Include all tty output devices.
9010 * doc/groff.texinfo: Adding more cross references; countless other
9013 2000-05-13 Werner LEMBERG <wl@gnu.org>
9015 * MORE.STUFF: Added Robert Marks's utilities.
9017 2000-05-12 Werner LEMBERG <wl@gnu.org>
9019 Added win32 port contributed by Blake McBride
9020 <blake@florida-software.com>.
9022 * README.WIN32, win32-diffs: New files.
9025 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9026 (tmove, tmove2): Added parentheses to avoid compiler warnings.
9027 (change): Removed unused variables.
9029 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9030 (savebounds): Changed return value from `int' to `void'.
9031 * src/preproc/grn/hdb.cc: Ditto.
9033 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9034 final backslash in comment to avoid compiler warning.
9036 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9038 * doc/groff.texinfo: More fixes.
9040 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
9042 * tmac/tmac.doc: Documentation fix.
9044 2000-05-11 Werner LEMBERG <wl@gnu.org>
9046 * doc/groff.texinfo: Reading the source code shows up a lot of
9047 omissions and incorrect data... More conversion to @Deffn macros.
9049 2000-05-10 Werner LEMBERG <wl@gnu.org>
9051 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9054 * src/roff/troff/request.h: Removing unused `no_break_flag'.
9056 2000-05-09 Werner LEMBERG <wl@gnu.org>
9058 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9061 * doc/groff.texinfo: Extended history section. More conversion to
9062 @Deffn macros. More .tr documentation.
9064 2000-05-07 Werner LEMBERG <wl@gnu.org>
9066 * doc/groff.texinfo: Completed tab section. Added info about
9069 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
9071 * PROBLEMS: Describe configure script fix for OS/390 Unix.
9073 2000-05-05 Werner LEMBERG <wl@gnu.org>
9075 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9077 * NEWS: Document it.
9079 * man/troff.man: Minor optical improvements.
9081 2000-05-03 Werner LEMBERG <wl@gnu.org>
9083 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9085 * font/*/*: Implement it.
9086 * man/groff_char.man, NEWS: Document it.
9088 2000-05-02 Werner LEMBERG <wl@gnu.org>
9090 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9092 * NEWS: Document the three new man pages.
9094 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9095 * configure: Updated.
9097 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9099 2000-05-01 Werner LEMBERG <wl@gnu.org>
9101 Added grap support to grog.
9103 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9104 * src/roff/grog/grog.man: Document it.
9106 * doc/groff.texinfo, NEWS: Add info about grap support.
9108 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9109 (with slight fixes by me).
9111 * tmac/groff_tmac.man: New file documenting tmac mechanism.
9112 * tmac/Makefile.sub: Add groff_tmac.man.
9113 * man/roff.man: New file giving overview of roff system.
9114 * man/troff.man: A short reference of troff.
9115 * man/Makefile.sub: Add roff.man and troff.man.
9117 2000-04-30 Werner LEMBERG <wl@gnu.org>
9119 Added grap support to groff.
9121 * src/roff/groff/groff.cc: Implement it.
9122 * src/roff/groff/groff.man: Document it.
9124 * src/devices/grotty/grotty.man: Add cp1047 device.
9125 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9127 * src/roff/groff/groff.man: Ditto.
9128 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9129 * doc/groff.texinfo: Ditto.
9131 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9134 2000-04-29 Werner LEMBERG <wl@gnu.org>
9136 * man/groff_char.man: Add `pc' glyph.
9137 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9138 * tmac/tmac.tty: Add `pc' glyph.
9139 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
9140 we use cp1047 output device.
9142 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9143 there are still hardcoded latin1->unicode values in utf8's font
9145 * configure: Updated.
9146 * NEWS: Minor clarification. Updated.
9148 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
9151 2000-04-28 Werner LEMBERG <wl@gnu.org>
9153 Adding EBCDIC code page 1047.
9155 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9156 font/devcp1047/DESC.proto: New files.
9158 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9159 either ascii/latin1 or cp1047.
9160 * Makefile.in: Use it.
9161 * configure: Updated.
9163 Replacing and/or adding `md' (mathdot) glyph with `pc'
9164 (periodcentered) in all text fonts.
9166 * font/*/*: Change it.
9168 2000-04-27 Werner LEMBERG <wl@gnu.org>
9170 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9172 * configure.in: Add check for strings.h.
9173 * src/include/driver.h: Use HAVE_STRINGS_H.
9174 * src/devices/grolbp/lpb.cc: Remove string.h.
9176 * src/include/groff-getopt.h: New file. It will be used instead of
9177 getopt.h (to be included in lib.h) to avoid endless problems with
9178 picky C++ compilers.
9179 * src/include/lib.h: Use groff-getopt.h.
9180 * src/include/Makefile.sub: Updated.
9182 * configure: Updated.
9183 * Makefile.in: Updated.
9185 * NEWS: Mention EBCDIC support.
9187 2000-04-26 Werner LEMBERG <wl@gnu.org>
9189 * TODO: Some additions.
9191 2000-04-25 Werner LEMBERG <wl@gnu.org>
9193 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9196 2000-04-23 Werner LEMBERG <wl@gnu.org>
9198 * src/roff/troff/troff.man: Minor fixes.
9200 2000-04-22 Werner LEMBERG <wl@gnu.org>
9202 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9203 `.T' string register and the incompatible definition of the `.T'
9204 number register (compared to Unix troff).
9206 * man/groff_char.man: Add some missing characters.
9207 * font/devutf8/NOTES: Update.
9209 2000-04-21 Werner LEMBERG <wl@gnu.org>
9211 * src/include/htmlindicate.h, src/include/lib.h,
9212 src/include/posix.h: Fix copyright.
9214 * src/include/Makefile.sub: Update.
9216 2000-04-20 Werner LEMBERG <wl@gnu.org>
9218 * src/roff/troff/input.cc (input_char_description): Removing
9219 superfluous space char.
9221 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9223 * doc/groff.texinfo: Document EBCDIC.
9225 2000-04-19 Werner LEMBERG <wl@gnu.org>
9227 Introducing `shc' as the glyph name for the soft hyphen character.
9229 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9230 font/devlatin1/R.proto: Use it.
9234 2000-04-18 Werner LEMBERG <wl@gnu.org>
9236 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9237 dependency on ASCII order.
9239 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
9241 * src/libs/libgroff/illegal.c: Added EBCDIC table.
9242 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9244 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9245 to increase portability.
9247 2000-04-15 Werner LEMBERG <wl@gnu.org>
9249 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9250 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9251 the generic `\n' if under OS/390 Unix.
9253 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9255 * configure: Regenerated.
9257 2000-04-14 Werner LEMBERG <wl@gnu.org>
9259 * doc/groff.texinfo: More conversions to @Deffn.
9261 2000-04-12 Werner LEMBERG <wl@gnu.org>
9263 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9266 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9268 2000-04-10 Werner LEMBERG <wl@gnu.org>
9270 * doc/groff.texinfo: More conversions to @Deffn.
9272 2000-04-08 Werner LEMBERG <wl@gnu.org>
9274 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9275 Updated to latest version (glibc 2.1.3).
9277 2000-04-07 Werner LEMBERG <wl@gnu.org>
9279 * doc/Makefile (clean): Include more index files.
9280 Add rule texinfo->dvi.
9282 2000-04-05 Werner LEMBERG <wl@gnu.org>
9284 * doc/groff.texinfo: Added new index `op' for operators. More
9285 info on end of sentence characters. More use of @Deffn.
9287 2000-03-30 Werner LEMBERG <wl@gnu.org>
9289 * */*.man: Adding a note that a whitespace can be inserted between
9290 a command line option and its parameter -- we are using GNU getopt.
9292 * src/roff/groff/groff.man: Add example of `-m mandoc'.
9294 2000-03-28 Werner LEMBERG <wl@gnu.org>
9296 Correct anachronism of calling the man macro file with `-man'
9297 instead of `-m man' etc.
9299 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9300 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9301 load tmac.<package>.
9303 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
9307 * doc/groff.texinfo: Updated.
9309 * tmac/groff_man.man: Copyright added.
9311 2000-03-27 Werner LEMBERG <wl@gnu.org>
9313 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9314 typeset the request resp. escape name with a tt font -- due to a
9315 bug in texinfo.tex it is necessary to use the `-e' switch with
9318 Improving info about usage of groff units.
9322 2000-03-20 Werner LEMBERG <wl@gnu.org>
9324 * doc/groff.texinfo: Added section about man macro package
9325 (I've basically taken groff_man.man). Introducing new indices `ma'
9326 for macros/strings and `gl' for glyph names. Other minor fixes.
9328 * tmac/groff_man.man: Fixed some typos.
9330 2000-03-19 Werner LEMBERG <wl@gnu.org>
9332 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9335 * doc/texinfo.tex: New file.
9337 2000-03-18 Werner LEMBERG <wl@gnu.org>
9339 * doc/groff.texinfo: Improved section on number registers. Other
9342 2000-03-16 Werner LEMBERG <wl@gnu.org>
9344 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
9347 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9348 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9349 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9350 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9352 * src/preproc/grn/grn.man: Better synopsis; added copyright.
9354 * src/roff/grog/grog.man: Updated copyright date.
9356 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
9358 * configure.in: Added test for strdup.
9360 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9363 Replaced dynamic allocation of arrays `[...]' with `new' operator.
9367 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
9369 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9371 2000-03-11 Werner LEMBERG <wl@gnu.org>
9373 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9375 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9376 * src/include/lib.h: Remove some spaces.
9378 2000-03-10 Werner LEMBERG <wl@gnu.org>
9380 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9381 initializers from arguments (some compilers don't like this).
9383 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
9385 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9386 used by pic and eqn to tell grohtml where the graphic regions start
9388 * src/libs/libgroff/Makefile.sub: Use it.
9389 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9390 graphic_start() and graphic_end() from htmlindicate.cc.
9392 2000-03-09 Werner LEMBERG <wl@gnu.org>
9394 * tmac/tmac.safer: Will now work correctly in compatibility mode.
9395 * tmac/groff_man.man: More fixes.
9397 2000-03-08 Werner LEMBERG <wl@gnu.org>
9399 * doc/Makefile: Added texput.log to the `clean' target.
9400 * doc/groff.texinfo: Added info about delimiters for escapes.
9402 2000-03-08 Bernd Warken <bwarken@mayn.de>
9404 * src/preproc/pic/pic.man: Add info on conversion of pic images to
9405 other graphic formats.
9407 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
9409 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9410 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9411 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9414 2000-03-07 Werner LEMBERG <wl@gnu.org>
9416 * doc/groff.texinfo: Spelling fixes.
9418 2000-03-06 Werner LEMBERG <wl@gnu.org>
9420 * tmac/groff_man.man: Completely revised to cover everything in
9423 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9424 Other minor fixings.
9425 * src/roff/troff/env.cc (environment_copy): Improve error message and
9427 * src/roff/troff/TODO: Updated.
9429 * doc/Makefile: Bug fixes -- this is still provisional, though...
9431 * tmac/eqnrc: Small fixes.
9433 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
9435 Adding a request `evc' to copy environments.
9437 * src/roff/troff/env.cc (environment::copy, environment_copy):
9439 * src/roff/troff/env.h: Add prototype.
9441 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
9443 Adding strsep() -- Solaris 8 doesn't have it.
9445 * configure.in: Test it.
9446 * src/devices/grolbp/lbp.cc: Add code.
9448 2000-03-05 Werner LEMBERG <wl@gnu.org>
9450 * src/roff/troff/div.cc (macro_diversion::output,
9451 top_level_diversion::output): Fixing an incompatibility with
9452 original troff: \x'0' updates the .a register also. Thanks to
9453 <Andries.Brouwer@cwi.nl> for pointing this out.
9454 * doc/groff.texinfo: Document it.
9456 * Makefile.in: Create Makefile.dep if necessary before calling the
9457 submake process to avoid warning about nonexistent file.
9459 * NEWS, PROJECTS: Updated.
9461 2000-03-04 Werner LEMBERG <wl@gnu.org>
9463 * tmac/troffrc: Add tmac.lbp.
9465 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
9467 * tmac/tmac.lbp: New file.
9468 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9471 2000-03-03 Werner LEMBERG <wl@gnu.org>
9473 * Makefile.in: Fixing $(subdir).
9475 * README, NEWS: Small fixes.
9477 * test-groff: Adding path to grolbp.
9479 * configure.in: The (new) file src/xditview/Imakefile.in will be
9480 also configured -- it is now possible to build gxditview in a
9481 directory different from $srcdir.
9483 2000-03-02 Blake McBride <blake@florida-software.com>
9485 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9487 * MORE.STUFF: Added website of bell labs and info about plot2dev.
9489 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
9491 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9494 2000-02-29 Werner LEMBERG <wl@gnu.org>
9496 Adding GNU getopt to the groff distribution.
9498 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9500 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9501 * aclocal.a4: Remove GROFF_GETOPT function.
9502 * configure.in, Makefile.in, PROBLEMS: Update.
9503 * src/include/lib.h: Replace getopt tests with getopt.h.
9504 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9506 * doc/groff.texinfo: Further checking/updating. Adding more index
9509 * man/groff_out.man: Fix nroff mode activation (for emacs).
9510 * man/groff_font.man: Add missing ligature.
9512 2000-02-28 Werner LEMBERG <wl@gnu.org>
9514 * doc/groff.texinfo: Further checking/updating. Adding more index
9517 * src/devices/grolbp/grolbp.man: Added a comment line at the
9518 beginning of the file (similar to shell scripts) which indicates
9519 that `tbl' should be used as a preprocessor.
9521 2000-02-27 Blake McBride <blake@florida-software.com>
9523 Adapting groff to MS Visual C++ 6.0 compiler (tested with
9524 Windows NT 4.0). Uses _MSC_VER define where necessary.
9526 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9527 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9528 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9529 src/include/lib.h, src/libs/libgroff/errarg.cc,
9530 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9531 src/preproc/refer/label.y, src/preproc/refer/label.cc,
9532 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9533 src/roff/troff/div.cc, src/roff/troff/env.cc,
9534 src/roff/troff/input.cc, src/roff/troff/node.cc,
9535 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9536 if_to_a() to avoid name clashes.
9537 * src/include/posix.h: Don't use unistd.h.
9538 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9539 clause for integrating non-Unix xtmpfile() code.
9540 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9541 structure; use "rt" for popen() in pipe_source(); add getpid()
9543 * src/roff/troff/node.cc: Use special versions of popen() in
9544 real_output_file() and pclose() in ~real_output_file().
9546 2000-02-27 Werner LEMBERG <wl@gnu.org>
9548 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9549 LBP-8 series laser printers). This code has been contributed by
9550 Francisco Andrés Verdú <pandres@dragonet.es>.
9552 * src/devices/grolbp/*: The grolbp output device.
9553 * font/devlpb/*: The font description files.
9554 * Makefile.in: Add grolpb and devlbp subdirectories.
9556 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9557 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9560 * doc/groff.texinfo: Further checking/updating. Adding more index
9565 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9567 * man/groff_font.man: Adding info about obsolete DESC keywords.
9568 * src/devices/grolj4/grolj4.man: Documenting additional DESC
9571 2000-02-26 Werner LEMBERG <wl@gnu.org>
9573 * src/preproc/grn/grn.man: Added info about the gremlin file format
9574 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9576 2000-02-25 Werner LEMBERG <wl@gnu.org>
9578 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9579 friends to be non-integer.
9581 * src/preproc/grn/grn.man: Document it.
9583 * doc/groff.texinfo: Further checking/updating. Adding more index
9586 2000-02-24 Werner LEMBERG <wl@gnu.org>
9588 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9589 line thicknesses to be integer multiples of this value.
9591 * src/preproc/grn/grn.man: Commenting out the -s option -- the
9592 corresponding code doesn't work (yet).
9594 * doc/groff.texinfo: Further checking/updating. Adding more index
9597 2000-02-23 Werner LEMBERG <wl@gnu.org>
9599 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9600 specify line thickness instead of base units. The new default
9601 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9602 thick lines respectively.
9604 Removed unused variable `prevval'.
9606 * src/preproc/grn/grn.man: Updated.
9608 2000-02-22 Werner LEMBERG <wl@gnu.org>
9610 * src/preproc/grn/main.cc: Slight formatting.
9612 * src/roff/groff/groff.man: Formatting fix.
9613 * src/preproc/grn/grn.man: Ditto.
9615 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9617 * doc/groff.texinfo: Further checking/updating.
9619 2000-02-21 Werner LEMBERG <wl@gnu.org>
9621 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9623 * test-groff: Added grn subdir to path.
9625 * doc/groff.texinfo: Some restructing and other small improvements.
9627 * src/roff/groff/groff.cc (help): Fixed info string.
9629 2000-02-20 Werner LEMBERG <wl@gnu.org>
9631 * doc/meref.me: Fix description of .GS request.
9633 * src/roff/troff/troff.man: Fixing typo.
9635 Adding the `grn' preprocessor for gremlin graphic files.
9637 * src/preproc/grn/*: This is the Berkeley distribution written by
9638 David Slattengren and Barry Roitblat, adapted to groff by Daniel
9639 Senderowicz and Werner Lemberg.
9641 * doc/grnexampl.{me,g}: A sample for grn.
9643 * Makefile.in: Added subdirectory entry for grn.
9645 * src/roff/groff/groff.cc: Added support for grn. It can be now
9646 called with the switch `-g'.
9648 * src/roff/groff/groff.man: Updated.
9650 * src/roff/grog/grog.{man,pl,sh}: Updated.
9654 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
9656 * src/include/lib.h: Added xtmptemplate and made xtmpfile
9657 parametrically polymorphic.
9659 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9660 and the alterations to xtmpfile.
9661 xtmpfile can be requested to return the filename created
9662 and asked not to unlink the temp file. The default behaviour
9663 if parameters are absent is exactly the same as before.
9665 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
9667 A new request `length' is available which returns the length of a
9668 string in a number register:
9670 * src/roff/troff/input.cc (length_macro): Implement it.
9671 * src/roff/troff/input.cc (init_input_requests): Register it.
9673 2000-02-11 Werner LEMBERG <wl@gnu.org>
9675 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9676 of the `substring' request.
9678 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9681 * src/roff/troff/TODO, NEWS: Updated.
9683 2000-02-09 Werner LEMBERG <wl@gnu.org>
9685 * src/roff/groff/groff.man: Added an example.
9687 2000-02-06 Werner LEMBERG <wl@gnu.org>
9689 I've considerably modified the directory structure of the
9690 distribution to get a more vertical layout. For example, the number
9691 of top level directories has been reduced from 42 to 6.
9693 As a consequence, many changes, especially to the makefiles, were
9696 * The makefile variables `top_builddir' and `top_srcdir' have been
9697 introduced. Virtually all relative paths have been replaced with
9698 absolute ones using these two variables.
9700 * Dependencies (in the files `Makefile.dep') are no longer part of
9701 the distribution. Instead, they are created during a `make install'
9702 in the build directory.
9704 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9705 make `top_srcdir' and `top_builddir' absolute.
9709 * Man pages now depend on the files `VERSION' and `REVISION'.
9711 * The added shell script `mkinstalldirs' will replace `mkdir' in
9714 * VERSION: Version number increased to 1.16.
9716 2000-02-04 Werner LEMBERG <wl@gnu.org>
9718 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9720 * Makefile.in: Removed $(tmac_m) since it is no longer needed
9721 (after an update of the mm stuff).
9723 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9725 2000-02-03 Werner LEMBERG <wl@gnu.org>
9727 The .psbb request will now also accept Mac PS images (i.e. using LF
9728 as the EOL character).
9730 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9731 (with slight modifications).
9732 * troff/input.cc (do_ps_file): Use it.
9734 * test-groff: Add grohtml and grolj4 output devices to PATH.
9736 2000-01-30 Werner LEMBERG <wl@gnu.org>
9738 * NEWS, MORE.STUFF: Updated.
9740 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
9742 Add the `srand' command to pic.
9744 * pic/lex.cc, pic/pic.y: Implement it.
9745 * pic/pic.man: Document it.
9746 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9748 2000-01-30 Werner LEMBERG <wl@gnu.org>
9750 Add a new request `.psbb'. This does exactly what the external
9751 program psbb did. It scans a PostScript image file for a
9752 %%BoundingBox comment and extracts the bounding box values (in
9753 PostScript units) which are then stored in the four new (read-only)
9754 number registers `llx', `lly', `urx', and `ury'.
9756 This will allow the usage of the .PSPIC macro without worrying
9757 about unsafe behaviour of groff, i.e., it will work without the
9758 `-U' switch of groff.
9760 * troff/input.cc: Implement it.
9761 * tmac/tmac.pspic: Use it.
9762 * troff/troff.man, grops/grops.man, NEWS: Document it.
9763 * psbb/*, Makefile.in: Remove it since it is no longer needed.
9765 This is bloody C code simply adapted from psbb.c! Any improvements
9768 2000-01-29 Werner LEMBERG <wl@gnu.org>
9770 * man/groff_font.man: Minor clarifications.
9774 2000-01-28 Werner LEMBERG <wl@gnu.org>
9776 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9778 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
9780 * man/groff_font.man: Brought up to date regarding tcommand
9782 * libgroff/font.cc: Handle everything after `--' as a comment
9784 * devps/*: Added comment delimiter inside devps font files.
9786 2000-01-28 Werner LEMBERG <wl@gnu.org>
9788 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9789 \fC...\fP (which now works as expected).
9791 * troff/troff.man: Fix typo.
9793 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
9795 Completed the pass_filenames implementation in troff.
9797 * libdriver/input.cc: Will read the new `F' tcommand.
9798 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9799 * troff/input.cc: Use it.
9801 2000-01-26 Werner LEMBERG <wl@gnu.org>
9803 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
9804 font will now be updated even if an invalid font is selected.
9806 2000-01-24 Werner LEMBERG <wl@gnu.org>
9808 * doc/homepage.ms: Updated for new tmac.arkup.
9810 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9812 * tmac/tmac.arkup: Cleanup.
9814 Added `\&' to .HTML macro to `leave vertical mode', so to say.
9816 Removed obsolete .LINK macro completely.
9818 The macros .URL, .FTP, and .MAILTO now accept a third argument which
9819 will be immediately appended to the second argument (to be used with
9820 punctuation, for example).
9822 Disabled .CDFTP macro temporarily for security reasons.
9824 * tmac/groff_markup.man: Complete revision for latest changes in
9825 tmac.arkup -- note that it does not yet format correctly with
9828 2000-01-23 Bruno Haible <haible@clisp.cons.org>
9830 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9831 * devutf8/R.proto: Add mappings for wp, lh, rh.
9832 * devutf8/NOTES: Updated.
9834 2000-01-23 Werner LEMBERG <wl@gnu.org>
9836 * doc/groff.texinfo: Updated version/copyright info.
9838 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
9840 Added support for two new directives in device descriptions:
9841 `pass_filenames' (to pass the input file name to the output device)
9842 and `use_charnames_in_special' (to support e.g. accented characters
9843 in the `X' request).
9845 * include/font.h, troff/charinfo.h: Declare it.
9847 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9849 * devhtml/DESC: Use it.
9851 * troff/input.cc: New function encoded_char.
9853 * troff/token.h: Add test for `specialness'.
9855 2000-01-21 Werner LEMBERG <wl@gnu.org>
9857 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9858 mistake from the list of files to be installed.
9860 2000-01-18 Werner LEMBERG <wl@gnu.org>
9862 * README: Added info how to apply patches.
9864 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
9866 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
9868 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
9870 * troff/input.cc: Add support for troffrc-end.
9872 * tbl/main.cc: Altered to issue table-start and table-end special
9873 characters if using the html device.
9875 * devhtml/*: Modified font files to incorporate html encoding of
9878 * tmac/groff_markup.man: New file documenting tmac.arkup.
9880 * tmac/troffrc-end: New file. This is invoked after all user
9881 specified macros. Currently used by the html device to include
9882 tmac.html. Thus no need for users to specify -mhtml anymore.
9884 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9885 (MAN7): Add groff_markup.man.
9887 * tmac/tmac.an, tmac/tmac.html: Small html updates.
9889 * tmac/troffrc: tmac.arkup will now be called for the html device.
9891 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9892 extra device specific information about fonts.
9894 * doc/homepage.ms: New file. It is an example how an HTML home page
9895 could look like with grohtml.
9897 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
9899 2000-01-12 Bruno Haible <haible@clisp.cons.org>
9901 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
9904 * devutf8/NOTES: Updated.
9906 2000-01-08 Bruno Haible <haible@clisp.cons.org>
9908 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9909 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9910 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9911 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9912 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9913 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9914 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9915 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9918 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9920 2000-01-12 Fabrizio Polacco <fab@prosa.it>
9922 grolj4: Paper size will be searched case-insensitively.
9924 * include/lib.h: Add check for strcasecmp().
9925 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9926 * configure.in: Check for strcasecmp().
9928 2000-01-11 Werner LEMBERG <wl@gnu.org>
9930 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9933 2000-01-10 Werner LEMBERG <wl@gnu.org>
9935 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9938 Add a new read-only register, `.Y', which contains the groff
9941 * troff/input.cc (init_input_requests): Define it.
9942 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9943 * doc/groff.texinfo, troff/troff.man: Document it.
9945 * libgroff/Makefile.sub (version.cc): Add definition of
9946 `Version_string[]', consisting of `<major>.<minor>.<revision>'
9947 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9948 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9949 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9950 troff/input.cc, pfbtops/pfbtops.c: Use it.
9952 2000-01-10 Fabrizio Polacco <fab@prosa.it>
9954 Add a revision scheme to the groff package.
9956 * REVISION: New file.
9957 * libgroff/Makefile.sub (version.cc): Use it to define
9958 `revision_string[]'.
9959 * grops/psrm.cc: Use revision_string (converted to an unsigned
9960 integer) in constructor of resource_manager.
9962 2000-01-10 Bruno Haible <haible@clisp.cons.org>
9964 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9966 * Makefile.in (DEVDIRS): Add devutf8.
9967 * grotty/tty.cc: Include device.h.
9968 (glyph): Change type of `code' to `unsigned int'.
9969 (tty_printer): New field is_utf8. Constructor takes device argument.
9970 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9971 (tty_printer::add_char): Change type of first arg to `unsigned int'.
9972 (tty_printer::put_char): New function.
9973 (tty_printer::end_page): Use put_char() instead of ::putchar().
9974 (make_printer): Pass device to tty_printer constructor.
9975 * nroff.sh: Determine default device by calling 'locale'. As a
9976 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9977 Recognize UTF-8 locales.
9978 * tmac/eqnrc: Recognize utf8 like latin1.
9979 * tmac/troffrc: Device utf8 needs tmac.tty.
9981 2000-01-07 Werner LEMBERG <wl@gnu.org>
9983 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9985 2000-01-07 Paul Eggert <eggert@twinsun.com>
9987 Add a new predefined writeable number register, `year',
9988 which contains the current year.
9990 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9991 * tmac/tmac.s: Use it.
9992 * troff/input.cc (init_registers): Initialize it.
9994 2000-01-06 Werner LEMBERG <wl@gnu.org>
9996 * PROBLEMS: Fixed typo.
9998 2000-01-04 Paul Eggert <eggert@twinsun.com>
10000 * PROBLEMS: Add Y2k advice for the yr number register.
10002 2000-01-03 Paul Eggert <eggert@twinsun.com>
10004 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10006 2000-01-02 Werner LEMBERG <wl@gnu.org>
10008 * tmac/tmac.arkup: Slight modification of macros to provide better
10009 appearance for non-HTML formats.
10011 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
10013 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10014 does not automatically translate to malloc(n) on all OSes
10015 (e.g., SunOS) so do it explicitly. Also, check the returned
10018 2000-01-01 Werner LEMBERG <wl@gnu.org>
10020 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
10022 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10023 expects this variable
10025 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
10027 * doc/Makefile: Added instructions to create HTML and text
10028 versions of some files.
10030 1999-12-31 Werner LEMBERG <wl@gnu.org>
10032 * Updated INSTALL.gen.
10034 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10035 better resp. correctly with non-HTML devices.
10037 Version 1.15 released
10038 =====================
10040 1999-12-28 Werner LEMBERG <wl@gnu.org>
10042 * NEWS, VERSION: Changed to 1.15
10044 1999-12-27 Paul Eggert <eggert@twinsun.com>
10046 * nroff/nroff.man: -S is safer, not safe.
10048 * groff/groff.cc (main): Use `safer', not `safe', in variable
10049 names. This does not change the behavior.
10051 * troff/input.cc (main): Likewise.
10053 * nroff/nroff.sh: Likewise.
10055 * troff/input.cc (prepend_string): New function.
10056 (main): Prepend -msafer, so that we check macro libraries for
10059 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10061 Version 1.14 released
10062 =====================
10064 1999-12-26 Werner LEMBERG <wl@gnu.org>
10066 * NEWS, VERSION: Changed to 1.14.
10068 1999-12-24 Werner LEMBERG <wl@gnu.org>
10070 * refer/refer.cc: Fixing the last fix.
10072 Version 1.13 released
10073 =====================
10075 1999-12-23 Werner LEMBERG <wl@gnu.org>
10077 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10082 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10084 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10085 document conventions, the version number must be a real.
10087 Version 1.12.1 released
10088 =======================
10090 1999-12-22 Werner LEMBERG <wl@gnu.org>
10092 * VERSION: Changed to 1.12.1.
10094 1999-12-22 Alan Rooks <arooks@istar.ca>
10096 * refer/refer.cc (do_file): Slight modification to satisfy the
10097 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10100 1999-12-20 Werner LEMBERG <wl@gnu.org>
10102 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10105 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10106 list of unsafe requests.
10108 * pic/pic.man: Fixed a typo.
10110 * man/groff_out.man: Fixed a typo.
10112 1999-12-18 Werner LEMBERG <wl@gnu.org>
10114 * Makefile.in: Doc fixes.
10116 1999-12-17 Fabrizio Polacco <fab@prosa.it>
10118 * groff/groff.cc: Missing `U' option added to getopt().
10120 * troff/troff.man: Missing `U' option added to synopsis.
10122 Version 1.12 released
10123 =====================
10125 1999-12-14 Werner LEMBERG <wl@gnu.org>
10127 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10130 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10131 with the more appropriate terms `safer' and `unsafe'.
10133 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10134 sys_nerr and sys_errlist[].
10136 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10138 * pic/pic.y, pic/pic.cc: Added check for fmod().
10140 1999-12-13 Werner LEMBERG <wl@gnu.org>
10142 * VERSION: Changed to 1.12.
10144 Here some patches from various sources; most of them taken from
10145 the Debian distribution.
10147 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10148 tmac/Makefile.sub: New files copied directly from the NetBSD
10149 distribution. Probably, some additional adaptation later on is
10152 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10153 of unsafe requests.
10155 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10156 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10157 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
10158 (`-S') is now the default.
10160 * README, NEWS: Updated.
10162 1999-12-09 Werner LEMBERG <wl@gnu.org>
10164 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10166 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10168 1999-12-06 Werner LEMBERG <wl@gnu.org>
10170 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10171 grief than relief today. Additionally, it is against the GNU
10174 * configure: Recreated.
10176 1999-12-05 Werner LEMBERG <wl@gnu.org>
10178 * configure.in: Added GROFF_LIBM.
10180 * configure: Recreated.
10182 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10185 * Makefile.in: Added definition of $(LIBM).
10187 * Makefile.comm (LIBM): Removed.
10189 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10191 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
10193 * doc/Makefile: Added rule for generation pic.html.
10195 (clean): Files produced by grohtml will be removed also.
10197 * doc/pic.ms: Small fix.
10199 * tmac/tmac.html: Fixed suppression of headers.
10201 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
10203 * tmac/tmac.html: Fixing horizontal arrows.
10205 Turning off hyphenation.
10207 * tmac/tmac.an: Improved support for grohtml; better indentation,
10208 no footers/headers.
10210 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
10212 * tmac/tmac.arkup: Added CDFTP macro
10214 * tmac/tmac.html: All headers are turned off for ms, me, and mm
10217 * tmac/troffrc: Some additions for HTML stuff.
10219 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
10221 * tmac/tmac.html: Small changes.
10223 1999-09-26 Werner LEMBERG <wl@gnu.org>
10225 * doc/groff.texinfo: Minor fixes.
10227 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
10229 * devhtml/TR: Changed spacewidth to 3.
10231 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10233 * tmac/tmac.html: Moved markup macros to tmap.arkup.
10235 * tmac/tmac.arkup: New file.
10237 * grohtml/ChangeLog: New file.
10239 1999-09-16 Werner LEMBERG <wl@gnu.org>
10241 * doc/groff.texinfo (Common Features): Added Copying chapter.
10242 Changed format to @smallbook.
10244 1999-09-15 Werner LEMBERG <wl@gnu.org>
10246 * NEWS: Added info about groff.texinfo.
10248 * doc/groff.texinfo: Will now compile (using texi2dvi) without
10251 1999-09-14 Werner LEMBERG <wl@gnu.org>
10253 * groff/groff.man: More updates.
10255 1999-09-13 Werner LEMBERG <wl@gnu.org>
10257 * doc/groff.texinfo: New file. This manual is still very
10258 rudimentary. It has been originally contributed by Trent
10259 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10262 * INSTALL: Added information about the `doc' subdir
10264 * troff/troff.man: Minor fixes.
10266 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10269 * troff/input.cc (usage): Added missing `-ffam' to usage message.
10271 * Makefile.in (dist): groff-$(version).tar.gz must be removed
10272 also, otherwise it is included itself in another call of `make
10275 * groff/groff.cc (synopsis): Removed superfluous space.
10277 * PROJECTS, PROBLEMS, NEWS: Updated.
10279 * VERSION: Updated to 1.12beta.
10281 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
10283 * README: Updated: Included documentation about CVS repository,
10284 mailing lists, and daily snapshots.
10286 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10288 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
10290 * tmac/tmac.an: If the tag didn't fit into the space that the
10291 macro `TP' specifies, the rest of the tag went into the space for
10294 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
10296 * grolj4/lj4.cc: Added duplex printing (option `-d').
10298 * grolj4/grolj4.man: Document duplex printing.
10300 1999-09-12 Werner LEMBERG <wl@gnu.org>
10302 * doc/Makefile (pic.ps): Fixed rule which caused problems with
10303 non-GNUish sed programs.
10305 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10308 * configure.in (LIBS): Added `-lc'
10310 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10312 * pic/tex.cc (solid_arc): Casting M_PI to double.
10314 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10316 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10317 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10318 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10320 * groff/groff_man.man: New file. This manual page was originally
10321 written for the Debian GNU/Linux system by Susan G. Kleinmann
10324 * eqn/list.cc (list_box::compute_metrics,
10325 list_box::compute_sublist_width): Removed variable declaration to
10326 avoid shadowing warnings.
10328 * grops/psrm.cc (resource_manager::process_file): Ditto.
10330 * tfmtodit/tfmtodit.cc (main): Ditto.
10332 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10333 to avoid shadowing warnings.
10335 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10336 shadowing loop variable.
10338 * groff/groff.man, troff/troff.man: Added doc about grohtml.
10340 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
10342 New grohtml frontend to convert groff input to html.
10344 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10346 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10348 * tmac/eqnrc: Added html device.
10350 * tmac/tmac.html: New file.
10352 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10353 (troff_output::start_picture, troff_output::finish_picture),
10354 tbl/main.cc (process_input_file):
10355 Surrounded output with `graphics_start' and `graphics_end' so that
10356 the html driver can identify non-text portions.
10358 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10359 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10360 grotty/tty.ps (tty_printer::set_char): Additional parameter
10363 * include/printer.h: Class printer: New function
10364 set_char_and_width; new variables (is_char_named, is_named_set,
10365 named_command, named_char_s, named_char_n) to hold information
10366 about named characters -- needed by the html driver.
10368 * libdriver/printer.cc (printer::set_ascii_char,
10369 printer::set_special_char): Use set_char_and_width.
10371 * devhtml/*: New device files for html driver.
10373 * grohtml/*: New driver grohtml.
10375 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
10377 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10380 1999-09-11 Luke Mewburn <lukem@netbsd.org>
10382 * libgroff/string.cc (search): Small fix to test against NULL
10385 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
10387 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10388 \b'abc') were stacked in reverse order when processed in a
10391 * troff/node.h: Added `*last' to struct `node' to make the above
10394 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10395 The default scale for the 'f' and 't' graphics functions were 'm'
10396 rather than 'u' (i.e., no scaling).
10398 1999-09-11 Peter Miller <peterm@jna.com.au>
10400 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10401 do_file), soelim/soelim.man: Added `-I file' option to soelim,
10402 defining include paths.
10404 * soelim/soelim.cc (include_path_append): New function.
10406 1999-09-11 Larry Jones <larry.jones@sdrc.com>
10408 * tbl/main.cc (process_options): Unix (at least Documenter's
10409 Workbench) tbl allows arbitrary non-alpha characters between
10412 1999-09-11 Paul Eggert <eggert@twinsun.com>
10414 Y2k fixes. Don't assume that the current year precedes 2000.
10416 * doc/meref.me: Add \n(y2, \n(y4.
10418 * tmac/doc-common (Yr): New number register.
10419 (Dd): Don't assume current year precedes 2000.
10421 * tmac/tmac.e (td): Likewise.
10422 (y2, y4): New number registers.
10424 * pic/pic.man: Update reference for pic paper to May, 1991
10427 1999-09-11 Werner LEMBERG <wl@gnu.org>
10429 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10430 Removed quotation marks which prevented correct expansion of
10433 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10435 1999-09-10 Werner LEMBERG <wl@gnu.org>
10437 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10440 * Removed configure.old.
10442 1999-08-31 Werner LEMBERG <wl@gnu.org>
10444 * VERSION: Updated to 1.11.1
10446 1999-05-27 Werner LEMBERG <wl@gnu.org>
10448 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10450 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10451 added quotations around $(tmac_wrap) to avoid syntax error if
10454 * configure: Newly generated using autoconf 2.13.
10456 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10458 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
10460 * README, PROJECTS, NEWS, INSTALL, VERSION,
10461 doc/Makefile. doc/pic.ms, groff/groff.man:
10462 Prepare for 1.11 release. No code changes.
10463 Documentation for pic added (doc/pic.ms).
10465 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
10467 * Version 1.10 released.
10469 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
10471 * afmtodit/afmtodit.pl: Avoid comment on first line.
10473 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
10475 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10476 * configure.in: Call it.
10478 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10479 (distfiles): Doesn't depend on config.log or config.cache.
10481 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
10483 * grog/grog.sh: Use print "" rather than print in END rule.
10485 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
10487 * tbl/main.cc (process_data): Don't give error for excess data
10488 entries that are comments.
10490 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
10492 * tbl/main.cc (process_data): Fix case where new for-scope rules
10493 silently change meaning of code.
10495 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
10497 * troff/env.cc (hyphenate): Loop over all consecutive sequences
10498 of non-zero hyphenation codes.
10500 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
10502 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10504 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
10506 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10508 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
10510 * tmac/tmac.andoc: Make it work in compatibility mode.
10512 * refer/token.h (token_info::is_range_sep): New function.
10513 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10514 * refer/ref.cc (reference::output): More sophisticated check for
10517 * devps/prologue.ps (MANUAL): New procedure.
10518 * grops/ps.cc (main): New -m option.
10519 (usage): Include -m.
10520 (ps_printer::~ps_printer): Implement -m.
10522 * aclocal.m4 (GROFF_G): New macro.
10523 * configure.in: Call it.
10524 * Makefile.in (g): Provided by configure.
10526 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10528 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
10531 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10532 (tmac_m, tmac_s): Deleted.
10533 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10534 tmac_s_prefix): New variables.
10535 (MDEFINES): Change accordingly.
10536 * Makefile.comm (.man.n): Use new TMAC_* variables.
10537 * configure.in (GROFF_TMAC): Call.
10538 * aclocal.m4 (GROFF_TMAC): Define.
10539 * tmac/Makefile.sub (stamp_wrap): New target.
10540 (install_data, uninstall_sub): Handle macro wrapping.
10542 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
10544 * tbl/main.cc (main): Ignore -T option.
10546 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
10548 * devlj4/generate/special.map: Add definition of \(nb.
10550 * tmac/tmac.dvi: Add definition of \(nb.
10552 * troff/dictionary.c (dictionary::dictionary): association::v gets
10553 initialized by association::association.
10555 * tmac/Makefile.sub: Avoid using temporary files when installing.
10557 * troff/env.cc (environment::set_font): Make bad font number a
10560 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10562 * Makefile.in (datadir): Use share rather than lib.
10564 * groff/groff.cc (basename): Rename to xbasename.
10566 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
10568 * Makefile (CCLIBS): Don't use.
10569 * Makefile.ccpg: Likewise.
10571 * acgroff.m4: Rename to...
10572 * aclocal.m4: Modify extensively for autoconf 2.
10573 * configure.in: Likewise.
10574 * Makefile.in: Likewise.
10576 * groff/pipeline.c (const): Declare as empty if __STDC__ not
10578 (xstrsignal): Check for definition of NSIG. Conditionalize
10579 on SYS_SIGLIST_DECLARED. Make return type const.
10581 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
10583 * troff/input.cc (interpolate_macro): Rephrase missing space
10586 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10588 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10589 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10590 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10591 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10592 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10593 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10594 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10595 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10596 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10597 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10598 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10601 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
10603 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10605 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10607 (macro_iterator::macro_iterator): Add additional argument.
10609 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
10611 * troff/div.cc (vertical_size::vertical_size): In place of integer
10612 specifying line spacing use cunits specifying post vertical
10614 (macro_diversion::output, top_level_diversion::output): Likewise.
10615 * troff/div.h: Change declarations accordingly.
10616 * troff/env.cc (pending_output_line): Replace ls field by post_vs
10618 (pending_output_line::pending_output_line,
10619 pending_output_line::output, environment::output,
10620 environment::output_line, environment::output_title,
10621 environment::hyphenate_line): In place of
10622 integer specifying line spacing use cunits specifying post vertical
10624 (environment::environment): Add post_vertical_spacing and
10625 prev_post_vertical_spacing arguments.
10626 (environment::get_post_vertical_spacing): New function.
10627 (environment::total_post_vertical_spacing): New function.
10628 (environment::post_vertical_spacing): New function.
10629 (init_env_requests): Initialize pvs request and .pvs register.
10630 * troff/env.h: Change declarations.
10632 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
10634 * tmac/tmac.pspic: Immediately remove the temporary file.
10636 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
10638 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10639 height is specified.
10641 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
10643 * tbl/table.c (struct vertical rule, class table_entry): Use int
10644 not short for start_row and end_row.
10646 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
10648 * troff/input.cc (trapping_blank_line, blank_line_macro): New
10650 (diverted_space_node::reread, process_input_stack): Call
10651 trapping_blank_line() rather than blank_line().
10652 (init_input_requests): Bind "blm" to blank_line_macro().
10654 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10656 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
10658 * troff/env.cc (environment::possibly_break_line): Require that
10659 width total excluding width of final space node be greater than
10660 the target text length.
10662 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
10664 * troff/node.cc (kern_pair_node::vertical_extent): New function.
10666 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
10668 * troff/node.cc (charinfo_node): New class.
10669 (glyph_node, composite_node): Derive from charinfo_node. Change
10670 member functions accordingly.
10672 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
10674 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10676 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
10678 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10680 * devps/generate/textmap (notsubset): Add.
10682 * tmac/tmac.a4: New file.
10684 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
10686 * pic/main.cc (had_parse_error): New variable.
10687 (do_picture, do_whole_file): Set had_parse_error if yyparse()
10689 (main): Return 1 if had_parse_error is true.
10691 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
10693 * grolj4/lj4.cc (main): Avoid use of strtoul.
10695 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
10697 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10698 iso_8859_1 or $LESSCHARSET is latin1.
10700 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
10702 * hpftodit: New directory.
10703 * Makefile.in (CCPROGDIRS): Add hpftodit.
10704 * devlj4/generate: New directory.
10706 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
10708 * configure.in: Don't use AC_VFORK.
10709 * groff/pipeline.c (run_pipeline): Use fork() always.
10711 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
10713 * grops/ps.cc (main): Use %1 not %s in error message for -w.
10715 * Makefile.in (CCPROGDIRS): Add grolj4.
10716 (DEVDIRS): Add devlj4.
10717 * grolj4, devlj4: New directories.
10718 * tmac/troffrc: Handle lj4.
10719 * tmac/tmac.lj4: New file.
10721 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
10723 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10725 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
10727 * troff/input.cc (do_if_request): At end of second string, switch
10728 environments before getting next token.
10730 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
10732 * devps/psstrip.sed: Split rule that strips whitespace on either
10733 side of delimiters.
10735 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
10737 * troff/node.h (font_family::make_definition): Add return value to
10738 declaration. * troff/symbol.h (symbol::operator==,
10739 symbol::operator!=): Likewise.
10741 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
10743 * groff/groff.cc (main, help, synopsis): Handle -S.
10744 (possible_command::insert_arg): New function.
10746 * tmac/tmac.safer: New file.
10747 * tmac/msafer.man: New file.
10748 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10750 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
10752 * pic/pic.h, pic/main.cc (safer_flag): New variable.
10753 * pic/pic.y (placeless_element): Avoid unsafe operations if
10754 `safer_flag' is set.
10755 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10757 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
10759 * eqn/lex.cc (get_token): Put call to add_context() in block to
10760 work around Sun C++ 4.0 bug.
10762 * include/stringclass.h (operator +): Use ?: instead of `if' to
10763 work around Sun C++ 4.0 bug.
10765 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
10767 * tbl/main.cc (process_format): Accept - as a synonym for the _
10770 * libbib/index.cc (minus_one): Don't declare as const.
10772 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
10774 * troff/input.cc (get_char_for_escape_name): Push back a newline.
10776 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
10778 * troff/input.cc (write_macro_request): New function.
10779 (init_input_requests): Bind write_macro_request to writem.
10781 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
10783 * tmac/tmac.s (@EN): Turn filling back on even if there was no
10786 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10788 * tmac/tmac.s (@TS): Renamed from TS.
10789 (TS): Call LP then TS again.
10790 (cov*ab-init): Alias @TS to TS.
10792 * tmac/tmac.s: Allow QP or RS to initialize.
10794 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
10795 Move initializations of PS and LL here.
10796 (par@init): Don't initialize HY. Avoid changing environment 0.
10797 (par*env-init): Don't all par@reset.
10799 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
10801 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10803 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
10805 * Makefile.in (MDEFINES): Add LDFLAGS.
10806 (LDFLAGS): Add definition line.
10808 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
10810 * troff/input.cc (get_optional_char): Split off error check into...
10811 (check_missing_character): New function.
10812 * troff/token.h: Declare it.
10813 * troff/env.cc (margin_character): Don't call get_optional_char.
10814 Only call tok.next() after making the node.
10816 * include/lib.h (getopt): Make 2nd argument char *const *.
10818 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
10820 * nroff/conftest.sh: Deleted.
10822 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
10824 * pic/make-dos-dist: Deleted.
10826 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
10828 * devps/psstrip.sed: Strip comments before stripping trailing
10831 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
10833 * Version 1.09 released.
10835 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
10837 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10839 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
10841 * libgroff/font.cc (font::load_desc): Fix typo in error message.
10843 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
10845 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10846 about returning without a value.
10848 * troff/charinfo.h (charinfo::get_special_translation): Cast
10849 TRANSLATE_NONE to int.
10851 * refer/token.cc (lookup_token, store_token): Remove bogus loop
10852 test. Fix test so that it works with n unsigned.
10854 * pic/pic.y (defaults_table): Fully bracket initializer.
10855 * pic/lex.cc (lookup_keyword): Likewise.
10856 * eqn/lex.cc (token_table, def_table): Likewise.
10857 * eqn/box.cc (param_table): Likewise.
10858 * troff/input.cc (warning_table): Likewise.
10859 * libgroff/font.cc (table): Likewise.
10860 * grops/ps.cc (ps_printer::special): Likewise.
10861 * grops/psrm.cc (resource_manager::process_file): Likewise.
10862 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10863 * refer/command.cc (command_table): Likewise.
10864 * addftinfo/addftinfo.cc (param_table): Likewise.
10866 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10867 about temp's being unused.
10868 (unused): New function.
10870 * groff/pipeline.cc: Declare c_fatal.
10872 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10875 * libbib/index.cc (index_search_item::load): Prevent compiler
10876 warnings about fd_closer's being unused.
10877 (unused): New function.
10879 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
10881 * troff/input.cc (copy_mode_error): Make `prefix' static.
10884 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10886 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10887 HAVE_CC_OSFCN_H and modify accordingly.
10889 * troff/input.cc (init_charset_table): radicalex overlaps
10892 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10893 udodo!hans@relay.NL.net).
10894 * groff/configure.in: Call it.
10896 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10897 * groff/configure.in: Call it.
10898 * include/lib.h: Conditionalize declaration of pclose.
10900 * troff/div.cc (last_page_number): New global variable.
10901 (top_level_diversion::begin_page): Exit if we just printed the
10903 * troff/div.h (last_page_number): Declare it.
10904 * troff/input.cc (parse_output_page_list): Set last_page_number.
10906 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10907 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10908 tmac/tmac.X: Likewise.
10909 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10910 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10912 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
10914 * tmac/doc-ditroff (hK): Remove groff specific code which
10915 prevented page-breaks between separate manual entries. If this is
10916 the first page, don't set the page number to 1.
10918 * acgroff.m4 (GROFF_POSIX): New macro.
10919 * configure.in: Use it.
10921 * troff/node.cc (class real_output_file,
10922 real_output_file::real_output_file,
10923 real_output_file::~real_output_file): Conditionalize use of
10924 popen/pclose on POPEN_MISSING.
10925 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10926 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10927 (pipe_source): Similarily.
10929 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10931 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10932 presence of declarations by trying to compile example with
10933 conflicting declarations. (gcc only gives a warning for missing
10936 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
10938 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10939 (from Ulrich Lauther).
10941 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
10943 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10945 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
10947 * indxbib/indxbib.cc (write_hash_table): Add code for case where
10948 pointers and ints have different sizes.
10950 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
10952 * tmac/tmac.s (par*env-init): Call par@reset.
10954 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
10956 * tmac/tmac.s (@IP): Switch to a new environment when diverting
10958 (par*push-tag-env, par*pop-tag-env): New macros.
10960 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
10962 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10963 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
10965 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10966 comment. Include <time.h>.
10968 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
10970 * grops/ps.cc (is_small_h, is_small_v): Deleted.
10971 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10974 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
10976 * troff/input.cc (read_request): Only print a prompt if reading
10977 from the terminal. Also clearerr on EOF if reading from the
10978 terminal. Declare isatty.
10980 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
10982 * refer/label.y: Rename map_t to map_func and extractor_t to
10985 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
10987 * include/assert.h: Don't use volatile.
10988 * libgroff/assert.cc: Likewise.
10990 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
10992 * troff/input.cc (abort_request): Look at character in tok before
10993 calling get_copy().
10995 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
10997 * troff/troff.h (NO_RETURN): Deleted.
10998 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
10999 * troff/input.cc (exit_troff): Likewise
11001 * Makefile.in: Remove `Making ...' messages since GNU make now
11004 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11006 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
11008 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11009 to constant 1 inch.
11011 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
11013 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11015 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
11017 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11018 MARK_REG if there was no left delimiter.
11020 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
11022 * pic/troff.cc (troff_output::text): Set line thickness to
11023 relative before outputting text.
11025 * tmac/tmac.e (@k): Don't zero ?T.
11028 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
11030 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11032 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
11034 * troff/input.cc (decode_args): Warn about unquoted tabs (from
11037 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
11039 * troff/input.cc (ignoring): New variable.
11040 (ignore): Set ignoring during call to do_define_macro.
11041 (do_define_macro): Clear ignoring before interpolating terminating
11043 (copy_mode_error): New function.
11044 (get_char_for_escape_name, read_long_escape_name,
11045 interpolate_arg): Use copy_mode_error.
11046 (warning_table): Add WARN_IG.
11047 * troff/troff.h (WARN_IG): Declare.
11048 (WARN_TOTAL): Change accordingly.
11050 * groff/pipeline.c (strsignal): Rename to xstrsignal.
11051 * groff/groff.cc (strsignal): Delete declaration.
11053 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
11055 * troff/div.cc (page_offset): Use 'm' as default scaling.
11057 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
11059 * nroff/nroff.sh: Ignore -u.
11061 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
11063 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11065 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
11067 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11069 (B2): With -Tascii, leave additional vertical space before
11070 and after. Ensure that the left and right indent is restored to
11071 what it was even if the point size changes. Don't call
11072 par@finish. Change the indent, line length and title length
11073 directly. With -Tascii, make the width of the box 1n less.
11074 (B1): Remember 1n at the current point size. Don't call
11075 par@reset. Change the indent, line length and title length
11076 directly. Ensure that the temporary indent is preserved.
11077 (par*box-mark-top): Turn off no spacing mode.
11079 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
11081 * Makefile.in (dist): Use .gz suffix.
11083 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
11085 * troff/input.cc (main): Add return 0.
11086 * pic/main.cc (main): Use return instead of exit.
11087 * tbl/main.cc (main): Likewise.
11088 * eqn/main.cc (main): Likewise.
11089 * grops/ps.cc (main): Likewise.
11090 * grotty/tty.cc (main): Likewise.
11091 * groff/groff.cc (main): Likewise.
11092 * grodvi/dvi.cc (main): Likewise.
11093 * refer/refer.cc (main): Likewise.
11094 * indxbib/indxbib.cc (main): Likewise.
11095 * lkbib/lkbib.cc (main): Likewise.
11096 * soelim/soelim.cc (main): Likewise.
11097 * addftinfo/addftinfo.cc (main): Likewise.
11098 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11099 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11101 * troff/token.h (process_input_stack): Don't declare as static.
11102 * troff/input.cc: Likewise.
11104 * troff/node.c (invalidate_fontno): Make it a static member of
11105 class font_family. Change callers.
11106 * troff/node.c: Change declaration.
11108 * tbl/main.cc (struct input_entry_format): Add explicit public
11110 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11111 struct double_hline_stuff): Likewise.
11112 * tbl/table.h (struct entry_format): Likewise.
11113 * pic/object.h (struct saved_state): Likewise.
11115 * include/stringclass.h: Add forward declarations of friend
11116 functions that are later declared as inline. Don't include inline
11117 specifier in friend declaration.
11119 * libgroff/lib.h: Declare popen and pclose.
11120 * acgroff.m4 (GROFF_POPEN): New macro.
11121 * configure.in: Call it.
11123 * include/lib.h (PI): New constant. Undef first if necessary.
11124 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11125 * grops/ps.cc (degrees, radians): Likewise.
11126 * libgroff/font.cc (font::get_skew): Likewise.
11128 * grops/ps.cc (is_ascii): New function.
11129 (ps_output::put_string): Use is_ascii. Use csprint rather than
11131 (ps_printer::define_encoding): Use csspace.
11132 * libgroff/strtol.c (ISASCII): New macro.
11133 (strtol): Cast arguments to is*() and tolower() to unsigned char.
11134 Use ISASCII rather than isascii.
11135 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11136 * libgroff/cset.cc: Likewise.
11137 * libdriver/input.cc: Include cset.h.
11138 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11141 * refer/refer.cc (main): Use %ld rather than %d for longs.
11143 * libbib/index.cc (index_search_item_iterator::get_tag): Use
11146 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11148 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
11150 * troff/input.cc (hyphenation_code): Skip white space between
11153 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
11155 * tbl/table.h (table::entry_list_tailp): New member.
11156 (table::table): Initialize it.
11157 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11160 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
11162 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11163 with negative horizontal positions. Remove casts of glyph::hpos to
11165 (USHRT_MAX): Delete definition.
11166 (SHRT_MAX, SHRT_MIN): New definitions.
11167 (glyph::hpos): Change type to short.
11168 (tty_printer::end_page): Output multiple backspaces if necessary.
11169 Remove casts of glyph::hpos to int.
11171 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
11173 * tmac/tmac.s (@RT): New definition.
11175 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
11177 * refer/refer.cc (do_file): Make sure current_filename is set when
11180 * pic/common.cc (common_output::dot_line): Handle zero length
11183 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
11185 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11186 (par@init): Initialize \n[HY].
11188 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
11190 * troff/dictionary.cc (dictionary::remove): Continue when
11193 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
11195 * Makefile.com (.y.cc): Avoid ending up with two versions of
11198 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
11200 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11201 (\(,C): Likewise. Also fix typo.
11203 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
11205 * lib.h: Delete extraneous semi-colon.
11207 * Add pso request: `so' from a pipe.
11208 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11209 (file_iterator::close): New function.
11210 (file_iterator::~file_iterator, file_iterator::next_file): Use
11211 file_iterator::close.
11212 (file_iterator::backtrace): Say `process' rather than `file' when
11213 the stream is popened.
11214 (pipe_source): New function.
11215 (init_input_requests): Bind ".pso" to pipe_source.
11217 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
11219 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11221 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
11222 digits in lower case.
11224 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
11226 * Version 1.08 released.
11228 * Makefile.in (dist): Insert || true after ln -s commands that
11231 * mm: Update to mm 1.16.
11233 * acgroff.m4 (GROFF_CSH_HACK): New macro.
11234 * configure.in: Call GROFF_CSH_HACK. Substitute for
11236 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
11238 * nroff/Makefile.sub (nroff): New target.
11239 (install_data): Install nroff.
11240 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11241 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11243 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
11245 * eqn/Makefile.sub (neqn): Add chmod +x.
11247 * grog/Makefile.sub (grog): Remove spurious semi-colon.
11249 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
11251 * troff/input.cc (string_iterator::string_iterator()): Initialize
11254 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
11256 * troff/div.cc (macro_diversion::space,
11257 top_level_diversion::space): Don't set high_water_mark.
11258 (macro_diversion::output, top_level_diversion::output): Don't
11259 include post line space in high water mark.
11261 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
11263 * eqn/eqn.y: Don't define YYDEBUG.
11264 * pic/pic.y: Likewise.
11266 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
11268 * tmac/tmac.e ([3): Add space after comma following editors.
11269 Change double spaces to single spaces.
11270 ([4): Change double spaces to single spaces.
11272 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11273 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11274 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11275 after %!PS-Adobe- (for Newsprint).
11277 * troff/div.cc (top_level_diversion::begin_page): When
11278 before_first_page is 1, set page_number to 1.
11280 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
11282 * eqn/box.cc (box::top_level): Protect equation with \&.
11284 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
11286 * groff/groff.cc (possible_command::set_name): Delete old name.
11288 * groff/groff.cc (possible_command::~possible_command): Use
11291 * troff/node.cc (troff_output_file::begun_page): New member.
11292 (troff_output_file::troff_output_file): Initialize it.
11293 (troff_output_file::really_begin_page): Only output V command if a
11294 page has been begun.
11296 * pic/pic.y (placeless_element): Delete argument to PRINT after
11299 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
11301 * Make wrapman work.
11302 * troff/div.h (class top_level_diversion): Replace
11303 first_page_begun by before_first_page (with opposite sense).
11304 * Change first_page_begun to before_first_page inverting sense.
11305 * troff/div.cc (class nl_reg): New class.
11306 (init_div_requests): Use class nl_reg for \n(nl.
11307 (top_level_diversion::begin_page): Don't call
11308 output_file::begin_page if before_first_page is 2;
11309 reset before_first_page afterwards. If have_next_page_number is
11310 false, then always increment page_number.
11311 * tmac/tmac.an: Set traps within TH rather than at the top-level.
11312 Restore compatibility mode after loading, and then disable
11313 compatibility mode in TH.
11315 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
11317 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11319 * troff/node.h (output_file::trailer): Declare.
11320 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11321 * troff/node.cc (output_file::trailer): New function.
11322 (troff_output_file::~troff_output_file): Move most code into...
11323 (troff_output_file::trailer): New function.
11324 (class troff_output_file): Delete page_length member. Declare
11326 (troff_output_file::really_begin_page): Use current page length
11327 for final V command.
11329 * tbl/main.cc (struct options): New decimal_point_char member.
11330 (options::options): Initialize this.
11331 (process_options): Implement decimalpoint option.
11332 (process_data): Pass decimal_point_char option to table::table.
11333 * tbl/table.h (class table): New decimal_point_char member.
11334 (table::table): Add additional argument.
11335 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11336 second argument specifying decimal point character. Use this
11338 (table::table): Initialize decimal_point_char.
11339 (table::add_entry): Change call to find_dot.
11341 * troff/input.cc (get_copy, token::next): Implement \V.
11342 (interpolate_environment_variable): New function.
11344 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
11346 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11347 * pic/pic.y: Likewise.
11349 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11351 * refer/ref.cc (reference::insert_field, reference::delete_field):
11353 * troff/number.cc (parse_term): Likewise.
11355 * acgroff.m4 (GROFF_PROG_YACC): New macro.
11356 * configure.in: Use GROFF_PROG_YACC.
11358 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11360 * Makefile.in (OPTIMIZE): New define.
11361 (DEBUG): Empty by default.
11362 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11364 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11365 (GROFF_ARRAY_DELETE): Likewise.
11366 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11368 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11370 * devps/psstrip.sed: Use different delimiter on last line (so that
11371 it works with BSD 4.4 sed.)
11373 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
11375 * devps/psstrip.sed: Delete comments.
11377 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11378 optind, opterr, optarg.
11379 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11382 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
11384 * Makefile.in (check): Dummy target.
11386 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
11388 * Version 1.07 released.
11390 * Integrate mm 1.11.
11392 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11393 where start_col was meant.
11395 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
11397 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11399 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
11401 * troff/input.cc (token::next): Make \z\o'...' and similar things
11404 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11406 (environment): Add margin_character_flags member.
11407 * env.cc (environment::environment(symbol),
11408 environment::environment(const environment *): Initialize
11409 margin_character_flags.
11410 (margin_character): Rewrite.
11411 (environment::output_line): Add a margin character if
11412 margin_character_flags is non-zero. Turn off the
11413 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
11414 zero, use margin_character_node without copying and then set
11415 margin_character_node to 0.
11417 * devps/DESC.in: Change minimum size to 1000.
11419 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
11421 * troff/symbol.h (symbol::hash): Change return type to unsigned
11423 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11426 * test-groff: Use -r rather than -x.
11428 * grops/psfig.diff: Include in distribution again.
11430 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
11432 * Makefile.in (dist): Use gzip.
11434 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
11436 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11437 unistd.h as well as in stdlib.h.
11438 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11439 defined; otherwise include <sys/types.h> and <unistd.h> if
11440 UNISTD_H_DECLARES_GETOPT is defined.
11442 * configure.in: use builtin(include, ... rather than include(...
11443 * configure: Regenerate with autoconf 1.3.
11445 * libdriver/print.cc (printer::adjust_arc_center): Use new
11446 algorithm suggested by Andy Fyfe.
11448 * libdriver/printer.cc (printer::adjust_arc_center): New function.
11449 * include/printer.h: Declare this.
11450 * grops/ps.cc (ps_printer::draw): Use it.
11451 * grodvi/dvi.cc (dvi_printer::draw): Use it.
11453 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
11455 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11457 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
11459 * eqn/main.cc (main): Handle "eqn -".
11461 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
11463 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11465 * mm: Integrate version 1.08.
11467 * pic/troff.cc (troff_output::finish_picture): Set
11468 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11469 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11470 if it's not defined. Check whether the register is non-zero rather
11471 than whether it's not defined.
11472 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11474 * indxbib/indxbib.cc: Move all signal handling into...
11475 * indxbib/signal.c: New file.
11476 * configure.in: Call AC_RETSIGTYPE.
11478 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11479 * configure.in: Call GROFF_STRUCT_EXCEPTION.
11480 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11482 * troff/input.cc (token::token, token::operator=): Work round SGI
11484 * pic/object.cc (position::position): Likewise.
11486 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
11488 * pic/pic.h: Move declaration of hypot().
11490 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
11492 * pic/pic.h: Declare hypot().
11494 * pic/pic.h: Define M_PI if necessary.
11496 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
11498 * tmac/tmac.e (re): Add alternative version that doesn't use groff
11501 * devps/prologue.ps (RE): Handle the possibility that the old font
11502 doesn't have a FontName entry.
11504 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
11506 * tmac/tmac.e (fam): Redefine to set family in environment 2.
11507 (@C): Use @fam not fam.
11509 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
11511 * lookbib/lookbib.cc (main): Change type of start to const char *.
11512 * lkbib/lkbib.cc (main): Likewise.
11514 * eqn/lex.cc (definition::definition): Don't use member
11515 initializer syntax for members of anonymous unions.
11517 * troff/input.cc (input_stack::backtrace): Change type of to const
11520 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
11522 * include/stringclass.h (class string): Declare inline friend
11523 functions as inline in class declaration.
11524 * troff/hvunits.h (class hunits, class vunits): Likewise.
11525 * include/refid.h (class reference_id): Likewise
11526 * troff/troff.h (points_to_units(units), scale(units, double)):
11527 Delete declarations.
11528 * libdriver/input.cc (get_char): Delete declaration.
11529 * include/lib.h: Change 2nd argument of getopt from const char **
11531 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11532 char **' before assigning to a `const char **'.
11533 * tbl/table.cc: Delete extra declarations of prints().
11535 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
11537 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11538 char **' before assigning to a `const char **'.
11540 * libgroff/errarg.cc (errarg::errarg): Don't use member
11541 initializer syntax for members of anonymous unions.
11543 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
11545 * mm: Integrate version 1.07.
11547 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
11549 * troff/input.c (translate2): Rename to
11550 (translate_no_transparent).
11551 (init_input_requests): Rename tr2 to trnt.
11553 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
11555 * troff/charinfo.h (class charinfo): Add transparent_translate field.
11556 (charinfo::set_translation, charinfo::set_special_translation):
11557 Add second argument that specifies value for
11558 transparent_translate.
11559 (charinfo::get_translation, charinfo::get_special_translation):
11560 Add optional second argument that specifies whether translation is
11561 being used for transparent throughput.
11562 * troff/input.cc (charinfo::set_translation,
11563 charinfo::set_special_translation): Handle second argument.
11564 (charinfo::charinfo): Initialize transparent_translate.
11565 (translate): Split main part off into
11566 (do_translate): New function. Pass argument saying whether
11567 translation applies to transparent throughput.
11568 (translate2): New request.
11569 (init_input_requests): Bind translate2 to `tr2'.
11571 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
11573 * tbl/table.h (class table): Add `nokeep' flag.
11574 * tbl/main.cc (process_options): Handle `nokeep' option.
11575 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11576 table::do_bottom): Don't output keep/release macro definitions or
11577 calls when `nokeep' option has been specified.
11579 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
11581 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11583 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
11585 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11586 block_entry::divert, alphabetic_block_entry::divert): Add extra
11587 argument giving column separation.
11588 (table::compute_widths): Pass column separation to
11589 table_entry::divert().
11590 (block_entry::do_divert): If an entry spans multiple columns and a
11591 minimumum width has been specified for each column, then set the
11592 line length to the sum of the widths (plus possibly the column
11595 * troff/input.cc (set_escape_char): Don't set the escape_char
11596 until after calling has_arg().
11598 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
11600 * tbl/table.cc (table::do_top): Add missing \s0 for double box
11603 * tbl/table.cc (table::print_double_hline): Avoid extra new line
11604 in case where r > nrows - 1.
11606 * tbl/table.cc (BODY_HEIGHT): Deleted.
11607 (LINE_SEP): New definition.
11608 (table::print_single_hline, table::print_double_hline,
11609 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11610 table::do_row, table::do_top): Use LINE_SEP space before a line
11611 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11613 * tbl/table.cc (text_entry::print_contents): New function.
11614 (text_string_name, right_text_string_name): Deleted.
11615 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11616 (simple_text_entry::do_width, numeric_text_entry::do_width,
11617 alphabetic_text_entry::do_width): Don't store the contents of the
11619 (left_text_entry::simple_print, right_text_entry::simple_print,
11620 center_text_entry::simple_print,
11621 alphabetic_text_entry::simple_print,
11622 numeric_text_entry::simple_print): Print the entry directly
11623 instead of using the stored string.
11625 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
11627 * devps/Makefile: Strip PostScript files.
11628 * devps/prologue: Rename to...
11629 * devps/prologue.ps.
11630 * devps/psstrip.sed: New file.
11631 * devps/download: Use .pfa rather than .ps for installed versions
11634 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
11636 * troff/env.cc (input_trap): Give a warning if the argument is out
11639 * troff/env.cc (adjust): Treat negative argument as missing. Round
11640 argument > 5 down to 5.
11642 * troff/env.cc (center, right_justify): Make negative argument zero.
11644 * troff/div.cc (page_offset, vertical_position_traps): Treat
11645 invalid argument as missing.
11646 * troff/env.cc (line_spacing, line_length, title_length, indent,
11647 underline, hyphen_line_max_request, control_char,
11648 no_break_control_char, widow_control_request, adjust, input_trap,
11649 point_size): Likewise.
11650 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11651 constant_space): Likewise.
11652 * troff/input.cc (compatible, shift, warn_request,
11653 set_escape_char): Likewise.
11655 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11656 * tbl/table.cc (table::table): Likewise.
11658 * Makefile.dev (install_dev): depends on $(DEVFILES).
11660 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
11662 * devX75, devX75-12, devX100, devX100-12: New directories.
11663 * Makefile.in: Add these to DEVDIRS.
11665 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11666 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11667 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11668 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11670 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11671 (uninstall): New target.
11672 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11673 uninstall_prog, uninstall_dev): New targets.
11675 * troff/div.cc (return_request): Treat an invalid argument as
11678 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
11680 * tmac/tmac.e ((f): Set up the environment even when there's a
11681 current diversion. Transperently throughput a call to @N.
11684 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
11686 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11687 up to vertical resolution.
11689 * tbl/table.cc (table::do_row): Change row number after printing
11692 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11694 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
11696 * Rename CHANGES to NEWS.
11698 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
11700 * libgroff/new.cc (operator new): Avoid calling malloc(0).
11702 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
11704 * man.ultrix: Removed.
11706 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
11708 * Makefile.comm (extraclean): Delete files whose names begin with
11711 * pic/troff.cc (troff_output::text): Fix typo in implementation of
11714 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
11716 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11717 * troff/div.cc (page_length, need_space, space_request): Treat
11718 invalid optional argument as missing.
11719 * troff/env.cc (number_lines): If the first argument is present
11720 but not a number, turn on line numbering, don't change the next
11721 line number and parse the remaining arguments.
11723 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11725 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
11727 * eqn/box.h: Change declaration accordingly.
11728 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
11729 the specified size was bad but don't give an error. Check for
11731 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11732 * eqn/lex (do_size): Likewise.
11734 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
11736 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11737 compatible headers.
11739 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
11741 * tbl/table.cc (table::init_output): Improve error message when
11742 table won't fit on one page.
11744 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
11746 * pic/troff.cc (troff_output::start_picture): Generate line
11747 containing a horizontal motion equal to the width of the picture.
11749 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11750 using GROFF_COMMAND_PREFIX environment variable.
11752 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
11754 * mdate.sh: Use $NF rather than $(NF).
11756 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
11758 * pic/main.cc (main): Use %1 not %c in argument to warning.
11760 * eqn/main.cc (main): Output code to check that geqn was given the
11763 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
11765 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11766 `ln -s ../Makefile .; make; rm -f Makefile'.
11768 * troff/hyphen: Rename to...
11770 * troff/input.cc (main): Delete -H option. Don't call
11771 read_hyphen_file().
11772 * troff/env.cc: Include searchpath.h and macropath.h.
11773 (exception_dictionary): Deleted.
11775 (read_hyphen_file): Deleted.
11776 (hyphenation_language): New struct.
11777 (class trie, class hyphen_trie): Move declarations up.
11778 (trie_node::~trie_node): Deleted.
11779 (trie::delete_trie_node): New function.
11780 (trie::do_delete): New pure virtual function.
11781 (hyphen_trie::do_delete): New function.
11782 (trie::~trie): New function.
11783 (hyphen_trie::~hyphen_trie): New function.
11784 (trie::clear): No need to chcek that tp is not 0.
11785 (current_language, language_dictionary): New variables.
11786 (hyphen_word): Give an error if no current language. Use
11787 exceptions dictionary in current language.
11788 (hyphen_trie::read_patterns_file): Find file using macro_path.
11789 Allow comments (starting with %) in patterns file. Don't make it
11790 a fatal error if the file can't be found.
11791 (hyphenate): Return if no current language. Get the exceptions
11792 dictionary and the hyphenation patterns from the current language.
11793 (set_hyphenation_language): New variable.
11794 (hyphenation_patterns_file): New function.
11795 (hyphenation_language_reg): New class.
11796 (hyphenation_language_reg::get_string): New function.
11797 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11798 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
11800 * groff/groff.cc (main, help, synopsis): Delete -H option.
11801 * include/Makefile.sub: Don't define HYPHENFILE.
11802 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11803 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11804 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11805 hyphenation patterns.
11807 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
11809 * eqn/neqn.sh: New file.
11810 * eqn/Makefile.sub: Handle neqn.sh.
11812 * eqn/eqn.h: Declare `nroff' variable.
11813 * eqn/box.cc (param_table): Add `nroff' param.
11814 (nroff): Define it.
11815 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11817 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11819 * troff/troff.h (WARN_FONT): New warning.
11820 (WARN_TOTAL): Change accordingly.
11821 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11822 (warning_table): Add WARN_FONT.
11823 * troff/node.cc (mount_font_no_translate): Pass argument to
11824 font::load_font. If this is non-zero, give a warning.
11825 Don't give an error message when accessing a font that has already
11826 been found to be invalid.
11827 * include/font.h (font::load, font::load_font): Add additional
11828 optional argument which suppresses error message if the font is
11830 * libgroff/font.cc (font::load_font): Handle additional argument.
11831 (font::load): Add additional argument. If this is non-null, set it
11832 to 1 and don't give error message.
11834 * include/printer.h (printer::end_page): Add argument giving
11836 * libdriver/input.cc (do_file): Pass this.
11837 * grops/ps.cc (ps_printer::end_page): Add argument.
11838 * grodvi/dvi.cc (dvi_printer::end_page,
11839 draw_dvi_printer::end_page): Add argument.
11840 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11841 columns_per_page members. New member nlines.
11842 (DEFAULT_LINES_PER_PAGE): Deleted.
11843 (tty_printer::tty_printer): Don't compute lines_per_page from
11844 font::paperlength. Don't compute columns_per_page from
11846 (tty_printer::add_char): Don't check horizontal position against
11847 columns_per_page. Grow glyphs vector if neccessary.
11848 (tty_printer::end_page): Add argument giving page_length in units.
11849 Discard lines past end of page.
11851 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
11853 * tmac/tmac.tty-char: Fix definition of \(/l.
11855 * tmac/tmac.X: Define \(en.
11857 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
11859 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11860 lpq, then use lp rather than lpr.
11862 * tmac/tmac.s (par@reset): Don't call `ad'.
11863 (par*env-init): Call `ad'.
11865 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
11867 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11870 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11871 * indxbib/indxbib.cc: Likewise.
11873 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
11875 * libgroff/putenv.c: New file.
11876 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11877 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11878 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11879 stdlib.h with AC_HAVE_HEADERS.
11881 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
11883 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11886 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
11888 * eqn/box.cc (gsize): Make it an int.
11889 (set_gsize): Parse argument handling increment or decrement.
11890 (box::top_level): Convert gsize to a string.
11892 * troff/input.cc (exit_troff): Make buf unsigned char [].
11893 Call to make_temp_iterator casts buf to char*.
11895 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11897 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11898 * Makefile.cpg (depend.temp): Likewise.
11900 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11902 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11904 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
11906 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11908 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
11910 * Version 1.06 released.
11912 * Integrate mm 1.04.
11914 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
11916 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11918 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
11920 * afmtodit/afmtodit.pl: Add -n option that disables generation of
11922 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11923 afmtodit. Regenerate.
11925 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11926 @f back past the current position.
11928 * tmac/tmac.e: Change calls to @R so that comments are not part of
11931 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
11933 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11935 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11936 check that we can link a call to a function declared in <stdio.h>.
11937 (GROFF_UNISTD_H): New macro.
11938 * configure.in: Call it.
11939 * Makefile.in: Document it.
11940 * include/posix.h: New file.
11941 * troff/troff.h: Don't include <osfcn.h>
11942 * troff/input.cc: Include posix.h.
11943 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11945 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11946 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11948 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11949 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11950 * libbib/search.cc (O_RDONLY): Delete definition.
11951 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11952 Don't include <osfcn.h>.
11954 * acgroff.m4 (GROFF_TIME_T): New macro.
11955 * configure.in: Call it.
11956 * Makefile.in: Document it.
11958 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11959 * configure.in: Call it.
11960 * Makefile.in: Document -DTRADITIONAL_CPP.
11961 * include/ptable.h: Don't include generic.h.
11962 (name2): Define it.
11964 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11965 Afterwards remove [T1 and [T2.
11966 (ref*spec!0, ref*spec!2): Use T1 rather than T.
11967 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11968 (ref*add-T2): Renamed from ref*add-T.
11969 (ref*add-T1): New macro.
11971 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
11973 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11975 * libbib/index.cc: Include <fcntl.h>.
11976 (O_RDONLY): Define if necessary.
11977 (make_index_search_item, index_search_item_iterator::get_tag,
11978 index_search_item::check_files): Use O_RDONLY.
11979 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11980 (O_RDONLY): Define if necessary.
11981 (search_list::add_file): Use O_RDONLY.
11982 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11984 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11987 * libbib/index.cc (S_ISREG): Define it if necessary.
11988 (index_search_item::load): Use S_ISREG.
11990 * include/driver.h: Include <errno.h>.
11992 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
11994 * eqn/box.cc (body_height): Increase default value to 85.
11995 (body_depth): Increase default value to 35.
11997 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
11999 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12000 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12001 protected from expansion with \E.
12003 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12005 * Makefile (Makefile): New target.
12007 * Makefile.sub (configure, distfiles): New targets.
12009 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12012 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
12014 * eqn/box.cc (param_table): Add body_height and body_depth.
12016 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12018 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
12020 * psbb/Makefile.sub: Don't link with libgroff.a.
12022 * acgroff.m4 (GROFF_PUTENV): New macro.
12023 * configure.in: Call GROFF_PUTENV.
12024 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12025 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12028 * troff/env.cc (distribute_space): Rename force_forward argument
12029 to force_reverse. Reverse the list if force_reverse is true.
12031 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
12033 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12035 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12036 height or depth to be negative. Guard against SUP_RAISE quantity
12039 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
12041 * devps/generate/textmap: Add `an' (arrowhorizex).
12042 * tmac/tmac.ps: \(an overlaps horizontally.
12043 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12045 * devps/symbolchars: Add arrowverttp, arrowvertbt.
12046 * devps/textmap: Add arrowvertex.
12047 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12048 updownarrow delimiters.
12049 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12051 * tbl/table.cc (simple_entry::position_vertically,
12052 block_entry::position_vertically): For a centered entry, perform
12053 the motion in two stages.
12055 * refer/refer.cc (split_punct): Don't call lookup_token if there
12058 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
12060 * troff/input.cc (token::next): Delete token_node after copying
12063 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12066 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12068 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12070 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
12072 * grops/ps.cc (usage): -b option takes an argument.
12074 * devps/prologue (PLG): New procedure.
12075 * grops/ps.cc (main, usage): New -g option.
12076 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
12079 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
12081 * include/cset.h: Include <limits.h> if we have it.
12083 * libgroff/illegal.cc: New file.
12084 * include/lib.h (illegal_input_char): Use table.
12085 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12086 * pic/lex.cc (ARG1): Renumber to 14.
12087 * eqn/lex.cc (ARG1): Likewise.
12089 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12090 (eg 1.05.90) correctly.
12092 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
12094 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12095 Rename $r and $R registers to $v and $V.
12096 ($r, $R): Initialize to 0.
12097 (@v, @V): New macros.
12101 * troff/input.cc (main, usage): Add -R option that says not to
12103 * eqn/main.cc (main, usage): Rename -n to -R.
12105 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
12107 * devps/DESC.in: Leave font positions 5-9 blank.
12108 * devdvi/DESC.in: Likewise.
12110 * grog/grog.pl: Handle `.PS <file' correctly.
12112 * troff/input.cc (input_stack::push): Improve error message when
12113 input stack limit exceeded.
12115 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
12117 * refer/refer.cc (main): Fix typo in handling of `a' option.
12119 * refer/refer.cc (do_bib): In state START after a newline remain
12122 * groff/groff.sh: Deleted.
12123 * groff/Makefile.sub: Delete handling of groff.sh.
12125 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12126 to determine whether to use \X'ps:...'.
12127 * tmac/troffrc: Set 0p register to 0.
12128 * tmac/tmac.ps: Set 0p register to 1.
12130 * groff/groff.cc: Support -X option. Give warning for -TXps and
12131 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12132 * tmac/troffrc: Support -r.X=1.
12134 * pic/troff.cc (troff_output::dot): Don't test
12135 zero_length_line_flag.
12137 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
12139 * include/lib.h: Declare getopt() and friends unless
12140 STDLIB_H_DECLARES_GETOPT is defined.
12142 * doc/chars.tr: Delete.
12143 * man/groff_char.man: New file.
12145 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
12147 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12148 user has changed register format.
12150 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
12152 * groff/groff.cc: Get rid of device_table. Get postprocessor from
12153 `postpro' command in DESC file. Get spooler command from `print'
12154 command in DESC file. Execute spooler command with /bin/sh.
12156 * groff/groff.cc: Split Unix-specific parts into...
12157 * groff/pipeline.c: New file.
12160 * COPYING: New file.
12161 * all files: Update copyright notices.
12163 * Rearrange files. Redo Makefiles. Use autoconf.
12165 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
12167 * troff/input.c (charinfo_to_node_list): Interpret character
12168 definition with escape_char of `\'.
12170 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
12172 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12173 Define INT_DIGITS as big enough for 64-bit integer.
12174 * lib/strtol.c: Don't include lib.h.
12175 * lib/lib.h: Delete ifdef __cplusplus stuff.
12177 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
12179 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
12180 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
12181 get DESC from current directory.
12183 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
12185 * tbl/main.c (main): Always reset the line number when reading
12188 * tbl/table.c (table::print_single_hline, table::print_double_hline,
12189 table::define_bottom_macro, table::do_row, table::do_top): Round
12190 vertical spacing up to vertical resolution.
12192 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
12194 * ps/ps.h (enum resource_type): Avoid comma at end of
12196 * dvi/dvi.c (class dvi_printer): Likewise.
12197 * dvi/tfmtodit.c (gf::load): Likewise.
12198 * refer/label.y (struct expression): Likewise.
12199 * refer/refer.c (class label_processing_state): Likewise.
12200 * refer/indxbib.c (do_file): Likewise.
12201 * troff/troff.c (enum warning_type): Likewise.
12202 * tbl/main.c (process_data): Likewise.
12203 * troff/charinfo.h (class charinfo):
12205 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
12207 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
12209 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
12211 * groff.c: Move to new groff subdirectory.
12212 * groff/Makefile: New file.
12213 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12215 * man/mdate.sh: Use ls -L if supported.
12217 * Consolidate all header files produced by gendef into lib/defs.h.
12218 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12219 Don't include path.h.
12220 * lib/Makefile (path.h): Don't generate.
12221 * troff/input.c: Include defs.h. Don't include config.h.
12222 * troff/Makefile (config.h): Don't generate.
12223 * refer/index.h: Don't include suffix.h.
12224 * refer/index.c: Include defs.h.
12225 * refer/indxbib.c: Include defs.h.
12226 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12228 * refer/Makefile (suffix.h, path.h): Don't generate.
12229 * groff.c: Don't include config.h. Include defs.h.
12230 * Makefile (config.h): Don't generate.
12231 (lib/defs.h): Generate.
12232 (topclean): Remove lib/defs.h.
12234 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
12236 * lib/malloc.c, lib/getpagesize.h: Deleted.
12237 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
12239 * lib/Makefile: Delete malloc-related stuff.
12240 * lib/new.c: Workaround COOKIE_BUG if necessary.
12242 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
12243 needed header files directly.
12244 * refer/refer.h: Omit definition of DEFAULT_INDEX.
12245 * Makefile: Include definition of DEFAULT_INDEX in path.h.
12247 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
12249 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12251 * lib/font (font::load_desc, font::load): Don't split argument of
12253 (font::handle_unknown_font_command): Change type.
12254 * ps/ps.c (ps_font::handle_unknown_font_command,
12255 handle_unknown_desc_command): Change type.
12256 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12258 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
12260 * lib/font.h (font::handle_unknown_font_command): Add file and
12262 * lib/font.c (font::handle_unknown_font_command):
12263 * ps/ps.c (ps_font::handle_unknown_font_command):
12264 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12265 lineno arguments. Use _with_file_and_line functions for error
12268 * lib/fontfile.c (font::unknown_desc_command_handler): New static
12270 * lib/font.c (font::set_unknown_desc_command_handler): New
12272 (font::load_desc): For unknown commands, call
12273 unknown_desc_command_handler if not null.
12274 * lib/font.h (class font): Declare them.
12275 (FONT_COMMAND_HANDLER): New typedef.
12276 * ps/ps.c (handle_unknown_desc_command): New function.
12277 (main): Set bflag if we had a -b option. Call
12278 font::set_unknown_desc_command_handler.
12279 (broken.h): Don't include.
12280 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
12282 * ps/devps/Makefile: Add `broken' command to DESC file using
12283 BROKEN_SPOOLER_FLAGS.
12285 * macros/tmac.e ([, ]): Add as synonyms for { and }.
12287 * macros/tmac.e ($p): Only exdent if \$3 > 0.
12289 * macros/tmac.e (@R, @S): New macros.
12290 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12291 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12292 Declare $H, $[0-9], .. macros with @S.
12293 Declare |0, |1, |2, |3 strings with @S.
12295 * macros/tmac.e (@S): Rename to @U.
12297 * macros/tmac.e (@z): Define @b and bp as empty instead of
12300 * macros/tmac.e (@m): Deleted.
12301 (@h): Don't call @m.
12302 (@z): Don't set @m trap.
12304 * macros/tmac.e ($h, $f): Define |z as empty string.
12306 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12309 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12311 ()f): Likewise for * register.
12313 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12314 argument is missing, don't change $R. Call sr with three
12315 arguments when initializing.
12317 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
12319 * macros/tmac.e (sr): New macro.
12320 Initialize $r and $R using sr.
12322 * macros/tmac.e (,): Delete \*(#[.
12324 * troff/env.c (set_tabs): Read the tab type even if the position
12325 is bad. Allow the position of the first tab stop to be negative.
12327 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
12329 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12331 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12332 rather than -DPATHCONF_MISSING.
12333 * Makefile: Get rid of PATHCONF_MISSING.
12335 * refer/map.c: New file.
12336 * refer/index.c: Interface to mmap through map.c. Rename map_size
12338 * refer/Makefile: Handle map.c.
12339 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12341 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
12343 * Makefile: RANLIB should be `true' if there is no ranlib.
12344 * lib/Makefile (libgroff.a): Simplify.
12345 * driver/Makefile (libdriver.a): Simplify.
12347 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12348 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
12351 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
12353 * troff/env.c (compare_ranges): Declare as extern "C".
12355 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12357 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12359 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
12361 * pic/troff.c (troff_output::text): Merge in grops_output::text,
12362 but conditionalize use of \X based on \*(.T.
12363 (grops_output::*): Deleted.
12364 * pic/output.h: Delete declaration of make_grops_output.
12365 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
12366 by default. -n sets it to 0.
12367 (usage): Corresponding changes.
12368 * groff.c (main): Don't pass -x or -p to pic.
12369 * groff.sh: Likewise.
12371 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12374 * ps/devps/afmtodit: Change calculation of asc_boundary and
12375 desc_boundary. Make these bounds inclusive.
12376 * ps/devps: Regenerate font files.
12378 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
12380 * macros/tmac.latin1: New file.
12381 * macros/tmac.tty-char: Use tmac.latin1.
12382 (tmac.tty-tr): Deleted.
12383 * macros/Makefile: Install tmac.latin1.
12384 * macros/tmac.dvi: Use tmac.latin1.
12385 * macros/troffrc: Translate \[char160] onto no-break space here.
12386 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12388 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
12390 * macros/tmac.Xps: Use `do' request.
12392 * macros/tmac.ps: Use `do' request.
12394 * macros/tmac.e (@C): Use `do' request.
12396 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12397 * macros/Makefile: Install tmac.X*.
12399 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12400 * tty/Makefile: Don't install tmac.tty*.
12401 * macros/Makefile: Install tmac.tty*.
12403 * dvi/tmac.dvi: Move to macros.
12404 * dvi/Makefile: Don't install tmac.dvi.
12405 * macros/Makefile: Install tmac.dvi.
12407 * ps/tmac.ps*: Move to macros.
12408 * ps/Makefile: Don't install tmac.ps*.
12409 * macros/Makefile: Install tmac.ps*.
12411 * eqn/box.c: Provide draw_lines parameter corresponding to -D
12413 * macros/eqnrc: Set draw_lines parameter based on device.
12414 * groff.c: Don't pass -D flag to eqn.
12415 * groff.sh: Likewise.
12416 * eqn/main.c: Warn about use of -D.
12418 * troff/input.c (process_startup_file): New function.
12419 (main): Call process_startup_file().
12420 * macros/troffrc: New file.
12421 * macros/Makefile: Install troffrc.
12422 * groff.c (main): Don't pass extra -m option to troff. For a
12423 pseudo device pass the name of the pseudo device to troff using
12425 * groff.sh: Likewise.
12426 * groff.c (possible_command::prepend_arg): Deleted.
12428 * troff/input.c (do_request): New function.
12429 (init_input_requests): Bind "do" to do_request.
12431 * eqn/main.c (main): Instead of loading eqnchar from device directory,
12432 load eqnrc from macro directory.
12433 * macros/eqnrc: New file.
12434 * macros/Makefile: Install eqnrc.
12435 * ps/devps/eqnchar: Deleted.
12436 * ps/devps/Makefile: Don't install eqnchar.
12437 * dvi/devdvi/eqnchar: Deleted.
12438 * dvi/devdvi/Makefile: Don't install eqnchar.
12439 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12442 * lib/device.[ch]: New files.
12443 * lib/font.h (font::set_device_name, font::get_device_name):
12445 * lib/fontfile.c: Use device.h.
12446 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12447 * troff/input.c: Delete definition of `device'.
12448 (main): Don't initialize device.
12449 * troff/troff.h: Include device.h rather than declaring device.
12450 * troff/Makefile: No need to handle DEVICE.
12451 * driver/input.c: Include device.h. Don't use
12452 font::{set,get}_device_name.
12453 * groff.c, Makefile: Rename device.h to config.h.
12454 * groff.c: Use library device variable.
12455 * eqn/main.c: Use library device variable.
12456 * eqn/Makefile: No need to handle DEVICE.
12458 * lib/searchpath.[ch]: New files.
12459 * lib/Makefile: Handle searchpath.[ch].
12460 * troff/input.c (open_file, init_dirs): Deleted.
12461 (macro_dirs): Deleted.
12462 (open_mac_file, macro_source): Use class search_path.
12463 (add_string, struct string_list): Move definition.
12464 (main): Change -M option to use macro_path. Delete call to
12466 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12467 Rewrite to use class search_path.
12468 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12469 * lib/Makefile: fontfile.c depends on searchpath.h.
12470 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12472 * lib/macropath.[ch]: New files.
12473 * troff/Makefile: No need to handle MACROPATH.
12475 * troff/input.c: Delete DUMP code.
12476 * lib/fontfile.c, lib/font.h: Delete
12477 font::forget_command_line_font_dirs.
12479 * troff/input.c (push_token): New function.
12480 (handle_first_page_transition): Use push_token().
12481 (process_input_stack): Change handling of a space at the beginning
12484 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
12486 * troff/input.c (font_dirs): Delete unused variable.
12488 * eqn/lex.c (do_set): Correct error messages.
12490 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
12492 * troff/input.c (do_define_string): Allow the string name to be
12493 followed immediately by a tab.
12494 (define_character): Likewise.
12496 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
12498 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12501 * troff/input.c (input_iterator::is_file): New virtual function.
12502 (file_iterator::is_file): New function.
12503 (input_stack::end_file): New function.
12504 (input_stack::next_file): Handle the situation where there is no
12505 file on the input stack correctly. Avoid making two passes over
12507 (next_file): Make the filename optional; in this case call
12508 input_stack::end_file().
12510 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
12512 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12513 produce a real _ charater when the current font is CW and _
12516 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12517 expression to work around gcc 2.2 bug.
12519 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
12521 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12523 * troff/env.c (environment::add_padding): New function.
12524 (environment::add_char): Use add_padding().
12525 (environment::space): Likewise.
12526 (environment::wrap_up_field): Add some padding if there is none
12527 and there's no current tab.
12528 * troff/env.h: Declare environment::add_padding.
12530 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
12532 * pic/pic.y: undef fmod and rand before declaring them.
12534 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
12536 * troff/input.c (main): If the DESC file specifies a font name of
12537 0, then leave the corresponding font position empty.
12539 * nroff.sh: New file.
12540 * Makefile (install.nobin): Install nroff.sh.
12542 * tty/devlatin1/R.proto: Add ao as synonym for de.
12543 * tty/tmac.tty-char: Define ao as o.
12545 * tty/dev{ascii,latin1}/R.proto: Add aq.
12546 * tty/tmac.tty-char: Delete definition of aq.
12548 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
12550 * troff/input.c (init_charset_table): Don't translate 0240.
12551 * ps/tmac.ps: Translate char160 to space.
12552 * dvi/tmac.dvi: Likewise.
12553 * tty/tmac.tty: Likewise.
12555 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
12557 * dvi/tmac.dvi: Add support for all Latin-1 characters.
12559 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12560 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12563 * tty/tmac.tty-char: Add \(ah.
12565 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12566 No need to define \(FM and \(!/. Conditionalize all character
12569 * ps/devps/lgreekmap: Add +h, +f, +p.
12571 * ps/tmac.psnew: New file.
12572 * ps/Makefile: Install tmac.psnew.
12574 * troff/input.c (charinfo_to_node_list): Don't ever interpret
12575 character definitions in compatible mode.
12577 * troff/input.c (remove_character): New function.
12578 (init_input_requests): Bind remove_character to "rchar".
12580 * ps/tmac.psold: New file.
12581 * ps/Makefile: Install tmac.psold.
12582 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12583 characters into tmac.psold. Make these definitions unconditional.
12585 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12587 * ps/tmac.ps: Don't define \('c and \('C.
12589 * ps/devps/textmap: Move Greek characters to...
12590 * ps/devps/symbolchars:
12592 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
12594 * ps/devps/text.enc: Add quotesingle.
12595 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12596 * tty/tmac.tty-char: Likewise.
12597 * dvi/devdvi/texmi.map: Add +h, +f, +p.
12598 * dvi/devdvi/texi.map: Add Fn.
12599 * dvi/devdvi/msam.map: Add lz.
12600 * dvi/tmac.dvi: Handle Bq, bq, aq.
12602 * pic/lex.c (get_token): Recognize 'th.
12603 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12605 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
12607 * ps/devps/textmap: Move di, mu, +- to...
12608 * ps/devps/symbolchars:
12610 * macros/tmac.s (@XS): Don't call par@reset or fi.
12611 (XA): Call LP. Turn off adjustment. Reduce line length.
12613 * macros/tmac.s: Initially alias XS to LP.
12614 (XS): Rename to @XS.
12615 (cov*ab-init): Alias XS to @XS.
12617 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
12619 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12620 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12621 (token::is_size, token::changes_env): Deleted.
12622 * troff/number.c (parse_term): No need to process \s explicitly.
12623 Call tok.next() only after scale indicator has been processed.
12624 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12626 (token::next): Handle \s, \f, \S, \H immediately rather than
12627 returning them as tokens.
12628 (token::operator==, token::description, token::add_to_node_list,
12629 token::process): Remove handling of deleted tokens.
12631 * troff/env.c (environment::add_char): When adding padding
12632 indicator character, call start_line() if necessary.
12634 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
12636 * ps/devps/afmtodit: Don't output 0 kerns.
12638 * ps/devps/afmtodit: Remove directory from name of encoding in
12639 font description file.
12641 * ps/devps/afmtodit: Improve error messages.
12643 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12645 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12646 * ps/devps/FontMakefile: Deleted.
12647 * ps/devps/afmname: New file.
12649 * ps/devps/symbol.sed: New file.
12650 * ps/devps/symbol.diff: Deleted.
12651 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12652 Generate zapfdr.afm from zapfd.afm.
12654 * tty/tmac.tty (tty-char): Prefix definition with ".
12656 * macros/tmac.an (TP): Don't start a diversion if one has already
12659 * tty/tmac.tty-char: Add Latin-1 characters.
12661 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12663 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
12665 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12666 Move declaration of struct horizontal_span.
12668 * tbl/table.c (table::table): Initialize span_list.
12669 (table::~table): Delete span_list.
12671 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12673 * ps/devps/Makefile: Avoid dependency on GNU make.
12675 * ps/tmac.ps: Check that character does not already exist before
12678 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12679 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12680 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12683 * tty/tmac.tty-char: New file.
12684 * tty/Makefile: Install tmac.tty-char.
12685 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12688 * tty/tmac.tty: Fix definition of \(34.
12690 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12691 bracket-drawing characters onto |. Add *o.
12693 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12694 only if current_field.
12696 * troff/dictionary.c (dictionary::lookup): Free old_table after
12699 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
12701 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12702 whose glyphs are identical to glyphs of some Roman character.
12704 * tty/devlatin1/R.proto (bu): Deleted.
12705 * tty/devascii/R.proto (bu): Deleted.
12706 * tty/tmac.tty: Add definition of \(bu.
12708 * eqn/main.c (do_file): Pass FILE as argument.
12709 (main): Automatically load eqnchar. New options -F and -n.
12710 Pass do_file an opened FILE.
12711 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12712 No need to include font.h.
12713 * groff.sh: Likewise. Don't need to use - for standard input.
12714 Prefix files with -- if first file starts with -.
12716 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12718 * troff/env.c (environment::possibly_break_line): Don't set line
12719 to 0 across call to output_line(). Don't call output_line() until
12720 after discarding nodes after break.
12722 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
12724 * request.h (macro::empty): Declare it.
12725 * input.c (macro::empty): New method.
12726 (interpolate_macro): Don't give a WARN_SPACE if the two-character
12729 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
12731 * troff/env.c (environment::start_field): Decrement space_total
12732 when a space is frozen.
12734 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
12736 * macros/tmac.an (R): Delete macro.
12738 * troff/input.c (get_copy, token::next): Support \# (like \" but
12739 newline is ignored).
12741 * troff/input.c (token::next): Fix error message in 'Y' case.
12743 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
12745 * eqn/delim.c (define_extensible_string): Recognize any prefix of
12748 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
12750 * c++test.c: Include <osfcn.h>.
12752 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12755 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
12757 * tbl/table.c (table::divide_span): Don't count column separation
12758 if expand was specified.
12760 * tbl/main.c (process_format): Don't ignore width specs in
12761 continued format. Give warning for changing equal widths or
12762 column separation in continued format.
12763 (process_data): Set column separation, minimum width, equal
12764 columns at end of table.
12766 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
12768 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12769 node::add_discretionary_hyphen): Use soft_hyphen_char.
12770 (set_soft_hyphen_char): New function.
12771 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
12773 * Makefile (c++tested): Give more helpful message if test fails.
12775 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
12777 * troff/input.c (init_charset_table): Translate 0240 to
12778 an unbreakable space.
12780 * troff/token.h (token::hyphen_indicator): New function.
12781 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12783 * troff/input.c (translate): Allow translation to \%.
12784 * troff/node.c (node::add_char): Handle
12785 TRANSLATE_HYPHEN_INDICATOR.
12786 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12788 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12791 * tty/devlatin1/R.proto: \(hy and - should print as 055.
12793 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
12795 * groff.c (run_commands): If the last command gets a SIGPIPE send
12796 a SIGPIPE to all children than haven't yet terminated. When
12797 command terminates, set pid field to -1.
12799 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
12801 * groff.c (main): Pass an appropriate -filename option to gxditview.
12803 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
12805 * Makefile.bd (install): Remove existing program before copying.
12807 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12808 programs which have Unix counterparts to be installed with
12809 user-specified prefix.
12811 * troff/input.c (exit_troff): Don't check if exit_started.
12812 (exit_request): Don't call exit_troff if exit_started.
12814 * Makefile.bd (install.mm): Rename to install.dwbmm.
12816 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
12818 * driver/input.c (do_file): Add missing break for '#' case.
12820 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
12822 * troff/input.c (input_stack::clear): Clear past any boundaries and
12823 then add the boundaries back.
12825 * troff/input.c (exit_troff): Return immediately if already
12828 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
12830 (pg*end-page): If the text has ended and there are no more
12831 footnotes or keeps, exit.
12833 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12835 * troff/input.c (init_charset_table): Make \(rq transparent by
12838 * macros/tmac.an: Define lq and rq strings.
12840 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12842 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
12844 * troff/env.c (environment::final_break): New function.
12845 (environment::newline): Set prev_line_interrupted to 2 if
12847 * troff/env.h: Declare environment::final_break.
12848 * troff/input.c (exit_troff): Call environment::final_break()
12849 instead of environment::do_break().
12851 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12852 doesn't already exist.
12853 * macros/man.local: New file.
12854 * macros/tmac.an: Load man.local.
12855 * macros/man.ultrix: New file.
12857 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
12859 * troff/input.c (exit_groff): Rename to...
12860 (exit_troff): New function.
12862 * troff/div.c (exit_started, done_end_macro,
12863 seen_last_page_ejector): New global variables.
12864 (began_page_in_end_macro): New static variable.
12865 (exit_flag): Deleted.
12866 (top_level_diversion::top_level_diversion): Initialize
12868 (top_level_diversion): More elaborate test for whether
12869 cleanup_and_exit() should be called.
12870 Set began_page_in_end_macro if the end macro isn't yet finished.
12871 * troff/div.h (top_level_diversion::last_page_count): New data
12873 (top_level_diversion::set_last_page): New function.
12874 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12875 * troff/env.c (do_break): Zero prev_line_interrupted.
12876 * troff/input.c (exit_flag): Delete declaration.
12877 (LAST_PAGE_EJECTOR): New magic cookie.
12878 (token::next): Handle LAST_PAGE_EJECTOR.
12879 (exit_groff): Set exit_started and done_end_macro instead of
12880 exit_flag. Call top_level_diversion::set_last_page. Push a
12881 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
12882 another ejection after setting seen_last_page_ejector.
12884 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
12886 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12888 * macros/tmac.e (TH): Make sure there's room for the initial
12891 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12892 Set FVS in points rather than units.
12894 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
12896 * troff/div.c (top_level_diversion::add_trap): Don't consider the
12897 position of empty slots.
12899 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
12901 * ps/devps/S: Fix height and depth of parenrightex.
12902 * ps/devps/symbol.diff: Regenerate.
12904 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
12906 * tmac.e (u): Do underlining as in -mgs.
12908 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
12910 * tty/tty.c (tty_printer::end_page): If overstriking is
12911 suppressed, still turn overstruck horizontal and vertical lines
12914 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12917 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12919 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
12921 * Version 1.05 released.
12923 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
12925 * tty/tty.c: Instead of keeping an array of glyphs and then
12926 sorting it, keep a ordered linked list of glyphs for each line.
12928 * driver/driver.h: Include stddef.h.
12930 * tty/tty.c (compare_glyph):
12931 * refer/refer.c (rcompare):
12932 * troff/env.c (compare_ranges): Arguments of qsort comparison
12933 function should be const void *.
12935 * troff/number.c (parse_term):
12936 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12939 * refer/label.y (consider_authors): Don't access variables
12940 constructed under a condition outside that condition: put braces
12941 round for statement containing declaration; redeclare use of same
12944 * pic/pic.y (text_expr): Delete production that allows
12945 parenthesised text_expr.
12946 (expr): Allow a conditional_expr to appear in parentheses.
12947 (conditional_expr): Rename to any_expr.
12949 * mm: Install new version 1.01 from jh.
12951 * lib/font.c (font::get_width): Cache scaled widths.
12952 (font::font): Initialize widths_cache.
12953 (font::~font): Destroy widths_cache.
12954 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12956 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
12958 * c++test.c, c++test.ref: New files.
12959 * Makefile: Check that the C++ compiler works.
12961 * ps/tmac.pspic (PSPIC): Do a break.
12963 * ps/tmac.ps: Move definition of PSPIC into...
12964 * ps/tmac.pspic: New file.
12965 (PSPIC): Draw box around picture, but make it invisible to grops.
12966 * ps/tmac.ps: Load tmac.pspic.
12967 * ps/Makefile: Install tmac.pspic.
12969 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
12971 * lib/font.c (scale_round): If n is negative,
12972 subtract .5 before truncating floating point result.
12974 * lib/fontfile.c: Include <errno.h>.
12976 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
12978 * driver/input.c (get_char): Inline. Don't update current_lineno.
12979 Change callers to up date current_lineno if necessary.
12980 Use get_char() instead of getc(current_file).
12982 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
12984 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12986 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
12988 * tty/tty.c (tmac.tty): Define \(rg as (R).
12990 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
12992 * lib/lib.h: New define a_delete.
12993 * Use a_delete instead of delete when deleting an array of objects
12994 without destructors.
12996 * lib/lib.h: Rename adelete to ad_delete.
12997 * Change uses of adelete.
12999 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
13001 * eqn/eqn.y: Include lib.h.
13003 * troff/node.c (grow_font_table): Delete old_font_table.
13005 * mm: Install new version from jh.
13007 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
13009 * tbl/table.h (format_type): Make global instead of local to class
13010 entry_format. Prefix enumerators with FORMAT_.
13011 * tbl/table.c, tbl/main.c: Corresponding changes.
13012 * refer/token.h (token_type): Make global. Prefix enumerators
13014 * refer/token.[ch]: Corresponding changes.
13015 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13017 * troff/div.c (node::set_vertical_size): Don't name argument.
13019 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
13021 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13022 * lib/lib.h: Define adelete accordingly.
13023 * pic/object.c (graphic_object::graphic_object):
13024 * tbl/main.c (format::~format):
13025 * tbl/table.c (table::~table):
13026 * refer/ref.c (reference::~reference, reference::merge,
13027 reference::insert_field, reference::delete_field): Use adelete.
13029 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13031 * tbl/table.h: Corresponding changes.
13033 * common.c (common_output::dashed_arc, common_output::dotted_arc):
13034 Ensure total_angle is positive.
13036 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
13038 * refer/ref.c (reference::merge, reference::insert_field,
13039 reference::delete_field): Avoid delete[0].
13041 * refer/token.c (init_special_chars): Move calls to cmupper
13042 outside calls to init_two_char_letter to work around bug in gcc
13045 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
13047 * lib/new.c (operator new): Use __builtin_new for g++.
13049 * pic/object.c (graphic_object::~graphic_object): Don't use
13052 * pic/object.c (output::compute_scale): Initialize max_width and
13055 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
13057 * troff/input.c (write_request): Call fflush.
13059 * troff/node.h (class composite_node): Move declaration to node.c
13060 * troff/input.c (charinfo_to_node): Rename to ...
13061 (charinfo_to_node_list): Return node list rather than composite
13063 * troff/node.c (make_composite_node): New function.
13064 (make_node, add_char): Call make_composite_node instead of
13066 (class composite_node): Add a tfont * member. Delete font_size
13068 (composite_node::composite_node, composite_node::copy,
13069 composite_node::size): Corresponding changes.
13070 (composite_node::tprint): Provide constant spacing, emboldening
13071 and track kerning as specified in tfont.
13072 (composite_node::width): Change width calculation accordingly.
13073 * troff/env.h (environment::composite): New member.
13074 (environment::is_composite, environment::set_composite): New
13076 * troff/env.c (environment::environment): Initialize composite.
13077 * troff/input.c (charinfo_to_node): Call
13078 environment::set_composite.
13079 * troff/node.c (make_composite_node, make_glyph_node): Use the
13080 plain version of the tfont if the environment is composite.
13082 * troff/node.c (font_info::get_space_width): Additional argument
13083 giving space_size. Handle constant space correctly. Scale by
13084 space_size unless constant spaced.
13085 (env_sentence_space_width): New function.
13086 * troff/node.h: Declare it.
13087 * troff/env.h (environment::get_space_size,
13088 environment::get_sentence_space_size,
13089 environment::get_narrow_space_width,
13090 environment::get_half_narrow_space_width): Make inline.
13091 (environment::get_space_width): Make inline. Just call
13093 * troff/env.c: Delete definitions for funtions made inline.
13094 (environment::space_newline, environment::space): Use
13095 env_sentence_space_width(). Don't scale by space_size.
13096 * troff/node.h: Move declarations of env*space_width() functions
13099 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
13101 * macros/tmac.s (PS): Don't try to set negative indent.
13103 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
13105 * pic/pic.y: Fix min function.
13107 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
13109 * man/mdate.sh: Clear LANGUAGE.
13111 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
13113 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13114 * pic/lex.c: New COMMAND keyword.
13115 * pic/pic.y (print_args, print_arg): New rules.
13116 (placeless_element): Use print_args for PRINT.
13117 New COMMAND element.
13119 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
13121 * troff/input.c (terminal): Handle missing argument correctly.
13123 * pic/pic.y (text_expr): New rule.
13125 * pic/pic.y: Implement := operator.
13127 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
13129 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13132 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
13134 * ps/devps/dingbatsrmap: Include this in the distribution.
13136 * macros/tmac.doc: Replace with new version from 2nd Networking
13137 Release. Fix loading of doc-* files.
13138 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13139 * macros/tmac.doc.old: New file. Apply fixes that had been
13140 applied to old tmac.doc.
13141 * macros/tmac.andoc: Check that we're running under groff.
13142 * macros/Makefile: Rework.
13144 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
13146 * tbl/table.h (format_type):
13147 * refer/token.h (token_type): If NESTED_TYPES is defined, use
13148 typedef to make these types visible at file scope.
13149 * Makefile: Add NESTED_TYPES configuration option.
13151 * troff/div.c (mark): At the top level use the value of
13152 nl_reg_contents rather than the current vertical position.
13154 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
13156 * tty/tty.c: Implement \D for horizontal or vertical lines.
13157 (tty_printer::set_char): Use vec_used+2 as serial number.
13158 Don't allow size of vector to exceed USHRT_MAX-2.
13159 Split off part into...
13160 (tty_printer::add_char): New function.
13161 (tty_printer::draw): New function.
13162 (compare_glyph): Handle equal serial numbers.
13163 (tty_printer::end_page): Handle overstruck characters from \D.
13164 (main, usage): Implement -d option.
13166 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
13168 * tbl/main.c (process_format):
13169 * eqn/text.c (split_text):
13170 * troff/input.c (token::next): Use inner block for declarations
13171 with initializers in switch statement.
13173 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
13175 * pic/common.c (common_output::dash_line): Cope with zero-length
13178 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
13180 * Version 1.04 released.
13182 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
13184 * macros/tmac.an (TH): Define a macro an-init to define variables
13185 based on command line arguments.
13186 (an-header): Call it.
13188 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
13190 * Makefile (install.mm): Rename to install.dwbmm.
13192 * Makefile: Integrate mm.
13193 * mm: New directory.
13195 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
13197 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13200 * pic/troff.c (troff_output::simple_spline,
13201 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13202 shadowing parameter.
13204 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13206 * lib/ptable.h: Add explicit casts when converting from unsigned
13209 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13210 * dvi/devdvi/Makefile: Install SA, SB.
13212 * refer/indxbib.c: Add declaration of mktemp.
13214 * refer/lookbib.c: Add declaration of isatty.
13216 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
13218 * pic/lex.c (interpolate_macro_with_args): While collecting
13219 arguments, keep track of whether we're in a string.
13221 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
13223 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13224 down with \v, so as to avoid problems with top of page trap
13225 setting no space mode.
13227 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
13229 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13231 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
13233 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13234 Improve error message.
13236 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
13238 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13241 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
13243 * groff.c (possible_command::execp): Always use _exit() after a
13246 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13247 NO_SYS_WAIT_H configuration options.
13248 * groff.c: Use these options. Use POSIX-style macros to extract
13249 fields from the status returned by wait().
13251 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
13253 * tbl/table.c (table::compute_separation_factor): Allow the
13254 separation factor to drop to 0.
13256 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
13258 * refer/search.c: Include <errno.h>.
13260 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
13262 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13264 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13267 * pic/lex.c (input_stack::bol): Move definition out of class body.
13269 * pic/main.c: On MSDOS munge argv[0].
13271 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13273 * lib/ptable.c (hash_string): Use unsigned long rather than
13275 (next_ptable_size): Use unsigned rather than int. Give an error
13276 message if we've hit the largest table size.
13277 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
13280 * pic/object.h (object_spec): Make flags unsigned long. Declare
13281 flags as const unisgned long rather than as enums.
13283 * pic/output.c: Deleted.
13285 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13287 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13288 Add additional argument.
13289 (line_entry::note_double_vrule_on_{left,right}): Set value of
13290 douvle_vrule_on_{right,left} flag according to argument.
13291 (simple_line_entry::simple_print,
13292 simple_line_entry::double_line_print): If adjacent to double vrule
13293 on a corner extend rather than shorten the rule by half the double
13296 * troff/number.c (parse_term): In checking for overflow, handle the
13297 case where the current horizontal position is negative.
13299 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
13301 * pic/object.c (draw_arrow): Check for object having zero length.
13303 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
13305 * eqn/main.c (do_file): Split off inline equation handling into...
13306 (inline_equation): New function. Search for starting delimiter
13308 (delim_search): New function. Don't recognize a delimiter that
13309 occurs in the name of an escape sequence, number register, string
13312 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
13314 * eqn/delim.c (delim_box::compute_metrics): Don't call
13315 define_extensible_string if left is 0.
13316 (delim_box::output): Don't print the left delimiter if left is 0.
13317 (delim_box::debug_print): Check for left == 0 before calling printf.
13319 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
13321 * troff/Makefile (majorminor.c): Include only digits in
13324 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
13326 * refer/dirnamemax.c: new file.
13327 * refer/genlimits.c: Deleted.
13328 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13329 Don't check path length.
13330 * refer/Makefile: Add dir_name_max.o; delete genlimits.
13331 * Makefile: Add PATHCONF_MISSING option.
13333 * refer/indxbib.c (get_cwd): New function.
13334 (main): Use get_cwd().
13335 * lib/getcwd.c: New file.
13336 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13337 GETCWD in SUBFLAGS.
13338 * lib/Makefile: Compile getcwd.o.
13340 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13343 * refer/indxbib.c (main): Check success of mktemp.
13345 * lib/tmpfile.c: New file.
13346 * lib/Makefile: Add tmpfile.c.
13347 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13348 * ps/ps.h: Delete declaration of mktemp().
13349 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13350 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13351 * driver/driver.h: No need now to include errno.h.
13353 * everywhere: Set errno to 0 before calling fopen().
13355 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13356 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13357 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13359 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
13361 * troff/env.h (translate_space_to_dummy): Declare it.
13362 * troff/env.c (environment::space_newline, environment::space):
13363 If translate_space_to_dummy is set then make the width of spaces 0.
13364 * troff/input.c (translate): If the second character of a
13365 translation is a space, translate to unbreakable space. If the
13366 first character is a space, set or clear translate_space_to_dummy
13367 according to whether the second character is \&. Weird!
13369 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
13371 * groff.c (run_commands): Don't use non-zero exit code because a
13372 command gets SIGPIPE.
13374 * groff.c, groff.sh: Use -mXps with -TXps.
13376 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13377 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13378 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13379 (ps_printer::special): New specials invis and endinvis.
13380 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13381 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
13382 (ps_printer::end_page): Check that invis_count == 0.
13383 (ps_printer::invis_count): New member.
13384 (ps_printer::ps_printer): Initialize invis_count to 0.
13386 * troff/env.c (environment::hyphenate_line): Hyphenation
13387 indicator at beginning of word inhibits splitting after -, \(em
13390 * pic/pic.y (element): Allow another element to follow } without
13391 any intervening separator.
13393 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
13395 * pic/lex.c (get_delimited): Allow tabs before delimiter.
13397 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
13399 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
13400 declaration of wait() in header files.
13401 * Makefile: Get rid of -DHAVE_UNION_WAIT.
13403 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13405 * lib/lib.h: Declare return type of strerror as char *.
13407 * man/Makefile: Add g flag to sed substitutions.
13408 * Makefile (shgroff, bindist): Likewise.
13410 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
13412 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13413 * ps/devps/prologue (PBEGIN): Define showpage after pushing
13416 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
13418 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13421 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
13423 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13426 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
13428 * troff/input.c (define_number_reg): If currently undefined,
13429 don't define it if the argument is an invalid expression.
13431 * Makefile: Ignore return value of `if' commands without `else'
13434 * Makefile: Split up CPPDEFINES into a series of separate
13435 configuration options.
13437 * troff/input.c (init_registers): Use time_t instead of long
13438 unless LONG_FOR_TIME_T is defined. Use returned result rather
13439 than passing pointer.
13440 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13442 * lib/Makefile (fontpath.h): Use gendef.
13444 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
13446 * troff/input.c (input_iterator::shift): Delete argument name.
13447 * troff/node.c (suppress_output_file::really_begin_page,
13448 suppress_output_file::really_transparent_char, node::ascii_print,
13449 node::tprint): Delete names of unused arguments.
13451 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
13453 * refer/label.y (string): Pass $4 to command_error.
13455 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
13457 * Version 1.03 released.
13459 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
13461 * Makefile: Pass definition of SHELL in SUBFLAGS.
13463 * gendef: New file.
13464 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13465 ps/Makefile: Use gendef to construct header files that are
13466 constructed from the Makefile.
13468 * macros/Makefile: make all should build stripped version of tmac.e.
13470 * refer/Makefile (clean): Remove y.output.
13472 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
13474 * ps/pfbtops.c (main): Add -v option which prints out a version
13476 * ps/Makefile (pfbtops): Link with libgroff.a.
13478 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
13480 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13481 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13483 * refer/lkbib.c (main): Always terminate reference with blank
13485 * refer/lookbib.c (main): Likewise.
13487 * refer/linear.c (file_buffer::load): Check that the file is not a
13490 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13491 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13492 Delete second inclusion of <sys/param.h>.
13494 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
13496 * troff/token.h (token::special): Deleted.
13498 * tbl/main.c (process_format): Rework so that opt->tab_char is
13499 recognized only when appropriate.
13501 * ps/Makefile (clean): Remove pfbtops.
13503 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
13505 * lib/font.c (text_file::next): Don't return if we have got a
13508 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
13510 * refer/refer.c (store_reference): Get hash code from old_table[i]
13511 when rehashing the table.
13513 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
13515 * eqn/box.c (box::top_level): Save size and prev size using \R and
13516 restore it afterwards. Set the size to the size at the beginning
13518 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13519 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13521 * refer/Makefile (limits.h): Use ./genlimits.
13523 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
13525 * refer/index.c: Delete declarations of stat() and fstat().
13527 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
13529 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13531 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
13533 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13535 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
13537 * troff/input.c (token::get_char): Handle \e.
13539 * refer/linear.c: Delete declarations of fstat() and stat().
13541 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
13543 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13544 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13546 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
13548 * troff/input.c (do_define_macro): Improve error handling for end
13549 of file while defining macro.
13551 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
13553 * eqn/box.h: Fix declaration of set_gsize.
13554 * eqn/box.c (set_gsize): Make argument const char *.
13555 (gsize): Declare as char *.
13556 * eqn/main.c (main): Don't convert gsize to int.
13557 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13559 * Version 1.02 released.
13561 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
13563 * macros/tmac.andoc: New file.
13564 * macros/Makefile: Install tmac.andoc.
13566 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13567 operator new and delete on OP_DELETE_BROKEN not being defined.
13568 * Makefile: Mention OP_DELETE_BROKEN.
13570 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
13572 * Makefile (bindist): Pass SUBFLAGS.
13574 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
13576 * Makefile, groff.c: Pass definitions to groff.c via device.h.
13578 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13581 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13583 * ps/ps.h, ps/psrm.c: Make comment_table and
13584 header_comment_table local to resource_manager::process_file.
13586 * groff.sh: With -TXps pass -printCommand option to gxditview.
13588 * groff.c (possible_command::print): Implement using
13589 append_arg_to_string.
13591 * xditview: Merge in new implementation with own ChangeLog.
13593 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
13595 * groff.c (main): Implement PRINT_OPTION.
13596 (append_arg_to_string): New command.
13597 (device_table): Set PRINT_OPTION flag for Xps.
13599 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
13601 * troff/groff.h: Rename to troff.h.
13603 * pic/lex.c (lookup_keyword, docmp): New functions.
13604 (get_token): Use new lookup_keyword.
13605 Don't include key.h.
13606 * pic/key.[ch], pic/pic.gperf: Deleted.
13607 * pic/Makefile: Remove gperf stuff.
13609 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13611 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13613 * troff/Makefile, troff/node.c: Move definition of
13614 STORE_WIDTH into node.c.
13616 * etc/grog.pl, etc/grog.sh: Support -mdoc.
13618 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
13620 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13621 dvi/devdvi/texb.map: Add lq and rq.
13622 dvi/devdvi: Regenerate fonts.
13623 * ps/devps/textmap: Add lq and rq.
13624 * ps/devps: Regenerate fonts.
13625 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13626 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13628 * pic/object.c (position_rectangle): When checking radius
13629 cope with possiblity that width or height is negative.
13630 (box_object::box_object): Have separate xrad and yrad with
13631 signs matching signs of dim components.
13632 (box_object::{north,south}_{east,west}): Use xrad and yrad.
13633 (box_object::print): With rounded boxes use absolute values
13634 for dim and rad arguments.
13636 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13639 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13641 * various files: Add explicit destructors to keep Saber CC +d
13644 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
13646 * eqn/box.c (box::top_level): Restore fonts correctly after
13647 font changes in line containing inline equation. Also
13648 restore previous font as well as current font.
13649 * eqn/pbox.h: Define necessary string and register names.
13651 * troff/input.c (token::next): Case 'R' calls do_register.
13652 (do_register): New function.
13654 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
13656 * groff.c, groff.sh: Support Xps device. Allow each device
13657 to have a pseudo_name and a real_name.
13659 * groff.c (run_commands): Don't print `Broken pipe' messages.
13661 * ps/pfbtops.c: New file.
13662 * ps/Makefile: Add pfbtops.
13664 * troff/number.c (parse_term): Improved error message.
13666 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
13668 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13670 * Makefile: Integrate refer.
13671 * refer: New directory.
13672 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13673 man/lkbib.man: New files.
13674 * man/Makefile: Support refer man pages.
13676 * lib/lib.h: Declare is_prime.
13677 * lib/prime.c: New file.
13679 * troff/input.c (macro_source): New function.
13680 (init_input_requests): Bind "mso" to macro_source.
13682 * troff/env.c (environment::possibly_break_line): Maintain
13683 pointer to pointer to node to be split in ndp so as to avoid
13684 using address of freed node.
13686 * troff/env.c (environment::hyphenate_line): Maintain pointer to
13687 pointer to first node to be hyphenated in startp so as to
13688 avoid using address of freed node.
13690 * troff/env.c (class trie, class hyphen_trie): Make the
13691 elements of the trie be of type char not unsigned char.
13692 Declare arguments to be const char* instead of unsigned char *.
13694 * troff/env.c (hyphenate): Initialize hbuf[0].
13696 * troff/input.c (set_string): Declare p to be char * and cast
13697 *p to unsigned char when necessary.
13699 * troff/input.c (do_define_macro): Declare s to be const
13700 char*. Cast element to unisgned char when necessary, Declare
13701 d to be an int. Handle EOF better.
13703 * troff/Makefile, troff/input.c: Different scheme for passing
13704 definitions of MACROPATH, HYPHENFILE and DEVICE.
13706 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
13708 * tty/devascii/R.proto: Delete entry for em.
13709 * tty/devlatin1/R.proto: Likewise.
13711 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
13713 * troff/input.c (translate): Stop when we get a space. Treat eof
13716 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13718 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
13720 * tbl/main.c (process_format): A font name following a `f'
13721 modifier that starts with a digit can be only one character long.
13722 Also deal with EOF on the second character of the font name.
13724 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
13726 * troff/input.c (token::next): Turn \~ into an
13727 unbreakable_space_node.
13728 * troff/node.c (unbreakable_space_node): New class.
13729 * troff/node.h: Declare it.
13731 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
13733 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
13734 it's >= 0, before outputting it as a single byte.
13736 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
13738 * lib/font.c: Make font_char_metric::code an int.
13739 (font::get_code): Change return type to int.
13740 (font::load): Allow code to be arbitrary integer.
13741 * lib/font.h (font::get_code): Change return type to int.
13742 (font::number_to_index): Change argument type to int.
13743 * troff/input.c (token::next): In case 'N', allow any value.
13744 Store value in token::val.
13745 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13746 (token::get_char, token::add_to_node_list, token::process): Get
13748 (charinfo::set_number): Change argument to int.
13749 (charinfo::get_number): Require that NUMBERED flag be set.
13750 (get_charinfo_by_number): Store numbered characters not between 0
13751 and 255 in a dictionary.
13752 * troff/charinfo.h (get_charinfo_by_number): Change argument type
13754 (charinfo::number): Change type to int.
13755 (charinfo::set_number): Change type of set_number to int.
13756 * troff/node.c (troff_output_file::put_char_width,
13757 troff_output_file::put_char): Test whether character is numbered
13758 using charinfo::numbered().
13759 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13761 * lib/nametoindex.c: New implementation to cope with arbitrary
13764 * troff/input.c (token::operator==): Test val for
13765 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13768 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13769 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
13771 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
13773 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
13776 * all Makefiles: rm targets of cp and >.
13778 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13781 * eqn/lex.c (def_table): Add dollar.
13783 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
13785 * troff/input.c (do_width): Push back newline before closing delim
13788 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
13790 * groff.c (possible_command::prepend_arg): New function.
13791 (main): Prepend device -m option.
13792 * groff.sh: Put device -m options before command-line options.
13794 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
13796 * macros/tmac.an (IP): Quote argument to TP.
13798 * ps/ps.c (main): New option -b, which sets...
13799 (broken_flags): New variable.
13800 (ps_printer::~ps_printer): Incorporate the setup section in the
13801 prolog if (broken_flags & NO_SETUP_SECTION).
13802 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13803 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13804 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13805 ps_printer::print_needed_font_comment,
13806 ps_printer::print_supplied_font_comment,
13807 ps_printer::print_include_font_comments,
13808 ps_printer::lookup_doc_font, ps_printer::download_fonts,
13809 ps_printer::read_download_file, read_document_fonts, add_font,
13810 skip_line, parse_fonts_arg, document_font::document_font,
13811 document_font::~document_font, document_font::download,
13812 ps_output::include_file): Deleted.
13813 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13814 rather than %!PS-Adobe-2.0. Make calls to
13815 resource_manager::need_font for each font that we used. Replace
13816 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13817 print_supplied_font_comment, print_needed_font_comment by call to
13818 resource_manager::print_header_comments. Output %%Orientation
13819 comment. Output %%Requirements: numcopies comment if ncopies > 1.
13820 Don't output the prolog directly. Instead call
13821 resource_manager::output_prolog. Only define #copies when ncopies
13822 > 1. Delete calls to print_include_font_comments and
13823 download_fonts. Add call to resource_manager::document_setup.
13824 (ps_printer::do_file): Call resource_manager::import_file instead
13825 of including it ourselves.
13826 (ps_printer::do_import): Likewise. Also don't call
13827 merge_import_fonts. Push userdict on the dictionary stack before
13828 and pop it afterwards.
13829 Move declaration of ps_output into ps.h.
13830 * ps/psrm.c: New file implementing resource_manager class.
13831 * ps/ps.h: New file declaring ps_output and resource_manager
13833 * ps/devps/zapfdr.ps:
13834 * ps/devps/symbolsl.ps:
13835 * ps/devps/prologue: Use 3.0 conventions.
13836 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13837 Add default definition of BROKEN_SPOOLER_FLAGS.
13838 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
13839 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13841 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
13843 * etc/grog.pl: New file.
13844 * Makefile (GROG): New variable.
13845 Add GROG to SUBFLAGS.
13846 * etc/Makefile (GROG): New variable.
13847 (install.nobin): Install $(GROG) rather than grog.sh.
13849 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
13851 * eqn/special.c (special_box::compute_metrics): Make the input and
13852 output strings the same. Get the new height and depth from the
13853 predefined height and depth registers. Also make subscript kern
13854 and skew available.
13855 (special_box::compute_subscript_kern, special_box::compute_skew):
13858 * eqn/box.c (pointer_box::compute_skew,
13859 simple_box::compute_metrics, box::top_level)
13860 * eqn/text.c (prime_box::compute_metrics,
13861 prime_box::comput_subscript_kern)
13862 * eqn/limit.c (limit_box::compute_metrics):
13863 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13864 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13865 negative numbers in `nr' requests with a leading 0.
13867 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
13869 * eqn/special.c: New file.
13870 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
13871 Add new rule for simple.
13872 * eqn/lex.c (token_table): Add SPECIAL.
13873 * eqn/box.h: Declare make_special_box.
13874 * eqn/Makefile: Add special.[co].
13876 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
13878 * ps/devps/prologue: Possibly set packing to true while defining.
13879 Create grops dictionary here. Initialize local variables before
13880 defining procedures.
13881 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13882 the dictionary stack. Set strokeadjust and overprint to false if
13883 the relevant operators are defined.
13884 (PEND): New procedure.
13885 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13886 prologue. Do everything else in the setup section.
13887 (ps_printer::do_import): Just call PBEGIN and PEND around the
13888 picture. Also push userdict before, and pop it afterwards.
13890 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
13892 * troff/node.c (bracket_node::tprint): Brackets were being printed
13895 * macros/tmac.an (SH, SS): Set fill mode.
13897 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
13899 * troff/div.c (top_level_diversion::begin_page): Set
13900 high_water_mark to 0.
13902 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
13904 * man/mdate.sh: New file.
13905 * man/mdate.c: Deleted.
13906 * man/Makefile: Use mdate.sh instead of mdate.
13909 * eqn/lex.c (do_gsize): Supply missing argument to error message.
13911 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
13913 * man/mdate.c: New file.
13914 * man/*.man: Replace modification date by @MDATE@.
13915 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13916 (mdate): New target.
13918 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13919 Remove illegal input characters.
13921 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
13923 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13925 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
13927 * troff/div.c (begin_page): Change behaviour when
13928 !first_page_begun and !break_flag.
13930 * troff/input.c (do_name_test): Return 0 if argument is empty.
13932 * troff/input.c (read_long_escape_name): Require closing ] to be
13933 at same input level as opening [.
13935 * troff/input.c (read_increment_and_escape_name): New function.
13936 (get_copy, process_input_stack): Use this for \n.
13938 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
13940 * troff/div.c (top_level_diversion::begin_page): Ignore the
13941 current value of page_number if !first_page_begun.
13943 * groff.c (main): Fix declaration of buf.
13945 * troff/input.c (do_name_test): New function.
13946 (token::next): Implement \A.
13947 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13948 (token::description, token::add_to_node_list, token::process):
13949 Handle TOKEN_ESCAPE.
13950 * troff/token.h: New token TOKEN_ESCAPE.
13952 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
13954 * pic/main.c (do_picture): Allow space before and after filename
13955 following `<'. Check that the filename is not empty.
13957 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
13959 * Version 1.01 released.
13961 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13963 * dvi/tmac.dvi: ftr HR to H.
13965 * macros/tmac.e: Round up computation of $r.
13967 * xditview/tmac.X: Don't give up completely in compatibility mode.
13968 Use \n(.s instead of \n[.s].
13970 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13971 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13972 Add u to factors inside \s[...]. Rename frac to dvi-frac.
13973 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13974 short names in the char definitions.
13976 * ps/tmac.ps: Don't give up completely in compatibility mode.
13977 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13978 quote in front of \n(.s. Add u to factors inside \s[...].
13980 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
13982 * tty/tmac.tty: Call the nroff request.
13984 * macros/tmac.e ((x, )x): Better definitions that work properly
13986 (@0, @1): Helper macros for (x.
13988 * macros/tmac.e ($s, hl): Use \l rather than \D.
13990 * tty/tmac.tty: Make it work better in compatibility mode.
13991 (pchar): Rename to tty-char.
13993 * macros/tmac.e (@E): New macro.
13994 (r, i, b, rb, bi): Use @E.
13996 * macros/tmac.e (@F): Don't use (;...) syntax.
13998 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
13999 it was modified for groff.
14001 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14003 * macros/tmac.e (<., .>): Removed.
14004 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14006 * macros/tmac.e: Remove check that groff is being used.
14008 * macros/tmac.e (@C): Change families only if using groff; turn
14009 compatibility mode off while changing familes. Save compatibility
14010 mode before changing families and restore it afterwards.
14012 * macros/tmac.e (@h): Remove test for offset + line length.
14014 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
14015 (lo, th, ac): Define to call @S instead of using als.
14017 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14018 the ratio of the vertical spacing to the point size in units
14019 expressed as a percentage. Use these instead of $10r and $10R,
14020 Delete $10r and $10R.
14022 * lib/font.c (font::load): In default computation of space_width,
14023 divide by sizescale. Use scale_round.
14025 * macros/tmac.an (TP): Don't call `nf'.
14026 (an-do-tag): Don't call `fi'.
14028 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
14030 * troff/input.c (process_input_stack): Handle the case where
14031 spaces at the beginning of an input line are followed by a
14034 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
14036 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14037 * groff.sh: Use pic -x with the dvi device.
14039 * dvi/devdvi/FontMakefile (H): Don't use -s.
14041 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14042 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14043 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14046 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
14048 * ps/psfig.diff: New file.
14049 * ps/tmac.psfig: New file.
14051 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
14053 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14054 (]-): Don't call ref*do-tl.
14056 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14058 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14059 (fn@do-FS): Rename to fn*do-FS.
14061 * troff/input.c (transparent_translate): New function.
14062 (process_input_stack): Apply transparent_translate before calling
14063 diversion::transparent_output(unsigned char).
14065 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
14067 * troff/input.c (do_define_macro): Define the macro before calling
14070 * xditview/Makefile: Add DEVICES variable. Change install target
14073 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
14075 * groff.c (run_commands): Handle the possibility that there are
14076 child processes other than those forked by us.
14078 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
14080 * lib/string.c (string::append): New function.
14081 * lib/stringclass.h: Declare it.
14083 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
14085 * eqn/main.c (main): New option -N which sets
14086 no_newline_in_delim_flag.
14087 (do_file): If no_newline_in_delim_flag is set don't allow newlines
14089 * groff.c (main): Pass -N on to eqn.
14090 (help, synopsis): Mention -N.
14091 * groff.sh: Implement -N.
14093 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
14095 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14096 (]-): Call ref*do-tl if ref*need-tl is non-zero.
14097 (XP): Allow as initializer.
14099 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
14101 * troff/env.c (environment::wrap_up_field): If field_spaces are
14102 non-zero and we have a current_tab, subtract padding from
14103 tab_distance. If this makes tab_distance <= 0, use the next tab
14104 stop instead. If there isn't any next tab or it's a left tab,
14105 wrap up the current tab.
14106 (environment::start_field): Initialize tab_precedes_field.
14107 (environment::wrap_up_tab): If there's a current field, update
14108 pre_field_width, field_distance and tab_precedes_field.
14109 * troff/env.h (environment::tab_precedes_field): New member.
14111 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
14113 * ps/ps.c (ps_printer::do_file): New function.
14114 (ps_printer::special): Bind to `file' special.
14115 (ps_printer::do_exec): Set ndefined_styles to 0.
14117 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
14119 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14120 Avoid stripping first character from the start of unrecognized
14121 escapes. Use lex_error instead of error to report errors.
14122 * eqn/lex.c (get_token): Rework handling of escapes.
14123 (lex_error): Move declaration into...
14126 * xditview/xditview.c (main): Make -page option work.
14128 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14130 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
14132 * macros/tmac.s (B2): Correct size of box.
14134 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
14136 * macros/tmac.s (B2): Postpone drawing the box until in the
14137 top-level diversion.
14139 * tty/tmac.tty: Add font translations for C, CR, CW.
14141 * groff.c (synopsis, help): Document -i.
14142 * groff.sh: Implement -i.
14144 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14145 Simplify the construction of SN.
14147 * troff/number.c (parse_term): Give `|' a higher precedence.
14148 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14151 * macros/tmac.s (B2): Use par@finish instead of par@reset.
14153 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
14155 * lib/string.c (string::move): New function.
14156 * lib/stringclass.h: Declare it.
14158 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
14160 * troff/env.c (distribute_space): Add optional argument
14162 (environment::wrap_up_field): Call distribute_space with
14163 `force_forward' argument of 1.
14165 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
14167 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14168 Inline it. Move reallocation into...
14169 (string::grow1): New function.
14170 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14171 dependencies to include library header files.
14172 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14174 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
14176 * macros/tmac.s (@NH): Use the same number registers than -ms does
14177 for the heading level counters. Use the same string that -ms does
14178 for the number for this heading.
14180 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
14182 * lib/new.c (operator new): Cast result of malloc to char *.
14184 * troff/input.c (spring_trap, lookup_request): Add assert that nm
14187 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
14189 * groff.c (main): Support -i.
14191 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
14193 * pic/pic.h: Include <osfcn.h>.
14195 * ps/ps.c: Add declaration of mktemp.
14197 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14198 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14199 argument as union wait *.
14200 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14201 argument to union wait *.
14203 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
14205 * tty/tmac.tty: Add definition of \(co.
14207 * pic/object.c (make_arc): Only increase radius when radius
14208 strictly less than d.
14209 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14212 * troff/env.c (environment::environment(symbol),
14213 environment::environment(const environment *)): Initialize
14216 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
14218 * tbl/main.c (main): Add exit(0).
14220 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14222 * pic/main.c (main):
14223 * eqn/main.c (main):
14224 * tbl/main.c (main):
14225 * etc/soelim.c (main):
14226 * driver/printer.c (printer::~printer):
14227 * troff/node.c (real_output_file::~real_output_file,
14228 real_output_file::flush): Check for errors on stdout.
14230 * most files: Add 1991 to copyright notice.
14232 * macros/tmac.s: Don't test \n(.x and \n(.y.
14234 * troff/input.c (token::next): Rename `escape_char' label to
14235 `handle_escape_char' and `normal_char' label to
14236 `handle_normal_char'.
14238 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
14240 * groff.c (main, synopsis, help): Support -a option.
14241 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
14242 to trflags while parsing options.
14244 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
14246 * troff/number.c (parse_term): With `m', `M' and `n' scale
14247 indicators, convert scale factor to hunits before scaling.
14249 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
14251 * lib/font.c (scale_round): Better test for overflow when n is
14254 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
14256 * tbl/main.c (process_format): Add second argument of type
14257 options*. Change callers. Allow opt->tab_char as well as '\t'
14258 between format items.
14260 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
14262 * macros/tmac.an (PD): With no arguments, make sure register PD is
14264 (TH): Call PD with no argument, instead of setting register PD
14267 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
14269 * Version 1.00 released.
14271 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
14273 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14275 * dvi/devdvi/DESC: Mount CW instead of CR.
14277 * dvi/tmac.dvi: Add definition of \(tm.
14279 * dvi/devdvi/texsy.map: Add lh, and rh.
14280 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14281 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14283 * dvi/devdvi/FontMakefile: Generate H from cmss10.
14284 * dvi/devdvi/Makefile: Install H.
14285 * dvi/devdvi/H: New file.
14287 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
14289 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14292 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
14294 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14296 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14298 * macros/tmac.s (@EN): Handle the case where the equation is empty
14299 but the label is not.
14301 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
14303 * troff/groff.h: New warning category WARN_SPACE.
14304 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14305 WARN_SPACE to warning_table.
14306 (interpolate_macro): Give a warning of type WARN_SPACE if the name
14307 is longer than two characters and is not defined, but the first
14308 two characters do make a defined name.
14310 * PROBLEMS: New file.
14312 * CHANGES: New file.
14313 * README-0.6, README-1.00: Deleted.
14315 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14316 * xditview/devX75/Makefile: Make devX75-12.
14317 * xditview/devX100/Makefile: Make devX100-12.
14319 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14320 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14322 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
14324 * README-0.7: Rename to README-1.00.
14326 * macros/tmac.pic: New file.
14327 * macros/Makefile (install.nobin): Install tmac.pic.
14329 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
14331 * troff/env.c (hyphen_word): Correct the test for whether the
14332 token is a hyphen. Reset npos to 0.
14334 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14336 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
14338 * macros/tmac.s (ds*common-end): Call par*reset.
14340 (par@reset-indent): Deleted.
14342 * macros/tmac.s (@IP): Divert the label.
14344 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
14346 * xditview/draw.c (setGC): Use a line width of .1m rather than
14347 .04m by default; round rather than truncate value.
14349 * tbl/table.c (class empty_entry): New class.
14350 (empty_entry::empty_entry, empty_entry::line_type): New functions.
14351 (table::add_entry): Represent empty entries by objects of type
14353 (table_entry::line_type): Return -1.
14354 (table::determine_row_type): Ignore entries with line_type 0.
14355 Treat type -1 as non-lines.
14357 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
14359 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14360 macros/tmac.s: Rename \(-d to \(Sd.
14362 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
14364 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14365 * xditview/libXdvi/DviChar.c: Likewise.
14366 * dvi/devdvi/texsy.map: Add `<<', `>>'.
14368 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
14370 * troff/div.c (top_level_diversion::begin_page): Call
14371 init_output() if the_output is 0.
14373 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
14375 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14377 (get_copy): Turn \E into ESCAPE_E.
14378 (token::process, asciify): Handle ESCAPE_E.
14380 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14382 (DS): Implement `.DS R'.
14384 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
14386 * macros/tmac.s (FS): New macro.
14388 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14390 * macros/tmac.s (cov*tl-init): Remove after first execution
14391 instead of aliasing to @nop. Call top of page macro explicitly
14392 instead of setting trap; call @init first. Set pg@top as top of
14394 (cov*auto-init): Deleted. Set cov*tl-init instead of
14395 cov*auto-init as top of page trap.
14396 (TL, LP): Do a break instead of calling cov*tl-init.
14397 (cov*print): With RP format but no TL, alias FS and FE to @FS and
14398 @FE; in this case also give a warning and always start another
14399 page. No need to set pg@top here.
14400 (cov*tl-init): Rename to cov*first-page-init.
14402 * macros/tmac.s (RP): Do `.pn 0'.
14403 (cov*tl-init): With RP format don't do `.pn 0'.
14405 * macros/tmac.s (pg@cs-top): Set no space mode.
14407 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14408 (cov*ab-init): Alias TL, AU and AI to these.
14410 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
14412 * macros/tmac.s (@EQ): Move the space before the equation into @EN
14413 (@EN): Do nothing unless \n[dl] is > 0.
14415 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
14417 * pic/object.c (ellipse_object::radius): New function.
14419 * VERSION: Change version to 0.7.
14421 * tbl/table.c (block_entry::do_divert): Declare return type as
14423 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14425 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
14427 * troff/column.c: New file.
14428 * troff/Makefile: Corresponding changes.
14430 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
14433 * troff/div.c (top_level_diversion::space): If the space causes
14434 the first-page transition and springs a trap, truncate the space
14437 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
14439 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14442 * pic/troff.c (troff_output::line_thickness,
14443 troff_output::set_fill): Do a horizontal motion to compensate for
14444 the width of the \D escape sequence.
14446 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
14448 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14451 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
14454 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14455 Supply empty definition.
14456 (text_entry::simple_print, simple_text_entry::simple_print):
14457 Delete declarations.
14458 (table::add_entry): Represent empty entries by objects of type
14461 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
14463 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14465 * tbl/table.c (left_text_entry::add_tab): New function.
14467 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
14468 initialize like LP.
14470 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
14472 * troff/env.c (environment::start_field): Give an error message if
14473 there is no next tab.
14475 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
14477 * troff/env.c (hyphenate): Skip initial elements with zero
14480 * macros/tmac.s (par@init): Keep VS in points rather than units.
14482 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
14484 * pic/main.c (main): Implement `-c' option.
14485 * pic/output.h: Declare make_tpic_output().
14486 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14488 (tpic_output): New class.
14489 (tpic_output::tpic_output, tpic_output::set_pen_size,
14490 tpic_output::command, make_tpic_output): New functions.
14492 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
14494 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
14495 if they're not already defined.
14496 * tbl/table.c (init_output): Don't test \n(.g.
14498 * troff/input.c (do_if_request): Delete `g' condition. Recognize
14499 `d', `r' and `c' conditions even in compatibility mode.
14501 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
14503 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14506 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
14508 * troff/env.h (environment::prev_line_interrupted): New member.
14509 (environment::get_prev_line_interrupted): New function.
14510 * troff/env.c (environment::newline): Set prev_line_interrupted.
14511 (environment::environment(const environment *),
14512 environment::environment(symbol)): Initialize
14513 prev_line_interrupted.
14514 * troff/input.c (process_input_stack): Don't give special
14515 treatment to space and newline at the beginning of the line if the
14516 previous line was interrupted.
14518 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
14520 * eqn/eqn.y: Disallow PRIME by itself.
14521 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14523 (def_table): Remove definition of '. Define prime to be `.
14525 * eqn/eqn.y: Split off part of rule `script' into a new rule
14528 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
14530 * macros/tmac.s ({, }): New string aliases.
14532 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
14534 * README-0.7: New file.
14536 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
14538 * macros/tmac.s: New file.
14539 * man/groff_ms.man: New file.
14540 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14541 * Makefile.bd: Similarily.
14542 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14543 definition of TMAC_S.
14544 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14545 * macros/TODO: New file.
14547 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
14549 * troff/env.c (right_justify): New function.
14550 (init_env_requests): Bind this to request "rj".
14551 (center_lines): Set right_justify_lines to 0. If we get a bad
14552 integer, center 1 line.
14553 (environment::environment(symbol), environment::environment(const
14554 environment *)): Initialize right_justify_lines.
14555 (environment::get_right_justify_lines): New function.
14556 (init_env_requests): Bind this to number_register ".rj".
14558 * troff/env.c (environment::choose_breakpoint): Implement
14559 hyphenation_margin and hyphenation_space.
14560 (environment::get_hyphenation_space,
14561 environment::get_hyphenation_margin): New functions.
14562 (init_env_requests): Bind these to .hys and .hym.
14563 (hyphenation_space_request, hyphenation_margin_request): New
14565 (init_env_requests): Bind these to hys and hym.
14566 (environment::environment(symbol), environment::environment(const
14567 environment *)): Initialize hyphenation_margin and
14569 * troff/env.h: Corresponding changes to class environment.
14571 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
14573 * troff/div.c (blank_line): Always do a break.
14575 * eqn/box.c (do_text): Turn off escapes while appending text to
14578 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
14580 * troff/input.c (while_break_request, while_continue_request): New
14582 (init_input_requests): Bind these to "break" and "continue".
14583 (while_depth, while_break_flag): New variables.
14584 (while_request): Update while_depth. Break out of loop if
14585 while_break_flag is set.
14587 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
14589 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14592 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
14594 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
14596 * stringify: New file.
14597 * Makefile (groff.o): Use stringify.
14599 * xditview/tmac.X: Remove definition of \(rn.
14600 * xditview/libXdvi/DviChar.c: Remove radicalex from
14603 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
14605 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14606 (alphabetic_block_entry::alphabetic_block_entry,
14607 alphabetic_block_entry::divert, alphabetic_block_entry::print):
14609 (block_entry::divert): Split off body into ...
14610 (block_entry::do_divert): If the block is alphabetic, subtract 2n
14611 from the line length; also update the span width to dl+2n, and the
14612 alphabetic span width to dl.
14614 * driver/input.c (do_file): While reading argument to D command,
14615 when expanding buffer, multiply szp by sizeof(int) rather than 2
14616 in the argument to memcpy.
14618 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14619 width of alphabetic columns.
14621 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
14623 * troff/node.c (lookup_family): Supply second argument to lookup.
14625 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14626 search, return immediately if v is 0.
14628 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14629 (troff_output::start_picture): Set this reg.
14630 (troff_output::end_picture): Remove this reg
14631 * eqn/box.c (box::extra_space): Don't produce `\x's if
14632 EQN_NO_EXTRA_SPACE_REG is defined.
14634 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14635 * eqn/text.c (split_text): Map ' to \(fm when it's the first
14638 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
14640 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14643 * troff/div.c (top_level_diversion::top_level_diversion):
14644 Initialize page_number to 0.
14646 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
14648 * groff/troff (environment::environment(const environment *)):
14649 Initialize name to e->name, rather than "anonymous".
14651 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
14653 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14654 requested_page. Split middle part into ...
14655 (FindPage): New function.
14656 (SetValues): If we don't yet know the last page, and the requested
14657 page is greater than the current page, call FindPage.
14658 Update the font_map_string before doing this.
14660 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14661 Translate \(lh and \(rh into left and right double arrows.
14663 * troff/node.c (class hyphen_inhibitor_node): New class.
14664 (hyphen_inhibitor_node::hyphen_inhibitor_node,
14665 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14666 hyphen_inhibitor_node::type,
14667 hyphen_inhibitor_node::get_hyphenation_type): New functions.
14668 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14669 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14672 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
14674 * troff/node.h (dummy_node::get_hyphenation_type,
14675 transparent_dummy_node::get_hyphenation_type): Declare them.
14676 * troff/node.c: (dummy_node::get_hyphenation_type,
14677 transparent_dummy_node::get_hyphenation_type): New functions.
14679 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
14681 * xditview/libXdvi/draw.c: If M_PI not defined after including
14682 math.h, then define it.
14684 * xditview/Makefile: Add definition of AR. Pass it to the submake
14686 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14688 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
14690 * troff/dictionary.h (object_dictionary::alias): Declare return
14692 * troff/dictionary.c (object_dictionary::alias): Return non-zero
14693 if the old name was defined.
14694 * troff/input.c (alias_macro): Give a warning if the old name was
14696 * troff/reg.c (alias_reg): Likewise.
14698 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
14700 * troff/input.c (token::next): Delete implementation of \R.
14702 * macros/Makefile: Strip comments from tmac.e while installing it.
14704 * troff/input.c: New variable `nroff_mode'.
14705 (troff_request, nroff_request): New functions.
14706 (init_input_requests): Bind `troff' and `nroff' to troff_request
14708 (do_if_request): Compute results of t and n conditions from
14711 * text/text.c (split_text): Fix typo in >=.
14713 * eqn/lex.c: Add definition of `==' to def_table.
14715 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
14717 * pic/tex.c (tex_output::start_picture): Change the definitions of
14718 \graph and \graphtemp so that they work properly with Plain TeX.
14720 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14721 argument to `ar' is not less than the first.
14723 * pic/pic.y: Allow a comma between elements of the variable list
14724 in the argument to `reset'.
14726 * pic/object.c (arc_object::arc_object): Fix computation of
14729 * eqn/main.c (main): Add exit(0).
14731 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
14733 * troff/div.c (begin_page): Test no_space_mode after doing the
14734 break, but still push the page ejector cookie before doing the
14735 break. Also set the next page number after doing the break.
14737 * xditview/xditview.c (NewFile): Don't set the title and icon name
14738 if this is the first file and its name is `-'.
14739 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
14740 the X75 and X100 devices.
14741 (main): If a device has the XT_OPTION flag set and there's exactly
14742 one file argument, pass the driver -xrm and -title options to set
14743 the icon name and window title to the name of the file.
14745 * troff/env.c (environment_switch): If there was an argument but
14746 it wasn't a valid number or name, then pop an environment but
14747 don't give an error message on underflow.
14749 * troff/number.c (start_number): Correct spelling in error message.
14751 * troff/input.c (token::delimiter): Don't print an error message
14754 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14755 ParseDrawFunction if dw->display_enable is true.
14757 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
14759 * pic/pic.y: Parse text positioning like normal attributes, so as
14760 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
14761 positioning attribute.
14763 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
14765 * tbl/main.c (process_data): When in state START while reading a
14766 text block, don't change to state MIDDLE if c is a newline.
14768 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
14770 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14771 so as to avoid shadowing parameter.
14773 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
14775 * tbl/table.c (trim_space): Deleted.
14776 (table::add_entry): Don't call trim_space.
14778 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
14780 * VERSION: Change version to 0.6.
14782 * troff/number.c (parse_expr): Make == work.
14784 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
14786 * man/grog.man: New file.
14787 * man/Makefile: Add grog.n to MAN1PAGES.
14788 * etc/grog.sh: New file.
14789 * etc/Makefile: Install grog.sh as grog.
14791 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
14793 * troff/input.c (token::next): Implement \E.
14795 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
14797 * xditview/tmac.X: Change font translations to match tmac.ps.
14799 * troff/input.c (non_empty_name_warning): Don't give a warning if
14800 `\{' terminates the name.
14802 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
14804 * ps/devps/symbol.diff: New file.
14805 * ps/devps/FontMakefile: Mention symbol.diff.
14807 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
14809 * troff/node.c (font_position): Use get_long_name to read the
14812 * troff/env.c (environment_switch): If we get a number that's < 0
14813 or >= NENVIRONMENTS, treat it like a name.
14814 Change NENVIRONMENTS to 10.
14816 * troff/groff.h: Remove definition of FONTS_MAX.
14817 * troff/node.h (class font_family): Make map a pointer instead of
14818 an array. Add a map_size member. Make it a class. Make nm const
14819 and public. Make invalidate_fontno a friend.
14820 * troff/node.c: Define font_table_size. Make font_info a pointer
14821 rather than an array.
14822 (class troff_output_file): Allocate font_position dynamically. Add
14823 nfont_positions member.
14824 (troff_output_file::set_font): Grow font_position if necessary.
14825 (troff_output_file::~troff_output_file): Delete font_position.
14826 (troff_output_file::troff_output_file): Allocate font_position.
14827 (grow_font_table): New function.
14828 (troff_output_file::really_begin_page,
14829 troff_output_file:really_copy_page): Use nfont_positions rather
14831 (mount_font_no_translate, mount_style): Call grow_font_table if
14833 (font_family::font_family): Allocate map.
14834 (font_family::make_definite): Grow map if necessary. Use
14835 font_table_size instead of FONTS_MAX.
14836 (font_family::~font_family): New function.
14837 (invalidate_fontno): Use font_family::map_size.
14838 (get_fontno, env_space_width, env_half_narrow_space_width,
14839 env_narrow_space_width, symbol_fotno, is_good_fontno,
14840 get_bold_fontno, make_glyph_node): Use font_table_size rather than
14842 (next_available_font_position): Never return 0.
14844 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
14846 * ps/tmac.ps: Add font translations for compatibility with dpost.
14848 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
14850 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14851 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14852 Move definitions baseline_sep, shift_down, column_sep,
14853 matrix_side_sep into...
14854 * eqn/box.c: Add them to param_table.
14855 * eqn/pbox.h: Add declarations to pbox.h.
14857 * troff/input.c (set_string): Cast value to unsigned char *.
14859 * troff/token.h (process_input_stack): Declare it static before
14860 declaring it a friend.
14862 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
14864 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14866 * dvi/devdvi/EX: Regenerate.
14868 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14871 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
14873 * eqn/lex.c: In defaults_table, make definition of `dot' call
14874 `dot_def'. Don't explicitly make it roman. Similarily for other
14877 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14879 (for_input::get, for_input::peek): Use this.
14880 (do_for): Add by_is_multiplicative argument.
14881 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14882 Change semantic value of optional_by to be a double plus a flag
14883 saying whethet the by clause is multiplicative.
14885 * eqn/lex.c (get_delimited_text): Remember location of start of
14886 definition. Improve error handling when EOF is encountered.
14888 * lib/font.h: Rename handle_x_command to
14889 handle_unknown_font_command.
14890 * lib/font.c (font::load): Call handle_unknown_font_command for
14891 any unknown command in the font description file. Don't call
14892 handle_x_command. Include the name of the command in the argv.
14893 Improve message for unknown command after kernpairs or charset
14895 * ps/ps.c (ps_font::handle_x_command): Rename to
14896 handle_unknown_font_command. Remove message about `x download'
14897 command. Give error message for wrong number of arguments.
14898 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14899 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14900 handle_unknown_font_command. Give an error message for wrong
14901 number of arguments. Rename design_size to designsize.
14902 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14903 checksum', `designsize' instead of `design_size'.
14905 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
14907 * eqn/*.[chy]: Change underaccent to uaccent.
14909 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
14910 give it the same precedence as ACCENT.
14911 * eqn/other.c (make_underaccent_box): New function.
14912 * eqn/box.h: Declare it.
14913 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14916 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
14918 * pic/pic.y (reset_all): New function. Called in rule for RESET.
14919 (parse_init): Call reset_all.
14920 (define_variable): When defining scale reset only those
14921 pre-defined variables that are scaled.
14922 (defaults_table): Add `scale' as non-scaled value.
14924 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14925 together with the text; allow any number of positioning words;
14926 allow center as a positioning word.
14928 * pic/object.c (output::compute_scale): Get picture maximum height
14929 and width from variables called maxpswid and maxpsht.
14930 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14932 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
14934 * pic/object.c (object_spec::make_text): Multiply textht by number
14937 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14939 (do_sprintf): New function.
14940 (pic.gperf): Add sprintf token.
14941 (text, sprintf): New rules.
14943 * pic/pic.y: `rand()' with no arguments returns a random number
14944 in the range [0,1).
14946 * pic/pic.y: Allow a bare expression to be an attribute: change
14947 precedences to support this. Change optional_ordinal rule to
14948 optional_ordinal_last to avoid reduce/reduce conflict.
14949 * pic/object.c (object_spec::object_spec): Initialize direction.
14951 * pic/pic.y: Implement ^ operator meaning exponentiation.
14953 * troff/node.h: Add default argument to mount_font.
14954 * troff/node.c (font_position): Read an optional third argument
14955 giving the external_name.
14956 (mount_font): Add optional argument giving the external_name.
14957 (mount_font_not_translate): Have additional argument giving
14958 external name. Use this name to load the font. Pass both names
14959 to font_info::font_info.
14960 (font_info::font_info): Have additional argument giving
14962 (class tfont): New member external_name.
14963 (font_info::get_tfont): Use external name to construct tfont_spec.
14965 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
14967 * eqn/lex.c (init_table): Add argument giving device. Define
14968 name of device to be "1".
14969 (do_ifdef): Counts as true if the argument has been defined with
14971 * eqn/main.c (main): Call init_table with device argument. Make
14972 device local to main.
14973 * eqn/eqn.h: Change declaration of init_table. Remove declaration
14976 * pic/lex.c (get_delimited): Allow text to be delimited by
14977 matching {}s. Don't recognize ending delimiter within a string.
14979 * troff/input.c (get_delim_name): New function.
14980 (token::next): Implement \C.
14982 * lib/font.c (font::load): Grok ---. Add an alias for each
14983 character based on its code.
14984 (font::get_code_width): Deleted.
14985 * lib/font.h (class font): Declare font::number_to_index().
14986 Remove declaration of font::get_code_width.
14987 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14988 to indices of named characters.
14989 (font::number_to_index): New function.
14990 * troff/input.c (font::number_to_index): New function.
14991 (get_charinfo_by_number, charinfo::get_number,
14992 charinfo::set_number): New functions.
14993 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14994 (token::process, token::description, token::get_char,
14995 token::add_to_node_list, token::operator==): Handle
14996 TOKEN_NUMBERED_CHAR.
14997 * troff/charinfo.h: Declare get_charinfo_by_number,
14998 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
15000 (charinfo::numbered): New function.
15001 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15002 * troff/env.h (class environment): Remove declaration of ...
15003 * troff/env.c (environment::make_numbered_char_node): Deleted.
15004 * troff/node.c (make_numbered_node): Deleted.
15005 (class numbered_glyph_node): Remove.
15006 (troff_output_file::put_char_width, troff_output_file::put_char):
15007 Handle numbered chars.
15008 (troff_output_file::numbered_char): Removed.
15009 (tfont::get_code_width): Removed.
15010 (make_glyph_node): Don't search special fonts for numbered
15012 * troff/node.h: Remove declaration of make_numbered_node.
15013 * driver/input.c (do_file): Handle N command.
15014 * driver/printer.h: Add declaration of ...
15015 * driver/printer.c (printer::set_numbered_char): New function.
15016 * dvi/tfmtodit.c (main): Generate unnamed entries.
15017 * ps/devps/afmtodit: Likewise.
15018 * xditview/xtotroff.c (MapFont): Likewise.
15019 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15021 * tbl/main.c (process_format): If multiple widths are specified
15022 for a column but all the widths are the same, don't give an error
15025 * tbl/table.c (table::do_row): If the current row is all lines and
15026 the stuff doesn't contains a line, mark the top of the row after
15027 printing stuff before the row. If the current row is not all
15028 lines and the stuff doesn't contain a line, don't unnecessarily
15029 mark the top of the row before printing the stuff.
15031 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
15033 * troff/groff.h: Remove MAX_PATH.
15034 * troff/input.c (open_file): Dynamically allocate space for the
15036 (open_mac_file, process_macro_file): Corresponding changes.
15038 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
15040 * troff/node.h (class output_file): Make copy_file pure. Add
15041 vspace method ifdef COLUMN. Add is_printing method.
15042 * troff/node.c: Add class printing_reg. Add class
15043 real_output_file. Derive other output_file classes from
15044 real_output_file; in these classes rename begin_page to
15045 really_begin_page, print_line to really_print_line, copy_file to
15046 really_copy_file, transparent_char to really_transparent_char.
15047 Move output_file::flush to real_output_file. Add printing member
15048 to class output_file.
15049 * troff/div.h: Remove printing member from top_level_diversion.
15050 Add vspace member function to class diversion ifdef COLUMN. Add
15051 some declarations ifdef COLUMN.
15052 * troff/div.c (top_level_diversion::copy_file,
15053 top_level_diversion::transparent_output,
15054 top_level_diversion::output): Don't test printing member before
15056 * troff/input.c: Handle initial variable_space_request ifdef
15058 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15059 but comment it out.
15061 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
15063 * troff/div.c (diversion::need): Make any space forced. If we
15064 sprung a trap, set truncated_space to minus the distance to the
15065 trap and set needed_space to the amount that was needed.
15066 (top_level_diversion::space): A forced space turns no_space_mode
15068 (class constant_vunits_reg): New class.
15069 (init_div_requests): Implement number registers .trunc and .ne
15070 using constant_vunits_reg.
15071 (class truncated_space_reg): Deleted.
15073 * troff/div.h: Don't have a no_space_mode member in diversion.
15074 Instead have it in top_level_diversion.
15075 * troff/div.c (diversion::diversion): Don't initialize
15077 (top_level_diversion::top_level_diversion): Initialize
15079 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15080 (macro_diversion::output): Don't clear no_space_mode.
15082 * troff/input.c (diverted_space_node::reread): Don't call
15083 environment::do_break. In fill mode, act like a blank line.
15084 (diverted_copy_file_node::reread): Don't call
15085 environment::do_break.
15087 * troff/div.c (blank_line): New function.
15088 * troff/div.h: Declare it.
15089 * troff/input.c (process_input_stack): Call it.
15091 * troff/div.c (truncated_space_reg::get_string): New function.
15092 (init_div_requests): Bind to .trunc.
15093 (space_request, top_level_diversion::space,
15094 top_level_diversion::output, macro_diversion::space,
15095 macro_diversion::output): Update truncated_space.
15096 (macro_diversion::output): Redo calculations when trap sprung.
15097 (macro_diversion::output, macro_diversion::space): No need for
15100 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15101 after truncating post line spacing.
15103 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
15105 * ps/devps/prologue (MF, SF): Make them work even if setfont is
15106 defined as a procedure rather than as an operator.
15108 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
15110 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15112 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
15114 * troff/div.c (top_level_diversion::output): Merge
15115 output_file::print_line and output_file::end_of_line member
15117 * troff/div.h (class output_file):
15118 * troff/node.c (troff_output_file::print_line,
15119 troff_output_file::end_of_line, output_file::end_of_line,
15120 ascii_output_file::print_line, suppress_output_file::print_line):
15121 Corresponding changes.
15123 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
15125 * troff/input.c (token::next): Don't give a warning for `\.'.
15127 * troff/env.c (environment::get_center_lines): New function.
15128 (init_env_requests): Bind number register .ce to it.
15129 * troff/env.h: Declare it.
15130 * tbl/table.c (table::init_output): Define reset macro to restore
15131 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
15133 (table::print): If center option not given, then imply center
15134 option if SAVED_CENTER_REG > 0.
15136 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
15138 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15139 Troff.ps from DOWNLOAD.
15141 * troff/Makefile: Change comment in DEFINES to avoid confusing
15144 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15145 code. Don't try to catch errors with stopped.
15146 (check_line_lengths): New function.
15147 * ps/devps/prologue (EXEC): Deleted.
15148 (EBEGIN, EEND): New procedures.
15150 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
15152 * troff/input.c: Include request.h before node.h.
15153 * troff/node.c: Likewise.
15154 * troff/env.c: Likewise.
15155 * troff/div.c: Likewise.
15156 * troff/node.h (class special_node): Store argument as a macro
15157 rather than a char *.
15158 * troff/node.c (special_node::special_node, special_node::copy):
15160 (special_node::~special_node): Deleted.
15161 (special_node::tprint): Deleted.
15162 (special_node::tprint_start, special_node::tprint_end,
15163 special_node::tprint_char): New functions.
15164 (troff_output_file::special): Deleted.
15165 (troff_output_file::start_special, troff_output_file::end_special,
15166 troff_output_file::special_char): New functions.
15167 * troff/input.c (special_node::tprint): New function.
15168 (do_special): Use macro not char *.
15169 (do_transparent_macro): Deleted.
15170 (token::next): Don't call do_transparent_macro.
15172 * troff/input.c (token::next): Add 'Y' case.
15173 (do_transparent_macro): New function.
15174 * troff/node.c (troff_output_file::special): Handle newlines with
15175 argument using new continuation convention.
15176 * driver/input.c (get_string): Cope with continuation convention.
15177 (do_file): Don't call skip_line after calling get_string(1).
15178 * ps/ps.c (ps_printer::special, ps_printer::do_import,
15179 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15181 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15184 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
15186 * troff/input.c (asciify): By default, illegal input characters
15187 should return empty string.
15189 * troff/input.c (copy_file): Handle first page transition like title.
15190 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15192 * troff/input.c (token::next): Improve error message for EOF after
15194 (input_char_description): New function.
15195 (get_char_for_escape_name): Use input_char_description.
15196 (token::next): Warn about unrecognized escape sequences.
15197 (warning_table): Add WARN_ESCAPE.
15198 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15201 * troff/token.h: Remove declaration of process_input_stack.
15203 * troff/input.c: Remove declaration of init_hyphen_requests.
15204 * troff/request.h: Correct spelling in declaration of same.
15206 * troff/input.c (token::next): Check whether escape_char is 0.
15208 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
15210 * groff.c (main, usage, help): Implement -P and -L options.
15211 * groff.sh: Likewise.
15213 * troff/input.c (token::next): Use some gotos to avoid code
15216 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15217 Avoid calling symbol::symbol if name empty.
15219 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
15221 * troff/input.c (init_input_requests): Make \n(.x return the major
15222 version number and \n(.y return the minor version number.
15223 * troff/Makefile: Construct file majorminor.c defining
15224 major_version and minor_version automatically from ../VERSION.
15226 * troff/node.c (class glyph_node): Make operator new and operator
15228 (class ligature_node): Similarily.
15230 * troff/input.c (operator==(const macro &, const macro &)): New
15232 (non_interpreted_node::same): Use this.
15233 (string_iterator::string_iterator): Make macro& argument const.
15235 * troff/input.c (input_iterator::get): New function. Don't make
15236 asciify_macro or class non_interpreted_node friends of class
15238 (non_interpreted_node::interpret): Use input_iterator::get.
15239 (asciify_macro): Likewise.
15241 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15242 ~non_interpreted_node): Deleted.
15243 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15246 * troff/symbol.h: Make all symbol member functions const.
15248 * lib/strtol.c: New file.
15249 * lib/Makefile: Add strtol.c.
15250 * Makefile: Define STRTOL as strtol.o to include strtol in
15253 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
15255 * pic/troff.c (troff_output::simple_circle): Divide by scale.
15257 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
15259 * troff/input.c (do_special): Use input_level.
15261 * troff/token.h (TOKEN_BACKSPACE): New token.
15262 (token::backspace): New function.
15263 * troff/input.c (token::description, token::next, token::process):
15264 Grok TOKEN_BACKSPACE.
15265 (do_special): Turn TOKEN_BACKSPACE back into \b.
15267 * troff/token.h (token::leader): New function.
15268 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15270 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15272 * troff/input.c (do_special): Use token::description in error
15275 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
15277 * troff/input.c (decode_args): Combine quoted and
15278 quote_input_level variables. Make it a for (;;) loop.
15280 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15282 * troff/input.c (read_long_escape_name): The test for whether to
15283 expand buffer was off by 1.
15284 (read_string): Similarily.
15286 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
15288 * troff/input.c: Use `const int' rather than `static const int'.
15290 * troff/div.h (diversion::copy_file): Declare as pure virtual.
15291 (macro_diversion::copy_file): New function.
15292 * troff/node.h: New class diverted_copy_file_node.
15293 * troff/node.c: Implement it.
15294 * troff/input.c (copy_file): Use diversion::copy_file. Handle
15295 first page transition by pushing a diverted_copy_file_node.
15296 * troff/input.c (token::next, process_input_stack): Don't handle
15299 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
15301 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15302 whether space widths need adjusting.
15304 * troff/charinfo.h: Generalize translated_to_space to
15305 special_translation so as to allow translation to \&.
15306 * troff/input.c (translate): Allow translation to \&.
15307 (charinfo::*): Corresponding changes.
15308 * troff/node.c (make_node, node::add_char): Corresponding changes.
15309 * troff/node.h (dummy_node::dummy_node): Allow optional first
15312 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15313 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15315 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15316 TOKEN_REQUEST with an argument of TITLE_REQUEST.
15317 (token::process): Grok that.
15318 * troff/input.c (copy_file): Handle first page transition like
15319 title by pushing a COPY_FILE_REQUEST cookie.
15320 (token::next, process_input_stack): Grok that.
15321 * troff/node.h (output_file::copy_file): Add x and y arguments.
15323 * troff/div.c (top_level_diversion::copy_file): Supply them.
15324 * troff/node.c (troff_output_file::copy_file): Add x and y
15325 arguments; moveto specified position. Invalidate font_position
15326 array after copying file.
15327 (output_file::copy_file): New function.
15328 (suppressed_output_file::copy_file, ascii_output::copy_file):
15330 * troff/input.c (transparent_file): New function.
15331 (init_input_requests): Bind to "trf".
15332 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15333 (process_input_stack): Likewise.
15335 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15337 * troff/node.c (init_node_requests): New number registers .kern
15338 pointing to global_kern_mode, and .lg pointing to
15339 global_ligature_mode.
15341 * troff/node.c (ligature): Don't change it if we get a bad
15344 * troff/input.c (do_define_string): Don't strip tabs.
15346 * troff/input.c (asciify_macro): Make the string_iterator auto.
15348 * troff/node.c (init_font_requests): Rename to...
15349 (init_node_requests):
15350 * troff/node.h: Change declaration.
15351 * troff/input.c (main): Change call.
15353 * troff/input.c (node::reread, diverted_space_node::reread): New
15355 (process_input_stack): Call reread rather than
15356 get_diverted_space_node.
15357 * troff/node.c (node::get_diverted_space_node,
15358 diverted_space_node::get_diverted_space_node): Removed.
15359 * troff/node.h: Declare reread methods instead of
15360 get_diverted_space_node methods. Make `n' member private.
15361 * troff/input.c: (token::diverted_space): Removed.
15362 * troff/token.h: Removed declaration.
15365 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
15367 * eqn/script.c (script_box::compute_metrics): Don't let
15368 SUP_RAISE_FORMAT become negative.
15370 * tbl/table.c (table::do_row): Entries that don't end in the
15371 this row shouldn't make the row non-blank.
15373 * tbl/table.c (table::make_columns_equal): Only set the width of
15374 columns which are marked as equal.
15376 * tbl/main.c (process_data): Before issuing excess data error,
15377 if last character was a newline unget it; then get it again after
15378 the error. Also include the contents of the entry in the message.
15380 * groff.c: New file.
15381 * Makefile: Build groff from groff.c. Make it possible to use
15382 either groff.sh or groff.c as groff.
15383 * Makefile.bd: Similarily.
15385 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
15387 * groff.sh: Don't delay expansion of $@ in assignment to files.
15388 Remove occurrences of \".
15390 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
15392 * all Makefiles: Simplify and rearrange.
15394 * Makefile: Handle fmod like malloc.
15395 * lib/Makefile: Similarily.
15396 * lib/fmod.c: Remove #ifdef NEED_FMOD.
15398 * Makefile: Rename OPTIMISE to OPTIMIZE.
15400 * groff.sh: Remove assignment to PATH.
15401 * Makefile: Remove SHPATH variable.
15402 * Makefile.bd: Similarily.
15404 * groff.sh: Add -V option to print the pipeline instead of
15407 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
15409 * lib/font.c: Split off file searching into ...
15410 * lib/fontfile.c: New file.
15412 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15414 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
15416 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15417 Also change misleading comment.
15418 (table::do_vspan): Change similarily misleading comment.
15419 * tbl/main.c (process_data): A format row with an explicit `s'
15420 uses up a data line, even if all the other columns are `_' or `='.
15422 * troff/input.c (token::description): Fix description of
15423 TOKEN_DUMMY and TOKEN_EMPTY.
15425 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
15427 * groff.sh: Fix description of -Z in help message.
15429 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
15431 * pic/object.c (object_spec::make_object): Allow negative and zero
15433 * pic/pic.y: Give linethick default value of -1.0.
15434 * pic/troff.c (troff_output::troff_output): Initialize
15435 last_line_thickness to BAD_THICKNESS.
15436 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15437 (troff_output::line_thickness): Canonicalize negative thicknesses
15438 to RELATIVE_THICKNESS.
15439 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15440 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15442 (tex_output::start_picture): Set pen_size to -2.0.
15444 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15445 0, then use 0 linewidth.
15446 (ps_printer::ps_printer): Initialize line_thickness to -1.
15448 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15450 * ps/devps/symbolchars: Remove `or'.
15451 * ps/tmac.ps: Implement \(or with .char.
15453 * ps/devps/symbolchars: Move most characters into textmap.
15454 * ps/devps/textmap: Add names for troff bracket characters. Remove
15457 * ps/devps/TSymbol.ps: Removed.
15458 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15459 * ps/tmac.ps: Do with .char what TSymbol did.
15460 * ps/devps/download: Remove TSymbol.
15462 * ps/devps/T: Removed.
15463 * ps/devps/Troff.ps: Removed.
15464 * ps/devps/Troff.afm: Removed.
15465 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15466 * ps/devps/download: Remove Troff.
15467 * ps/devps/FontMakefile: Remove T target.
15468 * ps/devps/DESC-A4: Remove T from font list.
15469 * ps/devps/DESC-letter: Likewise.
15471 * troff/input.c (macro_to_node): Rename to ...
15472 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
15473 character's definition while processing it.
15474 * troff/node.c (node::add_char, make_node): Change calls to
15475 macro_to_node accordingly.
15477 * troff/input.c (token::next): Translate \_ to \(ul.
15479 * tty/devascii/R.proto: Add `|'.
15480 * tty/devlatin1/R.proto: Likewise.
15482 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
15484 * man: Put the version number in all the man pages.
15486 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
15488 * Makefile.bd: New file.
15489 * README.bd: New file.
15491 * VERSION: New file.
15492 * lib/version.c: Removed.
15493 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15496 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15497 environment variable.
15499 * all Makefiles: Split install target into install.bin for
15500 binaries, and install.nobin for everything else.
15501 * Makefile: Add bindist target.
15503 * man/afmtodit.man: New file.
15504 * man/Makefile: Add afmtodit.n to MAN1PAGES.
15505 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15507 * ps/Makefile: Pass BINDIR to make install in devps.
15509 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15510 the space character.
15512 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15514 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
15516 * ps/ps.c: Redo font downloading.
15517 * ps/devps/download: New file.
15518 * ps/devps/Makefile: Add download to DEVICEFILES.
15519 * ps/devps/afmtodit: Remove -d option.
15520 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15521 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15522 * ps/devps/zapfdr.ps: Likewise.
15523 * ps/devps/TSymbol.ps: Likewise.
15525 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
15527 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15529 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
15531 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15532 then strip the first line if it starts with %.
15533 * Makefile: Add a comment about this.
15535 * man/tfmtodit.man: New file.
15536 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15537 * dvi/Makefile: Install tfmtodit in BINDIR.
15539 * dvi/tfmtodit.c (usage): Mention -v option.
15541 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
15543 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15544 * troff/node.c (troff_output_file::transparent_char): Don't call
15547 * eqn: Add check_tabs method to most box classes.
15548 * eqn/box.c (box::top_level): Call check_tabs.
15550 * eqn/script.c (script_box::output): Use \Z.
15551 * eqn/limit.c (limit_box::output): Use \Z.
15553 * eqn/box.c (box::top_level): Use itoa.
15555 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
15557 * dvi/tmac.dvi: Add font translations for CR, C, TT.
15558 * dvi/devdvi/Makefile: Don't make links to CW.
15560 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15562 * xditview/tmac.X: Likewise.
15564 * troff/node.c: Add font translation feature.
15565 (get_font_translation): New function.
15566 (symbol_fontno): Translate the font name.
15567 (mount_font_no_translate): Rename to mount_font to this.
15568 (mount_font): New function.
15569 (font_family::make_definite): Call mount_font_no_translate instead
15571 (mount_style): Translate the font name.
15572 (font_translate): New function.
15573 (init_font_requests): Bind "ftr" to font_translate.
15575 * ps/devps/prologue (SN): New procedure that rounds a position to
15576 the nearest (pixel + (.25,.25)).
15577 (DL): Use SN to round endpoints.
15579 * lib/version.c: Changed version to 0.5.
15581 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
15583 * Makefile: Move definition of PAGE to the very beginning, so that
15584 people are less likely to miss it.
15586 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
15588 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15590 * troff/env.c (environment::choose_breakpoint): Make `can't find
15591 breakpoint' error a warning of type WARN_BREAK. Change message to
15592 `can't break line'.
15593 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15595 * troff/input.c: Add WARN_BREAK to warning_table. Include
15596 WARN_BREAK in DEFAULT_WARNING_MASK.
15598 * tty/tmac.tty: Add definition of \(+-.
15600 * groff.sh: Remove `--' option to set command.
15602 * dvi/devdvi/texsy.map: Remove duplicate md entry.
15604 * ps/devps/eqnchar: Better definition of cdot using md.
15605 * dvi/devdvi/eqnchar: Likewise.
15606 * xditview/devX100/eqnchar: Likewise.
15607 * xditview/devX75/eqnchar: Likewise.
15608 * eqn/lex.c: Add definition of cdot.
15610 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
15612 * troff/input.c (get_optional_char): New function.
15613 * troff/input.c (set_page_character): Use get_optional_char(),
15614 rather than has_arg() and tok.get_char(1).
15615 * troff/env.c (tab_character, leader_character, hyphen_char,
15616 field_characters): Likewise.
15617 (margin_character): Likewise. Also always delete the
15618 margin_character_node.
15620 * troff/input.c (token::get_char): Use token::description.
15622 * troff/input.c (has_arg): Don't skip over tab and \}.
15623 * troff/number.c (start_number): Give a warning if the number
15624 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15626 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
15628 * troff/input.c (empty_name_warning, non_empty_name_warning): New
15630 (get_name, get_long_name): Use these. Rename `warn' argument to
15633 * troff/node.c (get_fontno): Test that the symbol is not null.
15635 * troff/input.c (token::description): New function.
15636 * troff/number.c (parse_term): Use token::description in `numeric
15637 expression expected' message.
15638 * troff/groff.h: Add WARN_MISSING.
15639 * troff/number.c (start_number): New function.
15640 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15641 get_incr_number): Use start_number().
15642 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15644 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15645 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15647 * troff/input.c (token::get_char): Use WARN_MISSING.
15648 * troff/input.c (token::delimiter): Use token::description.
15649 * troff/env.c (environment_switch): Back out Aug 3 change.
15650 * troff/input.c (has_arg): Skip over \}s and tabs but give a
15652 * troff/token.h (token::tab): New function.
15653 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15654 * troff/reg.c (alter_format): Likewise.
15655 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15657 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
15659 * troff (most files): Redo warnings. Divide warnings into various
15660 categories; warning() has an additional first argument indicating
15661 the category it falls into.
15662 * troff/input.c (main): -w now takes an argument. New option -W.
15663 (enable_warning, disable_warning): New functions.
15665 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15666 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15668 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
15670 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15671 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15672 * xditview/devX75/eqnchar: Likewise.
15673 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15675 * eqn/other.c: When bar or over applies to a single character
15676 don't produce an overline_box or an underline_box. Instead produce
15677 an accent_box or an underaccent_box, with the accent a line
15678 whose width is accent_width. New classes underaccent_box,
15679 overline_char_box and underline_char_box.
15680 * eqn/box.h: Move overline_box, underline_box, accent_box class
15681 declarations into eqn/other.c. Add declarations of
15682 make_underline_box, make_overline_box, make_accent_box.
15683 * eqn/eqn.y: Call make_overline_box, make_underline_box
15684 make_accent_box instead of constructors.
15685 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15687 * eqn/other.c: Add accent_box::~accent_box.
15688 * eqn/box.h: Declare it.
15690 * groff.sh: With -Tps, use eqn -D.
15692 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15694 (underline_box::output): Similarily.
15695 (accent_box::output): Use \Z.
15697 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15700 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
15702 * troff/div.c (top_level_diversion::transparent_output(unsigned
15703 char)): Use asciify.
15704 * troff/input.c (asciify): Don't make it static.
15705 * troff/token.h (asciify): Declare it.
15707 * troff/input.c (get_name, get_long_name, token::get_char,
15708 token::delimiter): Add an extra default argument which says
15709 whether a warning should be printed.
15710 * troff: Pass a non-zero argument to one of these rather than
15711 printing a warning directly.
15713 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
15715 * troff: Consistently use symbol::is_null.
15717 * troff/dictionary.h: Move some inline functions into
15720 * troff/request.h: Move inline functions into input.c.
15721 (request_or_macro::invoke): Make it pure.
15723 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15724 * troff/input.c (init_input_requests): Use class constant_int_reg.
15725 (class compatible_reg): Deleted.
15726 * troff/div.c (init_div_requests): Use class constant_int_reg.
15727 (class last_post_line_extra_space_reg): Deleted.
15729 * troff/env.c (tab_character): Don't change the tab character if
15730 we get an invalid argument.
15731 (hyphen_char): Similarily.
15733 * troff/reg.c (alter_format): Check that nm is not null.
15735 * Makefile, groff.sh: Make it possible to customize the commands
15736 used for printing PostScript and dvi files. Also make it possible
15737 to customize the path used by groff.sh.
15739 * eqn/eqn.y: Make `left' right associative.
15741 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
15743 * pic/pic.h: Added definition of M_SQRT2 for those systems that
15746 * pic/pic.h: Removed definition of INT_MAX.
15748 * troff/node.c (italic_corrected_node::vertical_extent): Omit
15751 * troff/input.c (token::next): Handle \R like \n.
15753 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
15755 * ps/tmac.pc (PSPIC): Simplify.
15757 * troff/env.c (tab_stops::to_string):
15758 * pic/pic.y (object_type_name):
15759 * pic/troff.c (simple_output::line):
15760 * pic/tex.c (tex_output::spline):
15761 * pic/object.c (object_spec::make_object):
15762 * tbl/main.c (process_data): Add cases to switch statements to
15763 avoid cfront warnings. (Some of these are spurious, since the
15764 switch already has a default case.)
15766 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
15767 `ps-'. Don't test systat; instead check number of arguments to
15770 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
15772 * macros/tmac.e: Do not decrease the page offset by 0.5i.
15774 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15775 Unlink the file as soon as we have opened it, so that we don't
15776 have to bother with signal handlers.
15777 (handler): Deleted.
15778 (fatal_error_exit): Deleted.
15779 (main): Don't call signal.
15781 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15783 * dvi/devdvi/Makefile: Use the -k option with S and MI.
15785 * pic/pic.y: If there is a label, or an nth construction before
15786 the first `.' in the argument to `with', ignore it and generate a
15788 * pic/lex.c (lex_warning): New function.
15790 * tbl/table.c (table::init_output): In section keep and release
15791 macro, use 0 indent when diverting and the correct indent when
15794 * troff/input.c (interpolate_number_format): Do not interpolate
15795 anything if the number register is not defined.
15797 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15799 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
15801 * ps/devps/prologue (PICTURE): Set components of graphics state to
15802 their default values.
15804 * ps/devps/text.enc: Add trademark
15805 * ps/devps/textmap: Add names for club, spade, heart, diamond,
15806 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15807 * ps/devps/symbolchars: Add names for summation and product.
15809 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15810 suchthat. Add pp. Add upper-case letters.
15812 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15813 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15816 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15817 rA (right angle bracket) to ra. Introduce names for double-headed
15818 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15819 * ps/devps/textmap: Likewise for ps device.
15820 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15821 * tty/devascii/R.proto: Rename lA to la and rA to ra.
15822 * tty/devascii/R.proto: Likewise.
15823 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15825 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15827 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15829 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15832 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
15834 * troff/div.c (when_request): Use symbol::is_null rather than
15835 has_arg to determine whether we have an argument.
15836 (change_trap): Remove the trap if we get an invalid number. Give
15837 an error if we don't get at least the macro name.
15838 (diversion_trap): Remove trap if we get an invalid name or number.
15840 * troff/env.c (environment_switch): Pop if we get an invalid
15841 symbol or numeric expression.
15843 * troff/input.c (do_define_macro): If EOF is encoutered while
15844 defining the macro, do tok.next() before returning.
15846 * troff/token.h (has_arg): Move definition from here, to ...
15847 * troff/input.c (has_arg): ... here
15849 * troff/env.c (space_size): Do nothing if we get an invalid argument.
15850 * troff/input.c (shift): Likewise.
15852 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
15855 * pic/troff.c (troff_output::start_picture): Comment out calls to
15858 * eqn/main.c (do_file): Subtract 1 from current_lineno if
15859 interpret_lf_args succeeds.
15861 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15862 \\. This avoids problems with \$N.
15864 * groff.sh: Pass -C to preprocessors.
15866 * lib/lf.c (interpret_lf_args): Be more flexible.
15868 * tbl/main.c (main): Add -C option.
15869 (table_input::get): Do not recognize TE if followed by character
15870 other than a space or newline unless -C option given.
15871 (process_input_file): Likewise for lf, TS.
15872 (process_data): Likewise for lf in text blocks.
15874 * eqn/main.c (main): Add -C option.
15875 (do_file): Don't recognize EQ, EN or lf if followed by character
15876 other than space or newline unless -C option given.
15877 * eqn/lex.c (file_input::read_line): Similarily.
15878 * eqn/eqn.h: Declare compatible_flag.
15880 * etc/soelim.c (main): Add -C option.
15881 (interpret_lf_args): Use version in libgroff.
15884 * pic/main.c (main): Add -C option, which sets compatible_flag.
15885 (top_input::get), (top_input::peek): If -C option not given,
15886 do not recognize .PS/.PE/.PF/.lf if followed by a character
15887 other than space or newline.
15888 * pic/lex.c (file_input::read_line): Similarily.
15889 * pic/pic.h: Add declaration of compatible_flag.
15891 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
15893 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15895 * troff/node.c, troff/node.h: Add `asciify' methods to classes
15896 derived from node. New class space_char_hmotion_node.
15897 * troff/input.c (asciify_macro): New function.
15898 * troff/input.c (init_input_requests): New request `asciify' bound
15900 * macros/mm.diff: New file.
15901 * Makefile: In install.mm target use `patch' to apply
15904 * troff/input.c (macro::print_size): Just print the size in bytes.
15906 * troff/div.c (return_request): Correct the argument
15909 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
15911 * troff/node.h (class composite_node): Add sz member.
15912 * troff/node.c (composite_node::size): Return sz.
15913 * troff/input.c (macro_to_node): Use the initial size in the
15914 environment as the size of the composite_node.
15916 * troff/node.c (node::zero_width_tprint): Provide a reasonable
15919 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
15921 * troff/div.c (change_trap): If we get a bad number expression,
15924 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
15926 * lib/matherr.c (matherr): Define this only if math.h defines
15929 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
15931 * troff/div.c (macro_diversion::distance_to_next_trap): If there
15932 no diversion trap return vunits(INT_MAX - vresolution).
15934 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
15936 * troff/input.c (do_zero_width): New implementation that doesn't
15937 use a temporary environment. Use instead:
15938 (token::add_to_node_list): New function.
15939 * troff/env.c (environment::get_prev_char_height),
15940 (environment::get_prev_char_height),
15941 (environment::get_prev_char_skew): New functions.
15942 (environment::get_prev_char): New function.
15943 (environment::get_prev_char_width): Change to use get_prev_char.
15944 (init_env_request): Implement new registers .cht, .cdp, .csk.
15945 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15946 \Z being processed in a separate environment.
15948 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
15950 * tbl/table.c: Removed TABLE_BOTTOM_REG.
15952 * tbl/table.c (table::init_output): In the section release macro,
15953 give a warning message if the section won't fit on one page.
15955 * tbl/table.c (table::do_top): Emit table keep only if table is
15957 (table::do_bottom): Likewise for table release.
15958 (table::table), (table::add_vertical_rule): Remove reference to
15960 * tbl/table.h: Remove keep member.
15962 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15963 SECTION_RELEASE_MACRO, if there's not enough space before the next
15964 trap to output the diversion, call T# ourselves, set
15965 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15966 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
15967 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
15968 vertical position and return to it before turning traps on again.
15970 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
15972 * troff/node.c, troff/node.h: In classes derived from node,
15973 replace prev_char_width method by last_char_node method.
15974 * troff/env.c (environment::get_prev_char_width): Use
15975 node::last_char_node rather than node::get_prev_char_width.
15977 * Makefile: Added comment about -fno-inline on 68030-based
15980 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15981 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15982 expressions using sizeof to int.
15983 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15985 * macros/tmac.e (TS): Don't move @f back past the current
15988 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
15990 * ps/ps.c (main): Buffer stderr.
15991 * dvi/dvi.c (main): Likewise.
15992 * tty/tty.c (main): Likewise.
15994 * ps/ps.c (ps_printer::do_import): Improve error handling.
15996 * troff/input.c (abort_request): Use asciify.
15998 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15999 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16000 type of first argument int rather than char. This works around a
16001 bug on the 68030 based Apollo using g++ 1.37.1.
16003 * tbl/table.h (class table): Add `keep' member.
16004 * tbl/table.c (table::table): Initialize `keep'.
16005 (table::add_vertical_rule): Set `keep' to 1.
16006 (table::do_top): Only emit table keep macro is `keep' is non-zero.
16007 (table::do_bottom): Likewise for table release macro.
16008 (table::do_row): Emit section keep macro even if the row is 0.
16010 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
16012 * macros/tmac.e (@C): Preserve the font family across the change
16015 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
16017 * lib/font.c: Initialize font::hor and font::vert to 1.
16018 (font::load_desc): Check the values of font::hor and font::vert.
16020 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16021 be included in a C compilation.
16022 (iftoa): Use INT_DIGITS. Include lib.h.
16024 (as_string): Likewise.
16025 * tbl/table.c: Removed definition of INT_DIGITS.
16026 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16027 * troff/input.c (input_input_requests): Likewise.
16028 * ps/ps.c (make_encoding_name): Likewise.
16029 (ps_printer::set_style): Likewise.
16030 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16032 * tty/devascii/R.proto: Map fm onto '.
16033 * tty/devlatin1/R.proto: Likewise.
16035 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
16037 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16038 argument to \w is at a different input level.
16040 * tbl/table.c (table::init_output): Define a new macro
16041 REPEATED_VPT_MACRO, like vpt but if in a diversion also
16042 transparently outputs itself.
16043 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16045 (table::do_row): Likewise.
16047 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16048 TRANSPARENT_STRING_NAME.
16050 * tbl/table.c (table::init_output): In the table release macro
16051 print an error message and don't produce any output if after
16052 issuing the need request the table still will not fit. Also
16053 remove the diversion after bringing it back.
16055 * tbl/table.c (table::init_output): Define a new macro
16056 REPEATED_MARK_MACRO, like mk but if in a diversion also
16057 transparently outputs itself.
16058 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16059 is necessary because .TH might not call .T#.
16060 (table::do_top): Likewise TOP_REG.
16061 (table::define_bottom_macro): If TOP_REG is no longer valid, use
16062 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16063 table header might contain just the two top rules.
16065 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
16067 * troff/div.c: Implement new request `ptr' to print all traps.
16069 * troff/env.c (init_env_requests): Implement `.tabs' reg with
16070 init_string_env_reg.
16071 * troff/env.c (class tab_reg): Deleted.
16073 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
16075 * troff/div.c: New number register .pn returns the number of the
16076 next page as set by the pn request.
16078 * macros/tmac.an: Redid headers and footers. Number each manual
16079 entry starting from 1 unless \nC is > 0, like Sun. Added an
16080 optional 5th argument to .TH which specifies the manual name and
16081 appears in the center of the header. Understand the X, P and D
16082 registers like Sun.
16084 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
16086 * troff/env.c (init_env_requests): New number register `.lt' to
16087 return the title length.
16089 * troff/node.h (class transparent_dummy_node): New class.
16090 * troff/node.c (class transparent_dummy_node): Provide member
16092 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16095 * troff/input.c (token::next): New escape sequence \).
16096 * troff/input.c (get_copy): Recognize \) in copy mode.
16098 * troff/input.c (input_stack::clear): New function.
16099 * troff/input.c (exit_request): Use input_stack::clear.
16101 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16102 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16104 * troff/env.c: Move set_page_character to input.c. Move
16105 page_character to input.c also.
16106 * troff/env.c (title): Split off the reading of the parts of the
16107 title into read_title_parts.
16108 * troff/input.c (read_title_parts): New function. Check the
16109 input_level when testing whether a token matches the delimiter.
16111 * troff/input.c (exit_request): New function.
16112 * troff/input.c (init_input_requests): Bind ex request to
16113 exit_request rather than exit_groff.
16115 * troff/input.c (exit_groff): Call tok.next() before
16116 process_input_stack().
16118 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
16120 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16121 * troff/env.h: ditto.
16122 * troff/input.c: ditto.
16124 * troff/env.c (environment::is_empty): Test pending_lines.
16126 * troff/env.c (environment::have_pending_lines): Removed.
16128 * troff/input.c: Add request to flush pending lines from the
16131 * troff/env.c, troff/env.h: Add automatic widow control feature.
16133 * troff/input.c (exit_groff): Do process_input_stack() after
16134 do_break() but before setting exit_flag to 2.
16136 * troff/input.c: Remove FLUSH_PENDING_LINES and
16137 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16138 environment after END_TRAP token seen, but only if there aren't
16139 any more traps still unfinished.
16140 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16142 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
16144 * troff/env.c: Rename the `retain_size' member of class
16145 pending_output_line to `no_fill'.
16147 * troff/env.c (title): When the line is output, make the
16148 retain_size argument !fill.
16150 * troff/node.h: Add `hyphenated' member to struct breakpoint.
16151 * troff/node.c (space_node::get_breakpoints),
16152 (dbreak_node::get_breakpoints): Fill this in.
16153 * troff/env.c: Allow specification of maximum number of
16154 consecutive hyphenated lines.
16156 * troff/env.c (environment::is_empty): Add test for !current_tab.
16158 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
16160 * troff/env.c (environment::hyphenate_line): Don't completely give
16161 up if the word is not to be hyphenated; continue so that breaks
16162 can be made at break_char_node's.
16164 * lib/lib.h: Only define INT_MAX if it's not already defined;
16165 undef INT_MIN if it's already defined.
16167 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16169 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16170 This works around a bug in AT&T C++ 2.0 used with an ANSI C
16173 * macros/tmac.an (an-header): Set no-space mode.
16175 * macros/tmac.an (TH): Start a new page if necessary.
16177 * Started using ChangeLog at version 0.4.
16180 version-control: never