1 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
3 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5 2003-12-10 Richard Stallman <rms@gnu.org>
7 * LICENSE: Better wording.
9 2003-12-09 Werner LEMBERG <wl@gnu.org>
11 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
12 * configure, NEWS: Updated.
14 2003-12-08 Werner LEMBERG <wl@gnu.org>
16 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
18 2003-12-07 Bernd Warken <bwarken@mayn.de>
22 2003-12-07 Werner LEMBERG <wl@gnu.org>
26 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
28 Use path separator character of target platform for compiled-in
31 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
32 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
33 * configure: Regenerated.
34 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
36 2003-12-05 Werner LEMBERG <wl@gnu.org>
38 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
39 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
41 2003-12-04 Bernd Warken <bwarken@mayn.de>
45 2003-12-03 Werner LEMBERG <wl@gnu.org>
47 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
48 ligatures present in AFM files since groff currently only
49 understands some standard ligatures and nothing else.
51 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
53 * src/roff/groff/groff.cpp (main): Don't run the spooler if
56 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
59 Don't use Unix wait flags.
61 2003-12-02 Werner LEMBERG <wl@gnu.org>
63 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
64 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
65 src/roff/troff/uniuni.cpp: Moved to...
66 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
67 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
68 src/libs/libgroff/uniuni.cpp: Here.
70 * src/include/Makefile.sub.old (HDRS),
71 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
72 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
74 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
76 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
80 2003-12-01 Werner LEMBERG <wl@gnu.org>
82 * groff.texinfo: Document special behaviour of `.vs 0'.
83 Improve documentation of `cflags' request.
86 2003-11-29 Werner LEMBERG <wl@gnu.org>
88 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
89 * font/devlj4/CORONET: Regenerated.
91 2003-11-24 Werner LEMBERG <wl@gnu.org>
93 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
94 if processing hyphenation patterns in traditional mode.
95 Improve error messages.
97 2003-11-20 Werner LEMBERG <wl@gnu.org>
99 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
100 troff_output_file::put_char): Fix type of local variable `c'.
102 2003-11-19 Werner LEMBERG <wl@gnu.org>
104 * src/roff/groff/pipeline.c (P): Removed. Updated all function
106 (i_to_a): Removed. libgroff already provides this function.
107 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
109 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
111 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
114 2003-11-17 Werner LEMBERG <wl@gnu.org>
116 * COPYING: Use correct version.
118 2003-11-11 Werner LEMBERG <wl@gnu.org>
120 LynxOS 4.0.0 doesn't declare vfprintf.
122 * configure.ac: Check for vfprintf.
123 * configure: Regenerated.
124 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
125 * src/include/config.hin: Regenerated.
127 2003-11-10 Werner LEMBERG <wl@gnu.org>
129 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
131 * configure.ac: Check for vsnprintf.
132 * configure: Regenerated.
133 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
135 * src/include/config.hin: Regenerated.
137 2003-11-09 Werner LEMBERG <wl@gnu.org>
139 * aclocal.m4: Updated syntax to autoconf 2.59.
140 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
141 Don't check for gsos2.
142 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
143 working abs_top_srcdir and abs_top_builddir.
145 * configure.ac: Updated syntax to autoconf 2.59.
146 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
147 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
148 * configure: Regenerated.
150 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
151 s/@groff_top_builddir@/@abs_top_builddir@/.
153 * src/roff/groff/pipeline.c (xstrsignal):
154 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
156 2003-11-07 Werner LEMBERG <wl@gnu.org>
158 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
159 make start angle smaller than end angle to circumvent a bug in tpic
160 handling of some versions of dvipdfm (and dvipdfmx).
162 2003-10-30 Werner LEMBERG <wl@gnu.org>
164 * src/devices/grops/grops.man: Improve section on creating EPS.
166 2003-10-29 Werner LEMBERG <wl@gnu.org>
168 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
171 2003-10-28 Werner LEMBERG <wl@gnu.org>
173 * doc/groff.texinfo: Fix documentation of `.if'.
175 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
177 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
178 the form `uniXXXX' also.
180 2003-10-27 Werner LEMBERG <wl@gnu.org>
182 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
183 contrib/pic2graph/pic2graph.sh: Implement secure management of
185 Pass `-P-pletter' to groff to avoid data outside of the converted
186 area -- some versions of `convert' (for example 5.3.8) don't check
187 the bounding box of the image but always use a fixed image size
188 (letter paper format).
189 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
190 contrib/pic2graph/pic2graph.man: Updated.
192 * src/roff/groff/groff.man: Document $TMP and $TEMP.
194 2003-10-26 Werner LEMBERG <wl@gnu.org>
196 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
197 troff_output::simple_ellipse, troff_output::simple_arc,
198 troff_output::simple_line, troff_output::simple_spline,
199 troff_output::simple_polygon): Insert a space before arguments.
200 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
201 latter doesn't produce a node, so the following `.sp -1' would do
203 Don't emit `.sp -1' after \M. This also doesn't produce a token
204 (and we don't have to care about compatibility mode).
205 (troff_output::set_color, troff_output::reset_color): Don't emit
206 `.sp -1' after \M and \m.
208 * src/roff/troff/input.cpp (old_have_input): New global variable.
209 (input_stack::get): Handle `old_have_input'.
210 (process_input_stack) <token::TOKEN_NEWLINE>: Call
211 `trapping_blank_line' depending on `old_have_input', not
214 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
216 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
217 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
218 default directory names for temporary files.
219 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
221 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
222 [__MSDOS__] (run_pipeline): Honour environment variables.
223 Don't use `tmpnam' but `tempnam' to work around messy
226 * README.MinGW: New file.
228 2003-10-16 Werner LEMBERG <wl@gnu.org>
230 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
231 `(*t)->next' without testing validity of `*t'.
232 (usage): Make it more readable.
234 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
236 Make html device run under both MS-DOS and Win32.
238 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
239 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
240 spawn or fork+exec has to be used, and whether parent must sleep
241 until the child process terminates. Used in
242 `char_buffer::run_output_filter'.
243 (copyofstdoutfd): Removed.
244 (char_buffer): Replace `write_file_html' and `write_file_troff'
245 member functions with `emit_troff_output' and `run_output_filter'.
246 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
248 (replaceFd): Replaced with...
249 (set_redirection): New auxiliary function.
250 (waitForChild): Replaced with...
251 (save_and_redirect): New auxiliary function for.
253 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
256 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
258 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
259 (GROFF_LIBC): New function.
260 * configure.ac: Call GROFF_LIBC.
262 * configure: Regenerated.
264 * src/include/lib.h: Handle __MINGW32__.
265 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
266 Add macro for `pipe'.
269 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
272 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
275 2003-10-13 Werner LEMBERG <wl@gnu.org>
277 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
280 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
283 2003-10-12 Werner LEMBERG <wl@gnu.org>
285 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
286 src/roff/troff/input.cc (usage): Updated.
288 * NEWS, doc/groff.texinfo: Updated.
290 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
292 * src/libs/libgroff/searchpath.cpp
293 (search_path::open_file_cautious): New function which also handles
294 `-' as stdin and stdout depending on the access mode.
295 * src/include/searchpath.h (search_path): Updated.
297 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
298 * src/devices/grops/ps.h: Include `searchpath.h'.
299 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
300 Open resource file with `include_search_path.open_file_cautious'.
301 * src/devices/grops/grops.man: Document new `-I' switch.
303 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
304 (main), src/devices/grolj4/lj4.cpp (main),
305 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
307 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
309 (include_search_path): New global variable.
310 (include_path_append): Removed.
311 (main): Use `include_search_path.command_line_dir' to handle `-I'.
312 (do_file): Simplify, using new
313 `include_search_path.open_file_cautious'.
315 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
317 (main): Pass arguments to `-I' to both troff and devices.
318 Improve handling of `-V'.
319 * src/roff/groff/groff.man: Document changes to -I and -V.
321 * src/roff/troff/input.cpp (include_search_path): New global
323 (next_file, source, ps_bbox_request, transparent_file,
324 process_input_file): Use new
325 `include_search_path.open_file_cautious'.
326 (main) Handle `-I' switch.
327 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
328 Use new `include_search_path.open_file_cautious'.
329 * src/roff/troff/node.h: New extern symbol `include_search_path'.
330 * src/roff/troff/troff.man: Document new `-I' switch.
332 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
334 Support multiple calls of .Lb in LIBRARY section.
336 * tmac/doc-common (doc-in-library-section): New register.
337 (doc-section-library): New string.
338 (Sh): Set `doc-in-library-section'.
340 * tmac/doc-syms (Lb): Insert breaks before and after arguments
341 if in LIBRARY section.
342 * tmac/doc.tmac (doc-save-global-vars): Updated.
343 * NEWS, tmac/groff_mdoc.man: Updated.
345 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
347 * tmac/doc-common (doc-default-operating-system): New variable.
350 2003-09-08 Werner LEMBERG <wl@gnu.org>
352 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
354 2003-08-31 Werner LEMBERG <wl@gnu.org>
356 * contrib/mom/Makefile.sub: Fix last change to make it really work.
357 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
358 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
359 $(DEVFILES) are not empty.
360 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
362 2003-08-26 Chuck Silvers <chuq@chuq.com>
364 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
365 with parallel runs of `make'.
367 2003-08-23 Stephen Gildea <gildea@stop.mail-abuse.org>
369 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
370 insert SORT_SEP. With certain combinations of sort specifications,
371 refer sorted entries in the wrong order. In particular, entries
372 with a missing field should be be sorted before all entries that
373 have that field, before refer looks to the next field.
375 2003-08-23 Werner LEMBERG <wl@gnu.org>
377 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
378 g++ linker is used. Reported by Mark J. Reed
379 <mark.reed@turner.com>.
381 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
383 Add key character `x' to tbl which makes tbl call a user-defined
384 macro on a table cell.
386 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
387 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
388 `set_modifier' after printing the compatibility request.
389 (set_modifier): Print call to `m->macro' if not empty.
390 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
392 (process_format): Implement cases `x' and `X'.
393 * src/preproc/tbl/tbl.man, NEWS: Updated.
395 2003-08-15 Werner LEMBERG <wl@gnu.org>
397 * doc/groff.texinfo: Minor fixes.
399 2003-08-09 Werner LEMBERG <wl@gnu.org>
401 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
403 2003-08-07 Werner LEMBERG <wl@gnu.org>
405 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
406 argument list to nothing if there is no file to match. Use `ls' as
407 a protection, similar to autoconf.
409 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
410 empty argument lists.
412 * doc/groff.texinfo: Improve documentation how vertical spacing
413 and line breaks interact.
416 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
418 2003-08-03 Werner LEMBERG <wl@gnu.org>
420 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
421 EPS (using eps2eps or similar programs to compute the bounding box).
423 2003-07-24 Werner LEMBERG <wl@gnu.org>
425 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
426 * doc/texinfo.tex: Updated from texinfo 4.6.
427 * README.CVS: From now on we need texinfo 4.6.
429 2003-07-23 Werner LEMBERG <wl@gnu.org>
431 Add requests `dei1' and `ami1' for completeness.
433 * src/roff/troff/input.cc (calling_mode): Remove
434 CALLING_DISABLE_COMP.
435 (comp_mode): New enumeration.
436 (do_define_string, define_string, define_nocomp_string,
437 append_string, append_nocomp_string): Updated.
438 (do_define_macro): Add third parameter.
439 (define_macro, define_nocomp_macro, define_indirect_macro,
440 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
441 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
444 (init_input_requests): Add `dei1' and `ami1'.
446 * tmac/trace.tmac: Handle de1 and am1.
447 (de): Improve tracing message.
448 (am): Add missing `do'.
451 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
452 Document new requests.
454 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
456 Add option -G to .MPIMG to insert a gap between text and the image.
458 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
459 www-finish-left-ll): Updated.
460 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
461 (MPIMG): Make option -L and -R optional.
464 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
466 * src/devices/grohtml/post-html.cpp
467 (html_printer::do_file_components): Don't use `stdout' as lvalue
468 since it can be a macro.
470 2003-07-22 Werner LEMBERG <wl@gnu.org>
472 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
473 the corresponding test in aclocal.m4.
475 2003-07-21 Werner LEMBERG <wl@gnu.org>
477 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
478 names but RGB values directly. Otherwise pnmtopng depends on
479 an external file `rgb.txt' which maps colour names to values.
481 2003-07-20 Werner LEMBERG <wl@gnu.org>
483 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
484 * configure, src/include/config.hin: Regenerated.
486 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
488 2003-07-19 Werner LEMBERG <wl@gnu.org>
490 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
492 2003-07-18 Werner LEMBERG <wl@gnu.org>
494 * *.man: Switch to non-compatibility mode temporarily if GNU
495 syntax extensions are used in the particular man page.
497 * PROBLEMS: Add solutions for SGR problems.
499 2003-07-17 Werner LEMBERG <wl@gnu.org>
501 Don't ignore grotty's command line options if \X'tty: sgr ...' is
502 used to change the drawing scheme.
504 * src/devives/grotty/tty.cpp (bold_flag_option,
505 underline_flag_option, italic_flag_option, reverse_flag_option,
506 bold_underline_mode_option): New global variables.
507 (update_options): New function.
508 (tty_printer::special): Call update_options.
509 (main): Don't set xxx_flag but xxx_flag_option, then call
512 2003-07-14 Werner LEMBERG <wl@gnu.org>
514 Make grotty emit proper Unicode box drawing characters for -Tutf8.
516 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
518 (hline_char, vline_char): New global variables.
519 (tty_printer::tty_printer): Initialize them.
520 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
521 horizontal and vertical lines.
522 (crossings): New global array.
523 (tty_printer::end_page): Use it to determine the proper crossing
524 character for -Tutf8.
526 2003-07-12 Werner LEMBERG <wl@gnu.org>
528 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
529 (HTMLDOCFILES): Revert to `pic.html'.
530 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
532 2003-07-11 Werner LEMBERG <wl@gnu.org>
534 * doc/pic.ms: Improve documentation of absolute coordinates.
535 Document absolute positioning of pictures.
537 * NEWS: Add new pic capability.
539 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
541 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
544 2003-07-07 Werner LEMBERG <wl@gnu.org>
546 Implement support for dashed and dotted ellipses in pic. Based on
547 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
549 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
550 common_output::dashed_ellipse, common_output::dotted_ellipse): New
551 functions. Ellipse arcs are approximated with circle arcs.
552 * src/preproc/pic/common.h (common_output): Updated.
553 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
555 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
557 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
559 2003-07-06 Werner LEMBERG <wl@gnu.org>
561 Make grotty work on platforms which have unsigned char as the
562 default for char. Based on a patch by Thomas Klausner
565 * src/devices/grotty/tty.cpp (schar): New typedef.
566 Updated calls to declare_ptable and implement_ptable.
567 (glyph): Use schar for back_color_idx and fore_color_idx.
568 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
569 (tty_printer::tty_color, tty_printer::tty_printer,
570 tty_printer::color_to_idx, tty_printer::put_color): Updated.
572 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
574 * src/roff/nroff/nroff.sh: Add option -d for completeness.
575 * src/roff/nroff/nroff.man: Updated.
577 2003-07-05 Werner LEMBERG <wl@gnu.org>
579 * NEWS, tmac/groff_www.man: Updated.
580 * doc/Makefile.sub: Updated.
582 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
584 Implement support for multiple HTML output files.
586 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
587 -j command line option.
589 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
591 (file): New fields `new_output_file', `require_links',
593 (file::file): Updated.
594 (files::set_file_name, files::set_links_required,
595 files::are_links_required, files::is_new_output_file,
596 files::file_name, files::next_file_name): New functions.
597 (header_desc): New fields `no_of_level_one_headings',
599 (header_desc::header_desc): Updated.
600 (header_desc::write_headings): Handle multiple files.
601 (html_printer::write_header): Save file name in which header occurs.
602 (html_printer::determine_header_level): Possibly split files on
604 (html_printer::do_links, html_printer::troff_tag): Updated.
605 (html_printer::insert_split_file, html_printer::do_job_name,
606 html_printer::emit_link, html_printer::write_navigation,
607 html_printer::do_file_components): New functions.
608 (html_printer::~html_printer): Handle multiple files.
609 (main): Handle command line option `-j'.
611 * src/devices/grohtml/grohtml.man: Updated.
613 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
616 * tmac/www.tmac (JOBNAME): New macro.
617 * tmac/s.tmac (SH-NO-TAG): New macro.
618 (@SH): Call SH-NO-TAG.
621 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
623 * tmac/groff_mdoc.man: Improve documentation of punctuation
626 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
628 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
630 2003-07-03 Werner LEMBERG <wl@gnu.org>
632 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
634 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
636 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
639 (Fn, Fo): Reduce indentation in synopsis.
641 * tmac/doc-common (doc-check-depth): New macro.
642 (doc-end-macro, Sh, Ss): Use it.
643 (Cd): Fix behaviour in synopsis.
644 (In): Make it parsed and callable.
645 If not in the synopsis, represent the C header file enclosed in
647 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
648 Use minus, not hyphen.
650 * tmc/groff_mdoc.man: Updated.
652 2003-07-01 Werner LEMBERG <wl@gnu.org>
654 Integrated grap2graph, contributed by Eric S. Raymond.
656 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
658 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
659 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
661 2003-07-01 Colin Watson <cjwatson@debian.org>
663 * src/xditview/*.c: Add prototypes, fix return types, add includes.
664 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
666 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
668 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
670 2003-06-31 Werner LEMBERG <wl@gnu.org>
672 * doc/Makefile.sub (CLEANADD): Remove all files created by
673 running `make groff.{pdf,dvi}'.
675 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
678 2003-06-30 Werner LEMBERG <wl@gnu.org>
680 * Makefile.in (SHELL): Define as @SHELL@.
681 (mkinstalldirs): Use $(SHELL).
682 (MDEFINES): Add $(SHELL).
683 * Makefile.comm (SHELL): Removed.
685 2003-06-29 Werner LEMBERG <wl@gnu.org>
687 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
688 The X11 documentation files use them.
689 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
691 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
693 * tmac/e.tmac (@C): Handle .ad also.
695 2003-06-12 Werner LEMBERG <wl@gnu.org>
697 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
699 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
700 Assign `n' even here. It is possible to construct a node
701 immediately following an escape character:
709 2003-06-10 Werner LEMBERG <wl@gnu.org>
711 * README.WIN32: Removed.
714 2003-06-07 Werner LEMBERG <wl@gnu.org>
716 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
718 2003-06-05 Werner LEMBERG <wl@gnu.org>
720 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
721 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
723 2003-06-03 Werner LEMBERG <wl@gnu.org>
725 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
726 is done by the calling function.
728 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
730 * tmac/X.tmac: Fix definition of `em'.
732 2003-05-22 Werner LEMBERG <wl@gnu.org>
734 * src/roff/troff/input.cc (return_macro_request): Fix detection of
737 2003-05-18 Werner LEMBERG <wl@gnu.org>
739 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
740 to make items work which consist only of a tag.
742 2003-05-17 Werner LEMBERG <wl@gnu.org>
744 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
745 aren't stretched in a tag (this can fail with unformatted boxes).
746 Instead, insert a break and go back one line.
748 2003-05-16 Werner LEMBERG <wl@gnu.org>
750 * src/roff/troff/input.cc (return_macro_request): If called with
751 argument pop macro twice. We need this to trace `return'.
753 * tmac/trace.tmac: Handle `return'.
756 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
759 2003-05-15 Larry Kollar <kollar@alltel.net>
761 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
762 registers `FPS', `FVS', and `FPD'.
764 2003-05-15 Werner LEMBERG <wl@gnu.org>
766 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
769 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
771 * tmac/groff_mdoc.man: Slight improvements.
773 2003-05-03 Werner LEMBERG <wl@gnu.org>
775 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
776 `doc-header-space' after header line if register `cR' is set.
778 2003-05-02 Werner LEMBERG <wl@gnu.org>
782 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
784 * tmac/doc-common (Nd): Use \[em].
786 2003-05-01 Werner LEMBERG <wl@gnu.org>
788 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
789 doc-footer-space): Initialize to 0.5i.
790 (doc-setup-page-layout): Don't set doc-header-space and
793 2003-04-30 Werner LEMBERG <wl@gnu.org>
795 * REVISION: Set to 1.
797 * doc/pic.ms: Document possible problems with `figname'.
799 2003-04-29 Werner LEMBERG <wl@gnu.org>
801 Version 1.19 released
802 =====================
804 * VERSION: Set to 1.19.
805 * REVISION: Set to 0.
806 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
808 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
809 Define charset as `US-ASCII' in html output.
811 * tmac/www.tmac (ULE): Add missing scaling indicator.
813 * win32-diffs: Removed.
815 2003-04-28 Werner LEMBERG <wl@gnu.org>
817 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
819 Document how to insert discardable whitespace with `.ss'.
821 2003-04-27 Werner LEMBERG <wl@gnu.org>
823 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
824 work with plain TeX also.
826 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
828 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
830 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
833 2003-04-24 Werner LEMBERG <wl@gnu.org>
835 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
836 vbox with positive height and zero depth if in TeX mode.
838 * NEWS: Document glyph name changes for grodvi and grolj4.
840 2003-04-23 Werner LEMBERG <wl@gnu.org>
842 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
845 2003-04-21 Werner LEMBERG <wl@gnu.org>
847 HP-UX 10.20 has `snprintf' but it isn't declared.
849 * configure.ac: Add declaration test for snprintf.
850 * configure: Regenerated.
851 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
852 * src/include/config.hin: Regenerated.
854 2003-04-19 Werner LEMBERG <wl@gnu.org>
856 Add keyword `figname' to pic, specifying the name of the picture
857 box in TeX mode. Based on a patch from William J Poser
858 <wjposer@unagi.cis.upenn.edu>.
860 * src/preproc/pic/pic.y: New token `FIGNAME'.
861 (macro_name): New rule of type <str>.
862 (placeless_element): Handle `FIGNAME'.
863 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
864 * src/preproc/pic/main.cpp (graphname): New global variable.
865 (do_picture): Initialize `graphname'.
866 * src/preproc/pic/pic.h: Updated.
867 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
870 (tex_output::text): Beautify output.
871 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
872 `shaded' and `outlined' unconditionally.
873 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
876 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
877 greater is necessary.
879 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
881 Add option -r to soelim to avoid emission of `.lf' lines.
882 Add option -t to produces TeX comment lines instead of `.lf' lines.
884 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
887 (main): Handle `-r' and `-t'.
888 (set_location): Handle `raw_flag' and `tex_flag'.
889 * src/preproc/soelim/soelim.man, NEWS: Updated.
891 2003-04-17 Werner LEMBERG <wl@gnu.org>
893 * tmac/hyphenex.sh: Replaced with...
894 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
897 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
898 if --quiet is used for the configure script.
899 * configure: Regenerated.
901 2003-04-16 Werner LEMBERG <wl@gnu.org>
903 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
904 Add `const' to second argument.
905 (html_printer::add_table_end): Add `const' to argument.
906 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
907 `const' to arguments.
908 * src/devices/grohtml/html-text.h: Updated.
910 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
911 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
914 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
915 cast for integer constant.
917 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
918 (writeNbytes): Add `const' to first argument.
919 (writeString): Add `const' to argument.
920 (char_buffer::can_see): Add `const' to third argument.
921 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
923 * src/preproc/html/pushback.h: Updated.
925 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
926 (include_path_append): Add `const' to argument.
929 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
931 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
932 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
934 (unicode_decompose_init::unicode_decompose_init): Updated.
935 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
937 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
938 * src/roff/troff/input.cc (process_startup_file): Add `const' to
941 * tmac/hyphenex.sh: Make script more portable by using a here
944 2003-04-15 Werner LEMBERG <wl@gnu.org>
946 Renamed all `*.cc' files to `*.cpp'.
947 Updated all configuration files, makefiles, and documentation.
949 2003-04-14 Werner LEMBERG <wl@gnu.org>
951 * tmac/hyphenex.sh: Slight improvements.
953 2003-04-13 Werner LEMBERG <wl@gnu.org>
955 * font/devascii/R.proto, font/devcp1037/R.proto,
956 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
957 character slots with unnamed glyphs.
959 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
960 (an-first): New global variable.
961 (an-header): Emit vertical space between multiple man pages.
963 2003-04-11 Werner LEMBERG <wl@gnu.org>
965 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
968 2003-04-10 Werner LEMBERG <wl@gnu.org>
972 2003-04-10 Bernd Warken <bwarken@mayn.de>
974 * doc/webpage.ms: Improved.
976 2003-04-09 Werner LEMBERG <wl@gnu.org>
978 Add register \n[.height] which returns the value of \H.
979 Add register \n[.slant] which returns the value of \S.
981 * src/roff/troff/env.cc (init_env_requests): Implement.
982 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
985 2003-04-08 Werner LEMBERG <wl@gnu.org>
987 * tmac/html.tmac: Move some of the data into html-end.tmac.
988 Remove most of the character translations for eqn since html fonts
989 now cover those characters.
991 * tmac/html-end.tmac: New file.
992 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
993 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
994 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
996 2003-04-07 Werner LEMBERG <wl@gnu.org>
998 * man/groff_out.man: Document negative values of `N' if -Thtml is
1001 2003-04-06 Werner LEMBERG <wl@gnu.org>
1003 * Makefile.comm (depend.temp): Check location of YTABC.
1005 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1007 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1009 (groff_bin_path): Rename to GROFF_BIN_PATH.
1010 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1011 * doc/Makefile.in (TROFFBIN): New variable for troff
1013 (GROFFBIN): New variable for groff binary path.
1014 (groff_bin_path): Rename to GROFF_BIN_PATH.
1015 (TROFF): Use TROFFBIN.
1016 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1017 * doc/Makefile.sub (GROFFBIN): New variable for groff
1019 (groff_bin_path): Rename to GROFF_BIN_PATH.
1020 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1022 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1023 with INSTALL_SCRIPT.
1024 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1025 * Makefile.dev (all): Depend on DEVSCRIPTS.
1026 (install_dev): Likewise.
1027 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1029 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1030 (DEVGENSCRIPTS): New variable to hold generated scripts.
1032 2003-04-05 Werner LEMBERG <wl@gnu.org>
1034 * src/libs/libdriver/input.cc (IntArray::operator[],
1035 IntArray::get_data): Remove meaningless `const' in return value.
1037 * README.CVS: New file.
1039 2003-04-04 Werner LEMBERG <wl@gnu.org>
1041 Check for stdint.h in C++, not in C.
1043 * aclocal.m4 (GROFF_STDINT_H): New function,
1044 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1046 * configure, src/include/config.hin: Regenerated.
1047 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1050 Fix handling of in grohtml. To do this, troff emits `N'
1051 with a negative value, representing the width of the unbreakable
1052 space (only for -Thtml). grohtml then converts this back to
1053 and uses the value of N as its width.
1055 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1056 unbreakable_space_node::tprint): Emit `N-<width>'.
1057 * src/include/printer.h (printer::set_numbered_char): Make it
1059 Make members `font_table' and `nfonts' protected instead of private.
1060 * src/devices/grohtml/post-html.cc
1061 (html_printer::set_numbered_char): New member function.
1064 * src/libs/libgroff/maxfilename.cc:
1065 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1067 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1070 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
1072 * man/roff.man: Small fixes.
1074 2003-04-03 Werner LEMBERG <wl@gnu.org>
1076 Make groff independent from locale's numeric settings.
1078 * configure.ac: Check for `setlocale'.
1079 * configure, src/include/config.hin: Regenerated.
1081 * src/include/lib.h: Handle HAVE_SETLOCALE.
1083 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1084 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1085 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1088 * doc/groff.texinfo: Change dir category to `Typesetting'.
1089 (Man font macros): Mention that there is no space between arguments
1092 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1093 (*printer::change_color, *printer::change_fill_color): Add missing
1096 2003-04-02 Werner LEMBERG <wl@gnu.org>
1098 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1099 html_table::is_gap): Compute table widths after converting border
1100 positions to avoid rounding errors.
1102 2003-04-01 Werner LEMBERG <wl@gnu.org>
1104 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1105 `space_emitted' properly.
1107 2003-03-31 Werner LEMBERG <wl@gnu.org>
1109 * src/devices/grohtml/html-table.cc: Fix column width calculation.
1110 (html_table::set_linelength): Don't add 1.
1111 (html_table::add_indent): Don't subtract 1.
1113 * tmac/html.tmac: Set default page offset to zero.
1115 2003-03-30 Werner LEMBERG <wl@gnu.org>
1117 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
1119 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1120 unbreakable_space_node::tprint): New functions.
1121 (troff_output_file): Make space_char_hmotion_mode::tprint and
1122 unbreakable_space_node::tprint to friends.
1123 * src/roff/troff/node.h: Updated.
1125 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
1126 in the HTML standard).
1128 2003-03-29 Werner LEMBERG <wl@gnu.org>
1130 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1131 Otherwise, the following code
1140 produces `x a' instead of `xa'. This is a temporary fix, disabling
1141 font changes in diversions for -Thtml.
1143 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1145 (an-do-tag-html): Merge with ...
1146 (an-do-tag): This macro.
1147 Change code slightly to circumvent grohtml bug.
1148 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1150 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1151 html_table::is_gap): Round `width' properly.
1153 * tmac/html.tmac: Provide some default layout parameters for
1156 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1159 2003-03-28 Werner LEMBERG <wl@gnu.org>
1161 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1163 2003-03-27 Werner LEMBERG <wl@gnu.org>
1165 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1168 2003-03-20 Werner LEMBERG <wl@gnu.org>
1170 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1172 * doc/groff.texinfo: Updated.
1174 2003-03-19 Werner LEMBERG <wl@gnu.org>
1176 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1177 TOKEN_END_TRAP>: Reset `have_input'.
1179 2003-03-18 Werner LEMBERG <wl@gnu.org>
1181 * src/roff/groff/groff.man: Mention groff_trace man page.
1183 2003-03-16 Werner LEMBERG <wl@gnu.org>
1185 * Makefile.in (LIBEXT): New variable to indicate the file extension
1186 of library files. Computed heuristically from $(OBJEXT).
1187 (MDEFINES): Add $(LIBEXT).
1188 * Makefile.lib, Makefile.comm: Use it.
1190 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
1191 overlong lines into smaller chunks.
1192 (get_binary): New function.
1194 * src/utils/pfbtops/pfbtops.man: Updated.
1196 2003-03-15 Colin Watson <cjwatson@debian.org>
1198 * src/roff/groff/groff.man: Minor syntax fix.
1200 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
1202 * src/devices/grops/ps.cc (ps_printer::media_set,
1203 ps_printer::~ps_printer): Handle zero paper width and length.
1205 2003-03-13 Werner LEMBERG <wl@gnu.org>
1207 Add options -p and -l to grodvi.
1209 * src/devices/grodvi/dvi.cc: Include paper.h.
1210 (landscape_flag, user_paper_length, user_paper_width): New global
1212 (dvi_printer::begin_page): Emit `papersize' special.
1213 Set color after initialization of `cur_h' and `cur_v'.
1214 (main): Add options `-l' and `-p'.
1215 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1216 * src/devices/grodvi/grodvi.man, NEWS: Updated.
1218 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1220 2003-03-12 Werner LEMBERG <wl@gnu.org>
1222 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1223 * man/groff_tmac.man: This man page.
1224 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1227 * tmac/X.tmac: Don't load pspic.tmac.
1229 2003-03-11 Werner LEMBERG <wl@gnu.org>
1231 Make variable `pr' local to libdriver/input.cc. Based on a patch
1232 by Bernd Warken <bwarken@mayn.de>.
1234 * src/include/driver.h (pr): Removed.
1236 * src/libs/libdriver/input.cc (pr): New global variable.
1237 (do_file): Deallocate `pr'.
1238 * src/libs/libdriver/printer.cc (pr): Removed.
1240 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1241 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1242 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1243 (main): Don't delete `pr'.
1245 2003-03-10 Werner LEMBERG <wl@gnu.org>
1247 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1248 * tmac/papersize.tmac: New file.
1249 * tmac/troffrc: Include `papersize.tmac'.
1250 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1251 * tmac/an-old.tmac: Set LT to LL by default.
1253 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1254 doc/groff.texinfo: Updated.
1256 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1257 bug which caused all odd iso papers to have wrong dimensions.
1259 * src/devices/grops/ps.cc (user_paper_width): New global variable.
1260 (main) <'p'>: Set `user_paper_width' also.
1261 (ps_printer::media_width, ps_printer::media_height): Use values
1262 given with option `-p'.
1264 2003-03-09 Werner LEMBERG <wl@gnu.org>
1266 * src/include/nonposix.h: Provide default for SET_BINARY.
1268 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1269 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1272 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1273 (main): Treat \r\n as \n.
1275 2003-03-08 Werner LEMBERG <wl@gnu.org>
1277 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1278 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1280 2003-03-07 Werner LEMBERG <wl@gnu.org>
1282 Added support to access more than 256 glyphs in Type 1 fonts.
1284 * src/devices/grops/ps.cc (subencoding): New structure.
1285 (style): Add `sub' field.
1287 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1288 Add `set_subencoding', `get_subfont' and `encode_subfont' member
1291 (ps_printer::set_char): Use `set_subencoding'.
1292 (make_subencoding_name): New function.
1293 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1294 (ps_printer::~ps_printer): Emit subencoding definitions.
1296 * src/devices/grops/psrm.cc (valid_input_table): New array to
1297 properly support EBCDIC.
1298 (white_space): Add `\f'.
1299 (ps_get_line): Change first argument to be of type `string &'.
1300 Updated all callers.
1301 This allows to get lines of arbitrary length.
1302 Use `valid_input_table'.
1303 Remove warning about non-conforming PS line length. This seems
1304 not to be of great importance -- for example, dvips don't emit
1306 (PS_LINE_MAX): Removed.
1307 (matches_comment): Change first argument to be of type `string &'.
1309 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1311 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1312 %AGL_to_unicode, %default_ligatures): New hash tables.
1313 Read all map entries.
1314 Add unencoded characters.
1315 Check for default ligatures if there are no `L' entries.
1316 Print all kern entries.
1317 Print all characters in charset.
1318 * src/utils/afmtodit/afmtodit.man: Updated.
1320 * font/devps/*: Regerated all fonts.
1322 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1323 of characters, just use `.trin'. Otherwise the mapping depends
1324 on the font encoding.
1325 * tmac/ps.tmac: Add `fi' and `fl'.
1326 Improve `Fi' and `Fl'.
1327 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1328 * tmac/Xps.tmac: Fix `em'.
1332 2003-03-04 Werner LEMBERG <wl@gnu.org>
1334 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1337 2003-03-03 Werner LEMBERG <wl@gnu.org>
1339 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1341 * font/devps/generate/textmap: Remove entry `similarequal'.
1342 * font/devps/symbolmap: Updated.
1344 2003-03-02 Werner LEMBERG <wl@gnu.org>
1346 * src/libs/libgroff/font.cc (font::load): Fix error message for
1349 * src/devices/grops/grops.man: Improve documentation of the -b
1352 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1353 `ascii' and `cp1047'.
1355 2003-03-01 Werner LEMBERG <wl@gnu.org>
1357 Document composite glyphs and the `composite' request.
1359 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1361 2003-02-28 Werner LEMBERG <wl@gnu.org>
1363 * font/devdvi/generate/ec.map: Add some more Unicode entities.
1364 * font/devdvi/*EC: Updated.
1366 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1367 * tmac/latin1 (latin1-tr): Undo any previous mapping.
1368 * tmac/troffrc: Load `composite.tmac'.
1369 * tmac/Makefile.sub (NORMALFILES): Updated.
1371 * doc/groff.texinfo (Input Encodings): New section.
1374 2003-02-27 Werner LEMBERG <wl@gnu.org>
1376 * doc/texinfo.tex: New version 2003-02-11.06.
1378 * tmac/doc-common (Dt): Don't emit warning for unknown section.
1379 * tmac/groff_mdoc.man: Fix description of `Dt'.
1381 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
1383 * font/devps/prologue.ps: Fix for included Postscript that does
1384 a setpagedevice -- which is now safely ignored.
1388 * src/devices/grops/ps.cc: Now sets the page size in the generated
1389 document. This is done in two ways: Via a %%-comment for gv and
1390 the like, and via a PageSize and setpagedevice for programs that
1391 understands Postscript proper, like ps2pdf.
1393 * src/devices/grops/ps.h: New broken-flag to avoid page size
1394 definition, if required.
1396 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1398 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1399 Not really necessary due to the fix in prologue.ps, but cleaner:
1400 Such information does not belong in an .eps file.
1402 * doc/Makefile.sub: See doc/Makefile.in.
1404 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
1406 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1407 instead of P1 since the latter is broken in some versions of netpbm.
1408 * configure: Updated.
1410 2003-02-26 Larry Kollar <kollar@alltel.net>
1412 Make man pages more customizable.
1414 * tmac/an-old.tmac (FT): New register holding footer distance from
1416 (HF): New string holding the default heading font.
1417 (TH): Handle registers `IN' and `SN' set on the command line.
1419 (PT, BT): New strings to customize header and footer lines.
1420 (an-header, an-footer): Use them.
1422 * tmac/groff_man.man: Document changes.
1424 * doc/groff.texinfo: Document man changes.
1425 Document Ultrix extensions of man.
1427 2003-02-26 Werner LEMBERG <wl@gnu.org>
1429 * src/roff/troff/input.cc (do_width, do_if_request): Reset
1430 `have_input' after changing back to old environment.
1432 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1433 function up to be defined before first call. This is necessary to
1434 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1436 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1437 the default font directory also. Based on a patch from James
1438 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1439 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1440 * src/utils/afmtodit/afmtodit.man: Document it.
1444 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1446 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
1448 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1449 (GROFF_PNMTOPS_NOSETPAGE): New macro.
1450 * configure.ac: Use it.
1451 * configure: Regenerated.
1452 * Makefile.in: Updated.
1454 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1455 (CLEANADD): Add www.tmac-sed.
1456 (pnmtops_nosetpage): Define default.
1457 (install_data): Handle www.tmac-sed and substitute
1458 @PNMTOPS_NOSETPAGE@.
1459 (stamp-sed): Add www.tmac.
1460 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1461 It now breaks URLs at suitable places.
1462 (www:substring_ok): New register set by...
1463 (www:@test_substring): New macro.
1464 (www:error): New alias to www-error.
1465 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1467 (URL): Use www:url_breaks.
1468 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1469 (CDS, CDE): New macros.
1471 2003-02-25 Werner LEMBERG <wl@gnu.org>
1473 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1476 2003-02-24 Werner LEMBERG <wl@gnu.org>
1478 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1479 can be negative also.
1481 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1483 (read_char_table): Avoid negative ascenders.
1484 (output_charset): Add cast.
1485 * font/devlj4/*: Regenerated.
1487 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1490 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1491 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1493 * font/devdvi/*: Regenerated.
1495 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
1496 normal width, while the previously used characters (U+2329 and
1497 U+232A) are classified as wide due to canonical equivalence with the
1498 CJK punctuation characters U+3008 and U+3009.
1500 * font/devutf8/R.proto: Updated.
1501 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1503 * man/groff_char.man: Simplify handling of table traps by
1504 introducing `start block' and `end block' macros.
1505 (Ns, Ne, 2s, 2e, Ds, De): New macros.
1506 (DL): Make it work with Unix troff also.
1507 Fix code values of `la' and `ra'.
1509 * tmac/dvi.tmac: Define `<>' for CW and CWI.
1511 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
1513 * src/devices/grohtml/post-html.cc (element_list::~element_list):
1514 New destructor, fixing a major memory leak.
1516 2003-02-22 Werner LEMBERG <wl@gnu.org>
1518 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1519 to be in conformance with Unicode 3.0 and newer.
1521 * font/devlj4/generate/text.map: Add `Eu'.
1522 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1523 * font/devlj4/S: Regenerated.
1525 * man/groff_char.man: Completely rewritten.
1527 * doc/groff.texinfo: Fix description of request and macro arguments.
1529 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
1533 * src/devices/grohtml/html-table.cc (html_table::~html_table):
1534 Deallocate `columns' list.
1535 * src/devices/grohtml/post-html.cc (char_block::~char_block):
1537 (text_glob::text_glob_html, text_glob::text_glob_special,
1538 text_glob::text_glob_line, text_glob::text_glob_auto_image,
1539 text_glob::text_glob_tag): Avoid memory leaks.
1540 (text_glob::remember_table): Free memory before reassigning.
1542 2003-02-19 Werner LEMBERG <wl@gnu.org>
1544 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1545 alias `hbar'), the Planck constant over two pi.
1547 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1548 `+e' for position 34.
1549 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1550 `u2662' and `u2661'.
1551 * font/devdvi/{MI,S}: Regenerated.
1552 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1553 * font/devlbp/*: Add `hbar' alias.
1554 * font/devlj4/generate/special.map: Ditto.
1555 * font/devlj4/S: Regenerated.
1556 * font/devps/generate/symbolchars: Add `+e'.
1557 * font/devps/generate/textmap: Fix PS name for `-h'.
1559 * font/devps/symbolmap: Regenerated.
1561 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1563 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1565 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1568 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1570 * tmac/tty-char.tmac: Add `+e'.
1572 2003-02-17 Werner LEMBERG <wl@gnu.org>
1574 Another round trying to really fix problems with `have_input'.
1576 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1577 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1579 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1580 handling if both foreground and background colors are default.
1582 * doc/groff.texinfo (Debugging): Document .lf differences to
1585 2003-02-16 Werner LEMBERG <wl@gnu.org>
1587 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1588 null-bytes in created string.
1590 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1591 alias_macro, lookup_request): Improve warning messages.
1593 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1595 Free `last_image_filename'.
1597 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1599 (imageList::createPage, imageList::createImage): Use `free', not
1601 (imageItem::~imageItem): Free `imageName'.
1602 (addRegDef): Use `strsave', not `strdup'.
1603 (get_resolution): Free `pathp'.
1605 2003-02-15 Werner LEMBERG <wl@gnu.org>
1607 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1610 2003-02-14 Werner LEMBERG <wl@gnu.org>
1612 Add memory management for colors to deallocate unnamed colors
1615 * src/include/color.h (color): New members `free_list' and `next'.
1616 New member functions `new' and `delete'.
1618 * src/libs/libgroff/color.cc: Implement it.
1620 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1621 for array size of new operator.
1623 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1624 redundant comparison.
1626 * src/roff/troff/input.cc (word_space_node::reread,
1627 hmotion_node::reread): Avoid warning about unused parameter.
1628 (reset_output_registers): Remove redundant parameter.
1629 (define_color): Undo change 2003-02-12.
1631 * src/roff/troff/reg.h: Updated.
1633 * src/roff/troff/node.cc (troff_output_file::really_print_line,
1634 output_file::put_filename, real_output_file::really_put_filename,
1635 ascii_output_file::really_print_line,
1636 break_char_node::get_hyphen_list): Avoid warning about unused
1638 (suppress_node::tprint): Updated.
1640 * configure.ac: Check declaration for rand() and srand().
1641 * configure: Regenerated.
1643 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1645 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1648 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1649 to avoid compiler warnings.
1651 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1654 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1656 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1658 Updated all callers.
1660 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1662 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1663 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1665 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1666 Parameter is unused.
1667 (html_printer::add_table_end): Define parameter conditionally.
1668 * src/devices/grohtml/output.cc (simple_output::special): Parameter
1671 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1672 (lbp_printer::set_char): Last parameter is unused.
1674 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1676 2003-02-13 Werner LEMBERG <wl@gnu.org>
1678 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1679 Make \D'f ...' move horizontally again for backwards compatibility.
1680 Replace it with \D'Fg ...' where appropriate to avoid dependency
1681 on horizontal resolution.
1683 * src/roff/troff/input.cc (do_get_long_name): New function.
1684 (get_long_name): Call it.
1686 (read_draw_node): Handle `\D'Fx ...' by calling ...
1687 (read_color_draw_node): New function.
1689 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1691 Pass it to `do_get_long_name' which is used instead of
1694 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1695 unnecessary value guard.
1696 (parse_D_command) <'f'>: Add horizontal shift.
1698 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1699 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1700 (FILL_MAX): Removed.
1702 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1705 2003-02-12 Werner LEMBERG <wl@gnu.org>
1707 * src/roff/troff/input.cc (do_name_test, do_expr_test,
1708 do_zero_width): Push `\n' if closing delimiter is missing.
1710 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1711 <'F'>: Make \F non-transparent at the beginning of line.
1712 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1713 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1716 (define_color): Free color in case of reassignment.
1718 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1719 @DefescListEnd): Use @Var, not @var.
1722 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1724 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1725 `shaded' and `outlined' arrays.
1726 (object_spec::object_spec): Initialize `shaded' and `outlined'.
1727 (graphic_object::set_fill_color, graphic_object::set_outline_color):
1729 (closed_object::set_fill_color): Ditto.
1730 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1732 (troff_output::reset_color): Use a_delete instead of free.
1733 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1735 2003-02-11 Werner LEMBERG <wl@gnu.org>
1737 * doc/groff.texinfo: Improve documentation of `ad'.
1738 Document that \D'f...' is dependent on the horizontal resolution.
1739 * man/groff_diff.man: Improve documentation of \D'f...'.
1741 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1742 compensating \h'...' for \D'f ...' since the latter no longer moves
1744 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1746 2003-02-10 Werner LEMBERG <wl@gnu.org>
1748 Improve error messages for `x F' (and `F') commands.
1750 * src/include/error.h: Add declaration for
1751 `current_source_filename'.
1752 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1753 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1754 parameter for source file string.
1755 Updated all callers.
1757 * src/libs/libdriver/input.cc: Add `current_source_filename'.
1758 (remember_source_filename): New function.
1759 (parse_x_command <'F'>, do_file <'F'>): Use it.
1761 2003-02-09 Werner LEMBERG <wl@gnu.org>
1763 Make grotty not emit warnings about unknown colors more than
1766 * src/devices/grotty/tty.cc: Include `ptable.h'.
1767 (TTY_MAX_COLORS): Removed.
1768 (DEFAULT_COLOR_IDX): Defined to -1.
1769 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1770 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1771 Change `tty_colors' to be a ptable.
1772 First arg of `put_color' is now `char'.
1773 New functions `make_rgb_string' and `tty_color'.
1774 (tty_printer::tty_printer): Use `tty_color'.
1775 (tty_printer::color_to_idx): Return value is now `char'.
1778 * src/include/color.h (color): Add `print_color' member function.
1779 * src/libs/libgroff/color.cc (color::print_color): Implement it.
1781 2003-02-08 Werner LEMBERG <wl@gnu.org>
1785 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1788 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1789 assume that value has been allocated with `new[]', thus use
1790 `a_delete' for deallocation.
1792 * src/libs/libdriver/input.cc (get_integer_arg,
1793 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1796 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1797 * src/libs/libgroff/nametoindex.cc
1798 (character_indexer::named_char_index): Use `new <type>[1]'.
1800 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1802 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1803 (split_text): Use `a_delete'.
1805 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1808 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1809 harmless memory leak.
1810 (hyphen_trie::read_patterns_file): Initialize `buf'.
1811 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1812 Initialize `current_fill_color'and `current_glyph_color'.
1813 * src/roff/troff/glyphuni.cc
1814 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1815 * src/roff/troff/uniuni.cc
1816 (unicode_decompose_init::unicode_decompose_init): Ditto.
1817 * src/roff/troff/uniglyph.cc
1818 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1820 2003-01-26 Werner LEMBERG <wl@gnu.org>
1822 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1823 `access' before calling `unlink'.
1824 (do_file): Handle __EMX__.
1826 * src/include/nonposix.h: Handle __EMX__.
1828 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1829 (fontpath,tmacpath): Use it.
1831 Sorted alphabetically.
1833 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1835 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1838 2003-01-27 Werner LEMBERG <wl@gnu.org>
1840 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1841 New files, copied from gnulib.
1842 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1843 * configure.ac: Updated.
1844 * configure: Regenerated.
1846 * src/include/config.hin: Regenerated.
1847 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1848 Don't define `strcasecmp' as `strcmp'.
1849 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1850 Dont define `strncasecmp' as `strncmp'.
1852 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1855 2003-01-26 Werner LEMBERG <wl@gnu.org>
1857 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1860 2003-01-25 Werner LEMBERG <wl@gnu.org>
1862 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1864 2003-01-24 Werner LEMBERG <wl@gnu.org>
1866 Add US-english hyphenation exceptions (converted from Barbara
1867 Beeton's hyphenation exception log reports which appear irregularly
1870 * tmac/hyphen.us: Updated to latest version.
1871 * tmac/README: Updated.
1872 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1873 * tmac/troffrc: Load `hyphenex.us'.
1874 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1875 * doc/groff.texinfo: Updated.
1877 2003-01-23 Werner LEMBERG <wl@gnu.org>
1879 Improve hyphenation slightly. This is a first step in redesigning
1880 the hyphenation algorithm to make it more flexible (e.g. allowing
1881 kerns and ligatures between the hyphenation character and the
1882 following character -- while not used normally in English, other
1883 languages like German would benefit).
1885 * src/roff/troff/env.cc (environment::hyphenate_line): Use
1886 assertion instead of if-clause.
1887 Let `get_hyphen_list' return the number of involved characters in
1888 the hyphenation pattern instead of computing it directly (which
1889 often yields too small values).
1890 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1891 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1894 2003-01-22 Werner LEMBERG <wl@gnu.org>
1896 Fixing a bug which caused groff to hang if the hyphenation exception
1897 dictionary tried to grow.
1899 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1900 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1901 pointer to dictionary.
1903 2003-01-20 Werner LEMBERG <wl@gnu.org>
1905 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1906 negative left italic correction.
1907 * src/utils/afmtodit/afmtodit.man: Document it.
1909 * font/devps/generate/Makefile (RFLAG): Add `-m'.
1910 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1911 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1915 2003-01-16 Werner LEMBERG <wl@gnu.org>
1919 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
1921 * src/preproc/refer/refer.man: Mention REFER environment variable.
1923 2003-01-05 Werner LEMBERG <wl@gnu.org>
1925 Similar to \[is], the square root glyph (\[sr]) and the square root
1926 extension glyph (\[radicalex]) are now text symbols. The new
1927 mathematical versions are called \[sqrt] and \[sqrtex],
1930 * font/devX*/S: Regenerated.
1931 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1932 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1933 * font/devdvi/EX, font/devdvi/S: Regenerated.
1934 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1935 * font/devlj4/generate/special.map: Add `sqrt'.
1936 * font/devlj4/S: Regenerated.
1937 * font/devps/generate/textmap: Add `sqrt'.
1938 * font/devps/S, font/devps/symbolmap: Regenerated.
1940 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1941 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1942 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1943 overlap horizontally.
1945 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1946 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1949 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1950 and `sqrtex' are overlapping glyphs.
1952 2003-01-04 Werner LEMBERG <wl@gnu.org>
1954 * font/devdvi/generate/texsy.map: Add `is'.
1955 * font/devps/symbolmap: Regenerated.
1956 * font/devdvi/*TC, MI, S: Regenerated.
1958 * tmac/dvi.tmac: Remove `is'.
1960 2003-01-03 Werner LEMBERG <wl@gnu.org>
1962 `is' is now a text symbol (only relevant for dvi). The math variant
1963 can be accessed with `integral'.
1965 * font/devX*/S: Regenerated.
1966 * font/devdvi/generate/texex.map: Remove `is'.
1967 * font/devdvi/EX: Updated.
1968 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1969 * font/devlj4/generate/special.map: Ditto.
1970 * font/devlj4/S: Regenerated.
1971 * font/devps/generate/textmap: Add `integral'.
1972 * font/devps/S: Regenerated.
1974 * tmac/dvi.tmac: Define `is'.
1976 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1978 * src/preproc/tbl/main.cc (process_format): Fix error message.
1980 2003-01-02 Werner LEMBERG <wl@gnu.org>
1982 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1983 * font/devps/textmap: Fix entries for `ne' and `nc'.
1984 * font/devps/symbolmap: Regenerated.
1986 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1987 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1988 `38', `58', `78', `-+', `|=', `nc', `ne'.
1990 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1991 Use `schar' for `aq'.
1992 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1993 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1994 * tmac/tty.tmac: Add `ne'.
1996 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1997 for fallback glyphs.
1999 2002-12-29 Werner LEMBERG <wl@gnu.org>
2003 * font/devX*/*: Regenerated.
2004 * font/devdvi/generate/ec.map: Remove `eq'.
2005 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2006 Assign `|=' to position 39.
2007 * font/devdvi/*EC, S: Regenerated.
2008 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2009 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2010 Assign `|=' to position 549.
2011 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2013 Add `uni2243' for `|='.
2015 * tmac/ec.tmac: Add `eq'.
2016 * tmac/dvi.tmac: Add `=~'.
2017 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2020 2002-12-21 Werner LEMBERG <wl@gnu.org>
2022 * font/devdvi/generate/tc.map: Remove `**'.
2023 * font/devdvi/*TC: Regenerated.
2024 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2026 * font/devutf8/NOTES: Updated.
2028 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2029 Don't give default parameter to `set_macro'.
2030 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2031 instead of `set_macro'.
2032 (charinfo::setx_macro): Implement it.
2033 (charinfo::set_macro): Don't change `mode'.
2035 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2036 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2037 * tmac/dvi.tmac: Define `!=' with `.schar'.
2039 2002-12-20 Werner LEMBERG <wl@gnu.org>
2041 * font/devX*/S: Regenerated.
2042 * font/devdvi/generate/ec.map: Remove `pl'.
2043 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2044 * font/devdvi/*{TC,EC}: Regenerated.
2045 * font/devhtml/R.proto: Add `-+'.
2046 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2047 * font/devlbp/*: Remove `or'.
2048 * font/devlj4/generate/special.map: Remove `or'.
2049 * font/devlj4/S: Regenerated.
2050 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2051 `seveneighths', `threeeighths'.
2053 Replace `minusplus' with `uni2213'.
2054 * font/devps/symbolmap: Regenerated.
2055 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2058 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2060 * src/roff/troff/node.cc (troff_output_file::put_char_width):
2061 Call glyph_color and fill_color even if tcommand_flag isn't set.
2062 (make_node, node::add_char): Check not ci->is_fallback but
2065 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2066 * tmac/ec.tmac: Add .rchar entry for `f/'.
2067 Don't remove `12', `14', `34'.
2068 Define `pl' to be always roman.
2069 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2070 Define `18', `38', `58', `78'.
2071 * tmac/tty.tmac: Add `-+'.
2072 * tmac/dvi.tmac: Define `f/'.
2073 (dvi-frac): Use `f/'.
2074 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2075 Define `18', `38', `58', `78'.
2077 2002-12-15 Colin Watson <cjwatson@debian.org>
2079 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2081 2002-12-10 Werner LEMBERG <wl@gnu.org>
2083 Add glyph `tno', a textual variant of `no'.
2085 * font/devX*/*: Regenerated.
2086 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2087 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2088 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2089 * font/devdvi/*: Regenerated.
2090 * font/devlbp/*: Add `tno'.
2091 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2092 * font/devlj4/*: Regenerated.
2093 * font/devps/generate/textmap: Replace `no' with `tno'.
2094 * font/devps/generate/symbolchars: Add `no'.
2095 * font/devps/*: Regenerated.
2097 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2099 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2100 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2104 * tmac/dvi.tmac: Replace most `\\' with `\E'.
2105 Add definition for `sd'.
2106 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2108 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2110 2002-12-08 Werner LEMBERG <wl@gnu.org>
2112 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2113 mode to avoid rounding errors.
2114 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2116 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2117 src/roff/troff/troff.man: Improve documentation of -T.
2119 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
2121 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2122 (run_pipeline) [_WIN32]: Provide working function without `fork'.
2124 2002-12-06 Werner LEMBERG <wl@gnu.org>
2126 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2127 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2128 Scaling Euro.sansserif glyphs down to have the same height as
2130 Removed unnecessary points; added some extrema.
2132 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2135 2002-12-04 Werner LEMBERG <wl@gnu.org>
2137 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2138 and `Euro.symbol.bold.slanted'.
2139 Improve some glyph offsets and widths.
2140 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2142 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2144 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2147 * tmac/europs.tmac: Updated to new glyph indices.
2148 Use Euro.symbol for font familiy `A'.
2150 * doc/groff.texinfo: Minor improvements.
2152 2002-12-02 Werner LEMBERG <wl@gnu.org>
2154 * font/devdvi/generate.tc.map: s/%O/%0/.
2155 * font/devdvi/*TC: Regenerated.
2157 * src/roff/troff/div.cc (init_div_requests): Sorted.
2159 * tmac/dvi.tmac: Remove `Ye'.
2160 * tmac/ec.tmac: Remove `Ye'.
2161 Add .rchar entry for `de'.
2163 * man/groff.man, man/groff_diff.man: Document register `.pe'.
2164 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2167 2002-11-30 Werner LEMBERG <wl@gnu.org>
2169 Add PS font for various Euro glyphs.
2171 * font/devps/generate/freeeuro.sfd: New master font file for
2173 * font/devps/generate/sfdtopfa.pe: New conversion script for
2175 * font/devps/generate/Makefile (FONTS): Add `EURO'.
2176 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2177 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2179 * font/devps/EURO: Generated from `freeeuro.afm'.
2180 * font/devps/download: Add `freeuro.pfa'.
2181 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2184 * tmac/europs.tmac: New file.
2185 * tmac/ps.tmac: Include `europs.tmac'.
2186 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2188 2002-11-29 Werner LEMBERG <wl@gnu.org>
2190 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2191 * font/devdvi/S: Regenerated.
2192 * font/devhtml/R.proto: Fix `CR' and `ci'.
2194 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2196 * font/devps/symbolmap: Regenerated.
2197 * font/devutf8/R.proto: Fix `CR' and `ci'.
2199 * font/devutf8/NOTES: Updated.
2201 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2204 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2206 * tmac/dvi.tmac: Add `lh' and `rh'.
2207 * tmac/Xps.tmac: Fix `lh' and `rh'.
2208 * tmac/X.tmac: Add `OK'.
2209 * tmac/lj4.tmac: Ditto.
2211 2002-11-24 Werner LEMBERG <wl@gnu.org>
2213 * font/devX*/S: Regenerated.
2214 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2215 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2216 * font/devdvi/generate/texsy.map: Remove `or' glyph.
2217 * font/devdvi/S: Regenerated.
2218 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2219 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2220 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2221 `bracketleftbt', `bracketrighttp', `bracketrightex',
2222 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2223 `braceex', `braceleftex', `bracerightex', `bracerighttp',
2224 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2226 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2227 * font/devutf8/NOTES: Updated.
2228 * font/devlj4/generate/special.map: Add glyph `braceex'.
2229 * font/devlj4/S: Regenerated.
2231 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2233 2002-11-14 Werner LEMBERG <wl@gnu.org>
2235 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2238 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2240 * doc/texinfo.tex: New version from texinfo 4.3.
2241 * doc/groff.texinfo: Updated for texinfo 4.3.
2242 Use @tie{} where appropriate.
2243 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2244 * font/devdvi/generate/tc.map: Remove `rn'.
2245 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2246 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2248 * font/devX100/*, font/devX100-12/*, font/devX75/*,
2249 font/devX75-12/*: Regenerated.
2251 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2252 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2253 Improve definition of `an'.
2254 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2256 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2257 * tmac/X.tmac: Add definition for `or'.
2258 * tmac/Xps.tmac: Undo change 2002-11-05.
2259 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2261 2002-11-11 Werner LEMBERG <wl@gnu.org>
2263 * src/roff/troff/node.cc (troff_output_file::put_char): Always
2266 2002-11-10 Werner LEMBERG <wl@gnu.org>
2268 Added three new requests `schar', `fschar', and `rfschar'. `schar'
2269 defines a glyph which is searched after the check for fonts declared
2270 with `.special' (and before the check for all mounted special
2271 fonts). `fschar' defines a glyph for a particular font which is
2272 searched after the check for fonts declared with `.fspecial' (and
2273 before the check for fonts declared with `.special'). `rfschar'
2274 removes glyphs defined with `fschar'.
2276 * src/roff/troff/token.h (char_mode): New enum.
2277 Declare do_define_character.
2278 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2280 (charinfo::is_fallback): Updated.
2281 (charinfo::is_special): New method.
2282 * src/roff/troff/input.cc (do_define_character): Add and use
2283 optional second parameter used as a prefix for font-specific glyph
2285 (define_character, define_fallback_character): Updated.
2286 (define_special_character): New function.
2287 (init_input_requests): Add `schar'.
2288 (charinfo::charinfo, charinfo::set_macro): Updated.
2289 * src/roff/troff/node.cc: Include `stringclass.h'.
2290 (make_glyph_node): Handle special glyphs defined with `.schar' and
2292 (define_font_special_character, remove_font_special_character): New
2294 (init_node_requests): Sorted.
2295 Add `fschar' and `rfschar'.
2296 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2297 Document new requests.
2299 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2300 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2302 2002-11-08 Werner LEMBERG <wl@gnu.org>
2304 Added new font `SC' (cmtex10) to devdvi.
2306 * devdvi/generate/Makefile (FONTS): Add `SC'.
2308 * devdvi/generate/textex.map: New map file for cmtex.
2310 * devdvi/Makefile.sub (DEVFILES): Updated.
2311 * tmac/dvi.tmac: Add fspecial entries for SC.
2312 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
2313 found before `S' since the font position of `SC' is lower due to the
2314 gaps in DESC's `font' line.
2315 * tmac/ec.tmac: Add a `special' call.
2318 * font/devhtml/R.proto: Remove double entry for `ti'.
2319 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2320 * tmac/tty-char.tmac: Remove entry for `bq'.
2321 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2322 * tmac/ec.tmac: Don't remove `aq' glyph.
2323 * tmac/X.tmac: Fix entry for `em'.
2324 Add entries for `fo' and `fc'.
2325 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2327 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2328 documentation of `special' and `fspecial' requests.
2330 2002-11-05 Werner LEMBERG <wl@gnu.org>
2332 * font/devascii/R.proto, font/devcp1047/R.proto,
2333 font/devlatin1/R.proto: Remove entry for `.i'.
2334 * font/devdvi/generate/textt.map: Add entry for `ad'.
2335 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2336 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2337 We need this for getting kerning values to compose `/l' and `/L'.
2338 * font/devdvi: Regenerated font definition files for CM fonts.
2339 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2340 * font/devutf8/R.proto: Ditto.
2341 Remove double entry for `ti'.
2343 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2344 for (groff) ligatures, `la', and `ra'.
2345 Add "'C", "'c", `IJ', and `ij'.
2346 Remove double entry for `ti'.
2347 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2349 Add "'C", "'c", `IJ', and `ij'.
2350 Fix entries for (groff) ligatures, `la', and `ra'.
2352 * tmac/ps.tmac (ps-achar): New macro.
2353 Define "'c" and "'C".
2354 * tmac/tty.tmac: Add entry for `.i'.
2355 * tmac/X.tmac (X-achar): New macro.
2356 Define "'c", "'C", and `:Y'.
2357 Add entries for `IJ' and `ij'.
2358 * tmac/Xps.tmac (Xps-achar): New macro.
2359 Define "'c" and "'C".
2360 Add entries for `IJ' and `ij'.
2361 * tmac/lbp.tmac (lbp-achar): New macro.
2362 Add fallback characters for all groff ligatures and many other
2364 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2365 Add entries for `/l' and `/L'.
2366 Define "'c" and "'C".
2367 Add entries for `IJ' and `ij'.
2369 2002-11-02 Larry Kollar <kollar@alltel.net>
2371 * PROBLEMS: Document how to solve Mac OS X compilation problems.
2373 2002-11-02 Werner LEMBERG <wl@gnu.org>
2375 Adding support for composite glyphs: \[xxx yyy ...] and the
2376 `composite' request.
2378 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2379 to Unicode-based glyph names.
2380 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2381 glyph names to groff glyph names.
2382 * src/roff/troff/uniuni.cc: New file for canonically decomposing
2383 Unicode-based glyph names.
2384 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2385 for handling Unicode glyph names.
2386 * src/roff/troff/input.cc: Include unicode.h.
2387 (composite_glyph_name): New function.
2388 (token::next) <'['>: Handle Unicode glyph names and composite
2390 (composite_dictionary): New dictionary for the `composite' request.
2391 (composite_request): Implement `composite' request.
2392 (init_input_requests): Add `composite'.
2393 Alphabetically sorted.
2394 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2396 (init_env_requests): Alphabetically sorted.
2397 Removed `tas' and `tar' (already commented out).
2398 * src/roff/troff/Makefile.sub: Updated.
2400 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
2402 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2405 2002-10-29 Werner LEMBERG <wl@gnu.org>
2407 Fix computation of .trunc register. Additionally, its value (and
2408 the value of the .ne register) is now always set before entering the
2411 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2412 `needed_space' before calling `space'.
2413 (top_level_diversion::space): Remove special code for 'sp before the
2415 Call `begin_page' with the discarded space as a parameter.
2416 (top_level_diversion::begin_page): Add optional parameter to set
2418 * src/roff/troff/div.h: Updated.
2420 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2423 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2424 (LP): Remove superfluous call to `br'.
2425 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2426 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2428 2002-10-26 Werner LEMBERG <wl@gnu.org>
2430 * tmac/doc-ditroff: Remove useless switch/variable -rC.
2431 (doc-setup-header): Don't set page register `%'.
2432 * tmac/doc-nroff: Remove variable `C'.
2433 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2434 (doc-setup-header): Don't set page register `%'.
2436 * tmac/doc-common (doc-header): Call `ns'.
2437 (doc-paragraph): Protect .sp with .br so that it survives traps
2438 possibly set by the user.
2439 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2441 * tmac/doc*: Replace ' with . for consistency if no effect.
2443 2002-10-26 Werner LEMBERG <wl@gnu.org>
2445 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2446 so that it survives traps possibly set by the user.
2448 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2449 (troff_output_file::set_font): Call flush_tbuf if necessary.
2450 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2451 flush_tbuf and do_motion only if necessary.
2452 (troff_output_file::start_special,
2453 troff_output_file::put_char_width, troff_output_file::put_char,
2454 troff_output_file::draw): Updated.
2455 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2456 vmotion_node::tprint): Undo change 2002-10-23.
2458 2002-10-25 Werner LEMBERG <wl@gnu.org>
2460 * tmac/www.tmac (DC): Fix case of overlapping images.
2462 2002-10-23 Werner LEMBERG <wl@gnu.org>
2464 * src/roff/troff/node.cc (troff_output_file::fill_color,
2465 troff_output_file::glyph_color): Set current color before testing
2467 (troff_output_file::put_char_width, troff_output_file::put_char,
2468 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2470 (troff_output_file::file_color, troff_output_file::glyph_color):
2472 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2473 vmotion_node::tprint): Move first, then call fill_color.
2475 2002-10-20 Werner LEMBERG <wl@gnu.org>
2477 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2478 possible to use multiple main macro packages.
2480 2002-10-19 Werner LEMBERG <wl@gnu.org>
2482 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2483 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2484 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2486 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2487 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2489 2002-10-16 Werner LEMBERG <wl@gnu.org>
2491 * NEWS, doc/webpage.ms: Updated.
2493 2002-10-14 Werner LEMBERG <wl@gnu.org>
2495 * src/roff/troff/node.cc (troff_output_file::put_char_width,
2496 troff_output_file::put_char, troff_output_file::fill_color,
2497 troff_output_file::glyph_color): Handle case where color pointer
2500 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
2502 Add the new -r option to grotty. It is similar to the -i option
2503 except it tells grotty(1) to use the "reverse video" attribute to
2504 render italic fonts.
2506 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2507 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2508 (tty_printer::make_underline, tty_printer::put_color,
2509 tty_printer::end_page): Use it.
2510 (main): Add -r switch.
2512 * src/devices/grotty/grotty.man: Document it.
2514 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
2516 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2517 cast to `unsigned char' to properly read patterns with 8bit
2520 2002-10-08 Werner LEMBERG <wl@gnu.org>
2522 * REVISION: Increased to 2.
2524 Version 1.18.1 released
2525 =======================
2527 2002-10-08 Werner LEMBERG <wl@gnu.org>
2529 * doc/webpage.ms, NEWS: Updated.
2531 2002-10-07 Werner LEMBERG <wl@gnu.org>
2533 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2534 suppress additional whitespace after the header.
2536 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2539 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2541 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
2543 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2544 (Dt): Use it to improve language localization (especially Russian
2547 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
2549 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2550 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2552 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2554 Call `picurve' for BSPLINE.
2555 (HGPrintElt): Handle BSPLINE.
2556 * src/preproc/grn/README: Document it.
2558 2002-10-03 Werner LEMBERG <wl@gnu.org>
2560 * src/roff/troff/node.cc (break_char_node::col): New variable.
2561 Updated constructor.
2562 (space_node::tprint, word_space_node::tprint): Call `fill_color'
2564 (space_node::space_node): Remove assertion.
2565 (break_char_node::add_self): Pass color argument to space node.
2566 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2568 * src/roff/troff/env.cc (environment::do_break,
2569 environment::add_padding): Ditto.
2571 2002-10-02 Werner LEMBERG <wl@gnu.org>
2573 Redesigning color support in troff. Colors are no longer
2574 represented as separate nodes but are now part of glyph nodes and
2575 friends. This fixes the current formatting misbehaviour due to the
2576 changes introduced on 2002-09-20. Some extra code is necessary for
2577 proper grotty support: Without adding color variables to
2578 space-related nodes, the background color would be changed too late.
2580 * src/roff/troff/node.h, src/roff/troff/node.cc:
2581 s/current_pagecolor/current_fill_color/.
2582 s/current_glyphcolor/current_glyph_color/.
2583 (glyph_color_node, fill_color_node): Removed.
2584 (node::get_glyph_color, node::get_fill_color): New virtual member
2586 (space_node::col): New variable.
2587 Updated constructors of space_node and derived classes accordingly.
2588 (hmotion_node::col): New variable.
2589 Updated constructors of hmotion_node and space_char_hmotion_node
2591 (vmotion_node::col): New variable.
2592 Updated constructor accordingly.
2593 (draw_node::gcol, draw_node::fcol): New variables.
2594 Updated constructor accordingly.
2595 (special_node::gcol, special_node::fcol): New variables.
2596 Updated constructors accordingly.
2597 (troff_output_file::put_char, troff_output_file::put_charwidth,
2598 troff_output_file::draw): Set glyph and fill color.
2599 (troff_output_file::start_special): Set glyph and fill color.
2600 Always set current font.
2601 (troff_output_file::fill_color, troff_output_file::glyph_color):
2602 Don't call `do_motion'.
2603 (glyph_node::gcol, glyph_node::fcol): New variables.
2604 Updated constructors of glyph_node and ligature_node accordingly.
2605 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2607 (glyph_node::merge_glyph_node,
2608 kern_pair_node::add_discretionary_hyphen,
2609 node::add_discretionary_hyphen): Updated.
2610 (break_char_node::merge_self): Updated.
2611 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2612 vmotion_node::tprint): Handle color.
2613 (make_glyph_node, make_node, node::add_char): Updated.
2615 * src/roff/troff/env.cc (environment::space_newline,
2616 environment::space, environment::output_line, environment::do_break,
2617 environment::make_tab_node, environment::add_padding, title):
2619 (environment_switch, environment_copy): Don't add color nodes.
2621 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2623 (token::next): Updated.
2624 \m and \M now are as transparent as \s.
2625 (process_input_stack, token::add_to_node_list, token::process,
2626 read_draw_node): Updated.
2627 (charinfo_to_node_list): Don't add color nodes.
2629 * doc/groff.texinfo: Updated.
2631 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
2633 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2636 2002-09-27 Colin Watson <cjwatson@debian.org>
2638 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2640 2002-09-23 Werner LEMBERG <wl@gnu.org>
2642 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2644 (DEFAULT_LINEWIDTH_FACTOR): New macro.
2645 (linewidth_factor): New global variable.
2646 (lbp_printer::set_line_thickness): Fix case for size < 0, using
2648 (long_options): Add -w/--linewidth option.
2650 (main): Handle -w option to set linewidth_factor.
2651 (lbp_printer::lbp_printer): Initialize req_linethickness, not
2654 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2656 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
2658 Fixed a bug in the line thickness setting code.
2660 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2662 (lbp_printer::set_line_thickness): Pass environment as second
2664 Implement it actually.
2665 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2666 and `set_line_thickness, depending on the current font size.
2668 2002-09-21 Werner LEMBERG <wl@gnu.org>
2670 Some Debian patches.
2672 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2673 * src/roff/troff/node.cc (bracket_node::copy): Initialize
2676 2002-09-20 Werner LEMBERG <wl@gnu.org>
2678 * configure: Regenerated with autoconf 2.54.
2680 2002-09-20 Werner LEMBERG <wl@gnu.org>
2682 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2684 Rename cur_fill_color to fill_color.
2685 * src/roff/troff/env.cc: Updated.
2687 2002-09-20 Werner LEMBERG <wl@gnu.org>
2689 * src/roff/troff/env.cc (title): Copy color status after processing
2691 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2692 fill color nodes to reset colors properly.
2694 * tmac/www.tmac (DC): Fix color handling.
2696 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2697 * doc/groff.texinfo: Fixing documentation of `tl' request.
2698 * doc/webpage.ms: Updated.
2700 2002-09-19 Werner LEMBERG <wl@gnu.org>
2702 * src/roff/troff/env.cc (environent_switch, environment_copy):
2703 Emit glyph and fill color nodes to initialize colors properly.
2705 2002-09-17 Colin Watson <cjwatson@debian.org>
2707 * src/roff/troff/env.cc (environment::set_glyph_color,
2708 environment::set_fill_color): Fix typo which prevented \m[] work
2711 2002-09-17 Werner LEMBERG <wl@gnu.org>
2713 Add left and right italic correction to non-slanted PS fonts. This
2714 is an experimental feature to improve image rendering of grohtml.
2716 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2717 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2718 * font/devps/*: All non-slanted fonts regenerated.
2721 2002-09-16 Werner LEMBERG <wl@gnu.org>
2723 Add a site-specific font directory.
2725 * Makefile.in (localfontdir, legacyfontdir): New variables.
2726 (fontpath): Use them.
2727 (MDEFINES, uninstall_dirs): Updated.
2728 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2729 Remove `FONTPATH' and `MACROPATH'.
2731 * src/roff/troff/troff.man, NEWS: Updated.
2732 * doc/groff.texinfo (Font Directories): New section.
2735 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2736 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2737 src/preproc/grn/grn.man: Minor fixes.
2739 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2740 Remove unused variable.
2742 2002-09-11 Werner LEMBERG <wl@gnu.org>
2744 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2745 * man/groff_out.man: Fix documentation of 'N'.
2747 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
2749 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2750 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2752 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2753 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2754 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2755 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2756 PRE_TAG>: Call `begin' with `FALSE'.
2758 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2760 * src/libs/libgroff/string.cc (string::extract): Fix position of
2761 terminating null byte.
2763 2002-09-08 Werner LEMBERG <wl@gnu.org>
2765 Add global option `nospaces' to tbl so that leading and trailing
2766 spaces in data items are ignored.
2768 * src/libs/libgroff/string.cc (string::remove_spaces): New member
2769 function to remove leading and trailing spaces.
2770 * src/include/stringclass.h: Updated.
2772 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2774 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2776 Fix typo in error messages.
2777 (process_data): Implement `nospaces' option.
2778 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2780 2002-09-07 Werner LEMBERG <wl@gnu.org>
2782 * src/include/config.hin: Add `HAVE_ISATTY'.
2783 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2785 * src/libs/libgroff/tmpname.cc: Include `time.h'.
2786 * src/libs/libdriver/input.cc (Char): Add `operator==' and
2787 `operator!=' for `char'.
2788 * doc/groff.texinfo: Replace @ifnottex block for top node with
2791 2002-09-06 Werner LEMBERG <wl@gnu.org>
2793 * doc/Makefile.in (.texinfo.html): Add -I switch.
2794 * doc/groff.texinfo: Add @ifnottex block for top node to make
2795 translation to HTML work.
2797 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
2799 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2800 (get_papersize, determine_vertical_offset): Removed.
2801 (char_buffer::do_image): Always specify letter size.
2803 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2806 2002-09-05 Werner LEMBERG <wl@gnu.org>
2808 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2809 default indentation.
2811 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
2813 * src/preproc/html/pre-html.cc (imageList::createPage): Use
2815 (generateImages): Clean up push-back buffer.
2817 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2819 * doc/groff.texinfo: Minor fixes.
2821 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2823 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2824 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2826 (determine_vertical_offset): Use LETTER_LENGTH.
2827 (createPage): Moved to ...
2828 (imageList::createPage): This.
2829 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2830 (imageList::getMaxX): New function.
2831 (createImage): Moved to ...
2832 (imageList::createImage): This.
2833 (imageList::createImages): New function.
2834 (generateImages): Read `maxx' directly.
2836 (scanArguments): Don't specify `gsPaper' for `-o'.
2837 (makeTempFiles): Call `xtmpfile' with the last argument set to
2840 2002-08-24 Werner LEMBERG <wl@gnu.org>
2842 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2843 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2844 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2845 * src/preproc/html/pushback.cc: Include nonposix.h.
2846 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2849 2002-08-23 Werner LEMBERG <wl@gnu.org>
2851 Use $(OBJEXT) for the object file extension.
2853 * Makefile.comm (.SUFFIXES): Add .obj.
2854 (.cc.obj, .c.obj): New implicit rules.
2855 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2856 (MDEFINES): Add EXEEXT and OBJEXT.
2857 * */Makefile.sub: s/.o/.$(OBJEXT)/.
2859 2002-08-22 Werner LEMBERG <wl@gnu.org>
2861 * INSTALL: Mention texinfo 4.2 as a prerequisite.
2863 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2865 * src/devices/grohtml/post-html.cc (colType): Make enum global to
2867 (html_printer::update_min_max, html_printer::add_table_end): New
2869 (html_printer::lookahead_for_tables): Use them.
2870 Reset page offset correctly.
2871 (html_printer::~html_printer): Add creation of creator comment up.
2873 2002-08-20 Werner LEMBERG <wl@gnu.org>
2875 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2876 * man/groff_tmac.man: Fix typos.
2877 * man/groff_font.man: Minor reordering.
2878 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2879 * contrib/groffer/groffer.man: Fix typos.
2881 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2883 Avoid endless loops while scanning for tables.
2885 * src/devices/grohtml/post-html.cc (list::insert): Set
2887 (html_printer::next_horiz_pos): Add `text_glob' argument; update
2889 Return immediately if that argument is NULL.
2890 (html_printer::calc_nf): Don't test if `g' is NULL.
2891 (html_printer::lookahead_for_tables): Use
2892 `glyphs.move_right_get_data'.
2893 Don't test if `g' is NULL.
2895 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2897 A better fix, replacing fix 2002-08-15, for increasing SIZE.
2899 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2901 (char_block::char_block): Allocate `buffer'.
2902 (char_buffer::add_string): Use it.
2904 2002-08-15 Werner LEMBERG <wl@gnu.org>
2906 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2907 src/devices/grodvi/grodvi.man: Document default line thickness.
2909 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
2911 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2914 2002-08-14 Werner LEMBERG <wl@gnu.org>
2916 * doc/webpage.ms: Updated.
2918 2002-08-09 Werner LEMBERG <wl@gnu.org>
2920 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2923 2002-08-08 Aaron Campbell <aaron@monkey.org>
2925 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2928 2002-08-08 Werner LEMBERG <wl@gnu.org>
2930 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2933 Don't push back a space but a newline onto the stack.
2935 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
2937 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2940 * src/devices/grohtml/post-html.cc (html_printer::end_font,
2941 html_printer::start_font): Handle them.
2942 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2944 (html_text::do_bold): Don't reset italic and tt.
2945 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2946 * font/devhtml/DESC.proto: Add those fonts.
2947 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2949 2002-08-07 Werner LEMBERG <wl@gnu.org>
2951 * MORE.STUFF: Added gpresent.
2953 * tmac/trace.tmac: Show nesting level by a corresponding amount of
2954 whitespace before printing the logging message.
2956 2002-07-31 Colin Watson <cjwatson@debian.org>
2958 * src/devices/grohtml/html-table.cc (html_table::finish_row):
2959 Initialize `n' to zero. This fixes a segfault on ARM.
2961 2002-07-30 Werner LEMBERG <wl@gnu.org>
2963 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2965 2002-07-29 Werner LEMBERG <wl@gnu.org>
2967 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2970 2002-07-28 Colin Watson <cjwatson@debian.org>
2972 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2974 (html_printer::html_printer): Initialize `pointsize'.
2976 2002-07-26 Werner LEMBERG <wl@gnu.org>
2978 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2980 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2981 (gnu.eps): Add -rle switch to pnmtops.
2982 (distfiles): Add gnu.eps and gnu.png.
2984 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
2986 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2989 2002-07-24 Werner LEMBERG <wl@gnu.org>
2991 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2992 ' \+' but ' *' for sed.
2993 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2995 2002-07-23 Werner LEMBERG <wl@gnu.org>
2997 * doc/groff.texinfo: Document `papersize' keyword.
2998 * NEWS, man/groff_font.man: Updated.
3000 2002-07-23 Colin Watson <cjwatson@debian.org>
3002 Extend papersize keyword to accept more than a single entry. The
3003 first valid will be used.
3005 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3006 (font::scan_papersize): Really skip final newline.
3007 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3009 2002-07-23 Werner LEMBERG <wl@gnu.org>
3011 * configure.ac: Test for isatty.
3012 * configure: Regenerated.
3013 * src/include/posix.h: Check HAVE_ISATTY.
3014 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3015 * src/utils/lookbib/lookbib.cc: Include posix.h.
3016 Don't declare isatty.
3018 2002-07-21 Werner LEMBERG <wl@gnu.org>
3020 * NEWS: Add `output' request.
3022 * REVISION: Increased to 1.
3024 Version 1.18.0 released
3025 =======================
3027 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
3029 Allow internal glyph indices > 0xFF in grohtml for input characters.
3031 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3033 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3034 Updated all callers.
3035 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3036 (html_printer): Updated.
3038 2002-07-19 Werner LEMBERG <wl@gnu.org>
3040 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3041 * font/devutf8/R.proto: Adding some missing glyphs.
3042 * font/devutf8/NOTES: Updated.
3044 * tmac/dvi.tmac: Add more composite glyphs.
3045 * tmac/html.tmac: Updated.
3047 * man/groff_char.man: Add `sum' and `product' entities.
3051 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
3053 Improved table, tab, and indenting support.
3055 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3056 string_iterator::suppress_newline_flag): Removed. Updated all
3057 function which have used it.
3059 * src/roff/troff/env.cc: Include `input.h'.
3060 (environment::add_node): Accept 0 as parameter.
3061 (environment::add_html_tag): Add `force' parameter.
3062 Updated all callers.
3063 (environment::add_html_tag_tabs): Ditto.
3064 For the moment, support left-aligned tabs only.
3065 (environment::make_html_tag): New function.
3066 (fill, no_fill): Set .br html tag additionally.
3067 (environment::newline): Emit `eol.ce' or `eol' tag for html.
3068 (environment::add_html_tag_eol): Removed.
3069 (tab_stops::distance_to_next_tab): Add variant for handling
3071 (environment::distance_to_next_tab): Ditto.
3072 Updated all callers.
3073 (environment::handle_tab): Handle tabs for html.
3075 * src/roff/troff/env.h: Updated.
3077 * src/roff/troff/div.cc: Updated all callers of
3078 `environment::add_html_tag'.
3080 * src/devices/grohtml/html-table.cc,
3081 src/devices/grohtml/html-table.h: New files.
3083 * src/devices/grohtml/html-text.cc (html_text): New members
3084 `blank_para' and `start_space'.
3085 (html_text::issue_tag): Don't emit TABLE_TAG.
3086 Handle indentation for PRE_TAG and P_TAG.
3087 (html_text::end_tag): Updated.
3088 (html_text::table_is_void, html_text::issue_table_begin,
3089 html_text::issue_table_end): Removed.
3090 (html_text::do_push): Simplified.
3091 [DEBUGGING]: Small fix.
3092 (html_text::push_para): Add new parameter for indentation; updated
3095 (html_text::do_indent, html_text::do_table, html_text::done_table,
3096 html_text::is_in_table): Removed.
3097 (html_text::do_pre): Handle P_TAG also.
3098 (html_text::shutdown): Handle p->indent.
3099 (html_text::check_emit_text): Simplified.
3100 (html_text::do_emittext): Reset `blank_para'.
3101 (html_text::do_para): Add new parameter for indentation; updated
3103 (html_text::remove_indent): New function.
3104 (html_text::do_space): Handle verbatim text properly.
3105 (html_text::ever_emitted_text, html_text::starts_with_space,
3106 html_text::remove_para_align): New functions.
3107 (html_text::dump_stack_element, html_text::dump_stack): Updated.
3109 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3112 * src/devices/grohtml/post-html.cc: Include html-table.h.
3113 (INDENTATION): Removed.
3114 (text_glob): Added many `is_<foo>' functions.
3115 Added table description `tab'.
3116 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3118 (list): Add `insert' and `move_to' member functions.
3119 (page): Add `insert_tag' member function.
3120 (page::dump_page) [DEBUG_TABLES]: Improved.
3121 (html_printer): Add `table' and `max_linelength' elements.
3122 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3123 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3124 `remove_tabs', `remove_courier_tabs'.
3125 (html_printer::emit_raw): Handle indentation.
3126 (html_printer::do_center, html_printer::write_header): Updated.
3127 (html_printer::is_courier_until_eol): Check for tag.
3128 (html_printer::do_linelength): Handle max_linelength.
3129 (html_printer::do_page_offset, html_printer::do_indentation): Handle
3131 (html_printer::do_tempindent): Updated.
3132 (html_printer::do_indentedparagraph): Removed.
3133 (html_printer::do_indent): Simplified.
3134 (html_printer::do_eol): Use `ever_emitted_text'.
3135 (html_printer::do_flush, html_printer::do_links): Don't call
3137 (html_printer::do_break): Handle end_tempindent.
3138 (html_printer::troff_tag): Get argument.
3140 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3141 (html_printer::flush_page): Call `lookahead_for_tables'.
3142 Don't call `done_table'.
3143 (html_printer::add_to_sbuf): Always call do_indent.
3145 * src/devices/grohtml/Makefile.sub: Updated.
3147 * tmac/an-old.tmac (TP): Don't handle html device specially.
3148 (an-do-tag-html): New function which will be used instead of
3149 `an-do-tag' if html device is used.
3151 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3153 * tmac/s.tmac (@IP): Don't handle html device specially.
3154 (@IP-html): New function which will be used instead of `@IP' if
3155 html device is used.
3157 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3158 is a hack which will eventually vanish again.
3159 (PIMG): Handle `-C' option correctly if not html.
3162 2002-07-17 Werner LEMBERG <wl@gnu.org>
3164 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3166 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
3168 * contrib/pic2graph/pic2graph.*: Use convert(1).
3169 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3171 2002-07-14 Bernd Warken <bwarken@mayn.de>
3173 * tmac/groff_trace.man: New file.
3174 * tmac/Makefile.sub: Updated.
3177 2002-07-13 Werner LEMBERG <wl@gnu.org>
3179 * src/roff/groff/groff.man: Add some cross references.
3181 2002-07-12 Werner LEMBERG <wl@gnu.org>
3183 * src/roff/troff/input.cc (substring_request): Add warnings for
3184 string indices out of range.
3186 2002-07-11 Werner LEMBERG <wl@gnu.org>
3188 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3189 * font/devdvi/*EC: Regenerated.
3191 2002-07-10 Bernd Warken <bwarken@mayn.de>
3193 * man/groff_char.man: Updated and extended.
3195 2002-07-10 Werner LEMBERG <wl@gnu.org>
3197 * src/roff/troff/input.cc (length_macro): Renamed to...
3198 (length_request): This.
3199 Move call of `tok.next()' to the very end, otherwise the register
3200 value hasn't been updated yet.
3201 (init_input_requests): Updated.
3203 2002-07-09 Werner LEMBERG <wl@gnu.org>
3205 * src/roff/troff/input.cc (substring_macro): Renamed to...
3206 (substring_request): This.
3207 (init_input_requests): Updated.
3208 * src/roff/troff/request.h: Updated.
3210 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
3212 * src/roff/grog/grog.sh: Fix typo.
3214 2002-07-08 Werner LEMBERG <wl@gnu.org>
3216 * win32-diffs: Updated.
3218 Handle `papersize' keyword properly in DESC.
3220 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3222 Updated all callers.
3223 * src/libs/libgroff/paper.cc: Add four more paper formats used by
3225 * src/include/paper.h: Updated.
3227 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3228 Other minor C syntax fixes.
3229 (papersize, paperlength, paperwidth): Renamed to `user_*'.
3230 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3232 (lbp_printer::lbp_printer): Pass three arguments.
3233 Set paper dimensions properly.
3234 (make_printer, main): Updated.
3235 (handle_unknown_desc_command): Fix error messages.
3236 (main): Handle papersize keyword in DESC properly.
3238 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3240 (lbp_printer::lbp_printer): Pass an argument.
3241 Set paper_size properly.
3242 (handle_unknown_desc_command): Removed.
3243 (make_printer, main): Updated.
3244 * src/devices/grolj4/grolj4.man: Minor documentation fix.
3246 * man/groff_font.man, NEWS: Updated.
3248 2002-07-07 Werner LEMBERG <wl@gnu.org>
3250 Integrated eqn2graph, contributed by Eric S. Raymond.
3252 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3254 * Makefile.in, NEWS: Updated.
3256 2002-06-04 Werner LEMBERG <wl@gnu.org>
3258 Changing the substring request to make it fit better with other
3259 string manipulation functions in other programming languages:
3260 Index 0 is now the first character in the string, and index -1
3261 indicates the last character. Since this request didn't work
3262 properly anyway in the last release, it doesn't harm too much to
3265 * src/roff/troff/input.cc (substring_macro): Use loops to get
3266 the real string length (ignoring COMPATIBLE_SAVE and
3267 COMPATIBLE_RESTORE) and offsets.
3268 Implement change described above.
3270 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3271 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3273 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3275 2002-06-03 Werner LEMBERG <wl@gnu.org>
3277 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
3278 COMPATIBLE_RESTORE are completely ignored.
3280 * src/roff/troff/input.cc (char_list::set, char_list::get): New
3282 (macro): `length' field renamed to `len'.
3283 Added new field `empty_macro' (1 if macro is empty), to be used
3284 instead of checking `len'.
3285 Updated all callers.
3286 (macro::empty): Updated.
3287 (macro::length, macro::set, macro::get): New functions.
3288 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3290 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3291 COMPATIBLE_RESTORE pairs.
3292 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3293 * src/roff/troff/request.h: Updated.
3295 * doc/groff.texinfo: Document .chop's behaviour better.
3297 2002-06-02 Werner LEMBERG <wl@gnu.org>
3299 * doc/pic.ms: Fix documentation for the addition of positions.
3301 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3303 2002-06-29 Werner LEMBERG <wl@gnu.org>
3305 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3307 * src/roff/troff/input.cc (have_string_arg): New global variable.
3308 (read_mode): New enumeration.
3309 (read_escape_name): Use it. Update all calls.
3310 (read_long_escape_name): Use it. Update all calls.
3311 Set have_string_arg if appropriate.
3312 (get_char_for_escape_name): Add parameter for handling space
3314 (interpolate_string_with_args, decode_string_args): New functions.
3315 (get_copy, token::next): Call it if necessary.
3316 (interpolate_string): Fix error message.
3318 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3321 2002-06-24 Bernd Warken <bwarken@mayn.de>
3323 * man/groff_tmac.man: Updated and extended.
3325 2002-06-24 Werner LEMBERG <wl@gnu.org>
3327 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3329 2002-06-23 Werner LEMBERG <wl@gnu.org>
3331 * doc/pic.ms: Improve documentation of composite block objects.
3333 2002-06-22 Werner LEMBERG <wl@gnu.org>
3335 * src/roff/troff/input.cc (init_registers): Add three registers
3336 `seconds', `minutes', and `hours' to hold the current time.
3338 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3341 2002-06-20 Werner LEMBERG <wl@gnu.org>
3343 Make \X accept both `\ ' and `\~', converting them to single space
3346 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3347 (token::unstretchable_space): New inline function.
3348 * src/roff/troff/input.cc (token::next, token::delimiter,
3349 token::description, token::add_to_node_list, token::process): Handle
3350 TOKEN_UNSTRETCHABLE_NODE.
3351 (encode_char): Handle tok.stretchable_space and
3352 tok.unstretchable_space.
3354 * NEWS, doc/groff.texinfo: Document it..
3356 2002-06-19 Werner LEMBERG <wl@gnu.org>
3358 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3360 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3361 keyword to enable/disable SGR output.
3362 (tty_printer::change_fill_color): New function.
3363 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3365 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3368 2002-06-18 Werner LEMBERG <wl@gnu.org>
3370 Add a `color' request and a `.color' register to control usage of
3373 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3374 (color_flag): This (which is the inverse).
3375 (activate_color): New function.
3376 (main, init_input_requests): Updated.
3377 * src/roff/troff/troff.h, src/roff/troff/node.cc
3378 (troff_output_file::fill_color, troff_output_file::glyph_color):
3381 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3382 Document the changes.
3384 2002-06-17 Colin Watson <cjwatson@debian.org>
3386 Circumvent bug in autoconf 2.53 regarding top_builddir.
3388 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3389 * Makefile.in, doc/Makefile.in:
3390 s/@top_builddir@/@groff_top_builddir@/.
3391 * configure: Regenerated (with autoconf 2.53).
3393 2002-06-17 Werner LEMBERG <wl@gnu.org>
3395 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3396 `paperwidth' and `paperlength' for the `papersize' keyword.
3398 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
3400 * src/devices/grops/grops.man: Add info about Type 42 fonts.
3402 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
3404 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3405 html_printer::do_linelength, html_printer::do_pageoffset,
3406 html_printer::do_indentation, html_printer::do_tempindent,
3407 html_printer::do_break, html_printer::begin_page): Clear indented
3409 * tmac/html.tmac: Disable hyphenation.
3411 2002-06-15 Werner LEMBERG <wl@gnu.org>
3413 Don't produce HTML files if utility programs are missing.
3415 * Makefile.in (make_html, make_install_html): New variables.
3416 (MDEFINES): Updated.
3418 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3420 * configure.ac: Use it.
3421 * configure: Regenerated.
3423 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3424 (HTMLEXAMPLESFILES): This new variable.
3425 (EXAMPLESIMAGEFILES): Renamed to...
3426 (HTMLEXAMPLEIMAGEFILES): This.
3427 (CLEANADD): Add HTMLEXAMPLEFILES.
3428 (all): Use `make_html'.
3430 (install_data): Use `make_install_html'.
3431 Move html stuff to...
3432 (install_html): This new target.
3433 (uninstall_sub): Updated.
3435 2002-06-14 Bernd Warken <bwarken@mayn.de>
3437 * src/roff/grog/Makefile.sub (grog): Renamed to...
3439 (grog): New rule to always install grog.sh as grog.
3441 2002-06-08 Bernd Warken <bwarken@mayn.de>
3443 * src/roff/grog/grog.pl: Fix typo.
3445 2002-06-07 Werner LEMBERG <wl@gnu.org>
3447 * doc/groff.texinfo: Add more info on .tr arguments.
3449 2002-06-05 Werner LEMBERG <wl@gnu.org>
3451 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3453 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3454 * configure: Regenerated.
3456 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3458 * src/roff/troff/symbol.cc (table_sizes): Add more values.
3460 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3462 2002-06-04 Werner LEMBERG <wl@gnu.org>
3464 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3465 is not initialized at the time we need it in case `--prefix' hasn't
3466 been set. Check for `ac_default_prefix' also.
3467 Test for `papersize' keyword also and generalize allowed whitespace.
3468 * configure: Regenerated.
3470 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3473 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3475 (src_version, src_revision): New variables to avoid overwriting
3476 from parent make process.
3477 (version.cc): Updated.
3479 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3480 (linebuf, linebufsize): New global variables.
3481 (sys_fatal): Use `fatal' to abort properly.
3482 (get_line): New function.
3483 (get_resolution): Use it.
3484 Improve error messages.
3485 (get_papersize): Check `papersize' also.
3487 Improve error messages.
3489 2002-06-03 Werner LEMBERG <wl@gnu.org>
3491 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3492 should be removed only if builddir is not srcdir.
3493 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3494 (clean): Depend on `mostlyclean'.
3495 (distclean): Depend on `clean'.
3496 (realclean, extraclean): Depend on `distclean'.
3497 (.y.cc, .y.o): Simplified. The output files are no longer written
3498 to srcdir but to builddir.
3499 * Makefile.in (MDEFINES): Add `version' and `revision'.
3500 (uninstall_dirs): Fix order of directories.
3501 * doc/Makefile.sub (version, revision): Removed.
3502 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3503 Added `HTMLDOCFILES'.
3504 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3505 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3506 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3509 * doc/texinfo.tex (\authortt): New macro.
3510 (\shortcontt): Define.
3511 (\titlepage): Set \tt to \authortt while defining \authorfont.
3512 (\appendixbox): New macro.
3513 (\chapmacro, \appendixentry): Use \appendixbox to get even
3514 indentation for letters.
3515 (\summarycontents): Set \tt.
3516 (\internalpagesize): Add two arguments for real paper width and
3517 height as needed by pdfTeX.
3518 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3520 (\tempdima, \tempdimb): New temporary dimensions.
3521 (\pagesizesyyy): Updated.
3523 2002-06-02 Werner LEMBERG <wl@gnu.org>
3525 Adding a new keyword `papersize' to the DESC file format (similar
3526 but not completely identical to grolbp's extension). grops now has
3527 a -p command line option to override `papersize'. Finally, grolbp
3528 has been adapted to the new syntax.
3530 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
3531 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3533 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3534 (CCSRCS): Add `paper.cc'.
3536 * src/include/font.h (font): Add `papersize' element.
3537 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3538 (font::scan_papersize): New function.
3539 (font::load_desc): Use it for handling `papersize' keyword.
3540 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3542 * src/devices/grops/ps.cc: Include paper.h.
3543 (user_paper_length): New global variable.
3544 (ps_printer): Use paper length as initializer.
3545 (make_printer): Updated.
3546 (main): Handle new `-p' option.
3547 * src/devices/grops/grops.man: Updated.
3549 * src/devices/grolbp/lbp.cc: Include paper.h.
3550 s/papersizes/lbp_papersizes/.
3551 (set_papersize): Use new `papersizes' array.
3552 (handle_unknown_desc_command): Don't handle `papersize'.
3553 (main): Use `font::scan_papersize' for handling `-p' option.
3554 * src/devices/grolbp/grolbp.man: Updated.
3556 * man/groff_font.man: Document `papersize'.
3559 2002-05-30 Werner LEMBERG <wl@gnu.org>
3561 * src/devices/grops/TODO: Updated.
3562 * src/devices/grops/grops.man: More info on paper formats.
3563 * man/groff_font.man: Document `paperheight' and `paperwidth'.
3565 2002-05-29 Werner LEMBERG <wl@gnu.org>
3567 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3568 to list only if srcdir != currdir.
3569 (distfiles): New target.
3571 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3572 (NOMAKEDIRS): New variable.
3575 2002-05-26 Werner LEMBERG <wl@gnu.org>
3577 Add .output request, similar to \! at top-level.
3579 * src/roff/troff/input.cc (transparent): Remove unused declaration.
3580 (output_request): New function.
3581 (init_input_requests): Add it.
3583 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3586 * Makefile.in (MDEFINES): Add INSTALL_INFO.
3587 (prepare_examples): Fix typo.
3588 * doc/groff.texinfo (@direntry): Fix it.
3590 2002-05-25 Werner LEMBERG <wl@gnu.org>
3592 Including the doc subdir into groff's Makefile system.
3594 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3595 * configure.ac: Use it.
3596 Generate `doc/Makefile'.
3597 * configure: Regenerated.
3599 * Makefile.in (infodir, INSTALL_INFO): New variables.
3600 (MDEFINES, uninstall_dirs): Updated.
3601 (OTHERDIRS): Add `doc'.
3602 * Makefile.comm (CLEANDIRADD): New variable.
3603 (mostlyclean): Use it.
3605 * doc/Makefile.sub, doc/Makefile.in: New files.
3606 * doc/Makefile: Removed.
3608 * NEWS, INSTALL: Updated.
3610 2002-05-24 Werner LEMBERG <wl@gnu.org>
3612 * doc/homepage.ms: Renamed to ...
3613 * doc/webpage.ms: This.
3616 2002-05-23 Werner LEMBERG <wl@gnu.org>
3618 Integrating the `mom' macro package, contributed by Peter Schaffter
3621 * contrib/mom/*: New subdirectory tree.
3622 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3623 be used for documentation files.
3624 (MDEFINES, uninstall_dirs): Use them.
3625 (OTHERDIRS): Add contrib/mom.
3626 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3628 * MANIFEST, NEWS: Updated.
3630 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
3632 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3633 if at outer level; at start-up we are at outer level.
3635 * src/roff/troff/input.cc (do_suppress): Implement it.
3638 Add option -p to show progress information.
3639 pre-grohtml will now render only one page at a time, reducing the
3640 size of needed disk resources enormously.
3642 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3643 (imagePageName): New global variable.
3644 (psPageName, show_progress, currentPageNo): New global variables.
3645 (html_system): Close saved stderr and stdout handles.
3646 (write_end_image): Accept a parameter to control \O escape.
3647 (write_start_image): Adapted to new \O meaning.
3648 (char_buffer::write_upto_newline): Updated.
3649 (createAllPages): Replaced with...
3650 (createPage): This new function to create a single page for images.
3651 It uses `psselect' from the psutils package.
3652 (removeAllPages): Removed.
3653 (createImage): Updated.
3654 Handle progress display.
3655 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3656 (scanArguments): Add option -p.
3657 (makeTempFiles): Updated to create temp files for psPageName and
3659 (removeTempFiles): Removed.
3662 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3663 html_printer::write_header): Append `\0' to `buffer'.
3664 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3666 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3667 Handle `text_emitted'.
3668 (html_text::table_is_void): Slightly rewritten.
3669 (stop): New external symbol.
3670 (html_text::do_push) [DEBUGGING]: Use it and simplify.
3671 (html_text::shutdown): Call `dump_stack'.
3672 (html_text::do_space): Rewritten.
3673 * src/devices/grohtml/grohtml.man: Document -p and the need of
3676 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3678 Call \O[0] if `ps4html' is active.
3679 * tmac/s.tmac (@EQ, @EN): Handle html better.
3681 * tmac/html.tmac: Don't use black for background colour.
3683 * src/roff/troff/node.cc: Include `div.h'.
3684 (troff_output_file::really_print_line): Don't use `is_on'.
3685 (troff_output_file::word_marker, troff_output_file::flush_tbuf
3686 troff_output_file::check_charinfo,
3687 troff_output_file::put_char_width, troff_output_file::put_char,
3688 troff_output_file::determine_line_limits, troff_output_file::draw,
3689 real_output_file::begin_page, glyph_color_node::tprintf,
3690 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3692 (troff_output_file::really_on): Call `do_motion'.
3693 (suppress_node::tprint): Use `get_page_number' instead of `%'
3695 Call `reset_output_registers' conditionally on `is_on'.
3697 * doc/groff.texinfo: Document new syntax of \O.
3698 * NEWS, man/groff_diff.man: Updated.
3700 2002-05-22 Werner LEMBERG <wl@gnu.org>
3702 * MORE.STUFF: Add info about David Frey's deroff implementation.
3705 2002-05-16 Werner LEMBERG <wl@gnu.org>
3707 Pic's `with' attribute now accepts positions.
3709 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3710 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3712 (object_spec): Add rule for `WITH' and `position'.
3713 (relative_path): Give `corner' the precedence of `CHOP'.
3714 * src/preproc/pic/object.h (path): New members `pos' and
3716 * src/preproc/pic/object.cc: Updated initializers of `path'.
3717 (path::follow): Handle `is_position'.
3719 * doc/pic.ms: Completely updated grammar description.
3720 Many typographical improvements.
3722 2002-05-15 Werner LEMBERG <wl@gnu.org>
3724 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3725 code of x in range 0-127) also.
3726 * doc/groff.texinfo, man/groff_diff.man: Updated.
3728 Added keywords `north', `south', `east', and `west' for corners
3731 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3733 (yylex): Handle them.
3734 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3735 (corner): Handle them.
3737 2002-05-14 Werner LEMBERG <wl@gnu.org>
3739 * src/devices/grops/grops.man: Clarify handling of `download' file.
3741 2002-05-11 Werner LEMBERG <wl@gnu.org>
3743 Adding `warnscale' and `spreadwarn' requests, based on a patch from
3744 Jeffrey Friedl <jfriedl@yahoo.com>.
3746 * src/roff/troff/input.cc (spread_limit, warn_scale,
3747 warn_scaling_indicator): New global variables.
3748 (warnscale_request, spreadwarn_requests): New functions.
3749 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3750 (init_input_requests): Updated.
3751 (error_type): Add `OUTPUT_WARNING'.
3752 (do_error): Handle it.
3753 (output_warning): New warning function which shows output location.
3754 * src/roff/troff/env.h (spread_limit): New external variable.
3755 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3757 (distribute_space): Emit warning if added space is larger than
3759 (environment::possibly_break_line): Emit warning if a line can't
3760 be adjusted on both sides.
3762 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3764 2002-05-08 Werner LEMBERG <wl@gnu.org>
3766 * src/roff/troff/node.cc (special_node::special_node): Use
3767 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
3768 \X''\% crashes, for example.
3770 * doc/groff.texinfo: Document \! and \? used at top-level.
3772 2002-05-06 Werner LEMBERG <wl@gnu.org>
3774 * src/preproc/pic/pic.man: Fix some keyword syntax.
3775 Other minor typographical fixes.
3777 * src/roff/groff/groff.man: Fix typos.
3779 2002-05-04 Werner LEMBERG <wl@gnu.org>
3781 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3782 (ShortOpt[]): This to avoid problems with refer.
3784 * doc/pic.ms: Fix typo.
3785 Fix pic grammar description.
3787 * tmac/an-old.tmac (ne): Use de1, not de.
3789 2002-05-03 Werner LEMBERG <wl@gnu.org>
3791 * doc/groff.texinfo: Finished separation of glyphs and characters.
3792 Don't use the string `Appendix' for appendix headers (both in
3793 the text and the table of contents).
3794 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3797 Use registers LL and LT (similar to -ms) for controlling the
3798 length of title and line, respectively, in the -man and -mdoc
3801 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3802 (doc-setup-page-layout): Use \n[LL] and \n[LT].
3803 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3805 (an-header, an-p-footer): Use \n[LT].
3806 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3807 doc/groff.texinfo: Document it.
3809 2002-05-02 Werner LEMBERG <wl@gnu.org>
3811 * doc/fdl.texi: New file.
3812 * doc/groff.texinfo: Include it.
3813 Define and use @copying.
3814 Starting with separating glyph, symbol, and character.
3816 2002-04-27 Werner LEMBERG <wl@gnu.org>
3818 * Makefile.in (EXEEXT): Set it.
3819 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3822 * src/include/nonposix.h: Define GS_NAME.
3823 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3825 Some preliminary changes for EMX support under OS/2.
3827 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3828 __EMX__ similar to __MSDOS__.
3829 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3831 2002-04-25 Werner LEMBERG <wl@gnu.org>
3833 * doc/groff.texinfo: Integrated groff_out.man.
3836 2002-04-23 Werner LEMBERG <wl@gnu.org>
3838 * man/groff_out.man: Minor fixes.
3840 2002-04-23 Werner LEMBERG <wl@gnu.org>
3842 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3843 correct page references.
3844 Fixed many index entries.
3846 2002-04-23 Bernd Warken <bwarken@mayn.de>
3848 * man/roff.man: Enlarged.
3850 2002-04-22 Werner LEMBERG <wl@gnu.org>
3852 * doc/groff.texinfo: More examples, other fixes.
3854 2002-04-20 Werner LEMBERG <wl@gnu.org>
3856 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3857 will now form a chain, e.g.
3866 This is for compatibility with plan 9's troff.
3868 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3872 * doc/groff.texinfo: Add documentation of remaining requests and
3875 2002-04-19 Werner LEMBERG <wl@gnu.org>
3877 * doc/groff.texinfo: Add documentation of remaining escapes.
3879 * font/devdvi/generate/tc.map: Remove entry for `sr'.
3880 * font/devdvi/*TC: Regenerated.
3882 2002-04-18 Werner LEMBERG <wl@gnu.org>
3884 * src/roff/troff/input.cc (token::next): Make \H behave consistently
3885 if not in compatibility mode, i.e., increment relative to the
3887 * doc/groff.texinfo: Updated accordingly.
3889 2002-04-17 Werner LEMBERG <wl@gnu.org>
3891 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3893 2002-04-16 Bernd Warken <bwarken@mayn.de>
3895 * src/roff/groff/groff.man: Improve documentation of -P option.
3898 2002-04-15 Werner LEMBERG <wl@gnu.org>
3900 Add new escape \F to switch font family.
3902 * src/roff/troff/input.cc (token::next): Handle \F.
3903 * src/roff/troff/env.cc (environment::set_family): Handle
3905 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3908 2002-04-14 Werner LEMBERG <wl@gnu.org>
3910 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3913 2002-04-13 Werner LEMBERG <wl@gnu.org>
3915 Implement \f[] as an alternative to \fP. Change \mP and \MP to
3916 \m[] and \M[], respectively.
3918 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3919 (symbol::symbol): Handle NULL string and empty string differently.
3920 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3921 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3922 Add optional parameter.
3923 Updated calling functions.
3924 (get_copy, do_glyph_color, do_fill_color, token::next): Use
3926 * src/roff/troff/env.cc (environment::set_font): Ditto.
3928 * src/preproc/pic/troff.cc (troff_output::set_fill,
3929 troff_output::reset_color: Updated.
3931 * tmac/www.tmac: Updated.
3933 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3934 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3937 * tmac/Xps.tmac: Remove some redundant code.
3939 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3940 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3941 man/groff_out.man, man/groff.man, man/groff_diff.man,
3942 src/roff/groff/groff.man: Replace \f[P] with \f[].
3944 2002-04-13 Bernd Warken <bwarken@mayn.de>
3946 * src/include/printer.h, src/libs/libdriver/printer.cc
3947 (printer::change_fill_color): New member function.
3948 * src/libs/libdriver/input.cc (parse_D_command): Use it.
3950 2002-04-12 Werner LEMBERG <wl@gnu.org>
3952 * doc/groff.texinfo: Completed pass on gtroff reference.
3954 2002-04-11 Werner LEMBERG <wl@gnu.org>
3956 * doc/groff.texinfo: More fixes.
3958 2002-04-11 Bernd Warken <bwarken@mayn.de>
3960 * src/include/color.h: Decorate with `const'.
3963 * src/libs/libgroff.color.cc: Decorate with `const'.
3965 (color::color): Initialize members.
3966 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3967 command according to the documentation.
3969 * man/groff_out.man: Updated.
3972 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
3974 * src/preproc/html/pre-html.cc (write_start_image): Remove
3976 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3978 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3979 \C'hy' caused an assertion failure.
3981 * src/roff/troff/env.cc (environment::environment): Initialize
3983 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3985 2002-04-10 Werner LEMBERG <wl@gnu.org>
3987 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3988 Document pvs request and .pvs register.
3990 2002-04-09 Werner LEMBERG <wl@gnu.org>
3992 * doc/groff.texinfo: Improve and fix documentation of diversions
3995 2002-04-08 Werner LEMBERG <wl@gnu.org>
3997 * doc/groff.texinfo: Fix documentation of drawing functions.
4000 2002-04-07 Werner LEMBERG <wl@gnu.org>
4002 * doc/groff.texinfo: Better documentation of double quotes as
4006 2002-04-06 Werner LEMBERG <wl@gnu.org>
4008 * man/groff_font.man: Document names of special characters better.
4009 * doc/groff.texinfo: Minor improvements.
4011 * tmac/lbp.tmac: Load latin1.tmac.
4012 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4014 * font/devX*/*: Regenerated (all chars > 0x80 removed).
4016 2002-04-05 Werner LEMBERG <wl@gnu.org>
4018 * tmac/tty.tmac: Don't use shc request.
4019 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4022 * man/groff_diff.man: Minor fixes.
4024 * font/devlbp/*: Remove all `charXXX' entities.
4026 * src/libs/libgroff/font.cc (font::~font): Deallocate
4027 `special_device_coding'.
4028 (font::load): Use `new' for allocating `special_device_coding'.
4029 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4030 Removed unused member.
4032 2002-04-05 Werner LEMBERG <wl@gnu.org>
4034 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4035 (resource_manager::do_begin_binary,
4036 resource_manager::do_begin_data): Use it.
4038 * doc/texinfo.tex: Updated to version 4.2.
4040 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4041 (token::zero_width_break): New inline function.
4042 * src/roff/troff/input.cc (token::next): Use it.
4043 (token::description): Updated.
4044 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4045 (token::add_to_node_list, token::process): Use it.
4046 * NEWS, doc/groff.texinfo: Updated.
4048 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4049 * tmac/tty.tmac: Add missing backslash.
4051 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
4053 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4054 `.ps' register instead of `.s' to handle fractional point sizes.
4055 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4056 limit_box::output): Ditto.
4057 * src/preproc/eqn/other.cc (size_box::compute_metrics,
4058 size_box::output): Ditto.
4059 * src/preproc/eqn/over.cc (over_box::compute_metrics,
4060 over_box::output): Ditto.
4061 * src/preproc/eqn/script.cc (script_box::compute_metrics,
4062 script_box::output): Ditto.
4063 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4064 sqrt_box::output): Ditto.
4066 2002-04-03 Michael Selway <mas@ssl.co.uk>
4068 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4071 2002-04-03 Werner LEMBERG <wl@gnu.org>
4073 * doc/homepage.ms: Reduce title size.
4074 * doc/groff.texinfo: Fix documentation of .t register.
4075 Fix handling of colon.
4078 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4079 only if page length is positive to avoid a loop.
4081 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4084 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
4086 * src/include/nonposix.h, src/roff/groff/pipeline.c:
4087 s/__CYGWIN32__/__CYGWIN__/.
4089 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
4091 * doc/gnu.xpm: New image contributed by Emily Mulley.
4092 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4093 (homepage.html): Be dependent on gnu.eps.
4094 * doc/homepage.ms: Updated to new image.
4096 * src/devices/grohtml/post-html.cc (html_printer): New member
4098 (html_printer::flush_sbuf, html_printer::set_char): Set it.
4099 (html_printer::sbuf_continuation): Use it.
4101 2002-03-28 Werner LEMBERG <wl@gnu.org>
4103 * src/libs/libgroff/getopt.c: Updated to latest version.
4105 * tmac/README: More on hyphen.tex license.
4107 2002-03-26 Larry Kollar <kollar@alltel.net>
4109 * doc/groff.texinfo: Add documentation of most missing requests.
4111 2002-03-25 Werner LEMBERG <wl@gnu.org>
4113 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4114 of `+-', `mu', and `di', respectively.
4116 * font/devascii/R.proto, font/devutf8/R.proto,
4117 font/devlatin1/R.proto, font/devhtml/R.proto,
4118 font/devcp1047/R.proto, font/devlpb/*: Add them.
4119 * font/devps/generate/textmap: Ditto.
4120 * font/devps/*: Regenerated.
4121 * font/devlj4/generate/text.map: Add them.
4122 * font/devlj4/*: Regenerated.
4123 * font/devdvi/generate/tc.map: Use them.
4124 * font/devdvi/generate/texsy.map: Add them.
4125 * font/devdvi/*: Regenerated.
4126 * font/devX*/*: Regenerated.
4128 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4129 tmac/tty-char.tmac: Updated.
4131 * NEWS, man/groff_char.man: Updated.
4133 2002-03-24 Werner LEMBERG <wl@gnu.org>
4135 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4136 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4137 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4138 we use `.fchar' in dvi.tmac.
4139 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4140 * tmac/Xps.tmac: Simplify some char definitions.
4141 Add definition for \[f/].
4142 * man/groff_char.man: Updated for new X.tmac.
4144 * tmac/README: New file.
4146 2002-03-23 Phil Lobbes <phil@perkpartners.com>
4148 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4149 internal .y.o rule took precendence over the .y.cc rule, compiling
4150 the yacc files with gcc instead of g++.
4152 2002-03-23 Werner LEMBERG <wl@gnu.org>
4154 * tmac/dvi.tmac: Add replacement font for `CB'.
4156 * tmac/doc.tmac: s/request/macro/ in messages.
4157 (doc-generic-macro): Improve error message.
4158 * tmac/groff_mdoc.man: Minor improvements.
4160 2002-03-22 Werner LEMBERG <wl@gnu.org>
4162 * doc/groff.texinfo: Document possible conflict between `tr' and
4165 2002-03-21 Werner LEMBERG <wl@gnu.org>
4167 Improve handling of hyphenation patterns. It is now possible to
4168 use most of TeX's pattern files unmodified. To make the process
4169 more flexible, a new request `hpfcode' has been added which
4170 provides a character code mapping for the `hpf' request. See
4171 comment before hpf_getc() for more details.
4173 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4175 (read_patterns_file): Additional parameter for exception dictionary.
4176 Extended to recognize \pattern, \hyphenation, and \endinput.
4177 (do_hyphenation_patterns_file): Updated.
4178 * src/roff/troff/env.h (hpf_code_table): New extern.
4180 * src/roff/troff/input.cc (hpf_code_table): New array.
4181 (init_hpf_code_table, hyphenation_patterns_file_code): New
4183 (hyphenation_code): Handle translation from `trin' correctly.
4184 (main, init_input_requests): Updated.
4185 (charinfo::set_translation): Handle hyphenation code also.
4187 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4190 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4191 char' is used for offsets in hyphenation exceptions.
4193 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4195 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4197 2002-03-20 Larry Kollar <kollar@alltel.net>
4199 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4202 2002-03-18 Werner LEMBERG <wl@gnu.org>
4204 * tmac/html.tmac: Fix serious typo.
4206 2002-03-17 Larry Kollar <kollar@alltel.net>
4208 * doc/groff.texinfo: Add documentation for `writec' request.
4210 2002-03-17 Werner LEMBERG <wl@gnu.org>
4212 Added request `hpfa' to append hyphenation patterns.
4214 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4216 (hyphenation_patterns_file): Renamed to...
4217 (do_hyphenation_patterns_file): This.
4218 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4220 (init_hyphen_requests): Updated.
4221 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4223 2002-03-16 Werner LEMBERG <wl@gnu.org>
4225 Added request `writec' in analogy to `tmc'.
4227 * src/roff/troff/input.cc (write_request): Renamed to...
4228 (do_write_request): This.
4229 Added one parameter.
4230 (write_request, write_request_continue): New functions.
4231 (init_input_requests): Updated.
4232 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4234 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4236 * NEWS: Document it.
4238 2002-03-15 Werner LEMBERG <wl@gnu.org>
4240 * man/groff.man: Add writem request.
4242 Add request `trin' (translate input) to make `.asciify' work
4243 correctly. This is necessary since `charXXX' entity names are no
4244 longer hardcoded in font definition files.
4246 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4247 `translate_input' members.
4248 (charinfo::set_asciify_code, charinfo::get_asciify_code,
4249 charinfo::set_translation_input): New methods.
4250 (charinfo::set_translation): Add third argument.
4251 * src/roff/troff/input.cc (charinfo:set_translation): Set
4253 (do_translate): Add second argument.
4254 (translate_input): New function.
4255 (init_input_requests): Updated.
4256 * src/roff/troff/node.cc (glyph_node::asciify,
4257 composite_node::asciify): Use `get_asciify_code'.
4259 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4261 * NEWS, man/groff.man, man/groff_diff.man: Updated.
4263 2002-03-14 Larry Kollar <kollar@alltel.net>
4265 * doc/groff.texinfo: Improve documentation of .RS and .RE.
4267 2002-03-14 Werner LEMBERG <wl@gnu.org>
4269 Add a new request `sizes' similar to the `sizes' command in DESC
4272 * src/roff/troff/env.cc (override_sizes): New function.
4273 (init_env_requests): Use it.
4274 * src/roff/troff/token.h: Export `read_string'.
4275 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4277 2002-03-12 Werner LEMBERG <wl@gnu.org>
4279 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4281 2002-03-10 Werner LEMBERG <wl@gnu.org>
4283 * tmac/pspic.tmac: Add support for -Tdvi.
4284 * tmac/dvi.tmac: Include pspic.tmac.
4285 * src/devices/grodvi/grodvi.man: Document it.
4288 * font/devlj4/generate/Makefile: Fix URL of metric files.
4290 2002-03-09 Werner LEMBERG <wl@gnu.org>
4292 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4294 2002-03-09 Larry Kollar <kollar@alltel.net>
4296 * tmac/groff_ms.man: Add documentation for RS and RE macros.
4298 2002-03-08 Werner LEMBERG <wl@gnu.org>
4300 * doc/groff.texinfo: Fixes for texinfo 4.1.
4302 2002-03-07 Werner LEMBERG <wl@gnu.org>
4304 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4306 Handle CYGWIN properly.
4308 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
4310 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4311 * tmac/lbp.tmac: Add some font translations.
4313 2002-03-02 Werner LEMBERG <wl@gnu.org>
4315 * font/devcp1047/R.proto, font/devlatin1/R.proto,
4316 font/devhtml/R.proto: Remove `charXXX' entries.
4317 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4320 * font/devlj4/generate/text.map: Remove `charXXX' entries.
4321 * font/devlj4/*: Regenerated all font definition files.
4322 * tmac/lj4.tmac: Load latin1.tmac.
4324 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4325 from 2000-06-17: LJ4 metric files are *not* text files.
4327 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4328 register to test for EBCDIC.
4330 2002-03-01 Werner LEMBERG <wl@gnu.org>
4332 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4333 files (as grops already does).
4334 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4336 * src/devices/grops/grops.man: Document comment lines in encoding
4339 * tmac/cp1047.tmac: New file.
4340 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4341 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4342 * tmac/Makefile.sub (NORMALFILES): Updated.
4344 * tmac/ec.tmac: Don't load latin1.tmac again.
4346 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4347 font/devps/generate/dingbats.map,
4348 font/devps/generate/dingbats.rmap, font/devps/text.enc,
4349 font/devps/generate/Makefile (symbolmap): Add header comment.
4350 * font/devps/generate/textmap: Ditto.
4351 Remove `charXXX' entries.
4352 * font/devps/symbolmap: Regenerated.
4353 * font/devps/*: Regenerated all font definition files.
4355 2002-02-28 Werner LEMBERG <wl@gnu.org>
4357 Add color support to grodvi (for drawing colors are currently
4358 translated to gray values).
4360 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4361 (dvi_printer): Add `cur_color' member.
4362 (dvi_printer::set_color): New function.
4363 (draw_dvi_printer): Remove `fill'.
4364 (draw_dvi_printer::fill_next): Pass environment as parameter.
4365 Update code for new color support translated to gray.
4366 (dvi_printer::set_char): Updated.
4367 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4368 changes crossing the page border.
4369 (dvi_printer::draw): Updated.
4370 Remove cases `f' and `F'.
4371 * tmac/dvi.tmac: Add color definitions.
4372 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4374 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4377 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4378 versions of autoconf.
4379 * configure: Updated.
4381 * doc/homepage.ms: Use `.blm'.
4382 * tmac/www.tmac (www-depth): New auxiliary variable.
4383 (www-pop-level): Don't issue HTML tag.
4384 (ULS, ULE, LI): Use absolute indentation.
4386 * src/devices/grops/ps.cc (ps_printer::begin_page,
4387 ps_printer::end_page): Switch forth and back to default color while
4388 starting a new page.
4390 2002-02-27 Werner LEMBERG <wl@gnu.org>
4392 Add EC and TC fonts to devdvi.
4394 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4395 * font/devdvi/generate/cork.map: Renamed to...
4396 * font/devdvi/generate/ec.map: This.
4397 Remove entry for `aq'.
4398 * font/devdvi/generate/tc.map: New file.
4399 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4402 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4403 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4404 * tmac/ec.tmac: New file.
4405 * tmac/Makefile.sub (NORMALFILES): Updated.
4406 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4407 * man/groff_char.man: Check `ECFONTS' register.
4409 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4411 2002-02-26 Werner LEMBERG <wl@gnu.org>
4413 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4414 * font/devdvi/generate/cork.map: Add 'y and 'Y.
4415 * font/devdvi/*: Updated.
4416 * tmac/dvi.tmac: Formatting.
4418 Add font `HBI' for the dvi output.
4419 Add support for font families `T' and `H'.
4421 * font/devdvi/HBI: New file.
4422 * font/devdvi/B: Renamed to ...
4423 * font/devdvi/TB: This.
4424 * font/devdvi/BI: Renamed to ...
4425 * font/devdvi/TBI: This.
4426 * font/devdvi/I: Renamed to ...
4427 * font/devdvi/TI: This.
4428 * font/devdvi/R: Renamed to ...
4429 * font/devdvi/TR: This.
4430 * font/devdvi/H: Renamed to ...
4431 * font/devdvi/HR: This.
4432 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4433 * font/devdvi/generate/Makefile (HBI): New rule.
4435 (R, I, B, BI, H): Renamed to ...
4436 (TR, TI, TB, TBI, HR): This, respectively.
4438 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4439 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4440 Add `styles' and `family' keywords.
4441 * tmac/dvi.tmac: Alias `H' to `HR'.
4442 Add some fspecial requests for italic fonts.
4443 Add TR and TI as special.
4444 Add support for `_' with font CWI.
4446 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4447 operator `:'. Until now, the expression `0:1' would return 2
4450 2002-02-25 Werner LEMBERG <wl@gnu.org>
4452 * man/groff_char.man: Added some missing PS glyph names (from the
4454 * font/devps/generate/textmap, font/devps/symbolmap: Add
4457 * doc/groff.texinfo: Minor additions and fixes.
4458 * man/groff_diff.man: Remove documentation of fp request. This
4459 is already covered in the original troff manual.
4460 Updated to be consistent with other doc files.
4463 2002-02-24 Werner LEMBERG <wl@gnu.org>
4465 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4467 Define new variable OTHERDEVDIRS (containing `font/devlj4
4468 font/devlbp' if not EBCDIC).
4469 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4470 (OTHERDEVDIRS): New variable.
4471 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4472 * configure: Regenerated.
4474 * NEWS, src/devices/grotty/grotty.man: Updated.
4476 2002-02-23 Werner LEMBERG <wl@gnu.org>
4478 * src/roff/troff/input.cc (do_overstrike, do_bracket,
4479 get_line_arg): Honour input level.
4481 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4483 * font/*/*: Implement it in all font files.
4484 * font/devps/generate/textmap, font/devps/generate/symbolchars,
4485 * font/devps/symbolmap: Updated.
4486 * font/devlj4/generate/text.map: Updated.
4487 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4488 * font/devdvi/generate/texmi.map: Updated.
4490 * font/devutf8/R.proto: Remove all `charXXX' entries.
4491 * font/devutf8/NOTES: Updated.
4493 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4496 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4498 * NEWS, man/groff_char.man: Updated.
4500 2002-02-21 Phil Lobbes <phil@perkpartners.com>
4502 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4504 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4506 * src/roff/grog/grog.pl: Fix computation of $refer.
4508 2002-02-19 Werner LEMBERG <wl@gnu.org>
4510 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4511 `snprintf' and `vsnprintf'.
4513 * src/include/htmlindicate.h: Renamed to...
4514 * src/include/htmlhint.h: This.
4515 * src/include/Makefile.sub: Updated.
4516 * src/preproc/eqn/main.cc: Updated.
4518 2002-02-18 Werner LEMBERG <wl@gnu.org>
4520 * man/roff.man, man/groff_out.man, man/groff.man,
4521 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4522 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4524 * win32-diffs: Updated.
4526 2002-02-17 Werner LEMBERG <wl@gnu.org>
4528 * doc/Makefile (clean): Add *.eps.
4529 (MEMACROS): Removed.
4530 (TFLAG): New variable.
4533 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4535 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4537 * tmac/www.tmac: Use dummy diversion while resetting and disabling
4539 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4541 * src/roff/troff/troff.man: Fix order of parameter description.
4545 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
4547 Simplify image handling for grohtml.
4550 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4552 (html_text::dump_stack): Don't emit newline while debugging.
4553 (html_text::do_push) [DEBUGGING]: Print more info.
4554 (html_text::check_emit_text): Fix handling of <p>.
4555 * src/devices/grohtml/html.h: Updated.
4556 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4557 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
4558 send its data to stderr also.
4560 (simple_output::space_or_newline) [DEBUGGING]: Removed.
4561 * src/devices/grohtml/post-html.cc (html_printer::do_links,
4562 html_printer::html_printer): Remove `DEBUGGING' conditionals.
4564 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4566 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4567 is_inline_image): Removed.
4568 (html_begin_suppress, html_end_suppress): Don't take a parameter.
4569 (graphic_start, graphic_end): Removed.
4570 * src/include/htmlindicate.h: Updated.
4571 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4572 (macroset_template): New global variable.
4573 (makeFileName): Use `macroset_template'.
4574 (write_end_image): Don't take a parameter.
4576 (write_start_image: Don't emit newline.
4577 (char_buffer::write_upto_newline): Updated.
4578 (char_buffer::skip_to_newline): Renamed to ...
4579 (char_buffer::skip_until_newline): This.
4581 (char_buffer::write_file_troff, char_buffer::write_file_html):
4583 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4584 (removeAllPages): Remove `DEBUGGING' conditionals.
4585 (addRegDef, dump_args): New functions.
4586 (char_buffer::do_html, char_buffer::do_image): Handle
4587 `www-image-template' command line variable.
4588 Add more debugging code.
4589 (addps4html): Removed.
4590 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4592 * src/preproc/eqn/main.cc: Include `ctype.h'.
4593 (suppress_html): Removed.
4595 (inline_equation): Use `html_begin_suppress' and
4596 `html_end_suppress'.
4597 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4598 (troff_output::start_picture, troff_output::finish_picture):
4600 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4601 (process_input_file): Updated.
4603 * src/roff/troff/div.cc (page_number): Set page number only if the
4604 `ps4html' register isn't defined.
4605 * src/roff/troff/input.cc (image_no): New external variable.
4606 (do_suppress): Use it.
4607 * src/roff/troff/node.h (suppress_node::image_id): New member.
4608 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4609 (suppress_node::suppress_node): Initialize `image_id' member.
4610 (suppress_node::same): Handle `image_id' also.
4611 (suppress_node::copy): Updated.
4612 (last_image_id): New global variable.
4613 (suppress_node::tprint): Use it.
4615 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4617 * tmac/pspic.mac (PSPIC): Fix html support.
4618 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4619 * tmac/www.tmac (www-image-template): Set up.
4620 (HTMLINDEX): Renamed to...
4622 (BODYCOLOR): Renamed to...
4624 (BACKGROUND): Renamed to...
4626 (URL): Change order of parameters for consistency.
4627 (MAILTO): Renamed to...
4629 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4630 (IMG, PIMG, MPIMG): This.
4631 (HTML-H-BEGIN, HTML-H-END): Renamed to...
4633 (LINKS): Renamed to...
4635 (LINE): Renamed to...
4637 (NO-AUTO-RULE): Renamed to...
4639 (HTML-TL): Renamed to...
4641 (UL-BEGIN, UL-END): Renamed to...
4643 (DROPCAP): Renamed to...
4645 (TS, TE, EQ, EN): Provide default definitions.
4646 (www-make-unique-name): Updated.
4647 (HTML-IMAGE-INLINE): Fix typo.
4648 * tmac/groff_www.man: Updated.
4650 * doc/Makefile (homepage.html): Add option -r to grohtml.
4651 Use shortened image name.
4652 * doc/groff.texinfo: Updated info on grohtml strings and macros.
4653 * doc/homepage.ms: Updated and extended.
4655 2002-02-14 Werner LEMBERG <wl@gnu.org>
4657 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4659 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4660 SGR_BACK_DEFAULT_COLOR): Replaced with ...
4661 (tty_printer::put_color): Use it.
4662 (ttr_printer::end_page): Simplify.
4664 2002-02-13 Werner LEMBERG <wl@gnu.org>
4666 * tmac/groff_tmac.man: Moved to...
4667 * man/groff_tmac.man: This place.
4668 * tmac/Makefile.sub, man/Makefile.sub: Updated.
4670 2002-02-12 Werner LEMBERG <wl@gnu.org>
4672 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4673 $(COMPILE.c) to not include groff's assert.h.
4675 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4677 * NEWS, src/drivers/grotty/grotty.man: Document it.
4679 2002-02-11 Werner LEMBERG <wl@gnu.org>
4681 * src/libs/snprintf/snprintf.c: Updated to latest version
4684 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
4685 test whether there is `.]' also.
4686 Don't check for spaces after `.['.
4687 * src/roff/grog/grog.sh: Do the same.
4689 2002-02-10 Werner LEMBERG <wl@gnu.org>
4693 * src/libs/libgroff/illegal.cc: Renamed to ...
4694 * src/libs/libgroff/invalid.cc: This.
4695 (illegal_char_table): Renamed to ...
4696 (invalid_char_table): This.
4697 * src/libs/libgroff/Makefile.sub: Updated.
4698 * win32-diffs: Updated.
4700 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4701 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4702 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4703 font::load), src/preproc/eqn/main.cc (read_line, main),
4704 src/preproc/eqn/lex.cc (file_input::read_line),
4705 src/preproc/pic/lex.cc (file_input::read_line,
4706 simple_file_input::get, simple_file_input::peek),
4707 src/preproc/pic/main.cc (top_input::get, top_input::peek),
4708 src/preproc/pic/pic.man, src/preproc/refer/main.cc
4709 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4710 do_bib), src/preproc/tbl/main.cc (table_input::get),
4711 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4712 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4713 do_zero_width, read_request, encode_char, ps_get_line,
4714 transparent_file, get_char_for_escape_name, transparent_translate,
4715 asciify, input_char_description, read_string, set_string),
4716 src/roff/troff/env.cc (environment::add_html_tag),
4717 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4719 * src/include/lib.h: Updated.
4721 * src/preproc/eqn/eqn.cc: Removed.
4725 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4727 2002-02-09 Werner LEMBERG <wl@gnu.org>
4729 * doc/gnu.xpm: New image.
4730 * doc/Makefile (DOCS): Add homepage.ps.
4731 Add rules for converting xpm->png and xpm->eps.
4732 Use `gnu.{xpm,eps}' as image names.
4733 * doc/homepage.ms: Updated.
4735 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
4737 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4738 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4739 Remove calls to `B1' and `B2'
4740 (PNG-IMAGE): New macro for inclusion of images in PNG format.
4741 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4742 auxiliary variables for MARGIN-PNG-IMAGE.
4743 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4744 auxiliary macros for MARGIN-PNG-IMAGE.
4745 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4747 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4748 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4749 (DROPCAP): New macro to produce dropcap characters.
4750 (www-do-image): Renamed back to...
4751 (HTML-DO-IMAGE): This.
4752 Updated all callers.
4754 * doc/Makefile (gnubw.eps): Updated.
4755 * doc/homepage.ms: Updated.
4757 2002-02-08 Werner LEMBERG <wl@gnu.org>
4759 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4760 Added `linethick' to table in section `Style Variables'.
4762 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
4764 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4766 2002-02-07 Werner LEMBERG <wl@gnu.org>
4768 Adding options -C (compatibility mode) and -c (grotty's old output
4771 * src/roff/nroff/nroff.sh: Implement it.
4773 * NEWS, src/roff/nroff/nroff.man: Updated.
4775 * PROBLEMS: Document bison 1.32 bug.
4777 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4779 * src/roff/troff/node.cc (make_tfont): Define it earlier.
4780 * src/roff/troff/div.h: Add prototype for `end_diversions'.
4781 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4782 * src/roff/troff/env.h: Add prototype for `title'.
4784 Adding EBCDIC support to grotty.
4786 * src/devices/grotty/tty.cc (CSI): New macro.
4787 (SGR_*, tty_printer::put_color): Use it.
4789 2002-02-06 Werner LEMBERG <wl@gnu.org>
4791 Implementing color support in grotty. The new switch -c activates
4792 the old drawing scheme, disabling color at the same time. The new
4793 switch `-i' selects italic instead of underlining (SGR only).
4795 * src/devices/grotty/tty.cc (putstring): New define instead of
4796 `fputs'. Updated all callers.
4797 (old_drawing_scheme): New global variable.
4798 (COLOR_CHANGE): New enum value.
4799 (SGR_*): New defines containing color handling escape sequences.
4800 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4801 (glyph): New members `back_color_idx' and `fore_color_idx'.
4802 (glyph::order): Add COLOR_CHANGE.
4803 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4804 `is_underline', `is_bold', `cu_flag', `tty_colors'.
4805 New methods `make_underline', `make_bold', `color_to_idx',
4806 `change_color', `put_color'.
4807 (cu_flag): Moved into `tty_printer' class.
4808 (tty_printer::tty_printer): Initialize colors.
4809 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4810 tty_printer::draw, tty_printer::end_page): Handle colors also.
4811 (main): Add options `-c' and `-i'.
4813 * NEWS, src/devices/grotty/grotty.man: Updated.
4815 * src/include/errarg.h (errarg): Add support for `unsigned int'.
4816 * src/libs/libgroff/errarg.c: Implement it.
4818 * src/include/printer.h (printer): Add `change_color' method
4819 (currently used by grotty only).
4820 * src/libs/libdriver/printer.cc: Implement it.
4821 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4822 call to `pr->change_color'.
4824 * src/roff/troff/node.cc (troff_output_file::fill_color,
4825 troff_output_file::glyph_color): Call `do_motion'.
4827 * tmac/tty.tmac: Add color definitions.
4829 * src/roff/groff/groff.man: Minor fixes.
4831 2002-02-05 Bernd Warken <bwarken@mayn.de>
4833 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4834 it. This is a preparation for future changes.
4836 2002-02-05 Werner LEMBERG <wl@gnu.org>
4838 * src/roff/troff/input.cc (process_input_stack): Fix the case
4839 where leading spaces are followed by \f or \s; previously, an
4840 incorrect space width has been used.
4842 * doc/roff.man (quoted_char): Fix argument.
4843 (comment): Define string.
4845 2002-02-04 Larry Kollar <kollar@alltel.net>
4847 * doc/groff.texinfo: More fixes.
4849 2002-02-04 Werner LEMBERG <wl@gnu.org>
4851 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4852 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4853 `restore_compatibility' before `output_string' -- the LINE_STRING
4854 register now already contains proper switches from and to
4857 * man/groff_char.man: Add Euro symbol.
4858 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4859 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4860 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4863 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4865 (.texinfo.html): Add support for texinfo->html.
4867 2002-02-03 Werner LEMBERG <wl@gnu.org>
4869 Added three new requests `ds1', `as1', and `ami'. The former two
4870 are equivalent to `ds' and `as' with the difference that
4871 compatibility mode is saved on entry, switched off during string
4872 expansion, and restored on exit. The latter is the pendant to `dei'
4875 (do_define_string): Use `define_mode' and `calling mode'.
4876 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4877 end of string, respectively.
4878 (define_string, append_string): Use `calling_mode'.
4879 (define_nocomp_string, append_nocomp_string,
4880 define_string_indirect): New functions.
4881 (init_input_requests): Updated.
4882 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4884 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4885 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
4886 mm macro package accesses this string register directly.
4887 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4889 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
4892 2002-02-02 Larry Kollar <kollar@alltel.net>
4894 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4896 2002-01-31 Werner LEMBERG <wl@gnu.org>
4898 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4900 2002-01-31 Bernd Warken <bwarken@mayn.de>
4902 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4903 * man/groff_out.man: Revised and updated.
4905 2002-01-30 Bernd Warken <bwarken@mayn.de>
4907 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4908 out the unused `{' and `}' commands. Undefined by default.
4909 (IntArray): Make `data' private.
4910 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4911 new methods instead.
4912 (skip_line_D, skip_to_end_of_line): New functions.
4913 (get_D_fixed_args): Use `skip_line_D'.
4914 Changed to handle dummy odd arguments by ...
4915 (get_D_fixed_args_odd_dummy): This new function.
4916 (get_D_variable_args): Split some code into ...
4917 (get_possibly_integer_args): This new function.
4918 (send_draw): Use more `const'.
4919 (delete_current_env): New function.
4920 (position_to_end_of_args): Use `size_t'.
4922 (send_draw): Updated.
4923 (parse_D_command): Handle `c', `C', and `t' better.
4927 2002-01-29 Werner LEMBERG <wl@gnu.org>
4930 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4931 @Def...ListEnd which replaces @Def...x. This is necessary to get
4932 proper HTML output -- see the comment in the file for more
4936 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
4938 Fixes to make color changes of 2002-01-21 work with grohtml.
4940 * src/devices/grohtml/post-html.cc (style): Updated.
4941 (html_printer): Remove unused methods.
4942 (html_printer::do_font, html_printer::draw, html_printer::set_char,
4943 html_printer::special): Updated.
4944 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4945 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4946 Added some debugging code.
4947 (html_text::start_tag): Updated.
4948 (html_text::do_push): New method.
4949 (html_text::push_para): Call it.
4950 Add method for handling color.
4951 (html_text::do_color): Updated.
4952 (html_text::shutdown): Handle color.
4953 * src/devices/grohtml/html-text.h (tag_definition): New member
4957 2002-01-28 Werner LEMBERG <wl@gnu.org>
4959 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4961 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
4963 Add two switches -a and -g to control the antialiasing bits for
4964 text and graphics, respectively.
4966 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4968 * src/devices/grohtml/grohtml.man: Document them.
4969 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4971 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4972 (setupAntiAlias): New function.
4973 (createAllPages): Updated.
4974 (scanArguments): Handle `-a' and `-g'.
4975 (main): Call `setupAntiAlias'.
4978 2002-01-27 Werner LEMBERG <wl@gnu.org>
4980 * doc/groff.texinfo (Def*): Call index function after deffn.
4982 * tmac/html.tmac: Call `nroff' request.
4984 2002-01-26 Larry Kollar <kollar@alltel.net>
4986 * tmac/groff_ms.man: Add some omissions.
4988 2002-01-25 Larry Kollar <kollar@alltel.net>
4990 * tmac/groff_ms.man: Typographical improvements.
4992 2002-01-25 Werner LEMBERG <wl@gnu.org>
4994 * doc/groff.texinfo: Updated version and copyright.
4995 * src/devices/grops/grops.man: Updated.
4997 * tmac/groff_tmac.man: Fix `ig' macro.
4999 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5001 Use `.ne' unconditionally everywhere.
5002 (TS): Only insert some vertical space. Doing a page break is no
5003 longer necessary due to the redefinition of the `ne' request.
5005 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5006 warning for unknown subcommands but parse and pass them to the
5009 2002-01-24 Werner LEMBERG <wl@gnu.org>
5011 * tmac/groff_www.man, NEWS: Fix typos.
5013 2002-01-21 Werner LEMBERG <wl@gnu.org>
5015 Complete revision of color support:
5017 Adapt programs to the new libdriver/input.cc.
5019 Color spaces are no longer converted to RGB but transferred as-is
5020 in the troff intermediate output format.
5022 Handle default color gracefully. troff now supports a `default'
5023 color (which can't be changed).
5025 grops will now use the proper color space functions if available.
5029 Note that currently grohtml doesn't handle colors properly. This
5032 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5033 (ui_to_a): New function.
5034 * src/include/lib.h: Updated.
5036 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5037 (color): Simplified; removed all `double' members and methods.
5038 A new array `components' now holds the color parameters.
5039 (color::is_default, color::get_components): New methods.
5040 (color::operator==, color:operator!=): New.
5041 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5042 to make access to the `components' array more comprehensible.
5043 * src/libs/libgroff/color.cc: Implement new color support.
5044 (atoh): Small fixes.
5045 (color::read_encoding): Simplified for new troff intermediate color
5047 (default_color): New global variable.
5049 * src/roff/troff/input.cc (default_symbol): New global variable.
5050 (lookup_color): Use it.
5051 (default_black): Removed.
5052 (do_glyph_color, do_fill_color): Simplified.
5053 (define_color): Handle default color.
5055 (do_if_request): Handle default color.
5056 * src/roff/troff/env.cc (environment::environment): Initialize
5057 colors with `default_color'.
5058 * src/roff/troff/node.cc (troff_output_file::put): Add method
5060 (troff_output_file::hex): Removed.
5061 (troff_output_file::fill_color, troff_output_file::glyph_color):
5062 Updated to include/color.h and libdriver/input.cc.
5064 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5065 fill color properly (identically to the outline color). \D'f...'
5066 doesn't work any more.
5067 All function calls to it updated.
5069 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5071 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5074 * src/devices/grops/ps.cc (ps_output::put_color): New method.
5075 (ps_printer::sbuf_color): Make a real member instead of pointer.
5076 (ps_printer::fill_color, ps_printer::output_color): Removed.
5077 (ps_printer::ps_printer): Updated.
5078 (ps_printer::set_char): Ditto.
5079 (ps_printer::set_color): Use various color schemes.
5080 Use `put_color' method.
5081 (ps_printer::flush_sbuf): Don't set color.
5082 (ps_printer::fill_path): Take `environment' as parameter.
5083 Simplify color handling.
5084 (ps_printer::set_line_thickness): Renamed to ...
5085 (ps_printer::set_line_thickness_and_color): This (and updated).
5086 (ps_printer::set_color): Change second parameter from `complete'
5087 to `fill' which better describes what it does.
5088 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5089 and text in the right order.
5091 Remove branches for `f' and `F'; this is handled by
5093 * src/devices/grops/ps.h: Updated.
5094 * font/devps/prologue (FL): Redefined.
5095 ({F,C}r,k,g: New color functions (with and without filling).
5097 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5098 * man/groff_diff.man, man/groff.man, man/groff_out.man,
5099 doc/groff.texinfo, NEWS: Updated.
5101 2002-01-20 Bernd Warken <bwarken@mayn.de>
5103 * src/libs/libdriver/input.cc: Completely rewritten. See comments
5104 in this file for what has been changed.
5106 2002-01-19 Werner LEMBERG <wl@gnu.org>
5108 * test-groff: Fix GROFF_FONT_PATH.
5109 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5110 is read before .TH or .Dd is parsed.
5112 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
5114 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5115 quadrant boundaries.
5117 2002-01-18 Werner LEMBERG <wl@gnu.org>
5119 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
5122 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
5124 * tmac/doc.common: Initialize %I register for the %I macro to
5125 avoid (harmless) warning.
5126 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5127 when in the SYNOPSIS section.
5129 2002-01-17 Bruno Haible <haible@clisp.cons.org>
5131 * src/preproc/pic/lex.cc (get_token): Fix typo.
5133 2002-01-17 Werner LEMBERG <wl@gnu.org>
5135 * devices/grops/ps.cc: Fix incorrectly applied last patch.
5137 2002-01-17 Larry Kollar <kollar@alltel.net>
5139 * tmac/groff_ms.man: Completely rewritten.
5141 2002-01-16 Werner LEMBERG <wl@gnu.org>
5143 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5145 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
5147 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5149 (ps_printer::draw): Ditto.
5151 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
5153 * tmac/groff_mdoc.man: Minor fixes.
5155 2002-01-13 Werner LEMBERG <wl@gnu.org>
5157 * man/groff_out.man: Some fixes.
5159 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
5161 * doc/pic.ms: Fix typos.
5163 2002-01-12 Werner LEMBERG <wl@gnu.org>
5165 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5167 2002-01-10 Werner LEMBERG <wl@gnu.org>
5169 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5173 2002-01-09 Bernd Warken <bwarken@mayn.de>
5175 * man/groff_out.man: Revised.
5176 * man/roff.man: Minor fixes.
5177 * src/roff/troff/troff.man: Some reordering.
5179 2002-01-09 Werner LEMBERG <wl@gnu.org>
5181 * tmac/an-old.tmac: Add dummy macros for equation support.
5183 2002-01-07 Werner LEMBERG <wl@gnu.org>
5185 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5187 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
5189 * tmac/groff_man.man: Small improvements.
5191 2002-01-07 Bernd Warken <bwarken@mayn.de>
5193 * man/groff_diff.man: Revised.
5195 2002-01-06 Werner LEMBERG <wl@gnu.org>
5197 * tmac/www.tmac: Remove extraneous backslash.
5199 2002-01-06 Bernd Warken <bwarken@mayn.de>
5201 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5203 2002-01-05 Werner LEMBERG <wl@gnu.org>
5205 Integrated groffer, contributed by Bernd Warken.
5207 * contrib/groffer/*: New.
5208 * Makefile.in, NEWS: Updated.
5210 2002-01-04 Werner LEMBERG <wl@gnu.org>
5212 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5213 registers defined in macro packages.
5214 Revising the ms part.
5216 2002-01-04 Larry Kollar <kollar@alltel.net>
5218 * doc/groff.texinfo: Add documentation for ms macros.
5220 2002-01-02 Werner LEMBERG <wl@gnu.org>
5222 First step in adding PS support for the Euro symbol. `eu' is the
5223 official Euro logo, `Eu' is a font-specific glyph variant.
5225 * font/devps/text.enc: Add `Euro' at position 9.
5226 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5227 * font/devps/symbolmap: Regenerated.
5231 2002-01-02 Bernd Warken <bwarken@mayn.de>
5233 * man/roff.man: Revised.
5235 2002-01-01 Bernd Warken <bwarken@mayn.de>
5237 * src/roff/groff/groff.man: Completely rewritten.
5239 2001-12-31 Werner LEMBERG <wl@gnu.org>
5241 * doc/Makefile: Updated.
5243 2001-12-30 Werner LEMBERG <wl@gnu.org>
5245 * tmac/www.tmac: Make all names of internal macros/registers/strings
5246 lowercase, and prepend `www-'.
5247 Other minor changes.
5248 * src/roff/troff/troff.man: Add preprocessor string at BOF.
5250 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
5252 Implement option `-b' in grohtml to set the HTML background colour.
5254 * src/devices/grohtml/post-html.cc (default_background): New global
5256 (html_printer::html_printer): Initialize `background' to
5257 `default_background'.
5258 (main): Implement option `-b'.
5260 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5262 * src/devices/grohtml/grohtml.man: Updated.
5263 * doc/Makefile (.ms.html): Use `-b'.
5264 * tmac/html.tmac: Don't set background color.
5266 Add new grohtml tag `.html-tl'.
5268 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5270 (title_desc::title_desc): Updated.
5271 (html_printer::troff_tag): Handle `.html-tl'.
5272 (html_printer::write_title): Use `with_h1'.
5273 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5274 (HTML-TL): New macro.
5276 Add support for unordered lists in HTML.
5278 * tmac/www.tmac (www-level): New auxiliary register.
5279 (www-level1, www-level2, www-level3): New auxiliary strings.
5280 (www-push-level, www-pop-level): New auxiliary macros
5281 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5285 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5286 (DEFAULT_VERTICAL_OFFSET): Removed.
5287 (IMAGE_BOARDER_PIXELS): Set to 0.
5288 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5289 (vertical_offset): Initialize with 0.
5290 (gsPaper): New global variable.
5291 (get_resolution): Scan for and return unsigned int.
5292 (get_papersize): New function to get paper length from devps/DESC.
5293 (determine_vertical_offset): New function.
5294 (createAllPages): Produce gray-level images and use proper page
5296 (createImage): Use `-quiet' option of pnmcrop.
5297 (addZ): Fix passing of `-Z'.
5298 (scanArguments): Fix handling of `-o'.
5299 (main): Call `determine_vertical_offset'.
5300 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5303 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5304 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5305 glyph descenders properly.
5307 * doc/homepage.ms: Include `gnubw.eps'.
5308 * doc/Makefile (gnubw.eps): New rule.
5309 (homepage.html): Depend on `gnubw.eps'.
5311 2001-12-25 Werner LEMBERG <wl@gnu.org>
5313 * src/roff/troff/input.cc (default_black): Fix return value.
5315 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
5317 * tmac/doc-common (Dt): Change output of architecture strings.
5318 Do some syntax cleanup.
5319 * tmac/groff_mdoc.man: Updated.
5321 2001-12-23 Werner LEMBERG <wl@gnu.org>
5323 Adding an `itc' request (input line trap accepting \c).
5325 * src/roff/troff/env.h (environment): New member
5326 `continued_input_trap'.
5327 Make `do_input_trap' a friend function instead of `input_trap'.
5328 * src/roff/troff/env.cc (environment::environment,
5329 environment::copy): Updated.
5330 (environment::newline): Implement it.
5331 (do_input_trap): New function.
5332 (input_trap): Call `do_input_trap'.
5333 (input_trap_continued): New function.
5334 (init_env_requests): Updated.
5335 * src/roff/troff/TODO: Updated.
5337 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5340 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5342 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
5344 * tmac/doc-common, tmac/doc-syms: Small updates.
5346 2001-12-22 Colin Watson <cjwatson@debian.org>
5348 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5350 2001-12-22 Bernd Warken <bwarken@mayn.de>
5352 * MANIFEST: New file.
5354 2001-12-22 Werner LEMBERG <wl@gnu.org>
5356 * src/preproc/grn/grn.man: Updated.
5358 2001-12-22 Solar Designer <solar@openwall.com>
5360 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5363 2001-12-19 Werner LEMBERG <wl@gnu.org>
5365 Implement a fallback character request `.fchar'.
5367 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5368 (is_fallback): New inline function.
5369 * src/roff/troff/input.cc (do_define_character): New function.
5370 (define_character): Call `do_define_character'.
5371 (define_fallback_character): New function.
5372 (init_input_requests): Add `fchar'.
5373 (charinfo::charinfo): Updated.
5374 (charinfo::set_macro): New argument to set `fallback' flag.
5375 * src/roff/troff/node.cc (make_glyph_node, make_node,
5376 node::add_char): Check `fallback' flag.
5377 * NEWS, man/groff_diff.man, man/groff_man: Updated.
5379 2001-12-16 Werner LEMBERG <wl@gnu.org>
5381 * groff.texinfo: Document exact search algorithm for glyphs.
5383 2001-12-15 Werner LEMBERG <wl@gnu.org>
5385 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5386 the left side of $(MANPAGES) rule to make it always non-empty.
5388 2001-12-14 Werner LEMBERG <wl@gnu.org>
5390 * src/roff/troff/input.cc (default_black): Define default color
5391 `black' if not yet defined.
5393 2001-12-13 Werner LEMBERG <wl@gnu.org>
5395 Implement new string-valued register `.fn' to return the current
5396 real (internal) font name.
5398 * env.cc (environment::get_font_name_string): New function.
5399 (init_env_requests): Add `.fn' register.
5400 * env.h (environment): Updated.
5401 * node.cc (font_info): Make `get_font_name' a friend.
5402 (get_font_name): New function.
5405 * man/groff_diff.man, man/groff.man, NEWS: Updated.
5407 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5409 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5411 2001-12-12 Werner LEMBERG <wl@gnu.org>
5413 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5415 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
5417 * man/groff_diff.man: Adding documentation for \O.
5419 2001-12-10 Werner LEMBERG <wl@gnu.org>
5421 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5422 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5424 2001-12-09 Werner LEMBERG <wl@gnu.org>
5426 * man/roff.man: Revised.
5427 * src/roff/groff/groff.man: Replace man page references with a
5428 pointer to roff.man.
5430 2001-12-09 Bernd Warken <bwarken@mayn.de>
5432 * man/roff.man: Completely rewritten.
5434 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5436 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5438 2001-12-05 Werner LEMBERG <wl@gnu.org>
5440 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5442 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5443 order of initializers.
5446 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
5448 * doc/groff.texinfo: Fix documentation of \O.
5450 * src/devices/grohtml/html-text.cc (html_text::do_indent,
5451 html_text::do_table, html_text::do_emittext, html_text::do_para):
5452 Use `const' for first argument.
5453 (html_text::do_table): Use cast.
5454 * src/devices/grohtml/html-text.h: Updated.
5455 * src/devices/grohtml/output.cc (simple_output::put_string): Add
5456 method for `const string &s'.
5457 * src/devices/grohtml/html.h: Updated.
5458 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5459 (ANCHOR_TEMPLATE): Modified.
5460 (manufacture_headings): New global variable to handle `-h' option.
5461 (is_subsection): Removed.
5462 (char_buffer::add_string): Add `const' to first argument.
5463 Protect against invalid string argument.
5464 Add method for `const string &s'.
5465 (text_glob): Completely redesigned.
5466 (page): Use `const' for strings and remove string length variable.
5467 (page::add_html): Removed.
5468 (page::add_end_encode): New member function.
5469 (to_unicode): Moved upwards.
5470 (title_desc, header_desc): Updated.
5471 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5473 (html_printer::is_bold, html_printer::make_bold): New member
5475 (html_printer::end_of_line): Updated.
5476 (generate_img_src, html_printer::do_auto_image,
5477 html_printer::do_title, html_printer::write_header,
5478 html_printer::determine_header_level, html_printer::do_heading,
5479 html_printer::do_linelength, html_printer::do_pageoffset,
5480 html_printer::do_indentation, html_printer::do_tempindent,
5481 html_printer::do_indentedparagraph, html_printer::do_break,
5482 html_printer::flush_sbuf, get_html_translation,
5483 html_printer::begin_page, html_printer::special): Rewritten to get
5484 rid of static string length limit.
5485 (html_printer::troff_tag): Added `.no-auto-rule'.
5486 (html_printer::flush_globs): Small fix.
5487 (html_printer::determine_space): Don't compute `space_width'.
5488 (html_printer::translate_to_html): Renamed to ...
5489 (html_printer::emit_html): This (with updates).
5490 (html_printer::write_header): Implement `-h' option.
5491 (html_printer::draw): Remove commented-out code. Handle `F'
5493 (html_printer::add_char_to_sbuf): Removed.
5494 (html_printer::add_to_sbuf): Rewritten.
5495 (html_printer::sbuf_continuation): Fixed.
5496 (html_printer::seen_backwards_escape, reverse,
5497 html_printer::remove_last_char_from_sbuf): Removed.
5498 (char_translate_to_html, str_translate_to_html): Removed.
5499 (html_printer::overstrike): New function member.
5500 (html_printer::set_char): Use it.
5501 (html_printer::do_body): New function member.
5502 (html_printer::~html_printer): Use it.
5503 (main): Handle `-h' option.
5505 * src/devices/grohtml/grohtml.man: Document -h switch.
5507 * src/preproc/html/pre-html.cc: Include searchpath.h
5508 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5509 (get_resolution): New function.
5510 (checkImageDir): Use `0777' permissions in mkdir()
5511 (write_start_image): Rewritten to use `\O[5...]'.
5512 (createImage, generateImages): Updated.
5513 (main): Handle `F' and `h' options.
5514 Use `get_resolution'.
5516 * src/roff/troff/input.cc (begin, end, image): Removed.
5517 (do_suppress): Take parameter.
5518 Handle modified syntax of `\O'.
5519 (token::next): Updated.
5520 (init_markup_requests): Removed.
5523 * src/roff/troff/div.h: Add declaration for begin_page().
5525 * tmac/color-html.tmac: Removed. Contents moved to...
5526 * tmac/html.tmac: Here. Set background color.
5527 * tmac/color.tmac: Removed. Contents moved to...
5528 * tmac/ps.tmac: Here.
5529 * tmac/www.tmac: Remove the title command when generating images
5531 (NO_AUTO_RULE): New macro.
5532 (HTML_DO_IMAGE): Use revised `\O' escapes.
5533 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5535 2001-12-02 Werner LEMBERG <wl@gnu.org>
5537 * tmac/groff_mdoc.man: Fix typo.
5539 2001-12-01 Colin Watson <cjwatson@debian.org>
5541 * man/roff.man: Fix typo.
5543 2001-11-29 Werner LEMBERG <wl@gnu.org>
5545 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5548 * src/roff/troff/input.cc (read_draw_node): Emit error message if
5549 more than one argument to \D'f ...'.
5551 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5553 2001-11-28 Werner LEMBERG <wl@gnu.org>
5555 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5558 * tmac/groff_man.man: Minor cosmetic fix.
5560 2001-11-27 Werner LEMBERG <wl@gnu.org>
5562 * src/roff/groff/groff.man, tmac/groff_tmac.man,
5563 tmac/groff_www.man: s/mwww/www/.
5565 2001-11-26 Werner LEMBERG <wl@gnu.org>
5567 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5568 * configure: Regenerated.
5569 * win32-diffs: Updated.
5571 * tmac/groff_mwww.tmac: Renamed to ...
5572 * tmac/groff_www.tmac: This.
5573 * tmac/mwww.tmac: Removed.
5574 * NEWS, tmac/Makefile.sub: Updated.
5576 2001-11-21 Werner LEMBERG <wl@gnu.org>
5578 * doc/groff.texinfo: Improve documentation of the `\v' escape.
5579 Fix explanation of `\D' and `rt'.
5581 2001-11-20 Werner LEMBERG <wl@gnu.org>
5583 * tmac/an-old.tmac (an-header): Set header length equal to page
5585 * doc/groff.texinfo: Improve documentation of `ne' request. Other
5589 2001-11-19 Werner LEMBERG <wl@gnu.org>
5591 * NEWS, man/Makefile.sub: Updated.
5593 2001-11-19 Bernd Warken <bwarken@mayn.de>
5595 * man/ditroff.man: New file.
5597 2001-11-17 Werner LEMBERG <wl@gnu.org>
5599 * man/groff_differences.man: Renamed to ...
5600 * man/groff_diff.man: This. Updated.
5601 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5603 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5604 * src/preproc/html/pushback.cc: This. Updated.
5605 * src/preproc/html/pushbackbuffer.h: Renamed to ...
5606 * src/preproc/html/pushback.h: This.
5607 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5610 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5611 * src/libs/libgroff/htmlhint.cc: This.
5612 * src/libs/libgroff/Makefile.sub: Updated.
5614 * tmac/an-old.tmac (an-end): Fix page length.
5616 2001-11-16 Werner LEMBERG <wl@gnu.org>
5618 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5619 * man/Makefile.sub: Include groff_differences.man.
5620 * VERSION: Set to 1.18.
5621 * REVISION: Set to 0.
5623 2001-11-16 Bernd Warken <bwarken@mayn.de>
5625 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5626 the second dot (or ending macro name) to end a macro.
5627 * doc/groff.texinfo: Doc fix.
5629 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
5631 * tmac/doc-common (doc-header): Handle very long document titles
5634 2001-11-16 Werner LEMBERG <wl@gnu.org>
5636 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5638 2001-11-15 Werner LEMBERG <wl@gnu.org>
5640 * src/roff/troff/troff.man: Revised and split into troff.man and...
5641 * man/groff_differences.man: New file.
5644 2001-11-13 Werner LEMBERG <wl@gnu.org>
5646 * tmac/an-old.tmac (TS, TE): New macros for table support.
5648 2001-11-12 Werner LEMBERG <wl@gnu.org>
5650 * src/include/lib.h: Provide a fix for emx to not include
5653 2001-10-27 Werner LEMBERG <wl@gnu.org>
5655 * src/roff/troff/input.cc (substring_macro): Fix computation of
5658 2001-10-20 Werner LEMBERG <wl@gnu.org>
5660 Undo change from 2001-08-28.
5662 * src/roff/troff/input.cc (have_input): New global variable.
5663 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5664 in compatibility mode.
5665 (process_input_stack): Use it.
5667 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
5669 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5670 being handled as end-of-sentence characters,
5672 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
5674 * src/roff/troff/input.cc (file_iterator): New members
5675 `suppress_newline_flag' and `seen_escape'.
5676 (file_iterator::next_file): Updated.
5677 (file_iterator::fill): Use it.
5678 (string_iterator): New member `suppress_newline_flag'.
5679 (string_iterator::fill): Set it.
5680 (get_color_element): Use MAX_COLOR_VAL.
5681 * src/roff/troff/env.cc (environment): Remove `need_eol'.
5682 (no_fill): Don't set `env->ignore_next_eol'.
5683 (environment::newline): Handle `eol' tag properly.
5685 (environment::add_html_tag): Set `env->ignore_next_eol'.
5687 * src/roff/troff/env.h (environment): Updated.
5689 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5691 (html_printer::outstanding_eol): New member function.
5692 (html_printer::do_title): Use new functions.
5693 (html_printer::troff_tag): Test `id_eol_ce'.
5695 2001-10-10 Werner LEMBERG <wl@gnu.org>
5697 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5698 files work with -C also.
5700 2001-10-05 Werner LEMBERG <wl@gnu.org>
5702 * doc/pic.ms: Minor fix.
5703 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5704 as a valid command line switch.
5705 * src/devices/grohtml/post-html.cc (main): Ditto.
5707 * src/devices/grohtml/grohtml.man: Updated.
5708 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5710 2001-10-04 Werner LEMBERG <wl@gnu.org>
5712 Implementing color support in troff, pic, grops, and grohtml. These
5713 changes are based on a major patch provided by Gaius Mulley
5716 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5717 definitions with both hex values and fractions.
5719 New escapes: \m and \M for drawing and background color,
5720 respectively. This corresponds to the troff output commands `m'
5723 groff and troff accept command line switch `-c' to disable color
5724 output (which is automatically disabled in compatibility mode).
5726 New scaling indicator `f' for fractions (1f = 65536u).
5728 New conditional operator `m' to test for defined colors with `if'
5731 New keywords `color' (or `colour', `colored', `coloured'), `outline'
5732 (or `outlined'), and `shaded' added to pic.
5734 * src/include/color.h: New file.
5735 * src/include/driver.h: Include it.
5736 * src/include/printer.h: Include color.h.
5737 (environment): New members `col' and `fill'.
5738 (printer): Remove `adjust_arc_center' member function.
5739 * src/include/Makefile.sub: Updated.
5741 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5743 Handle `m' and `DF' troff commands.
5744 * src/libs/libgroff/color.cc: New file.
5745 * src/libs/libgroff/Makefile.sub: Updated.
5747 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5749 (createImage): Fix computation of `y2'.
5751 (buffer::write_file_html): Remove calls to `stop'.
5753 * src/preproc/pic/common.h (common_output): New abstract function
5754 members `set_color', `reset_color', `get_last_filled', and
5755 `get_outline_color'.
5756 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5757 (object_spec): Add members `shaded' and `outlined'.
5758 * src/preproc/pic/output.h (output): `command' is now abstract.
5759 New function members `set_color', `reset_color', `get_last_filled',
5760 and `get_outline_color'.
5761 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5762 `outline[d]', and `shaded'.
5763 * src/preproc/pic/object.cc (output::command): Removed.
5764 (output::set_location): Moved to output.h.
5765 (graphic_object): Add protected members `outline_color' and
5767 Add member functions `set_outline_color', `get_outline_color', and
5769 (closed_object): Add member function `set_fill_color'.
5770 Add member `color_fill'.
5771 (graphic_object::print_text): Use `out->set_color' and
5773 (box_object::print, ellipse_object::print, circle_object::print,
5774 line_object::print, spline_object::print, arc_object::print): Ditto.
5775 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5776 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5777 `SHADED', making them `%left'.
5778 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5779 * src/preproc/pic/tex.cc (tex_output): New dummy function members
5780 `set_color', `reset_color', `get_last_filled', and
5781 `get_outline_color'.
5782 * src/preproc/pic/troff.cc (simple_output): New abstract function
5783 members `set_color', `reset_color', and `get_last_filled'.
5784 (simple_output::polygon, simple_output::circle,
5785 simple_output::ellipse): Use `get_last_filled'.
5786 (troff_output): New members `last_filled' and `last_outlined'.
5787 New function members `set_color', `reset_color', `get_last_filled',
5788 and `get_outline_color'.
5789 (troff_output::finish_picture): Use `reset_color'.
5790 (troff_output::set_fill): Test `last_filled'.
5791 * src/preproc/pic/pic.man: Updated.
5793 * src/roff/groff/groff.cc (main): Implement `-c' option.
5794 (synopsis, help): Updated.
5795 src/roff/groff/groff.man: Updated.
5797 * src/roff/troff/troff.h: Include color.h.
5798 (warning_type): Add WARN_COLOR.
5799 * src/roff/troff/env.h (environment): New members
5800 `{cur,prev}_{glyph,fill}_color'.
5801 New member functions `get_{prev_,}{glyph,fill}_color'.
5802 * src/roff/troff/env.cc: Initialize and implement them.
5803 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5804 Replace `NULL' with `0' everywhere for consistency.
5805 (lookup_color, default_black, do_glyph_color, do_fill_color,
5806 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5807 define_color): New functions.
5808 (token::next): Implement \M and \m escapes.
5809 (do_if_request): Implement `m' operator.
5811 (main): Implement `-c' option.
5812 (init_markup_requests): Add `defcolor' request.
5813 (warning_table): Add `color' warning.
5814 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5816 * src/roff/troff/node.cc (troff_output_file): New members
5817 `current_{page,glyph}color'. New member functions `put_hex',
5818 `glyph_color', and `fill_color'.
5819 (glyph_color_node::*, fill_color_node::*): Implement it.
5820 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5821 (parse_term): Add support for `f'.
5822 * src/roff/troff/troff.man: Updated.
5824 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5826 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5827 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5829 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5830 (tag_definition): Use `void *' for arg1.
5831 (html_text): New member functions `do_color' and `done_color'.
5832 Use `void *' for second parameter of `push_para' member function.
5833 New `push_para' member function with a single parameter.
5834 Use `char *' for parameter of `issue_table_begin' member funtion.
5835 New `issue_color_begin' member function.
5836 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5838 (html_text::issue_color_begin): New function.
5839 (html_text::issue_table_begin): Use `char *' for parameter.
5840 (html_text::start_tag, html_text::shutdown,
5841 html_text::check_emit_text): Updated.
5842 (html_text::push_para): Use `void *' for second parameter.
5843 Add same function with only one parameter.
5844 (html_text::do_*): Updated.
5845 (html_text::do_color, html_text::done_color): New functions.
5846 * src/devices/grohtml/post-html.cc (style): New member `col'.
5847 Mew member `style' with 6 parameters.
5848 (style::style, style::operator==): Updated.
5849 (html_printer::do_font): Use it.
5850 (html_printer::draw): Add dummy entry for `F'.
5851 (html_printer::set_char): Updated.
5852 * src/devices/grohtml/grohtml.man: Updated.
5854 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5855 trailing zeroes removed.
5856 (ps_printer): New members `sbuf_color', `fill_color', and
5858 Removed member `fill'.
5859 New member function `set_color'.
5860 (ps_printer::ps_printer, ps_printer::set_char): Updated.
5861 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5862 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5864 * tmac/color-html.tmac, tmac/color.tmac: New files.
5865 * tmac/troffrc: Include them.
5866 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5867 * tmac/Makefile.sub: Updated.
5869 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5870 man/groff.man: Updated.
5871 * font/devps/prologue.ps: Define FC and CO functions.
5873 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
5875 Fix incorrect cropping of images and incorrect handling of special
5876 characters. Fix handling of file names in \O.
5878 * src/include/geometry.h: New file.
5879 * src/libs/libgroff/geometry.cc: New file.
5880 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5882 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5884 (do_suppress): Updated.
5885 * src/roff/troff/node.cc: Include geometry.h.
5886 (troff_output_file::flush_tbuf): Fixed parameters to
5887 `check_output_limits'.
5888 (troff_output_file::check_charinfo): Ditto.
5889 (troff_output_file::determine_line_limits): Add support for `Da'
5892 * src/devices/grohtml/post-html.cc (str_translate_to_html):
5893 Add new parameter `is_special' to decode special characters from
5895 (html_printer::do_title, html_printer::do_heading,
5896 html_printer::do_indentedparagraph,
5897 html_printer::translate_to_html, html_printer::special): Updated.
5899 2001-10-03 Werner LEMBERG <wl@gnu.org>
5901 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5902 Fix entry for config.h.
5903 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5904 * tmac/troffrc: Translate nonbreakable space character to `\~'.
5905 * src/preproc/eqn/eqn.man: Document -d command line option.
5907 2001-09-27 Werner LEMBERG <wl@gnu.org>
5909 * man/groff.man: Use
5917 instead of the old code (`.ad .hy' after the table) to suppress
5918 incorrect hyphenation for grohtml output.
5920 2001-09-22 Werner LEMBERG <wl@gnu.org>
5922 * man/groff_font.man, man/groff_out.man: Minor fixes.
5924 2001-09-20 Werner LEMBERG <wl@gnu.org>
5926 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
5927 Arnold Robbins <arnold@skeeve.com>).
5929 2001-09-09 Werner LEMBERG <wl@gnu.org>
5931 * configure: Regenerated with autoconf 2.52.
5933 * doc/groff.texinfo: Complete revision of indices.
5935 2001-09-07 Werner LEMBERG <wl@gnu.org>
5937 * doc/Makefile (clean): Updated to delete all indices.
5939 2001-09-05 Werner LEMBERG <wl@gnu.org>
5941 * src/roff/troff/troff.man: Remove superfluous line.
5943 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5944 given on the command line (or rather, if only the default warnings
5947 2001-09-03 Werner LEMBERG <wl@gnu.org>
5949 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5950 use .ne for TTY devices.
5952 2001-08-31 Werner LEMBERG <wl@gnu.org>
5954 * src/roff/troff/token.h, src/roff/troff/input.cc:
5955 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5957 2001-08-28 Werner LEMBERG <wl@gnu.org>
5959 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5960 * src/roff/troff/input.cc (token::next): Return
5961 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5963 (token::description): Updated.
5964 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5965 (token::add_to_node_list, token::process): Ignore
5966 TOKEN_TRANSPARENT_ESCAPE.
5968 2001-08-27 Werner LEMBERG <wl@gnu.org>
5970 * tmac/an-old.tmac: Fix `S' string.
5972 2001-08-26 Werner LEMBERG <wl@gnu.org>
5974 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5976 2001-08-25 Werner LEMBERG <wl@gnu.org>
5978 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5980 Many other minor fixes.
5982 * configure.ac: Add message at end to inform how to compile
5984 * configure: Regenerated.
5986 2001-08-24 Werner LEMBERG <wl@gnu.org>
5988 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5989 Updated to latest version of libc.
5991 2001-08-23 Werner LEMBERG <wl@gnu.org>
5993 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5994 Autoconf 2.50 and newer can handle this.
5995 * configure: Regenerated.
5997 2001-08-21 Werner LEMBERG <wl@gnu.org>
5999 * doc/pic.ms: Fix typo.
6000 * src/preproc/tbl/tbl.man: Document case of global options.
6002 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
6004 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6005 handling of `CR' font.
6007 2001-08-20 Werner LEMBERG <wl@gnu.org>
6009 Use a config.h file.
6011 * src/include/lib.h: Include config.h.
6012 * All C files: Ditto (if necessary).
6013 * All C++ source and header files: Include lib.h first (if
6016 * src/include/config.hin: New file (autogenerated by autoheader).
6017 * stamp-h.in: New file.
6018 * configure.ac: Updated.
6019 * aclocal.m4: Add third parameters to AC_DEFINE macros.
6020 (GROFF_ARRAY_DELETE): Simplified.
6021 * Makefile.sub (DISTCLEANFILES): Updated.
6022 Added targets for remaking config.status, config.hin, config.h,
6023 stamp-h.in, and stamp-h.
6024 * configure: Regenerated.
6026 2001-08-19 Werner LEMBERG <wl@gnu.org>
6030 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
6032 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6033 (do_sprintf): Use snprintf().
6035 2001-08-18 Werner LEMBERG <wl@gnu.org>
6037 * src/libs/snprintf/*: Added an snprintf module written by Mark
6039 * src/libs/libgroff/Makefile.sub: Updated.
6040 * configure.ac: Add test for snprintf().
6041 * Makefile.in: Updated.
6042 * configure: Regenerated.
6044 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6047 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
6049 * tmac/doc.tmac (Ex): New implementation.
6050 * tmac/doc-common, tmac/groff_tmac.man: Updated.
6052 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
6054 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6056 * tmac/groff_tmac.man: Updated.
6058 2001-08-13 Werner LEMBERG <wl@gnu.org>
6060 * src/preproc/tbl/tbl.man: Minor documentation update.
6062 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
6064 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6065 * configure.ac: Add declaration test for gettimeofday().
6066 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6067 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6068 * configure: Regenerated.
6070 2001-08-11 Werner LEMBERG <wl@gnu.org>
6072 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6073 * configure.ac: Add declaration test for strcasecmp().
6074 * Makefile.in: Updated.
6075 * configure: Regenerated.
6076 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6077 this is necessary because groff's mkstemp.cc is C++.
6078 Add declaration conditionally for strcasecmp().
6080 2001-08-10 Werner LEMBERG <wl@gnu.org>
6082 Integrated pic2graph, contributed by Eric S. Raymond.
6084 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6086 * Makefile.in, NEWS: Updated.
6088 * src/preproc/tbl/tbl.man: Revised.
6090 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
6092 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6094 2001-08-09 Werner LEMBERG <wl@gnu.org>
6096 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6099 2001-08-08 Paul Eggert <eggert@twinsun.com>
6101 * Makefile.sub (configure): Depend on configure.ac, not
6103 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6105 2001-08-07 Werner LEMBERG <wl@gnu.org>
6107 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6110 2001-08-06 Werner LEMBERG <wl@gnu.org>
6112 * src/roff/troff/troff.man: Improve documentation of -E option.
6114 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6116 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6119 2001-07-27 Werner LEMBERG <wl@gnu.org>
6121 * src/preproc/refer/refer.cc: Undo last change.
6122 * src/devices/grohtml/post-html.cc: Ditto.
6124 2001-07-26 Werner LEMBERG <wl@gnu.org>
6126 * src/preproc/refer/refer.cc: Include `lib.h'.
6127 * src/devices/grohtml/post-html.cc: Ditto.
6129 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
6131 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6132 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6133 * Makefile.in: Comment updated.
6134 * configure: Regenerated.
6136 2001-07-25 Werner LEMBERG <wl@gnu.org>
6138 * src/preproc/pic/pic.cc: Removed.
6139 * src/preproc/pic/pic_tab.h: Removed.
6140 * src/preproc/refer/label.cc: Removed.
6142 * doc/Makefile (.ms.html): Don't use a file name extension in
6143 argument to grohtml's -I option.
6144 * Makefile.in (dist): Remove CVS directories.
6145 Call `distfiles' target.
6147 * src/devices/grohtml/grohtml.man: Add information about valid
6148 versions of pnmtopng.
6149 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6150 name instead of number.
6152 2001-07-24 Werner LEMBERG <wl@gnu.org>
6154 * doc/groff.texinfo: Minor fixes.
6156 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
6158 * doc/Makefile (.ms.html): Put image files into a subdirectory.
6161 2001-07-20 Werner LEMBERG <wl@gnu.org>
6163 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6164 * src/libs/libgroff/mkstemp.cc: New file.
6165 * src/libs/libgroff/mksdir.cc: New file.
6166 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6167 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6168 * src/libs/libgroff/Makefile.sub: Updated.
6169 * src/include/lib.h: Add mksdir() prototype.
6170 * src/include/posix.h: Define S_IXUSR if not yet defined.
6172 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6173 (createAllPages): Use mksdir() instead of current code.
6174 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6175 (main): [!HAVE_MKSTEMP]: Removed.
6177 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6178 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6180 * configure.ac: Add tests for stdint.h, sys/time.h, and
6182 Call new GROFF_xxx macros.
6183 * configure: Regenerated.
6184 * Makefile.in: Comments updated.
6186 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
6188 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6189 instead of current code.
6190 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6191 * src/roff/groff/groff.cc (possible_command::insert_args): New
6193 (main): Use it for predriver handling instead of insert_arg().
6195 2001-07-19 Werner LEMBERG <wl@gnu.org>
6197 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6200 * src/include/posix.h: Define S_IWUSR if not yet defined.
6202 2001-07-18 Werner LEMBERG <wl@gnu.org>
6206 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
6208 * tmac/groff_mdoc.man: Document new -width and -column syntax.
6209 Some other minor fixes.
6210 * tmac/an-old.tmac: Add `AT' and `UC' macros.
6212 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
6214 Replace call to `troff' with `groff -Z' to make it aware of
6217 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6218 (troff_command, command_prefix): Removed.
6219 (alterDeviceTo): Use groff.
6220 (addZ): New function.
6221 (char_buffer::do_html): Use it.
6222 (scanArguments): Use TROFF_COMMAND.
6223 (findPrefix): Removed.
6225 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6227 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
6229 * doc/pic.ms: Documentation fixes.
6231 2001-07-17 Werner LEMBERG <wl@gnu.org>
6233 Replace atexit() with global destructor.
6235 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6236 (xtmpfile_list_init): New global structure to deallocate
6237 xtmpfile_list on exit. Its destructor inherits most code from
6239 (remove_tmp_files): Deleted.
6240 (add_tmp_file): Simplified.
6242 2001-07-16 Werner LEMBERG <wl@gnu.org>
6244 Replace strdup() with strsave().
6246 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6247 (set_papersize): Use strsave() and a_delete.
6248 (main): Use strsave().
6249 * src/preproc/html/pre-html.cc (make_message, createAllPages,
6250 removeAllPages): Use strsave() and a_delete.
6252 * configure.ac: Remove test for strdup.
6253 * Makefile.in: Comment updated.
6254 * configure: Regenerated.
6256 2001-07-15 Werner LEMBERG <wl@gnu.org>
6258 * win32-diffs: Updated.
6260 2001-07-14 Werner LEMBERG <wl@gnu.org>
6262 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6263 removing the old one.
6264 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6266 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6268 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6270 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
6272 Merge -xwidth into -width. Add -xwidth functionality to -column
6275 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6277 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
6278 string immediately following a leading dot starts with a valid mdoc
6280 Add similar code to the -column branch.
6281 (doc-Bl-usage): Updated.
6282 * groff_mdoc.man: s/-xwidth/-width/.
6284 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
6286 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6287 running into centered or non-formatted text.
6289 2001-07-11 Werner LEMBERG <wl@gnu.org>
6291 Introduce short and long prefixes to have the selection at run-time
6292 whether there is a 8+3 limit for names of temporary files.
6294 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6295 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6296 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6298 (temp_init): New global structure to initialize above three
6300 (xtmptemplate): Use two parameters for long and short prefix.
6301 Simplify code use above three variables.
6302 (xtmpfile): Use long and short prefixes as parameters.
6303 * src/include/lib.h: Updated.
6305 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6307 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6308 (createAllPages, makeTempFiles): Updated.
6310 2001-07-09 Werner LEMBERG <wl@gnu.org>
6312 * REVISION: Increased to 3.
6314 Version 1.17.2 released
6315 =======================
6317 2001-07-07 Werner LEMBERG <wl@gnu.org>
6319 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6322 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6324 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6326 * tmac/groff_mdoc.man: Fix synopsis.
6328 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6330 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6331 Restore `doc-Pa-font'.
6333 2001-07-04 Werner LEMBERG <wl@gnu.org>
6335 * src/utils/indxbib/dirnamemax.c: Moved to ...
6336 * src/libs/libgroff/maxfilename.cc: Here.
6337 s/dir_name_max/file_name_max/.
6339 * src/include/lib.h: Add file_name_max.
6340 * src/utils/indxbib/indxbib.cc: Updated.
6341 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6344 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6346 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6348 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6349 REGION_TEMPLATE): New macros.
6350 (createAllPages, makeTempFiles): Use them.
6351 Include `nonposix.h'.
6352 (html_system): New function.
6353 (createAllPages, createImage): Use it.
6356 * tmac/www.tmac: Fix typos.
6358 2001-07-03 Werner LEMBERG <wl@gnu.org>
6360 * tmac/www.tmac: Disable hyphenation in normal text only if output
6362 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6363 * tmac/groff_mwww.man, NEWS: Updated.
6365 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
6367 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6370 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
6372 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6373 doc-display-ps-stack): Implement font and font size stack for
6376 2001-07-02 Werner LEMBERG <wl@gnu.org>
6378 * REVISION: Increased to 2.
6379 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6381 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6382 beginning of a line.
6383 * src/groff/grog/grog.sh: Ditto.
6385 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
6387 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6390 2001-06-27 Werner LEMBERG <wl@gnu.org>
6392 Fix problems with preprocessor string for `man' program.
6394 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
6395 Updated/added copyright.
6396 Moved Emacs's local variable to identify nroff mode to the end of
6397 the file; add local variable if missing.
6399 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
6401 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6402 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6403 * configure: Regenerated.
6405 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
6407 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6408 * configure: Regenerated.
6410 2001-06-24 Werner LEMBERG <wl@gnu.org>
6412 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6414 * doc/pic.ms: Fix typos.
6416 Version 1.17.1 released
6417 =======================
6419 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
6421 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6422 * configure: Updated.
6424 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
6426 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6428 * src/roff/troff/dic.cc (blank_line): Add html tag.
6430 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
6432 * src/roff/troff/input.cc (do_suppress): Fix typo.
6434 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
6436 Added two new options (-D and -I) to specify image names and a
6437 subdirectory to place the images in.
6439 Change syntax from \\Ox to \\O[x].
6441 * src/devices/grohtml/post-html.cc (main): Add options.
6443 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6444 Use `NULL' instead of `0' for null string pointers.
6445 (MAX_RETRIES): New macro.
6446 (lengthOfintToStr, intToStr, make_message): New functions.
6447 (makeFileName): Make function static.
6448 Implement -D and -I options.
6449 (checkImageDir): New function.
6450 (write_end_image, write_start_image): Use new syntax of \O.
6451 (createAllPages, removeAllPages): Implement -D and -I options. Use
6453 (createImage): Use make_message().
6454 (addps4html): Add guard for malloc().
6455 (usage, scanArguments): Updated.
6456 (makeTempFiles): Use mkstemp().
6457 (removeTempFiles): Use unlink().
6458 (findPrefix): Add guard for malloc().
6460 * src/roff/troff/input.cc (get_delim_file_name): New function to
6462 (do_suppress): Updated to parse new syntax.
6463 * src/devices/grohtml/grohtml.man: Updated.
6464 * tmac/www.tmac: Updated to new syntax.
6468 2001-06-15 Werner LEMBERG <wl@gnu.org>
6470 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6472 * src/devices/grohtml/grohtml.man: Minor improvements.
6474 2001-06-14 Werner LEMBERG <wl@gnu.org>
6476 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6478 2001-06-11 Werner LEMBERG <wl@gnu.org>
6480 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6481 line to specify preprocessor options -- mandb 2.3.1 only recognizes
6483 * src/preproc/grn/grn.man: Add proper '\" string.
6485 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
6487 * test-groff: Don't use PATH but GROFF_BIN_PATH.
6489 2001-06-08 Werner LEMBERG <wl@gnu.org>
6491 Updated to autoconf 2.50.
6493 * configure.in: Renamed to...
6494 * configure.ac: This.
6495 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6496 (GROFF_OS390): Updated.
6497 * configure: Regenerated.
6499 2001-05-18 Werner LEMBERG <wl@gnu.org>
6501 * src/roff/troff/env.c, src/roff/troff/env.h,
6502 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6505 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
6507 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6509 2001-05-16 Werner LEMBERG <wl@gnu.org>
6511 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6512 less than or equal zero; set it to 1 then.
6513 * src/roff/troff/node.h (node::node): Initialize `last'.
6515 2001-05-08 Werner LEMBERG <wl@gnu.org>
6517 * tmac/an-old.tmac: Make predefined strings work in compatibility
6519 Add troff version guard.
6520 * tmac/doc.tmac: Simplify version guard.
6522 2001-05-07 Werner LEMBERG <wl@gnu.org>
6524 The .ns and .rs requests are now honoured not only in the top-level
6525 but in all diversions (similar to UNIX troff).
6527 This change is based on a patch from Tadziu Hoffmann
6528 <hoffmann@usm.uni-muenchen.de>.
6530 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6531 (top_level_diversion): Remove `no_space_mode' member.
6532 * src/roff/troff/div.cc (diversion::diversion,
6533 top_level_diversion::top_level_diversion): Updated.
6534 (macro_diversion::output): Reset `no_space_mode'.
6535 (no_space, restore_spacing): Use `curdiv' unconditionally.
6536 (space_request, blank_line): Check `curdiv->no_space_mode'.
6537 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6538 `curdiv' unconditionally.
6539 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6542 2001-05-06 Werner LEMBERG <wl@gnu.org>
6544 Added two new requests `de1' and `am1' which are similar to `de' and
6545 `am' with the difference that compatibility mode is saved on entry,
6546 switched off during macro execution, and restored on exit.
6548 * src/roff/troff/input.h: Added two new special characters
6549 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6550 * src/roff/troff/input.cc (input_iterator): Added two member
6551 functions `save_compatible_flag' and `get_compatible_flag'.
6552 (input_stack): Ditto.
6553 (string_iterator): Ditto. Also add private member
6554 `saved_compatible_flag'.
6555 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6556 (calling_mode): New enumeration.
6557 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
6558 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6559 (define_macro, define_indirect_macro, append_macro, ignore): Use
6561 (define_nocomp_macro, append_nocomp_macro): New functions.
6562 (init_input_requests): Updated.
6563 (do_request): Rename local variable `saved_compatible_flag' to
6564 `old_compatible_flag'.
6565 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6567 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6568 public and trap-invoked macros. As a consequence, the man macros
6569 work in compatibility mode also.
6571 2001-05-06 Solar Designer <solar@openwall.com>
6573 * Makefile.in: Use $(mandir).
6575 2001-05-06 Alexios Zavras <zvr@pobox.com>
6577 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6579 2001-05-05 Werner LEMBERG <wl@gnu.org>
6581 Added `.ns' number register: Returns 1 in no-space mode (if in
6582 top-level diversion), 0 otherwise.
6584 * src/roff/troff/div.cc (no_space_mode_reg): New class.
6585 (init_div_requests): Updated.
6586 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6589 2001-05-04 Werner LEMBERG <wl@gnu.org>
6591 * src/roff/nroff/nroff.man: Improved documentation (especially
6594 2001-05-02 Werner LEMBERG <wl@gnu.org>
6596 Added `brp' request: This is \p as a request.
6598 * src/roff/troff/env.cc (environment::do_break): Add parameter
6600 (do_break_request): New function (was `break_request').
6601 (break_request): Calls `do_break_request'.
6602 (break_spread_request): New; calls `do_break_request'.
6603 (init_env_requests): Updated.
6604 * src/roff/troff/env.h: Updated.
6605 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6607 * REVISION: Increased to 1.
6608 * win32-diffs: Updated.
6610 2001-05-01 Werner LEMBERG <wl@gnu.org>
6612 * tmac/an-old.tmac: Fix minor compatibility mode issue.
6613 * tmac/troffrc-end: Make it really work in compatibility mode.
6615 2001-04-27 Werner LEMBERG <wl@gnu.org>
6617 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6620 2001-04-22 Werner LEMBERG <wl@gnu.org>
6622 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6623 latest versions from glibc CVS archive.
6625 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6626 <c.zeelenberg@hccnet.nl>.
6628 2001-04-21 Werner LEMBERG <wl@gnu.org>
6630 * configure.in: Move check for mkstemp() to...
6631 * aclocal.m4 (GROFF_MKSTEMP): This new function.
6632 * configure: Regenerated.
6634 * src/include/groff-getopt.h: Don't use variable names in
6637 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
6638 * src/devices/grohtml/Makefile.sub,
6639 src/devices/grohtml/post-html.cc: Updated.
6641 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
6643 * configure.in: Add special check for mkstemp().
6644 * src/libs/libgroff/tmpfile.cc: Use it.
6645 * src/utils/indxbib/indxbib.cc: Ditto.
6646 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6647 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6650 2001-04-20 Bruce Lilly <blilly@erols.com>
6652 `Version_string' as C++ object was not visible to linker from C
6654 Add `const' to `Version_string'.
6656 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6657 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6658 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6659 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6660 (scanArguments), src/preproc/refer/refer.cc (main),
6661 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6662 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6663 (main), src/devices/grohtml/post-html.cc (main),
6664 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6665 (main), src/utils/hpftodit/hpftodit.cc (main),
6666 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6667 (main), src/utils/lkbib/lkbib.cc (main),
6668 src/utils/addftinfo/addftinfo.cc (main): Implement it.
6670 * src/roff/groff/pipeline.c: Add _UWIN.
6671 * src/include/nonposix.h: Ditto.
6673 2001-04-20 Werner LEMBERG <wl@gnu.org>
6675 * src/include/lib.h: Use HAVE_STRERROR.
6676 * src/roff/groff/pipeline.c: Ditto.
6677 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6678 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6679 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6680 * win32-diffs: Updated.
6681 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6683 2001-04-19 Werner LEMBERG <wl@gnu.org>
6685 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6686 instead of hardwired `"troff"'.
6687 (char_buffer::read_file): Remove unused variables.
6688 (char_buffer::write_file_troff): Ditto.
6689 (char_buffer::write_file_html): Ditto.
6690 (generateImages): Ditto.
6692 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6694 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6696 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6697 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6698 index_search_item::search1): Ditto.
6699 * src/roff/troff/node.h (width_list): Reorder members.
6700 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6701 (lookup_warning): Ditto.
6702 (prepend_string): Commented out.
6703 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6704 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6705 * src/preproc/tbl/main.cc (process_format): Ditto.
6706 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6708 * src/preproc/pic/pic.cc: Updated.
6709 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6710 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6711 * src/preproc/refer/command.cc (execute_command): Ditto.
6712 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6713 * src/preproc/refer/token.cc (lookup_token): Ditto.
6714 * src/preproc/soelim/soelim.cc: Ditto.
6715 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6716 (isHexDigit): Commented out.
6717 (pushBackBuffer::isString): Remove unused variable.
6718 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6720 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6721 resource_manager::read_resource_arg, read_one_of, parse_extensions):
6723 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6724 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6725 lookup_paper_size): Ditto.
6726 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6727 (text_glob, element_list): Reorder members.
6728 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6730 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6731 return value to `void'.
6732 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6734 * src/devices/grohtml/html.h (simple_output::check_newline,
6735 simple_output::space_or_newline, simple_output::enable_newlines):
6737 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6739 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6740 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6741 output_ligatures, output_charset, read_map): Ditto.
6742 * src/utils/lookbib/lookbib.cc (main): Ditto.
6743 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6744 (do_file): Fix typo (`=' -> `==').
6745 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6746 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6748 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
6750 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6751 Fix usage of GROFF_BIN_PATH.
6752 * src/roff/nroff/nroff.man: Updated.
6754 2001-04-18 Werner LEMBERG <wl@gnu.org>
6756 * NEWS: Fixing typos.
6759 Version 1.17 released
6760 =====================
6762 2001-04-17 Werner LEMBERG <wl@gnu.org>
6764 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6765 directory, not in $(srcdir).
6767 2001-04-16 Werner LEMBERG <wl@gnu.org>
6769 * doc/groff.texinfo: More info on conditionals.
6771 2001-04-15 Werner LEMBERG <wl@gnu.org>
6773 * doc/groff.texinfo: Added some info about groff internals.
6775 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6776 about missing special character only if the name is non-null.
6778 2001-04-14 Werner LEMBERG <wl@gnu.org>
6780 Removing the grohtml-old device driver which is now obsolete.
6782 * src/devices/grohtml-old/*: Removed.
6783 * font/devhtml-old/*: Removed.
6784 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6786 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6787 * test-groff (PATH): Updated.
6788 * tmac/Makefile.sub (NORMALFILES): Updated.
6789 * tmac/an-old.tmac: Remove special code for html-old device.
6790 Replace `html-or-html-old' register with `an-html'.
6791 * tmac/eqnrc: Updated.
6792 * tmac/html-old.tmac: Removed.
6793 * tmac/troffrc, tmac/troffrc-end: Updated.
6794 * tmac/www.tmac: Remove special code for html-old device.
6795 Replace `html-or-html-old' register with `www-html'.
6797 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6798 src/libs/libgroff/htmlindicate.cc (graphic_end),
6799 include/htmlindicate.h, src/preproc/grn/*.cc,
6800 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6801 single argument for consistency with rest of source code.
6803 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6805 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
6807 * src/roff/troff/troff.man: Fixing typos.
6809 2001-04-13 Werner LEMBERG <wl@gnu.org>
6811 * doc/pic.ms: Fixing many font switches.
6812 * doc/groff.texinfo: Fixes, additions.
6813 * MORE.STUFF: Updated.
6815 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
6817 * src/devices/grohtml/grohtml.man: Updated manual page regarding
6819 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6821 (removeTempFiles): New function to tidy up temporary files.
6822 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6823 Many fixes to do with the new inline suppress node and image regions
6825 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6826 (generate_img_src): New function.
6827 (html_printer::do_auto_image): Utilizes it.
6828 (do_heading, do_title): Include inline images within their contents.
6829 (html_printer::begin_page): Tidied up comments that are issued to
6830 the html output file.
6831 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6833 (text_glob::is_br): New method used by do_heading.
6834 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6835 equivalent diversion.
6836 * src/include/html-strings.h: Altered image tags to reflect the
6838 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6840 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6841 it is already inside a pic image. Only emit tags if the argument
6842 `-Tps:html' is present.
6843 * src/preproc/tbl/main.cc: Changes to reflect additional
6844 `html_end_suppress' parameter.
6845 * src/roff/troff/env.cc: Only emit eol tag if a node has been
6846 emitted since the last eol tag was written.
6847 * src/roff/troff/env.h: New boolean `emitted_node'.
6848 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6849 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
6850 * src/roff/troff/node.cc (check_charinfo): New method.
6851 (troff_output_file::determine_line_limits): Alterations to limit
6853 * tmac/www.tmac: Changes to reflect new suppress nodes.
6855 2001-04-12 Bruno Haible <haible@clisp.cons.org>
6857 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6858 Escape the html_glyph in the buffer.
6859 (str_translate_to_html): Output the unescaped escaped_char.
6860 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6861 `frame=void', not `frame=none'. Add `border=0'.
6863 2001-04-12 Werner LEMBERG <wl@gnu.org>
6865 * PROBLEMS: Add some words on how to avoid wrapper macros.
6867 2001-04-11 Blake McBride <blake@florida-software.com>
6869 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6871 2001-04-11 Werner LEMBERG <wl@gnu.org>
6873 * font/devlbp/Makefile.sub (CLEANADD): Set it.
6874 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6875 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6876 * Makefile.sub (DISTCLEANFILES): Here.
6878 * libs/libgroff/new.cc: Include `nonposix.h'.
6879 * win32-diffs: Updated.
6881 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
6883 Added skeleton macro for defunct macros.
6885 Updated documentation.
6887 When inside displays, an empty input line warning should be
6888 suppressed. If another macro call is put inside a display,
6889 all subsequent empty lines found in that display caused a
6890 warning to be emitted.
6892 * tmac/doc.tmac (doc-defunct-macro): New macro.
6893 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6894 (doc-restore-global-vars): Fixed typo.
6895 (doc-empty-line): Check the `doc-display-depth' register to
6896 determine whether we are inside display or not.
6898 * tmac/doc-common: Removed `Or' and `Sf' registers.
6899 Moved obsolete `Ds' macro to doc.tmac.
6901 * tmac/groff_mdoc.man: Bump document date.
6902 Document `.Vt' under ``Variable Types''.
6903 Removed documentation for obsolete `.Or' macro.
6905 2001-04-10 Werner LEMBERG <wl@gnu.org>
6908 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6910 2001-04-10 Bruno Haible <haible@clisp.cons.org>
6912 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6913 (usage): Add stream argument. Don't exit.
6914 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6915 Write --version output to stdout, not stderr.
6916 (usage): Add stream argument. Don't exit.
6917 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6918 (usage): Add stream argument. Don't exit.
6919 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6921 (usage): Add stream argument. Don't exit.
6922 (main): Write --help output to stdout, not stderr.
6923 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6924 (usage): Add stream argument. Don't exit.
6925 * src/devices/grops/ps.cc (main): Accept --help and --version.
6926 (usage): Add stream argument. Don't exit.
6927 * src/devices/grotty/tty.cc (main): Accept --help and --version.
6928 (usage): Add stream argument. Don't exit.
6929 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6930 (main): Accept --help and --version.
6931 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6932 (main): Accept --help and --version.
6933 * src/preproc/html/pre-html.cc (usage): Add stream argument.
6934 (scanArguments): Accept --help and --version.
6935 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6936 (main): Accept --help and --version.
6937 * src/preproc/refer/refer.cc (main): Accept --help and --version.
6938 (usage): Add stream argument. Don't exit.
6939 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6941 (main): Accept --help and --version.
6942 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6943 (main): Accept --help and --version.
6944 * src/roff/groff/groff.cc (main): Accept --help and --version.
6945 (synopsis): Add stream argument.
6946 (help): Write --help output to stdout, not stderr.
6947 (usage): Add stream argument. Don't exit.
6948 * src/roff/grog/grog.pl: Accept --help and --version.
6950 * src/roff/grog/grog.sh: Accept --help and --version.
6951 * src/roff/nroff/nroff.sh: Accept --help and --version.
6952 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6953 (usage): Add stream argument. Don't exit.
6954 (main): Accept --help and --version.
6955 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6956 (usage): New function with stream argument, doesn't exit.
6957 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6958 (usage): New function with stream argument, doesn't exit.
6959 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6960 (usage): Add stream argument. Don't exit.
6961 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6962 (main): Accept --help and --version.
6963 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6965 (main): Accept --help and --version.
6966 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6967 (main): Accept --help and --version.
6968 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6969 (usage): Add stream argument. Don't exit.
6971 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
6973 Fix indentation in SYNOPSIS.
6975 Updated to include changes of latest BSD mdoc version (basically,
6976 the only change is that `.Fn' and `.Fc' put a final semicolon after
6977 a function declaration in the SYNOPSIS section).
6979 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6980 (doc-in-synopsis-section): New variable. Updated all related
6982 (doc-indent-synopsis-active): New register.
6983 (Nd, Fn, Fo): Use it.
6984 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6985 `.Cd' with long argument line produces indented wrapped lines.
6986 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6987 undesirable line break to be output.
6988 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6990 (Fn, Fc): Add final `;' to output.
6991 (doc-save-global-vars, doc-restore-global-vars): Updated.
6992 * tmac/doc-common: Remove `Ex' register.
6994 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6997 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6999 * tmac/doc.tmac (Cd): Simplify code.
7000 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7002 2001-04-06 Werner LEMBERG <wl@gnu.org>
7004 Implement continuous underlining for nroff mode. To do that, a new
7005 request in the ditroff language has been added: `x u N' (N is 0
7008 \X and \Y are now transparent to end-of-sentence recognition.
7010 * src/include/printer.h (printer): Add `type' parameter to `special'
7012 * src/libs/libdriver/printer.cc (printer::special): Updated.
7013 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7015 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7016 specials of type `p'.
7017 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7018 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7019 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7020 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7021 (glyph::order): New method.
7022 (tty_printer::add_char): Use it.
7023 (tty_printer::special): New method.
7024 (tty_printer::end_page): Implement it.
7026 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7027 * src/roff/troff/node.cc (special_node::special_node): Add parameter
7028 to set `no_init_string'.
7029 (special_node::tprint_start): Use it.
7030 (special_node::same, special_node::copy): Updated.
7031 (special_node::ends_sentence): New method.
7032 (troff_output_file::start_special): Add parameter to include
7033 inititialization of special conditionally.
7035 * src/roff/troff/env.h (environment): New member `underline_spaces'.
7036 * src/roff/troff/env.cc (do_underline_special): New function.
7037 (environment::set_font): Use it.
7038 (do_underline): Use it. This was `underline()'.
7039 (underline): Call `do_underline()'.
7040 (continuous_underline): New function which calls `do_underline()'.
7041 (environment::newline): Use `do_underline_special()'.
7042 (init_env_requests): Updated.
7044 * NEWS, man/troff_out.man: Updated.
7046 2001-04-06 Bruno Haible <haible@clisp.cons.org>
7048 * font/devutf8/R.proto: Fix code of 'shc'.
7050 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
7052 Many fixes. Diag lists can now be nested also; additionally,
7053 `-compact' and `-offset' are supported.
7055 * tmac/doc.tmac (doc-have-indent): Replaced with ...
7056 (doc-list-have-indent-stackXXX): A new register stack.
7057 (doc-have-diag-list): Removed.
7058 (Bl): Use `doc-list-have-indent-stackXXX'.
7060 (doc-diag-list): Use `doc-compact-list-stackXXX'.
7061 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7062 (doc-set-vertical-and-indent): Ditto.
7063 (doc-next-list-depth): Removed.
7064 (doc-increment-list-stack): Updated.
7065 (doc-decrement-list-stack): Use `doc-list-depth' instead of
7066 `doc-next-list-depth'.
7067 (doc-end-list, doc-end-column-list): Don't use
7068 `doc-increment-list-stack'.
7069 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7070 (doc-save-global-vars, doc-restore-global-vars): Updated.
7071 * tmac/doc-common: Updated.
7072 * tmac/groff_mdoc.man: Updated.
7075 2001-04-02 Werner LEMBERG <wl@gnu.org>
7077 * src/devices/grotty/grotty.man: Fix grammatical error.
7079 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
7081 Remove .Ld from mdoc package; replace it with special handling of
7084 * tmac/doc-common: Remove `Ld' register.
7085 Uncomment `doc-volume-ds-*' strings.
7086 Remove `doc-operating-system-default'.
7088 * tmac/doc-syms (Ld): Removed.
7089 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7093 * tmac/groff_mdoc.man: Many fixes and updates.
7095 2001-03-29 Werner LEMBERG <wl@gnu.org>
7097 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
7098 Bond <tkb@tkb.mpl.com>.
7099 * tmac/www.tmac: Save compatibility mode.
7101 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
7103 * tmac/groff_mdoc.man: Many fixes.
7105 2001-03-28 Werner LEMBERG <wl@gnu.org>
7107 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7110 2001-03-27 Werner LEMBERG <wl@gnu.org>
7112 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7113 diversion. This fixes overlong tags.
7115 2001-03-26 Werner LEMBERG <wl@gnu.org>
7117 * doc/groff.texinfo: Fixed and improved documentation of fonts.
7118 * tmac/doc-syms: Fix error messages.
7119 * tmac/an-old.tmac: Remove incorrect double backslashes.
7121 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
7123 * tmac/Makefile.sub: Strip mdoc.local also
7124 * tmac/strip.sed: Fixed.
7126 2001-03-24 Werner LEMBERG <wl@gnu.org>
7128 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7129 selecting the font size.
7130 * tmac/groff_mdoc.man, NEWS: Document it.
7132 2001-03-23 Werner LEMBERG <wl@gnu.org>
7134 * src/roff/troff/div.cc (save_vertical_space): Add default argument
7136 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7137 argument to restore previous font family.
7138 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7140 * doc/groff.texinfo: More fixes and additions (mainly for font
7141 manipulating commands).
7143 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7144 * tmac/groff_mdoc.man: This. The quick reference has been removed.
7145 * tmac/Makefile.sub, NEWS: Updated.
7147 2001-03-23 Werner LEMBERG <wl@gnu.org>
7149 Replaced mdoc implementation. The new version is `state of the
7150 art', using almost all new features of groff 1.17 -- it won't run
7151 with older versions.
7153 * tmac/doc.tmac: Completely rewritten.
7154 * tmac/doc-common: Ditto.
7155 * tmac/doc-nroff: Ditto.
7156 * tmac/doc-ditroff: Ditto.
7157 * tmac/doc-syms: Ditto.
7158 * tmac/mdoc.local: New file.
7159 * tmac/groff_mdoc.samples.man: Replaced with ...
7160 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7161 * tmac/strip.sed: Updated.
7162 * tmac/Makefile.sub: Updated.
7165 * tmac/groff_man.man: Add `man.local' to the FILES section.
7167 2001-03-22 Werner LEMBERG <wl@gnu.org>
7169 * doc/groff.texinfo: Added many @noindent.
7170 Replaced @end_Example -> @endExample.
7171 Added info whether registers are r/o.
7172 Many other additions and fixes.
7174 2001-03-21 Werner LEMBERG <wl@gnu.org>
7176 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7177 in makeinfo of texinfo 4.0) to be used in @Def* macros.
7178 Improved @Def* macros: Now the exact syntax of request, register,
7179 and escapes is shown.
7180 Added macros for parentheses and brackets to be used in @Def*.
7181 Many fixes and improvements of the documentation.
7183 2001-03-20 Werner LEMBERG <wl@gnu.org>
7185 * doc/groff.texinfo: Added new index: `st' (for strings).
7186 Added macros @Defstr(x).
7187 Added macro @Example (adding @group).
7188 Other minor improvements.
7190 2001-03-19 Werner LEMBERG <wl@gnu.org>
7192 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7193 `rq' for requests. `fn' is no longer used.
7194 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7197 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7198 number with name of man page.
7200 2001-03-19 Larry Kollar <kollar@alltel.net>
7202 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
7205 2001-03-19 Werner LEMBERG <wl@gnu.org>
7207 * man/groff_font.man: Document `prepro', `postpro', and `print'.
7208 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7209 * src/devices/grohtml/grohtml.man: Fixing typos.
7211 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
7213 * tmac/s.tmac (@IP): Pass `.ip' html tag.
7214 * tmac/groff_mwww.man: Remove .LINE macro
7215 * tmac/www.tmac (LINE): Add `.ti'.
7217 * src/devices/grohtml/post-html.cc (html_printer): New member
7219 (html_printer::emit_raw): Use it.
7220 (html_printer::do_linelength): Ditto.
7221 (html_printer::do_pageoffset): Ditto.
7222 (html_printer::do_indentation): Ditto.
7223 (html_printer::do_tempindent): Ditto.
7224 (html_printer::do_break): Ditto.
7225 (html_printer::begin_page): Ditto.
7226 (html_printer::do_indentedparagraph): New function.
7227 (html_printer::troff_tag): Handle `.ip'.
7228 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7229 Add `<td width=...>' handling.
7230 (html_text::do_table): Add parameter.
7231 (html_text::do_indent): Updated.
7232 * src/devices/groohtml/html-text.h: Updated.
7234 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
7236 Introduced simple html tables to implement indentation.
7238 * src/devices/grohtml/html.h (word, word_list): New structures.
7239 (simple_output): Use it.
7240 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7241 (html_printer): Improve indentation handling.
7242 (html_printer::emit_raw): Set `in_table' element. Handle
7244 (html_printer::write_header): Move conditional downwards.
7245 Don't allow whitespace in tags.
7246 (html_printer::do_linelength): Handle line length and indentation
7248 (html_printer::do_pageoffset): Handle indentation conditionally.
7249 (html_printer::do_indentation): Ditto.
7250 (html_printer::do_tempindent): New function member.
7251 (html_printer::do_fill): Take care of indentation.
7252 (html_printer::do_flush): Finish table.
7253 (html_printer::do_links): Ditto.
7254 (html_printer::do_break): New function for handling `.br' and `.ti'.
7255 (html_printer::troff_tag): Use it.
7257 (html_printer::flush_globs): Fix.
7258 (html_printer::flush_page): Finish table.
7259 (html_printer::html_printer): Fix error message. Set up
7261 (html_printer::add_to_sbuf): Remove special handling of character
7263 (to_unicode): Remove `stop()'.
7264 (html_printer::write_title): Cleanup.
7265 (html_printer::begin_page): Use `put_string()'. Handle indentation.
7266 (html_printer::~html_printer): Flush text and end the line.
7268 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7269 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7271 (html_text::start_tag): Disable newlines.
7272 (html_text::table_is_void): New function.
7273 (html_text::issue_table_begin): Ditto.
7274 (html_text::issue_table_end): Ditto.
7275 (html_text::push_para): Better table handling.
7276 (html_text::do_indent): New function.
7277 (html_text::do_table): Ditto.
7278 (html_text::done_table): Ditto.
7279 (html_text::do_tt): Handle PRE_TAG.
7280 (html_text::is_in_table): New function.
7281 (html_text::check_emit_text): Handle tables.
7282 (html_text::do_emittext): Use `nl()'.
7283 (html_text::do_para): Handle table.
7284 (html_text::remove_def): New function.
7285 * src/devices/grohtml/output.cc (word, word_list): Implement
7287 (simple_output::end_line): Flush last word.
7288 (simple_output::simple_comment): Ditto.
7289 (simple_output::begin_comment): Recoded.
7290 (simple_output::end_comment): Ditto.
7291 (simple_output::comment_arg): Removed.
7292 (simple_output::check_newline): Improve test and flush last word.
7293 (simple_output::space_or_newline): Improved.
7294 (simple_output::write_newline): Replaced with...
7295 (simple_output::nl): This.
7296 (simple_output::put_raw_char): Flush last word.
7297 (simple_output::check_space): Removed.
7298 (simple_output::put_translated_string): Ditto.
7299 (simple_output::put_string): Simplified.
7300 (simple_output::put_number): Updated.
7301 (simple_output::put_float): Ditto.
7302 (simple_output::put_symbol): Removed.
7303 (simple_output::enable_newlines): Add `check_newline()'.
7304 (simple_output::flush_last_word): New function.
7306 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7307 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7309 * tmac/s.tmac (@PP, @IP): Add html conditional code.
7310 * tmac/an-old.tmac (TP): Ditto.
7312 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
7314 * mdate.sh: Make it POSIX compliant.
7316 2001-03-09 Werner LEMBERG <wl@gnu.org>
7318 Added the `return' request to end a macro immediately. It simply
7319 pops iterators from the input stack until a macro iterator is found.
7321 * src/roff/troff/input.cc (input_iterator::is_macro,
7322 macro_iterator::is_macro): New member.
7323 (input_return_boundary): New class to signal an immediate return
7325 (input_stack::add_return_boundary, input_stack::is_return_boundary):
7327 (input_stack::clear): Use it.
7328 (input_stack::pop_macro): New function.
7329 (while_request): Use `is_return_boundary()'.
7330 (return_macro_request): New function.
7331 (init_input_requests): Use it.
7333 * src/roff/troff/TODO: Updated.
7334 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7336 2001-03-08 Werner LEMBERG <wl@gnu.org>
7338 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7341 2001-03-07 Werner LEMBERG <wl@gnu.org>
7343 Make `\B' more rigid.
7345 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7347 (get_number_rigidly): New function.
7348 * src/roff/troff/input.cc (do_expr_test): Use it.
7349 * src/roff/troff/token.h: Updated.
7351 * src/roff/troff/request.h: Fix typo (init_html_request ->
7352 init_markup_request).
7354 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
7356 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
7357 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7358 are now `.begin', `.end', `.image'.
7360 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7361 (html_printer::add_to_sbuf): Changing type of `code' parameter.
7362 Use add_char_to_sbuf().
7363 (to_unicode): New function.
7364 (char_translate_to_html): Changing type of `ch' parameter.
7366 (html_printer::~html_printer): Comment out doctype string.
7367 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7368 instead of `.html-end'.
7369 (write_start_image): Use `.begin' and `.image' instead of
7370 `.html-begin' and `.html-image'.
7371 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7372 (html_begin): Renamed to ...
7374 (html_end): Renamed to ...
7376 (html_image): Renamed to ...
7378 (init_html_requests): Renamed to ...
7379 (init_markup_requests): This.
7380 * tmac/www.tmac: Updated.
7382 2001-02-28 Bram <bram@avontuur.org>
7384 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7387 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
7389 * doc/meref.me: Fixing some typos.
7391 2001-02-16 Werner LEMBERG <wl@gnu.org>
7393 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7394 method. Return `HYPHEN_MIDDLE' if it was `\:'.
7395 * src/roff/troff/node.h: Updated.
7397 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
7399 * tmac/groff_tmac.man: Fix typo.
7401 2001-02-16 Werner LEMBERG <wl@gnu.org>
7403 Fixing a bug which prevented proper end-of-sentence recognition
7404 between an `unformatted' box and the following text. As a
7405 consequence, vertical line distances are no longer preserved in
7406 boxes after a call to `.unformat' -- because boxes aren't
7407 line-oriented (contrary to diversions), this doesn't make sense
7410 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7412 (vertical_size_node::set_unformat_flag): New method.
7413 * src/roff/troff/node.hh: Updated.
7414 * src/roff/troff/input.cc (word_space_node::reread,
7415 hmotion_node::reread): Reset `unformat' flag after usage.
7416 (unformat_macro): Append only if `set_unformat_flag()' returns
7418 * src/roff/troff/troff.man: Updated.
7420 2001-02-15 Werner LEMBERG <wl@gnu.org>
7422 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7423 documentation of `asciify' and `unformat' requests.
7425 2001-02-13 Werner LEMBERG <wl@gnu.org>
7427 Redesigned the `unformat' request. It is no longer connected with
7428 `asciify' but rather uses new `reread()' methods if the `unformat'
7429 flag is set. Additionally, the handling of space characters after
7430 unformatting has been fixed so that they retain their width.
7432 * src/roff/troff/node.h (width_list): New structure to store
7433 original widths of spaces.
7434 (node): Added `unformat' member.
7435 Replaced `num_spaces' variable with `orig_width' list.
7436 * src/roff/troff/node.cc (*node::asciify,
7437 asciify_reverse_node_list): Removed `unformat_only' flag and related
7439 (word_space_node::asciify, word_space_node::word_space_node): Use
7441 (word_space_node::~word_space_node): New destructor.
7442 (word_space_node::copy): Updated to handle `orig_width'.
7443 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7444 (*node::merge_space): Update `orig_width' list if necessary.
7445 (*node::set_unformat_flag): New methods to set the `unformat' flag.
7446 * src/roff/troff/enc.cc (environment::space_newline): Use
7448 (environment::space): Added method to handle space width and
7449 sentence space width as parameters. Use `width_list'.
7450 (environment::make_tab_node): Updated.
7451 * src/roff/troff/env.h: Updated.
7452 * src/roff/troff/input.cc (word_space_node::reread,
7453 unbreakable_space_node::reread, hmotion_node::reread): New methods
7454 to handle nodes specially if `unformat' flag is set.
7455 (do_asciify_macro): Renamed back to ...
7456 (asciify_macro): This.
7457 (unformat_macro): New implementation to simply set the `unformat'
7460 * MORE.STUFF: Added more info about deroff.
7462 2001-02-08 Werner LEMBERG <wl@gnu.org>
7464 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7465 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7466 and `add_self()' methods to avoid hyphenation. For example, the
7467 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7468 soft hyphen after `foo'. Now the hyphen list is correctly
7469 `foo<ignore><ignore>bar'.
7471 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
7473 * tmac/groff_tmac.man: Fix `BIR' macro.
7475 2001-02-04 Werner LEMBERG <wl@gnu.org>
7477 A new escape sequence `\:', inserting a zero-width break point.
7479 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7480 * src/roff/troff/input.cc (get_copy, token::next, asciify):
7482 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7484 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
7485 and `asciify()' methods.
7486 * src/roff/troff/node.cc (space_node::space_node): Updated.
7487 (space_node::asciify): Handle `was_escape_colon'.
7488 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7490 Handle `\~' similar to other comparable requests.
7492 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7494 (token::next): Move creation of an unbreakable_space_node to...
7495 (token::add_to_node_list): Here.
7497 Fix a bug which sometimes prevented hyphenation of words connected
7498 with `\~' or `\ ' (and other escape sequences handled as
7499 TOKEN_NODE). This also fixes a hyphenation problem with boxes
7500 (after a call to the `unformat' request).
7502 * src/roff/troff/env.h (environment::possibly_break_line,
7503 environment::hyphenate_line): Introducing `start_here' parameter.
7504 * src/roff/troff/env.cc (environment::space_newline,
7505 environment::space): Use it.
7506 (environment::possibly_break_line, environment::hyphenate_line):
7508 * src/roff/troff/input.cc (process_input_stack): Use it.
7509 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7510 space_char_hmotion_node, overstrike_node): Add
7511 `get_hyphenation_type()' method.
7512 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7513 if `unformat_only' is active.
7515 2001-01-30 Werner LEMBERG <wl@gnu.org>
7517 Implemented new read-only number register `.linetabs' which
7518 returns 1 if in line-tabs mode, 0 otherwise.
7520 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7521 * src/roff/troff/env.cc (get_line_tabs): New function.
7522 (init_env_requests): Use it.
7523 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7525 * VERSION, REVISION: Changing to 1.17.0.
7527 2001-01-28 Werner LEMBERG <wl@gnu.org>
7529 Fixed a bug which prevented hyphenation of words which are finished
7532 * src/roff/troff/token.h (token): Add enum type
7533 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7534 * src/roff/troff/input.cc (token::next, token::description,
7535 get_line_arg, token::add_to_node_list, token::process): Use it.
7537 2001-01-27 Werner LEMBERG <wl@gnu.org>
7539 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7540 * src/roff/troff/div.cc (do_divert): Use it.
7542 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7544 2001-01-25 Werner LEMBERG <wl@gnu.org>
7546 Adding the `linetabs' request. If set, tab distances are not
7547 computed relative to the input line but relative to the output line.
7549 * src/roff/troff/env.h (environment): New member `line_tabs'.
7550 * src/roff/troff/env.cc (line_tabs_request): Implement request.
7551 (environment::environment, environment::copy): Updated.
7552 (environment::distance_to_next_tab): Use `line_tabs'.
7553 (init_env_requests): Register request.
7554 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
7557 2001-01-24 Werner LEMBERG <wl@gnu.org>
7559 Introducing a new read-only register `.int' which is set to a
7560 positive value if the last output line is interrupted (i.e., if it
7563 * src/roff/troff/env.cc (init_env_requests): Add it.
7564 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7566 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
7568 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7569 * src/preproc/html/pre-html.cc (findPrefix): New function which
7570 generates the troff executable name via the system prefix.
7571 * src/preproc/eqn/main.cc: Modified warning message.
7573 2001-01-23 Werner LEMBERG <wl@gnu.org>
7575 troff's `box' and `boxa' requests didn't preserve temporary
7578 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7579 `saved_target_text_length' members.
7580 * src/roff/troff/div.cc (do_divert): Use them.
7582 Tabs (but not yet leaders and fields) are now handled correctly by
7585 * node.h (hmotion_node): Add field `was_tab'.
7586 * env.cc (environment::make_tab_node): Set it.
7587 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7589 Added new request `unformat' which will, contrary to `asciify',
7590 preserve font information after unformatting (i.e., only nodes
7591 dealing with horizontal space are converted back to input
7594 * input.cc (asciify_macro): Renamed to ...
7595 (do_asciify_macro): this, having a new parameter `unformat_only'.
7596 (asciify_macro, unformat_macro): New; using do_asciify_macro.
7597 (init_input_requests): Added `unformat'.
7598 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7599 parameter to control asciification process.
7600 * node.h (*_node::asciify): Ditto.
7601 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7603 2001-01-20 Werner LEMBERG <wl@gnu.org>
7605 * doc/groff.texinfo: Minor improvement of `.in' documentation.
7607 2001-01-18 Werner LEMBERG <wl@gnu.org>
7609 * tmac/ps.tmac: Remove call of psold.tmac.
7610 * tmac/psold.tmac: Comment updated.
7611 * tmac/psnew.tmac: Removed since no longer needed.
7612 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7614 * font/devutf8/R.proto: Adding `shc' glyph.
7615 * font/devutf8/NOTES: Updated.
7617 * test-groff: Updated.
7619 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
7621 First cut of the new html device driver. Changes to pre-html and
7622 the new grohtml are too numerous to be documented here.
7624 Stuff related to `html' has been renamed to `html-old' and `html2'
7625 stuff has been renamed to `html' (including directories). The new
7626 html device driver is therefore invoked as `-Thtml'.
7628 Added new `\O' escape to suppress output (needed by html driver).
7630 Added functions and code to pass info about input-level commands
7631 (`.in', `.fl', etc.) to html driver.
7633 Three new functions (.html-begin, .html-end, and .html-image) for
7634 better html handling: `html-begin' will execute the remaining line
7635 if at the outermost nesting level, increasing an internal counter.
7636 `html-end' does the same but decreases the internal counter.
7637 `html_image' puts its arguments into a special node (suppress_node)
7638 to define an image region.
7640 The `output' request has been removed.
7642 * tmac/html-tags.tmac: Removed.
7643 * tmac/arkup.tmac: Updated and renamed to ...
7644 * tmac/www.tmac: New file.
7645 * tmac/markup.tmac Updated and renamed to ...
7646 * tmac/mwww.tmac: New file.
7647 * tmac/Makefile.sub: Updated.
7648 * tmac/an-old.tmac: Updated.
7649 * tmac/eqnrc: Updated.
7650 * tmac/groff_man.man
7651 * tmac/groff_markup.man: Updated and renamed to ...
7652 * tmac/groff_mwww.man: New file.
7653 * tmac/groff_tmac.man: Updated.
7654 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7655 * tmac/html.tmac: Updated and renamed from html2.tmac.
7656 * tmac/pspic.tmac: Updated html support.
7657 * tmac/s.tmac: Added html output support.
7658 * tmac/troffrc, tmac/troffrc-end: Updated.
7660 * Makefile.in, doc/Makefile: Updated.
7661 * doc/groff.texinfo: Added info about new `\O' escape.
7662 * doc/homepage.ms: Use `MAILTO' macro.
7664 * font/devhtml/DESC.proto: Add `C' font.
7665 * font/devhtml/Makefile.sub: Updated.
7666 * font/devhtml/R.proto: Minor fixes.
7667 * font/devhtml-old/Makefile.sub: Updated.
7669 * src/devices/grohtml-old/Makefile.sub: Updated.
7671 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7673 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7674 graphic_start): Add `inline' parameter. Update.
7675 (html_end_suppress, graphic_end): Update.
7677 * src/include/html-strings.h: New file.
7678 * src/include/htmlindicate.h: Comments updated.
7679 * src/include/printer.h: Updated.
7681 * src/preproc/eqn/main.cc (do_file, main): Updated.
7682 * src/preproc/pic/troff.cc (troff_output::start_picture,
7683 troff_output::finish_picture): Updated.
7684 * src/preproc/tbl/main.cc (process_input_file): Updated.
7686 * src/roff/groff/groff.cc (main): Updated.
7687 Pass device arguments to predrivers also.
7688 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7689 * src/roff/troff/env.h (environment): Updated.
7690 New elements `need_eol' and `ignore_next_eol' (for html output).
7691 * src/roff/troff/env.cc (environment::environment): Add initializers
7692 for `need_eol' and `ignore_next_eol'.
7693 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7695 (point_size, fill, no_fill, center, right_justify, line_length,
7696 indent, temporary_indent, break_request, handle_tab): Use
7698 (set_tabs): Use `add_html_tag_tabs()'.
7699 (environment::add_html_tag): Updated.
7700 (environment::do_break): Updated.
7701 * src/roff/troff/div.cc (space_request, flush_output): Use
7702 `environment::add_html_tag()'.
7703 * src/roff/troff/input.cc: Updated.
7704 New variable `html_level' to indicate nested `html-begin' requests.
7705 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7706 (non_interpreted_char_node, token_node, non_interpreted_node): Add
7707 `force_tprint()' method.
7708 (token::next): Handle `\O'.
7709 (do_suppress): Implement it.
7710 (html_begin, html_end, html_image): New functions.
7711 (init_output_requests): Renamed to ...
7712 (init_html_requests): this.
7714 (macro::append_str, macro::append_unsigned, macro::append_int): New
7716 New variable `output_low_mark_miny' to limit minimal value of y.
7717 (reset_output_registers): Use it.
7718 (output_request): Removed.
7719 (get_output_registers): New function.
7720 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7721 (*_node): Added `force_tprint()' if necessary.
7722 (special_node): New elements `tf' and `get_tfont()'.
7723 (suppress_node): New class.
7724 * src/roff/troff/node.cc:
7725 New global variables `image_no' and `suppress_start_page'.
7726 (real_output_file): New method `is_on()'.
7727 (troff_output_file): New method `start_special(tfont)'.
7728 (troff_output_file::really_print_line): Use `tprint' conditionally.
7729 (real_output_file::print_line): Updated.
7730 (real_output_file::on): Updated.
7731 (*_node): Added `force_tprint()'.
7732 (special_node::special_node): Initializer updated.
7733 (special_node::same, special_node::copy, special_node::tprint_start):
7735 (get_reg_int, get_reg_str): New functions.
7736 (suppress_node::*): New methods.
7737 New global variables last_position, last_image_filename;
7738 (min): New inline function.
7739 * src/roff/troff/reg.h, src/roff/troff/request.h,
7740 src/roff/troff/troff.h: Updated.
7742 2001-01-13 Werner LEMBERG <wl@gnu.org>
7744 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7745 documentation of `asciify' request.
7747 2001-01-12 Werner LEMBERG <wl@gnu.org>
7749 * src/roff/troff/input.cc: Move definition of special characters
7750 like `ESCAPE_TILDE' to ...
7751 * src/roff/troff/input.h: New file.
7752 * src/roff/troff/Makefile.sub (HDRS): Add it.
7754 Extending the .asciify request to `unformat' space characters also.
7756 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7757 to count input space characters.
7758 Update constructors to take care of it.
7759 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7760 `ESCAPE_SPACE' instead of normal space.
7761 (word_space_node::asciify): New method.
7762 (unbreakable_space_node::asciify): New method.
7763 (word_space_node::merge_space): New method.
7764 * src/roff/troff/env.cc (environment::space_newline,
7765 environment::space): Add code to initialize `num_spaces' (using the
7766 constructor of `word_space_node').
7767 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7770 2001-01-09 Werner LEMBERG <wl@gnu.org>
7772 * man/groff_char.man: Use table header traps only conditionally.
7774 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
7776 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7778 2001-01-08 Werner LEMBERG <wl@gnu.org>
7780 Introducing the `box' and `boxa' requests which are similar to
7781 `di' resp. `da' but omitting a partially filled line (which is
7782 restored after ending the diversion).
7784 * src/roff/troff/div.h (diversion): Add elements to save partially
7786 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7787 partially filled line.
7788 (divert, divert_append): Updated.
7789 (box, box_append): New functions.
7790 (init_div_requests): Use them.
7791 * src/roff/troff/env.h (environment): do_divert() is now a friend.
7792 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7794 * doc/groff.texinfo: Fix documentation of `lf' request.
7796 2000-12-25 Werner LEMBERG <wl@gnu.org>
7798 * src/roff/troff/troff.man, NEWS: Document `writem' request.
7800 2000-12-21 Werner LEMBERG <wl@gnu.org>
7802 Ignore `ss' request if in compatibility mode.
7804 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7805 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7806 * src/roff/troff/env.cc (space_size): Use it.
7808 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7809 `ss' request in nroff mode.
7811 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7814 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
7816 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7818 2000-12-13 Werner LEMBERG <wl@gnu.org>
7820 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7821 * src/preproc/eqn/neqn.man: Small fixes and additions.
7823 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
7825 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7828 * src/preproc/eqn/neqn.man: New file.
7830 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7833 * tmac/e.tmac: Add `T&' macro.
7834 Fix `indent cannot be negative' warning.
7835 * tmac/s.tmac: Fix `indent cannot be negative' warning.
7837 2000-12-07 Werner LEMBERG <wl@gnu.org>
7839 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7841 2000-12-06 Werner LEMBERG <wl@gnu.org>
7843 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7846 * MORE.STUFF: Added info about deroff for djgpp.
7848 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7849 documentation of -rcR switch.
7851 2000-12-03 Werner LEMBERG <wl@gnu.org>
7853 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7854 if -rcR=1 (which is now the default in nroff mode), a single, very
7855 long page is created instead of multiple pages: All `ne' and `wh'
7856 requests are put into conditionals; a new macro `an-end' is added to
7857 be called with `em'.
7859 Some other minor cleanups.
7861 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7863 2000-12-02 Werner LEMBERG <wl@gnu.org>
7865 Fixing a bug which prevented hyphenation in words followed
7866 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7868 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7869 Adding possibly_break_line().
7870 * src/roff/troff/env.h (environment): Make possibly_break_line()
7873 Make `\~' usable in .tr request.
7875 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7876 (token): Add stretchable_space().
7877 * src/roff/troff/input.cc (token::next, token::delimiter,
7878 token::description, process_input_stack, do_translate,
7879 add_to_node_list, token::process): Use it.
7880 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7881 for adjusting the space.
7882 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
7883 for stretchable space.
7884 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7885 (make_node): Add code for stretchable space.
7886 * src/roff/troff/env.cc (environment::add_char): Use it.
7887 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7888 (get_copy, token::next, transparent_translate, asciify): Use it.
7890 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7891 doc/groff.texinfo: Updated.
7892 * man/groff.man: Small reorderings.
7894 2000-11-23 Werner LEMBERG <wl@gnu.org>
7897 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7899 * src/roff/troff/input.cc (main): Add `config_macro_path' and
7900 `safer_macro_path' to -M option.
7901 * src/roff/troff/troff.man: Fixes.
7903 2000-11-22 Werner LEMBERG <wl@gnu.org>
7905 Use safer path (except for config files) if -U isn't specified. Add
7906 a special macro path (without home and current directory) for config
7907 files. Add home directory to unsafe path for consistency. Don't
7908 include the home directory in the font path.
7910 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7912 * src/include/macropath.h: Add `config_macrp_path'.
7913 * src/libs/libgroff/fontfile.cc: Fix font path.
7914 * src/roff/troff/input.cc (process_startup_file): Use
7915 `config_macro_path'.
7916 (main): Select unsafe path if -U is given.
7918 * src/preproc/eqn/main.cc (main): Fixing search path for
7920 * src/preproc/eqn/eqn.man: Updated.
7922 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7925 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7926 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7927 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7928 src/devices/grotty/grotty.man: Updated.
7930 * Makefile.in: Fix comments.
7932 2000-11-17 Werner LEMBERG <wl@gnu.org>
7934 * tmac/safer.tmac: Empty file added (again) for compatibility
7936 * tmac/Makefile.sub: Updated.
7938 2000-11-16 Werner LEMBERG <wl@gnu.org>
7940 * src/devices/grodvi/dvi.cc (main),
7941 src/devices/grohtml2/post-html.cc (main),
7942 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7943 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7944 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7945 (main), src/preproc/html2/pre-html.cc (main),
7946 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7947 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7948 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7949 (main), src/utils/hpftodit/hpftodit.cc (main),
7950 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7951 (main), src/utils/lookbib/lookbib.cc (main),
7952 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7953 (main): Use stdout for -v.
7954 * src/roff/groff/groff.cc (run_commands),
7955 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7956 to make direct printing to stdout possible.
7957 * src/roff/groff/pipeline.h: Updated.
7959 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7960 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7961 * src/utils/afmtodit/afmtodit.man: Updated.
7963 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7964 (version): New function.
7966 * src/utils/addftinfo/addftinfo.man: Updated.
7968 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7969 Fixing copyright dates.
7971 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7974 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7977 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7979 2000-11-15 Werner LEMBERG <wl@gnu.org>
7981 In all programs, make -v return immediately with exit status 0 to
7982 be compliant with the GNU standard.
7984 * src/devices/grodvi/dvi.cc (main),
7985 src/devices/grohtml2/post-html.cc (main),
7986 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7987 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7988 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7989 (main), src/preproc/html2/pre-html.cc (main),
7990 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7991 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7992 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7993 (main): Implement it.
7996 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
7997 and postprocessors to the -v option.
7999 * src/roff/grog/grog.pl: Implement -v.
8000 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8001 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8003 * src/roff/nroff/nroff.sh: Implement -v.
8004 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8005 * src/roff/nroff/nroff.man: Updated.
8007 * src/preproc/eqn/main.cc (main): Fix comment typo.
8009 * MORE.STUFF: Added info about djgpp port of grap.
8011 2000-11-14 Werner LEMBERG <wl@gnu.org>
8013 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8014 mode (or rather, implemented non-compatibility mode).
8015 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8017 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8018 replacing it -- we don't find gxditview otherwise.
8019 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8021 * src/preproc/pic/depend: Removed. Unnecessary.
8023 Implemented dummy keyword `solid' in pic for compatibility with
8026 * lex.cc (lookup_keyword): Added `solid'.
8027 * pic.y: Added SOLID with dummy rule.
8028 * pic.cc, pic_tab.h: Regenerated.
8029 * doc/pic.ms: Updated.
8031 2000-11-13 Werner LEMBERG <wl@gnu.org>
8033 For security reasons, don't use the current directory but the home
8034 directory while searching and scanning troffrc and troffrc-end.
8035 Similarly, replace the current directory with the home directory
8038 * Makefile.in (fontpath, tmacpath): Remove current directory.
8040 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8041 two parameters `add_home' and `add_current'.
8042 (search_path::~search_path, search_path::command_line_dir,
8043 search_path::open_file): Remove tests for `dirs' being zero.
8044 * src/include/searchpath.h: Adjust.
8045 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8047 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8049 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8050 * src/roff/troff/input.cc: Use `mac_path', initialized with
8052 (process_startup_file): Set `mac_path' to `safer_macro_path'.
8053 * src/roff/troff/env.cc: Use `mac_path'.
8055 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8057 * NEWS, man/roff.man, src/roff/troff/troff.man,
8058 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8061 2000-11-12 Werner LEMBERG <wl@gnu.org>
8063 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8065 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8066 * configure.in: Fix typo in comment.
8067 * configure: Regenerated.
8069 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8072 2000-11-08 Werner LEMBERG <wl@gnu.org>
8074 Add system tmac directory (/usr/local/lib/groff/site-tmac).
8076 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8077 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8080 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8081 * tmac/Makefile.sub (install_data): Create
8082 $(systemtmacdir) and $(localtmacdir).
8083 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8084 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8085 NEWS, doc/groff.texinfo: Updated and minor fixes.
8087 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8088 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8089 $(systemtmacdir) since the wrapper files are platform-dependent.
8091 2000-11-01 Werner LEMBERG <wl@gnu.org>
8093 * doc/groff.texinfo: Fix typo.
8095 2000-10-26 Werner LEMBERG <wl@gnu.org>
8097 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
8098 tmac.doc.old -> doc-old.tmac
8099 tmac.an.old -> an-old.tmac
8101 * tmac/tmac.*: Moved to ...
8102 * tmac/*.tmac: this.
8103 * tmac/man.local: Fix comment.
8104 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8105 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
8106 Added some `FILES' sections. More use of @...@ directives. Other
8108 * arch/djgpp/README, font/devutf8/NOTES: Updated.
8109 * doc/homepage.ms, doc/groff.texinfo: Updated.
8110 * man/groff.man, man/roff.man: Updated.
8111 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8112 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8113 src/devices/grotty/grotty.man: Updated.
8114 * src/preproc/pic/pic.man: Updated.
8115 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8116 instead of -mdoc.old.
8117 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8118 * src/roff/nroff/nroff.man: Updated.
8121 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8123 * tmac/mm.diff: Removed -- it has no use now since the mm package
8126 * tmac/*: Removed trailing spaces.
8128 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8129 the tmac subdirectory also).
8131 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8132 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8133 stuff since it is no longer needed.
8135 * README, PROBLEMS: Updated.
8137 2000-10-25 Werner LEMBERG <wl@gnu.org>
8139 Invert current behaviour: Search first FOOBAR.tmac, then
8142 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8143 (open_mac_file, macro_source): Implement it.
8144 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8145 doc/groff.texinfo, NEWS: Document it.
8147 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8148 Small documentation improvements.
8150 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8153 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8155 2000-10-24 Werner LEMBERG <wl@gnu.org>
8157 Add local tmac directory (groff/site-tmac).
8159 * Makefile.in: Add $(localtmacdir).
8160 (uninstall_dirs): Add $(localtmacdir).
8161 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8162 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8163 in $(localtmacdir). Create $(localtmacdir).
8164 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8165 Updated and minor fixes.
8167 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8169 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8171 2000-10-23 Werner LEMBERG <wl@gnu.org>
8173 Move hyphen.us to tmac directory.
8175 * src/roff/troff/hyphen.us: Removed.
8176 * src/tmac/hyphen.us: Added.
8177 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8179 Change installation structure for data files from .../groff/... to
8180 .../groff/<version><revision>/... to be conform with other GNU
8183 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8184 doc/Makefile: Implement it.
8185 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8186 * configure: Updated.
8187 * arch/djgpp/README, font/devutf8/NOTES: Use it.
8188 * NEWS: Document it.
8189 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8190 @MACRODIR@ instead of hard-coded directories.
8192 2000-10-22 Werner LEMBERG <wl@gnu.org>
8194 Implement $GROFF_BIN_PATH environment variable (which defaults to
8195 $bindir) used for child programs of groff and similar wrappers.
8197 * gendefs.sh: Improve documentation.
8198 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8199 src/preproc/eqn/Makefile.sub (neqn),
8200 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8201 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8203 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8204 $GROFF_PATH__ (the latter for communication with troff).
8205 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8207 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8208 doc/groff.texinfo: Document it.
8210 * doc/groff.texinfo: Improve documentation of troff's -a option.
8212 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
8214 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8215 non-intrusive eol marker.
8216 (troff_output_file::determine_line_limits): New function.
8217 (troff_output_file::draw): Use it.
8218 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8219 output_pending_lines() instead of output_line().
8220 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8221 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8222 createImage): Small fixes.
8224 2000-10-14 Werner LEMBERG <wl@gnu.org>
8226 Replace tmac.safer with a real secure solution.
8228 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8229 system_request, pipe_output): Disable requests if in safer mode.
8230 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8231 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8232 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8233 doc/groff.texinfo, src/roff/groff/groff.man,
8234 src/roff/troff/troff.man, arch/djgpp/README: Updated.
8236 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8237 (resource_manager::output_prolog): Replace setenv() with putenv().
8239 2000-10-09 Werner LEMBERG <wl@gnu.org>
8241 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8242 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8243 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8244 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8245 compilation errors with some compilers. It seems that this code
8246 is no longer necessary -- if yes, it is easy to add some #ifdef's
8247 for that particular old-fashioned compiler.
8249 * MORE.STUFF: Added info about Meta-tbl.
8251 * doc/groff.texinfo: Added more info about `.if "..."..."'.
8253 2000-10-07 Werner LEMBERG <wl@gnu.org>
8255 Adding a new escape sequence \B'...': If the string between
8256 the delimiters is a valid numeric expression, return the character
8257 `1', and `0' otherwise. This is an analogon to \A.
8259 * src/roff/troff/input.cc (do_expr_test): Implement it.
8260 (token::next): Use it.
8261 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8263 * tmac/tmac.trace: Made independent from escape character.
8265 2000-10-06 Werner LEMBERG <wl@gnu.org>
8267 Adding a new request .dei: define indirect. The first and second
8268 parameter of .dei are taken from string registers instead directly;
8269 this very special request is needed to make tmac.trace independent
8270 from the escape character (which might even be disabled).
8272 * src/roff/troff/input.cc (do_define_macro): Implement it.
8273 (define_macro_indirect): New function.
8274 (init_input_requests): Use it.
8276 Adding two requests .ecs and .ecr: Save and restore the escape
8277 character. These two requests are needed to make tmac.trace
8278 independent from the escape character (which might even be
8281 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8283 (init_input_requests): Use it.
8285 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8287 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
8289 Adding a new option -P and new environment variable GROPS_PROLOGUE
8290 to grops, selecting a different prologue file (minor modifications
8293 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8294 src/devices/grops/ps.cc (main): Implement it.
8295 * src/devices/grops/grops.man, NEWS: Document it.
8297 2000-09-22 Werner LEMBERG <wl@gnu.org>
8299 * INSTALL: Add info about selecting paper format.
8301 2000-09-21 Werner LEMBERG <wl@gnu.org>
8303 * src/roff/troff/input.cc (main): Fixing compiler warning.
8304 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8305 strings.h from the former to the latter.
8306 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8307 stuff from the former to the latter.
8309 2000-09-11 Werner LEMBERG <wl@gnu.org>
8311 Implementing two new requests .tm1 and .tmc: The former is similar
8312 to .tm but can output leading spaces; its syntax is similar to
8313 defining a string, i.e., a `"' can be used to mark the beginning of
8314 the string to be written to stderr: `.tm1 " test'. The latter is
8315 similar to .tm1 but doesn't write out a final newline character.
8317 * src/roff/troff/input.cc (terminal1, terminal_continue,
8318 do_terminal): New functions.
8319 (init_input_requests): Use them.
8320 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8322 2000-09-09 Werner LEMBERG <wl@gnu.org>
8324 * tmac/groff_mdoc.samples.man: Small fixes.
8326 2000-09-08 Werner LEMBERG <wl@gnu.org>
8328 * tmac/groff_mdoc.man: Fixing typo.
8330 2000-09-02 Werner LEMBERG <wl@gnu.org>
8332 Implementing a .nop request which does nothing.
8334 * src/roff/troff/input.cc (nop_request): New function.
8335 (init_input_requests): Use it.
8336 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8338 2000-09-01 Werner LEMBERG <wl@gnu.org>
8340 * doc/groff.texinfo: Added some comments.
8342 2000-08-30 Werner LEMBERG <wl@gnu.org>
8344 * src/roff/troff/TODO: Updated.
8346 2000-08-25 Werner LEMBERG <wl@gnu.org>
8348 * doc/groff.texinfo: Fix comment how to compile the DVI file.
8350 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8352 * font/devps/generate/Makefile (SHELL): Define explicitly to
8353 "/bin/sh", for non-Unix platforms.
8354 (extraclean): Use a more portable "" quoting instead of a
8355 backslash (which doesn't work on DOS/Windows).
8357 * font/devlj4/generate/Makefile (extraclean): Ditto.
8359 * font/devdvi/generate/Makefile (extraclean): Ditto.
8361 2000-08-25 Werner LEMBERG <wl@gnu.org>
8363 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8364 src/roff/troff/troff.man: Document Eli's latest changes.
8366 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8368 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8369 macro file names of the form NAME.tmac as well as tmac.NAME.
8371 2000-08-25 Werner LEMBERG <wl@gnu.org>
8373 * src/include/posix.h: Remove definition of FILENAME_MAX.
8375 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8376 `sys_fatal' and `stop' function().
8378 * test-groff: Updated.
8380 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
8382 Added the new troff command .output <arg> to suppress output (while
8383 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8384 registers (for passing the output dimensions to the output device).
8386 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8388 * src/roff/troff/node.h, src/roff/troff/node.cc
8389 (troff_output_file::really_print_line,
8390 ascii_output_file::really_print_line,
8391 supress_output_file::really_print_line): Use `width' parameter.
8392 (troff_output_file::really_on, troff_output_file::really_off,
8393 output_file::on, output_file::off, real_output_file::on,
8394 real_output_file::off, real_output_file::really_on,
8395 real_output_file::really_off): New functions.
8396 (real_output_file:public output_file): New variable `output_on'.
8397 (real_output_file::begin_page, real_output_file::copy_file,
8398 real_output_file::transparent_char, real_output_file::print_line):
8400 (real_output_file::print_line): Use check_output_limits.
8401 * src/roff/troff/reg.h, src/roff/troff/request.h,
8402 src/roff/troff/input.cc (assign_registers): New function to remove
8404 (do_ps_file): Use it.
8405 (check_output_limits, reset_output_registers, output_request,
8406 init_output_requests): New functions.
8407 (init_input_requests): Updated.
8409 Added new grohtml2 device and html2 preprocessor (coding
8410 not yet finished) which will eventually replace grohtml.
8412 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8414 * src/include/htmlindicate.h, src/include/htmlindicate
8415 (html_begin_suppress, html_end_suppress): New functions.
8416 * src/preproc/tbl/main.cc: Use it.
8417 * src/roff/groff/groff.cc: Add support for html2 device (which will
8418 automatically invoke the html2 preprocessor).
8419 * src/roff/troff/input.cc (is_html2): New variable.
8420 * src/roff/troff/troff.h, src/roff/troff/env.h,
8421 src/roff/troff/env.cc (environment::add_html_tag): New function
8423 (environment::do_break): Use it.
8424 * font/devhtml2/*: New files.
8425 * src/devices/grohtml2: New device.
8426 * src/preproc/html2: New preprocessor.
8427 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8429 2000-08-23 Werner LEMBERG <wl@gnu.org>
8431 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8433 2000-08-22 Werner LEMBERG <wl@gnu.org>
8435 * src/include/lib.h: Provide a fix for IRIX to not include
8438 2000-08-18 Werner LEMBERG <wl@gnu.org>
8440 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8441 since some non-GNU sed programs can't handle null regexps.
8442 * configure, src/preproc/eqn/Makefile.sub,
8443 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8445 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8446 bug (string.h and strings.h are both needed according to latest
8449 * MORE.STUFF: Added info about unroff and troffcvt.
8451 2000-08-08 Werner LEMBERG <wl@gnu.org>
8453 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8456 * tmac/tmac.man.old: Remove unused number register.
8458 * tmac.doc: Minor documentation fix.
8460 2000-08-07 Paul Eggert <eggert@twinsun.com>
8462 * src/roff/groff/pipeline.c (is_system_shell):
8463 Fix typo: "monocased_shell" no longer exists.
8465 2000-08-07 Paul Eggert <eggert@twinsun.com>
8467 Remove FILENAME_MAX limits.
8469 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8470 that the argument length is less than FILENAME_MAX.
8471 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8472 Use struct hack to allocate and free file name.
8473 (struct xtmpfile_list): fname is now part of the structure,
8474 not a pointer to another string.
8476 2000-08-07 Tom Schmidt <tschmidt@micron.com>
8478 * src/include/posix.h: Add a default value for FILENAME_MAX.
8480 2000-08-06 Paul Eggert <eggert@twinsun.com>
8482 Add support for new BSD-style man pages (with ".Dd" instead of
8483 ".TH"), so that "groff -man" understands both styles, even
8484 when running "groff -man" on a host whose system man page
8485 macros don't support ".Dd".
8487 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8488 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8489 in case the system man macros don't define Dd or TH.
8491 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8492 * tmac/tmac.an: New one-line file.
8493 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8495 2000-08-06 Werner LEMBERG <wl@gnu.org>
8497 * src/roff/troff/troff.man: Fixing typos.
8499 Version 1.16.1 released
8500 =======================
8502 2000-07-31 Werner LEMBERG <wl@gnu.org>
8504 Preparing release 1.16.1.
8506 * REVISION: Revision number set to 1.
8507 * MORE.STUFF: Added info about port to DOS.
8508 * NEWS, win32-diffs: Updated.
8510 * src/include/nonposix.h: Remove first line -- this file is used
8513 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8516 2000-07-30 Werner LEMBERG <wl@gnu.org>
8518 * doc/texinfo.tex: Update to latest version.
8520 2000-06-28 Paul Eggert <eggert@twinsun.com>
8522 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8523 commands that fail. Don't assume that "export a=b" is valid shell
8524 syntax. This is needed for Solaris 2.5.1.
8526 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8527 comment about missing Solaris headers.
8529 * PROBLEMS: Add section about problems with Sun Make and VPATH.
8531 2000-06-25 Werner LEMBERG <wl@gnu.org>
8533 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8536 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8538 * win32-diffs: Updated.
8539 * README.WIN32: Added CRs to make all Windows editors happy.
8541 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8542 src/roff/groff/pipeline.c).
8544 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8546 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8547 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8549 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
8551 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8552 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8554 (main): Support non-Posix systems with several different styles of
8555 slash characters in file names.
8557 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8558 (main) [SET_BINARY]: Switch stdin into binary mode.
8560 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8561 (main): Support file names with several possible slash-type
8562 characters, as given by DIR_SEPS[] in nonposix.h.
8563 (main) [__MSDOS__]: If renaming the temporary index file fails
8564 because it has more than one dot in its trunk, replace the dot
8565 with an underscore and try again.
8566 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
8568 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8570 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8571 (File::File): Open the input file in binary mode. Strip CR
8572 characters from each CR-LF pair.
8573 (xbasename): Support file names with several possible slash-type
8574 characters, as given by DIR_SEPS[] in nonposix.h.
8576 * src/include/Makefile.sub (HDRS): Add nonposix.h.
8578 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8579 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8580 [!_POSIX_VERSION]: Define for traditional Unix systems.
8581 (real_output_file::real_output_file): Remove the MSVC-specific
8582 call to popen, use instead POPEN_WT, appropriately defined on
8583 nonposix.h. #include nonposix.h.
8584 (real_output_file::~real_output_file): Remove the MSVC-specific
8585 call to pclose, a suitable macro is now defined on nonposix.h.
8586 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8587 and WEXITSTATUS instead of assuming traditional Unix
8588 interpretation of the status returned by pclose.
8590 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8591 call to popen, use POPEN_RT instead (appropriately defined on
8592 nonposix.h). #include nonposix.h.
8593 (ps_bbox_request): Open the PostScript file in binary mode.
8594 Close the file after processing it.
8595 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8598 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8599 A version of run_pipeline that doesn't use `fork'.
8600 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8601 (system_shell_name, system_shell_dash_c)
8602 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8603 the ugliness of testing DOS/Windows file names for equality, and
8604 support both stock shells and ports of Unix shells.
8606 * src/roff/groff/groff.cc: #include nonposix.h.
8607 (BSHELL): Definition moved to nonposix.h.
8608 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
8609 instead of a literal "-c".
8610 (xbasename): Support file names with several possible slash-type
8611 characters, as given by DIR_SEPS[] in nonposix.h.
8612 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8615 * src/preproc/soelim/soelim.cc: #include nonposix.h.
8616 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8618 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8621 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8623 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8626 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8628 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8629 P_tmpdir is defined, use it instead of the literal "/tmp".
8630 (remove_tmp_files, add_tmp_file): New functions.
8631 (xtmpfile): Record temporary files and register an atexit function
8632 to delete them explicitly, instead of relying on the OS to do
8633 that, which doesn't work on non-Unix systems.
8635 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8636 (search_path::search_path): Use PATH_SEP instead of a literal
8638 (search_path::command_line_dir): Ditto.
8639 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8640 to support non-Posix systems.
8642 * src/libs/libbib/search.cc: #include nonposix.h.
8643 (search_list::add_file): Open the file in binary mode.
8645 * src/libs/libbib/linear.cc: #include nonposix.h.
8646 (file_buffer::load): Remove \r characters preceding \n from the
8649 * src/libs/libbib/index.cc: #include nonposix.h.
8650 (make_index_search_item): Open index_filename in O_BINARY mode.
8651 (index_search_item_iterator::get_tag): Ditto. Remove \r
8652 characters before \n characters.
8653 (index_search_item::check_files): Open files in binary mode.
8654 (index_search_item::munge_filename): Support DOS-style file names
8655 with backslashes and drive letters, use IS_ABSOLUTE.
8657 * src/devices/grops/ps.cc: #include nonposix.h.
8658 (main) [SET_BINARY]: Switch stdout to binary mode.
8660 * src/devices/grolj4/lj4.cc: #include nonposix.h.
8661 (main) [SET_BINARY]: Switch stdout to binary mode.
8663 * src/devices/grolbp/lbp.cc: #include nonposix.h
8664 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8666 * src/devices/grodvi/dvi.cc: #include nonposix.h.
8667 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8669 (main) [SET_BINARY]: Switch stdout to binary mode.
8670 [_MSC_VER]: Remove an explicit call to _setmode.
8672 * src/include/nonposix.h: New file.
8674 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8675 operation when building with DJGPP.
8676 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8677 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8680 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8682 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8683 etc. can include a semi-colon on DOS/Windows.
8684 (depend.temp): Use depend1.temp instead of depend.temp1, to
8685 prevent files from overerwiting each other on 8+3 filesystems.
8687 * gendef.sh (t): Change definition to work with DOS/Windows.
8689 doc/groff.texinfo: Apart of some typo corrections, I also changed
8690 some index entris, to make them more non-ambiguous, and also put
8691 @ignore around some parts that are not yet written, to allow the
8692 Info output be readable.
8694 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
8696 Replaced specific checks for function declarations with a generic
8697 routine taken from GNU bfd.
8699 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8700 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8701 * configure.in: Use it.
8702 * src/devices/grolbp/lbp.cc, src/include/lib.h,
8703 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8704 src/roff/groff/groff.cc: Use it.
8705 * Makefile.in, configure: Updated.
8707 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
8709 * src/devides/grolbp/lbp.h: Removed unused variables.
8711 2000-05-31 Keith Thompson <kst@sdsc.edu>
8713 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8716 2000-05-31 Werner LEMBERG <wl@gnu.org>
8718 * aclocal.m4 (GROFF_SRAND): New function to test the return value
8719 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8720 * configure.in: Use it.
8721 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8722 * configure, Makefile.in: Updated.
8724 * configure.in: Add test for strncasecmp().
8725 * src/include/lib.h: Use it.
8727 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8729 * src/preproc/grn/Makefile.sub: Add MLIB.
8731 2000-05-29 Nix <nix@esperi.demon.co.uk>
8733 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8735 2000-05-29 Werner LEMBERG <wl@gnu.org>
8737 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8739 * PROBLEMS: Small update.
8741 * src/devices/grolbp/lbp.cc: Various small fixes.
8743 2000-05-28 Keith Thompson <kst@sdsc.edu>
8745 * src/roff/nroff/nroff.sh: Fix main loop syntax.
8747 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8749 2000-05-25 Werner LEMBERG <wl@gnu.org>
8751 * man/roff.man: Removed unused macro.
8753 2000-05-24 Werner LEMBERG <wl@gnu.org>
8755 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
8756 This is needed e.g. if you do
8757 `make distclean; ./configure; make dist'.
8759 Version 1.16 released
8760 =====================
8762 2000-05-23 Werner LEMBERG <wl@gnu.org>
8764 Adding font CWI (constant width italic) to devdvi.
8766 * font/devdvi/CWI: New file.
8767 * font/devdvi/generate/Makefile: Add generating rule.
8768 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8769 tmac/tmac.dvi: Use it.
8770 * NEWS: Announce it.
8772 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8773 * font/devlj4/generate/Makefile: Cosmetic changes only.
8775 * man/groff.man: Removed most of the redundant description of
8776 special characters (which is in groff_char.man). Added font
8777 translation CB->CR for devdvi. Other minor fixes.
8779 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8780 (registered) symbols.
8782 2000-05-22 Werner LEMBERG <wl@gnu.org>
8784 * doc/Makefile: Added rule for creating info files.
8786 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
8788 * font/devdvi/generate/Makefile: Fixed dependencies.
8790 * font/devps/*: Regenerated. Heavy changes for Bookman and
8791 NewCentury Schoolbook!
8792 * font/devps/generate/afmname: Will now run with GNU awk.
8793 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8794 * font/devps/generate/Makefile: Cosmetic changes only.
8796 2000-05-21 Werner LEMBERG <wl@gnu.org>
8798 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8799 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
8800 `.SS' now produces a heading with a smaller size than `.SH'.
8801 Completely formatted.
8802 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8804 * man/groff.man: Improved table appearance. Use of `eo' request
8805 to reduce number of doubled backslashes in macro definitions.
8806 Replacing `\e' with `\(rs'. Other minor fixes.
8808 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8809 to have correct line number.
8811 * INSTALL: Small improvement.
8813 2000-05-20 Bernd Warken <bwarken@mayn.de>
8815 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8818 2000-05-19 Bernd Warken <bwarken@mayn.de>
8820 * man/groff.man: Complete update (with a lot of corrections by WL).
8822 2000-05-18 Werner LEMBERG <wl@gnu.org>
8824 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8826 * font/*/*: Implement it.
8827 * man/groff_char.man, NEWS: Document it.
8829 * src/include/unix.h: Removed. It isn't used.
8831 * doc/groff.texinfo: Slight improvements.
8833 2000-05-17 Werner LEMBERG <wl@gnu.org>
8835 * README, win32-diffs: Small fixes and improvements.
8837 2000-05-16 Werner LEMBERG <wl@gnu.org>
8839 * FDL: New file (the Free Documentation License version 1.1).
8841 * doc/groff.texinfo: Added many start-up values for gtroff.
8842 Some structural improvements of the source code.
8844 2000-05-15 Werner LEMBERG <wl@gnu.org>
8846 * src/roff/troff/input.cc: Added small comment about troffrc-end.
8847 * src/roff/troff/troff.man: Added info about troffrc-end.
8849 2000-05-14 Werner LEMBERG <wl@gnu.org>
8851 * Makefile.in (EXTRADIRS): Fix typos.
8852 (dist): Handle deletion of old .tar.gz file correctly.
8853 (DISTDIRS): Include all tty output devices.
8855 * doc/groff.texinfo: Adding more cross references; countless other
8858 2000-05-13 Werner LEMBERG <wl@gnu.org>
8860 * MORE.STUFF: Added Robert Marks's utilities.
8862 2000-05-12 Werner LEMBERG <wl@gnu.org>
8864 Added win32 port contributed by Blake McBride
8865 <blake@florida-software.com>.
8867 * README.WIN32, win32-diffs: New files.
8870 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8871 (tmove, tmove2): Added parentheses to avoid compiler warnings.
8872 (change): Removed unused variables.
8874 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8875 (savebounds): Changed return value from `int' to `void'.
8876 * src/preproc/grn/hdb.cc: Ditto.
8878 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8879 final backslash in comment to avoid compiler warning.
8881 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8883 * doc/groff.texinfo: More fixes.
8885 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
8887 * tmac/tmac.doc: Documentation fix.
8889 2000-05-11 Werner LEMBERG <wl@gnu.org>
8891 * doc/groff.texinfo: Reading the source code shows up a lot of
8892 omissions and incorrect data... More conversion to @Deffn macros.
8894 2000-05-10 Werner LEMBERG <wl@gnu.org>
8896 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8899 * src/roff/troff/request.h: Removing unused `no_break_flag'.
8901 2000-05-09 Werner LEMBERG <wl@gnu.org>
8903 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8906 * doc/groff.texinfo: Extended history section. More conversion to
8907 @Deffn macros. More .tr documentation.
8909 2000-05-07 Werner LEMBERG <wl@gnu.org>
8911 * doc/groff.texinfo: Completed tab section. Added info about
8914 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
8916 * PROBLEMS: Describe configure script fix for OS/390 Unix.
8918 2000-05-05 Werner LEMBERG <wl@gnu.org>
8920 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8922 * NEWS: Document it.
8924 * man/troff.man: Minor optical improvements.
8926 2000-05-03 Werner LEMBERG <wl@gnu.org>
8928 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8930 * font/*/*: Implement it.
8931 * man/groff_char.man, NEWS: Document it.
8933 2000-05-02 Werner LEMBERG <wl@gnu.org>
8935 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8937 * NEWS: Document the three new man pages.
8939 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8940 * configure: Updated.
8942 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8944 2000-05-01 Werner LEMBERG <wl@gnu.org>
8946 Added grap support to grog.
8948 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8949 * src/roff/grog/grog.man: Document it.
8951 * doc/groff.texinfo, NEWS: Add info about grap support.
8953 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8954 (with slight fixes by me).
8956 * tmac/groff_tmac.man: New file documenting tmac mechanism.
8957 * tmac/Makefile.sub: Add groff_tmac.man.
8958 * man/roff.man: New file giving overview of roff system.
8959 * man/troff.man: A short reference of troff.
8960 * man/Makefile.sub: Add roff.man and troff.man.
8962 2000-04-30 Werner LEMBERG <wl@gnu.org>
8964 Added grap support to groff.
8966 * src/roff/groff/groff.cc: Implement it.
8967 * src/roff/groff/groff.man: Document it.
8969 * src/devices/grotty/grotty.man: Add cp1047 device.
8970 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8972 * src/roff/groff/groff.man: Ditto.
8973 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8974 * doc/groff.texinfo: Ditto.
8976 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8979 2000-04-29 Werner LEMBERG <wl@gnu.org>
8981 * man/groff_char.man: Add `pc' glyph.
8982 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8983 * tmac/tmac.tty: Add `pc' glyph.
8984 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
8985 we use cp1047 output device.
8987 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8988 there are still hardcoded latin1->unicode values in utf8's font
8990 * configure: Updated.
8991 * NEWS: Minor clarification. Updated.
8993 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
8996 2000-04-28 Werner LEMBERG <wl@gnu.org>
8998 Adding EBCDIC code page 1047.
9000 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9001 font/devcp1047/DESC.proto: New files.
9003 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9004 either ascii/latin1 or cp1047.
9005 * Makefile.in: Use it.
9006 * configure: Updated.
9008 Replacing and/or adding `md' (mathdot) glyph with `pc'
9009 (periodcentered) in all text fonts.
9011 * font/*/*: Change it.
9013 2000-04-27 Werner LEMBERG <wl@gnu.org>
9015 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9017 * configure.in: Add check for strings.h.
9018 * src/include/driver.h: Use HAVE_STRINGS_H.
9019 * src/devices/grolbp/lpb.cc: Remove string.h.
9021 * src/include/groff-getopt.h: New file. It will be used instead of
9022 getopt.h (to be included in lib.h) to avoid endless problems with
9023 picky C++ compilers.
9024 * src/include/lib.h: Use groff-getopt.h.
9025 * src/include/Makefile.sub: Updated.
9027 * configure: Updated.
9028 * Makefile.in: Updated.
9030 * NEWS: Mention EBCDIC support.
9032 2000-04-26 Werner LEMBERG <wl@gnu.org>
9034 * TODO: Some additions.
9036 2000-04-25 Werner LEMBERG <wl@gnu.org>
9038 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9041 2000-04-23 Werner LEMBERG <wl@gnu.org>
9043 * src/roff/troff/troff.man: Minor fixes.
9045 2000-04-22 Werner LEMBERG <wl@gnu.org>
9047 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9048 `.T' string register and the incompatible definition of the `.T'
9049 number register (compared to Unix troff).
9051 * man/groff_char.man: Add some missing characters.
9052 * font/devutf8/NOTES: Update.
9054 2000-04-21 Werner LEMBERG <wl@gnu.org>
9056 * src/include/htmlindicate.h, src/include/lib.h,
9057 src/include/posix.h: Fix copyright.
9059 * src/include/Makefile.sub: Update.
9061 2000-04-20 Werner LEMBERG <wl@gnu.org>
9063 * src/roff/troff/input.cc (input_char_description): Removing
9064 superfluous space char.
9066 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9068 * doc/groff.texinfo: Document EBCDIC.
9070 2000-04-19 Werner LEMBERG <wl@gnu.org>
9072 Introducing `shc' as the glyph name for the soft hyphen character.
9074 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9075 font/devlatin1/R.proto: Use it.
9079 2000-04-18 Werner LEMBERG <wl@gnu.org>
9081 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9082 dependency on ASCII order.
9084 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
9086 * src/libs/libgroff/illegal.c: Added EBCDIC table.
9087 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9089 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9090 to increase portability.
9092 2000-04-15 Werner LEMBERG <wl@gnu.org>
9094 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9095 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9096 the generic `\n' if under OS/390 Unix.
9098 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9100 * configure: Regenerated.
9102 2000-04-14 Werner LEMBERG <wl@gnu.org>
9104 * doc/groff.texinfo: More conversions to @Deffn.
9106 2000-04-12 Werner LEMBERG <wl@gnu.org>
9108 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9111 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9113 2000-04-10 Werner LEMBERG <wl@gnu.org>
9115 * doc/groff.texinfo: More conversions to @Deffn.
9117 2000-04-08 Werner LEMBERG <wl@gnu.org>
9119 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9120 Updated to latest version (glibc 2.1.3).
9122 2000-04-07 Werner LEMBERG <wl@gnu.org>
9124 * doc/Makefile (clean): Include more index files.
9125 Add rule texinfo->dvi.
9127 2000-04-05 Werner LEMBERG <wl@gnu.org>
9129 * doc/groff.texinfo: Added new index `op' for operators. More
9130 info on end of sentence characters. More use of @Deffn.
9132 2000-03-30 Werner LEMBERG <wl@gnu.org>
9134 * */*.man: Adding a note that a whitespace can be inserted between
9135 a command line option and its parameter -- we are using GNU getopt.
9137 * src/roff/groff/groff.man: Add example of `-m mandoc'.
9139 2000-03-28 Werner LEMBERG <wl@gnu.org>
9141 Correct anachronism of calling the man macro file with `-man'
9142 instead of `-m man' etc.
9144 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9145 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9146 load tmac.<package>.
9148 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
9152 * doc/groff.texinfo: Updated.
9154 * tmac/groff_man.man: Copyright added.
9156 2000-03-27 Werner LEMBERG <wl@gnu.org>
9158 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9159 typeset the request resp. escape name with a tt font -- due to a
9160 bug in texinfo.tex it is necessary to use the `-e' switch with
9163 Improving info about usage of groff units.
9167 2000-03-20 Werner LEMBERG <wl@gnu.org>
9169 * doc/groff.texinfo: Added section about man macro package
9170 (I've basically taken groff_man.man). Introducing new indices `ma'
9171 for macros/strings and `gl' for glyph names. Other minor fixes.
9173 * tmac/groff_man.man: Fixed some typos.
9175 2000-03-19 Werner LEMBERG <wl@gnu.org>
9177 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9180 * doc/texinfo.tex: New file.
9182 2000-03-18 Werner LEMBERG <wl@gnu.org>
9184 * doc/groff.texinfo: Improved section on number registers. Other
9187 2000-03-16 Werner LEMBERG <wl@gnu.org>
9189 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
9192 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9193 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9194 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9195 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9197 * src/preproc/grn/grn.man: Better synopsis; added copyright.
9199 * src/roff/grog/grog.man: Updated copyright date.
9201 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
9203 * configure.in: Added test for strdup.
9205 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9208 Replaced dynamic allocation of arrays `[...]' with `new' operator.
9212 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
9214 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9216 2000-03-11 Werner LEMBERG <wl@gnu.org>
9218 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9220 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9221 * src/include/lib.h: Remove some spaces.
9223 2000-03-10 Werner LEMBERG <wl@gnu.org>
9225 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9226 initializers from arguments (some compilers don't like this).
9228 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
9230 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9231 used by pic and eqn to tell grohtml where the graphic regions start
9233 * src/libs/libgroff/Makefile.sub: Use it.
9234 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9235 graphic_start() and graphic_end() from htmlindicate.cc.
9237 2000-03-09 Werner LEMBERG <wl@gnu.org>
9239 * tmac/tmac.safer: Will now work correctly in compatibility mode.
9240 * tmac/groff_man.man: More fixes.
9242 2000-03-08 Werner LEMBERG <wl@gnu.org>
9244 * doc/Makefile: Added texput.log to the `clean' target.
9245 * doc/groff.texinfo: Added info about delimiters for escapes.
9247 2000-03-08 Bernd Warken <bwarken@mayn.de>
9249 * src/preproc/pic/pic.man: Add info on conversion of pic images to
9250 other graphic formats.
9252 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
9254 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9255 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9256 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9259 2000-03-07 Werner LEMBERG <wl@gnu.org>
9261 * doc/groff.texinfo: Spelling fixes.
9263 2000-03-06 Werner LEMBERG <wl@gnu.org>
9265 * tmac/groff_man.man: Completely revised to cover everything in
9268 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9269 Other minor fixings.
9270 * src/roff/troff/env.cc (environment_copy): Improve error message and
9272 * src/roff/troff/TODO: Updated.
9274 * doc/Makefile: Bug fixes -- this is still provisional, though...
9276 * tmac/eqnrc: Small fixes.
9278 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
9280 Adding a request `evc' to copy environments.
9282 * src/roff/troff/env.cc (environment::copy, environment_copy):
9284 * src/roff/troff/env.h: Add prototype.
9286 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
9288 Adding strsep() -- Solaris 8 doesn't have it.
9290 * configure.in: Test it.
9291 * src/devices/grolbp/lbp.cc: Add code.
9293 2000-03-05 Werner LEMBERG <wl@gnu.org>
9295 * src/roff/troff/div.cc (macro_diversion::output,
9296 top_level_diversion::output): Fixing an incompatibility with
9297 original troff: \x'0' updates the .a register also. Thanks to
9298 <Andries.Brouwer@cwi.nl> for pointing this out.
9299 * doc/groff.texinfo: Document it.
9301 * Makefile.in: Create Makefile.dep if necessary before calling the
9302 submake process to avoid warning about nonexistent file.
9304 * NEWS, PROJECTS: Updated.
9306 2000-03-04 Werner LEMBERG <wl@gnu.org>
9308 * tmac/troffrc: Add tmac.lbp.
9310 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
9312 * tmac/tmac.lbp: New file.
9313 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9316 2000-03-03 Werner LEMBERG <wl@gnu.org>
9318 * Makefile.in: Fixing $(subdir).
9320 * README, NEWS: Small fixes.
9322 * test-groff: Adding path to grolbp.
9324 * configure.in: The (new) file src/xditview/Imakefile.in will be
9325 also configured -- it is now possible to build gxditview in a
9326 directory different from $srcdir.
9328 2000-03-02 Blake McBride <blake@florida-software.com>
9330 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9332 * MORE.STUFF: Added website of bell labs and info about plot2dev.
9334 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
9336 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9339 2000-02-29 Werner LEMBERG <wl@gnu.org>
9341 Adding GNU getopt to the groff distribution.
9343 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9345 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9346 * aclocal.a4: Remove GROFF_GETOPT function.
9347 * configure.in, Makefile.in, PROBLEMS: Update.
9348 * src/include/lib.h: Replace getopt tests with getopt.h.
9349 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9351 * doc/groff.texinfo: Further checking/updating. Adding more index
9354 * man/groff_out.man: Fix nroff mode activation (for emacs).
9355 * man/groff_font.man: Add missing ligature.
9357 2000-02-28 Werner LEMBERG <wl@gnu.org>
9359 * doc/groff.texinfo: Further checking/updating. Adding more index
9362 * src/devices/grolbp/grolbp.man: Added a comment line at the
9363 beginning of the file (similar to shell scripts) which indicates
9364 that `tbl' should be used as a preprocessor.
9366 2000-02-27 Blake McBride <blake@florida-software.com>
9368 Adapting groff to MS Visual C++ 6.0 compiler (tested with
9369 Windows NT 4.0). Uses _MSC_VER define where necessary.
9371 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9372 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9373 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9374 src/include/lib.h, src/libs/libgroff/errarg.cc,
9375 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9376 src/preproc/refer/label.y, src/preproc/refer/label.cc,
9377 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9378 src/roff/troff/div.cc, src/roff/troff/env.cc,
9379 src/roff/troff/input.cc, src/roff/troff/node.cc,
9380 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9381 if_to_a() to avoid name clashes.
9382 * src/include/posix.h: Don't use unistd.h.
9383 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9384 clause for integrating non-Unix xtmpfile() code.
9385 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9386 structure; use "rt" for popen() in pipe_source(); add getpid()
9388 * src/roff/troff/node.cc: Use special versions of popen() in
9389 real_output_file() and pclose() in ~real_output_file().
9391 2000-02-27 Werner LEMBERG <wl@gnu.org>
9393 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9394 LBP-8 series laser printers). This code has been contributed by
9395 Francisco Andrés Verdú <pandres@dragonet.es>.
9397 * src/devices/grolbp/*: The grolbp output device.
9398 * font/devlpb/*: The font description files.
9399 * Makefile.in: Add grolpb and devlbp subdirectories.
9401 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9402 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9405 * doc/groff.texinfo: Further checking/updating. Adding more index
9410 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9412 * man/groff_font.man: Adding info about obsolete DESC keywords.
9413 * src/devices/grolj4/grolj4.man: Documenting additional DESC
9416 2000-02-26 Werner LEMBERG <wl@gnu.org>
9418 * src/preproc/grn/grn.man: Added info about the gremlin file format
9419 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9421 2000-02-25 Werner LEMBERG <wl@gnu.org>
9423 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9424 friends to be non-integer.
9426 * src/preproc/grn/grn.man: Document it.
9428 * doc/groff.texinfo: Further checking/updating. Adding more index
9431 2000-02-24 Werner LEMBERG <wl@gnu.org>
9433 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9434 line thicknesses to be integer multiples of this value.
9436 * src/preproc/grn/grn.man: Commenting out the -s option -- the
9437 corresponding code doesn't work (yet).
9439 * doc/groff.texinfo: Further checking/updating. Adding more index
9442 2000-02-23 Werner LEMBERG <wl@gnu.org>
9444 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9445 specify line thickness instead of base units. The new default
9446 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9447 thick lines respectively.
9449 Removed unused variable `prevval'.
9451 * src/preproc/grn/grn.man: Updated.
9453 2000-02-22 Werner LEMBERG <wl@gnu.org>
9455 * src/preproc/grn/main.cc: Slight formatting.
9457 * src/roff/groff/groff.man: Formatting fix.
9458 * src/preproc/grn/grn.man: Ditto.
9460 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9462 * doc/groff.texinfo: Further checking/updating.
9464 2000-02-21 Werner LEMBERG <wl@gnu.org>
9466 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9468 * test-groff: Added grn subdir to path.
9470 * doc/groff.texinfo: Some restructing and other small improvements.
9472 * src/roff/groff/groff.cc (help): Fixed info string.
9474 2000-02-20 Werner LEMBERG <wl@gnu.org>
9476 * doc/meref.me: Fix description of .GS request.
9478 * src/roff/troff/troff.man: Fixing typo.
9480 Adding the `grn' preprocessor for gremlin graphic files.
9482 * src/preproc/grn/*: This is the Berkeley distribution written by
9483 David Slattengren and Barry Roitblat, adapted to groff by Daniel
9484 Senderowicz and Werner Lemberg.
9486 * doc/grnexampl.{me,g}: A sample for grn.
9488 * Makefile.in: Added subdirectory entry for grn.
9490 * src/roff/groff/groff.cc: Added support for grn. It can be now
9491 called with the switch `-g'.
9493 * src/roff/groff/groff.man: Updated.
9495 * src/roff/grog/grog.{man,pl,sh}: Updated.
9499 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
9501 * src/include/lib.h: Added xtmptemplate and made xtmpfile
9502 parametrically polymorphic.
9504 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9505 and the alterations to xtmpfile.
9506 xtmpfile can be requested to return the filename created
9507 and asked not to unlink the temp file. The default behaviour
9508 if parameters are absent is exactly the same as before.
9510 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
9512 A new request `length' is available which returns the length of a
9513 string in a number register:
9515 * src/roff/troff/input.cc (length_macro): Implement it.
9516 * src/roff/troff/input.cc (init_input_requests): Register it.
9518 2000-02-11 Werner LEMBERG <wl@gnu.org>
9520 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9521 of the `substring' request.
9523 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9526 * src/roff/troff/TODO, NEWS: Updated.
9528 2000-02-09 Werner LEMBERG <wl@gnu.org>
9530 * src/roff/groff/groff.man: Added an example.
9532 2000-02-06 Werner LEMBERG <wl@gnu.org>
9534 I've considerably modified the directory structure of the
9535 distribution to get a more vertical layout. For example, the number
9536 of top level directories has been reduced from 42 to 6.
9538 As a consequence, many changes, especially to the makefiles, were
9541 * The makefile variables `top_builddir' and `top_srcdir' have been
9542 introduced. Virtually all relative paths have been replaced with
9543 absolute ones using these two variables.
9545 * Dependencies (in the files `Makefile.dep') are no longer part of
9546 the distribution. Instead, they are created during a `make install'
9547 in the build directory.
9549 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9550 make `top_srcdir' and `top_builddir' absolute.
9554 * Man pages now depend on the files `VERSION' and `REVISION'.
9556 * The added shell script `mkinstalldirs' will replace `mkdir' in
9559 * VERSION: Version number increased to 1.16.
9561 2000-02-04 Werner LEMBERG <wl@gnu.org>
9563 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9565 * Makefile.in: Removed $(tmac_m) since it is no longer needed
9566 (after an update of the mm stuff).
9568 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9570 2000-02-03 Werner LEMBERG <wl@gnu.org>
9572 The .psbb request will now also accept Mac PS images (i.e. using LF
9573 as the EOL character).
9575 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9576 (with slight modifications).
9577 * troff/input.cc (do_ps_file): Use it.
9579 * test-groff: Add grohtml and grolj4 output devices to PATH.
9581 2000-01-30 Werner LEMBERG <wl@gnu.org>
9583 * NEWS, MORE.STUFF: Updated.
9585 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
9587 Add the `srand' command to pic.
9589 * pic/lex.cc, pic/pic.y: Implement it.
9590 * pic/pic.man: Document it.
9591 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9593 2000-01-30 Werner LEMBERG <wl@gnu.org>
9595 Add a new request `.psbb'. This does exactly what the external
9596 program psbb did. It scans a PostScript image file for a
9597 %%BoundingBox comment and extracts the bounding box values (in
9598 PostScript units) which are then stored in the four new (read-only)
9599 number registers `llx', `lly', `urx', and `ury'.
9601 This will allow the usage of the .PSPIC macro without worrying
9602 about unsafe behaviour of groff, i.e., it will work without the
9603 `-U' switch of groff.
9605 * troff/input.cc: Implement it.
9606 * tmac/tmac.pspic: Use it.
9607 * troff/troff.man, grops/grops.man, NEWS: Document it.
9608 * psbb/*, Makefile.in: Remove it since it is no longer needed.
9610 This is bloody C code simply adapted from psbb.c! Any improvements
9613 2000-01-29 Werner LEMBERG <wl@gnu.org>
9615 * man/groff_font.man: Minor clarifications.
9619 2000-01-28 Werner LEMBERG <wl@gnu.org>
9621 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9623 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
9625 * man/groff_font.man: Brought up to date regarding tcommand
9627 * libgroff/font.cc: Handle everything after `--' as a comment
9629 * devps/*: Added comment delimiter inside devps font files.
9631 2000-01-28 Werner LEMBERG <wl@gnu.org>
9633 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9634 \fC...\fP (which now works as expected).
9636 * troff/troff.man: Fix typo.
9638 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
9640 Completed the pass_filenames implementation in troff.
9642 * libdriver/input.cc: Will read the new `F' tcommand.
9643 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9644 * troff/input.cc: Use it.
9646 2000-01-26 Werner LEMBERG <wl@gnu.org>
9648 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
9649 font will now be updated even if an invalid font is selected.
9651 2000-01-24 Werner LEMBERG <wl@gnu.org>
9653 * doc/homepage.ms: Updated for new tmac.arkup.
9655 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9657 * tmac/tmac.arkup: Cleanup.
9659 Added `\&' to .HTML macro to `leave vertical mode', so to say.
9661 Removed obsolete .LINK macro completely.
9663 The macros .URL, .FTP, and .MAILTO now accept a third argument which
9664 will be immediately appended to the second argument (to be used with
9665 punctuation, for example).
9667 Disabled .CDFTP macro temporarily for security reasons.
9669 * tmac/groff_markup.man: Complete revision for latest changes in
9670 tmac.arkup -- note that it does not yet format correctly with
9673 2000-01-23 Bruno Haible <haible@clisp.cons.org>
9675 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9676 * devutf8/R.proto: Add mappings for wp, lh, rh.
9677 * devutf8/NOTES: Updated.
9679 2000-01-23 Werner LEMBERG <wl@gnu.org>
9681 * doc/groff.texinfo: Updated version/copyright info.
9683 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
9685 Added support for two new directives in device descriptions:
9686 `pass_filenames' (to pass the input file name to the output device)
9687 and `use_charnames_in_special' (to support e.g. accented characters
9688 in the `X' request).
9690 * include/font.h, troff/charinfo.h: Declare it.
9692 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9694 * devhtml/DESC: Use it.
9696 * troff/input.cc: New function encoded_char.
9698 * troff/token.h: Add test for `specialness'.
9700 2000-01-21 Werner LEMBERG <wl@gnu.org>
9702 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9703 mistake from the list of files to be installed.
9705 2000-01-18 Werner LEMBERG <wl@gnu.org>
9707 * README: Added info how to apply patches.
9709 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
9711 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
9713 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
9715 * troff/input.cc: Add support for troffrc-end.
9717 * tbl/main.cc: Altered to issue table-start and table-end special
9718 characters if using the html device.
9720 * devhtml/*: Modified font files to incorporate html encoding of
9723 * tmac/groff_markup.man: New file documenting tmac.arkup.
9725 * tmac/troffrc-end: New file. This is invoked after all user
9726 specified macros. Currently used by the html device to include
9727 tmac.html. Thus no need for users to specify -mhtml anymore.
9729 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9730 (MAN7): Add groff_markup.man.
9732 * tmac/tmac.an, tmac/tmac.html: Small html updates.
9734 * tmac/troffrc: tmac.arkup will now be called for the html device.
9736 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9737 extra device specific information about fonts.
9739 * doc/homepage.ms: New file. It is an example how an HTML home page
9740 could look like with grohtml.
9742 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
9744 2000-01-12 Bruno Haible <haible@clisp.cons.org>
9746 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
9749 * devutf8/NOTES: Updated.
9751 2000-01-08 Bruno Haible <haible@clisp.cons.org>
9753 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9754 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9755 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9756 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9757 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9758 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9759 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9760 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9763 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9765 2000-01-12 Fabrizio Polacco <fab@prosa.it>
9767 grolj4: Paper size will be searched case-insensitively.
9769 * include/lib.h: Add check for strcasecmp().
9770 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9771 * configure.in: Check for strcasecmp().
9773 2000-01-11 Werner LEMBERG <wl@gnu.org>
9775 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9778 2000-01-10 Werner LEMBERG <wl@gnu.org>
9780 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9783 Add a new read-only register, `.Y', which contains the groff
9786 * troff/input.cc (init_input_requests): Define it.
9787 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9788 * doc/groff.texinfo, troff/troff.man: Document it.
9790 * libgroff/Makefile.sub (version.cc): Add definition of
9791 `Version_string[]', consisting of `<major>.<minor>.<revision>'
9792 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9793 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9794 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9795 troff/input.cc, pfbtops/pfbtops.c: Use it.
9797 2000-01-10 Fabrizio Polacco <fab@prosa.it>
9799 Add a revision scheme to the groff package.
9801 * REVISION: New file.
9802 * libgroff/Makefile.sub (version.cc): Use it to define
9803 `revision_string[]'.
9804 * grops/psrm.cc: Use revision_string (converted to an unsigned
9805 integer) in constructor of resource_manager.
9807 2000-01-10 Bruno Haible <haible@clisp.cons.org>
9809 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9811 * Makefile.in (DEVDIRS): Add devutf8.
9812 * grotty/tty.cc: Include device.h.
9813 (glyph): Change type of `code' to `unsigned int'.
9814 (tty_printer): New field is_utf8. Constructor takes device argument.
9815 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9816 (tty_printer::add_char): Change type of first arg to `unsigned int'.
9817 (tty_printer::put_char): New function.
9818 (tty_printer::end_page): Use put_char() instead of ::putchar().
9819 (make_printer): Pass device to tty_printer constructor.
9820 * nroff.sh: Determine default device by calling 'locale'. As a
9821 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9822 Recognize UTF-8 locales.
9823 * tmac/eqnrc: Recognize utf8 like latin1.
9824 * tmac/troffrc: Device utf8 needs tmac.tty.
9826 2000-01-07 Werner LEMBERG <wl@gnu.org>
9828 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9830 2000-01-07 Paul Eggert <eggert@twinsun.com>
9832 Add a new predefined writeable number register, `year',
9833 which contains the current year.
9835 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9836 * tmac/tmac.s: Use it.
9837 * troff/input.cc (init_registers): Initialize it.
9839 2000-01-06 Werner LEMBERG <wl@gnu.org>
9841 * PROBLEMS: Fixed typo.
9843 2000-01-04 Paul Eggert <eggert@twinsun.com>
9845 * PROBLEMS: Add Y2k advice for the yr number register.
9847 2000-01-03 Paul Eggert <eggert@twinsun.com>
9849 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9851 2000-01-02 Werner LEMBERG <wl@gnu.org>
9853 * tmac/tmac.arkup: Slight modification of macros to provide better
9854 appearance for non-HTML formats.
9856 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
9858 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9859 does not automatically translate to malloc(n) on all OSes
9860 (e.g., SunOS) so do it explicitly. Also, check the returned
9863 2000-01-01 Werner LEMBERG <wl@gnu.org>
9865 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
9867 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9868 expects this variable
9870 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
9872 * doc/Makefile: Added instructions to create HTML and text
9873 versions of some files.
9875 1999-12-31 Werner LEMBERG <wl@gnu.org>
9877 * Updated INSTALL.gen.
9879 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9880 better resp. correctly with non-HTML devices.
9882 Version 1.15 released
9883 =====================
9885 1999-12-28 Werner LEMBERG <wl@gnu.org>
9887 * NEWS, VERSION: Changed to 1.15
9889 1999-12-27 Paul Eggert <eggert@twinsun.com>
9891 * nroff/nroff.man: -S is safer, not safe.
9893 * groff/groff.cc (main): Use `safer', not `safe', in variable
9894 names. This does not change the behavior.
9896 * troff/input.cc (main): Likewise.
9898 * nroff/nroff.sh: Likewise.
9900 * troff/input.cc (prepend_string): New function.
9901 (main): Prepend -msafer, so that we check macro libraries for
9904 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9906 Version 1.14 released
9907 =====================
9909 1999-12-26 Werner LEMBERG <wl@gnu.org>
9911 * NEWS, VERSION: Changed to 1.14.
9913 1999-12-24 Werner LEMBERG <wl@gnu.org>
9915 * refer/refer.cc: Fixing the last fix.
9917 Version 1.13 released
9918 =====================
9920 1999-12-23 Werner LEMBERG <wl@gnu.org>
9922 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9927 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9929 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9930 document conventions, the version number must be a real.
9932 Version 1.12.1 released
9933 =======================
9935 1999-12-22 Werner LEMBERG <wl@gnu.org>
9937 * VERSION: Changed to 1.12.1.
9939 1999-12-22 Alan Rooks <arooks@istar.ca>
9941 * refer/refer.cc (do_file): Slight modification to satisfy the
9942 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9945 1999-12-20 Werner LEMBERG <wl@gnu.org>
9947 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9950 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9951 list of unsafe requests.
9953 * pic/pic.man: Fixed a typo.
9955 * man/groff_out.man: Fixed a typo.
9957 1999-12-18 Werner LEMBERG <wl@gnu.org>
9959 * Makefile.in: Doc fixes.
9961 1999-12-17 Fabrizio Polacco <fab@prosa.it>
9963 * groff/groff.cc: Missing `U' option added to getopt().
9965 * troff/troff.man: Missing `U' option added to synopsis.
9967 Version 1.12 released
9968 =====================
9970 1999-12-14 Werner LEMBERG <wl@gnu.org>
9972 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9975 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9976 with the more appropriate terms `safer' and `unsafe'.
9978 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9979 sys_nerr and sys_errlist[].
9981 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9983 * pic/pic.y, pic/pic.cc: Added check for fmod().
9985 1999-12-13 Werner LEMBERG <wl@gnu.org>
9987 * VERSION: Changed to 1.12.
9989 Here some patches from various sources; most of them taken from
9990 the Debian distribution.
9992 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9993 tmac/Makefile.sub: New files copied directly from the NetBSD
9994 distribution. Probably, some additional adaptation later on is
9997 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10000 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10001 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10002 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
10003 (`-S') is now the default.
10005 * README, NEWS: Updated.
10007 1999-12-09 Werner LEMBERG <wl@gnu.org>
10009 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10011 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10013 1999-12-06 Werner LEMBERG <wl@gnu.org>
10015 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10016 grief than relief today. Additionally, it is against the GNU
10019 * configure: Recreated.
10021 1999-12-05 Werner LEMBERG <wl@gnu.org>
10023 * configure.in: Added GROFF_LIBM.
10025 * configure: Recreated.
10027 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10030 * Makefile.in: Added definition of $(LIBM).
10032 * Makefile.comm (LIBM): Removed.
10034 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10036 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
10038 * doc/Makefile: Added rule for generation pic.html.
10040 (clean): Files produced by grohtml will be removed also.
10042 * doc/pic.ms: Small fix.
10044 * tmac/tmac.html: Fixed suppression of headers.
10046 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
10048 * tmac/tmac.html: Fixing horizontal arrows.
10050 Turning off hyphenation.
10052 * tmac/tmac.an: Improved support for grohtml; better indentation,
10053 no footers/headers.
10055 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
10057 * tmac/tmac.arkup: Added CDFTP macro
10059 * tmac/tmac.html: All headers are turned off for ms, me, and mm
10062 * tmac/troffrc: Some additions for HTML stuff.
10064 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
10066 * tmac/tmac.html: Small changes.
10068 1999-09-26 Werner LEMBERG <wl@gnu.org>
10070 * doc/groff.texinfo: Minor fixes.
10072 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
10074 * devhtml/TR: Changed spacewidth to 3.
10076 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10078 * tmac/tmac.html: Moved markup macros to tmap.arkup.
10080 * tmac/tmac.arkup: New file.
10082 * grohtml/ChangeLog: New file.
10084 1999-09-16 Werner LEMBERG <wl@gnu.org>
10086 * doc/groff.texinfo (Common Features): Added Copying chapter.
10087 Changed format to @smallbook.
10089 1999-09-15 Werner LEMBERG <wl@gnu.org>
10091 * NEWS: Added info about groff.texinfo.
10093 * doc/groff.texinfo: Will now compile (using texi2dvi) without
10096 1999-09-14 Werner LEMBERG <wl@gnu.org>
10098 * groff/groff.man: More updates.
10100 1999-09-13 Werner LEMBERG <wl@gnu.org>
10102 * doc/groff.texinfo: New file. This manual is still very
10103 rudimentary. It has been originally contributed by Trent
10104 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10107 * INSTALL: Added information about the `doc' subdir
10109 * troff/troff.man: Minor fixes.
10111 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10114 * troff/input.cc (usage): Added missing `-ffam' to usage message.
10116 * Makefile.in (dist): groff-$(version).tar.gz must be removed
10117 also, otherwise it is included itself in another call of `make
10120 * groff/groff.cc (synopsis): Removed superfluous space.
10122 * PROJECTS, PROBLEMS, NEWS: Updated.
10124 * VERSION: Updated to 1.12beta.
10126 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
10128 * README: Updated: Included documentation about CVS repository,
10129 mailing lists, and daily snapshots.
10131 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10133 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
10135 * tmac/tmac.an: If the tag didn't fit into the space that the
10136 macro `TP' specifies, the rest of the tag went into the space for
10139 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
10141 * grolj4/lj4.cc: Added duplex printing (option `-d').
10143 * grolj4/grolj4.man: Document duplex printing.
10145 1999-09-12 Werner LEMBERG <wl@gnu.org>
10147 * doc/Makefile (pic.ps): Fixed rule which caused problems with
10148 non-GNUish sed programs.
10150 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10153 * configure.in (LIBS): Added `-lc'
10155 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10157 * pic/tex.cc (solid_arc): Casting M_PI to double.
10159 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10161 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10162 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10163 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10165 * groff/groff_man.man: New file. This manual page was originally
10166 written for the Debian GNU/Linux system by Susan G. Kleinmann
10169 * eqn/list.cc (list_box::compute_metrics,
10170 list_box::compute_sublist_width): Removed variable declaration to
10171 avoid shadowing warnings.
10173 * grops/psrm.cc (resource_manager::process_file): Ditto.
10175 * tfmtodit/tfmtodit.cc (main): Ditto.
10177 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10178 to avoid shadowing warnings.
10180 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10181 shadowing loop variable.
10183 * groff/groff.man, troff/troff.man: Added doc about grohtml.
10185 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
10187 New grohtml frontend to convert groff input to html.
10189 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10191 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10193 * tmac/eqnrc: Added html device.
10195 * tmac/tmac.html: New file.
10197 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10198 (troff_output::start_picture, troff_output::finish_picture),
10199 tbl/main.cc (process_input_file):
10200 Surrounded output with `graphics_start' and `graphics_end' so that
10201 the html driver can identify non-text portions.
10203 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10204 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10205 grotty/tty.ps (tty_printer::set_char): Additional parameter
10208 * include/printer.h: Class printer: New function
10209 set_char_and_width; new variables (is_char_named, is_named_set,
10210 named_command, named_char_s, named_char_n) to hold information
10211 about named characters -- needed by the html driver.
10213 * libdriver/printer.cc (printer::set_ascii_char,
10214 printer::set_special_char): Use set_char_and_width.
10216 * devhtml/*: New device files for html driver.
10218 * grohtml/*: New driver grohtml.
10220 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
10222 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10225 1999-09-11 Luke Mewburn <lukem@netbsd.org>
10227 * libgroff/string.cc (search): Small fix to test against NULL
10230 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
10232 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10233 \b'abc') were stacked in reverse order when processed in a
10236 * troff/node.h: Added `*last' to struct `node' to make the above
10239 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10240 The default scale for the 'f' and 't' graphics functions were 'm'
10241 rather than 'u' (i.e., no scaling).
10243 1999-09-11 Peter Miller <peterm@jna.com.au>
10245 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10246 do_file), soelim/soelim.man: Added `-I file' option to soelim,
10247 defining include paths.
10249 * soelim/soelim.cc (include_path_append): New function.
10251 1999-09-11 Larry Jones <larry.jones@sdrc.com>
10253 * tbl/main.cc (process_options): Unix (at least Documenter's
10254 Workbench) tbl allows arbitrary non-alpha characters between
10257 1999-09-11 Paul Eggert <eggert@twinsun.com>
10259 Y2k fixes. Don't assume that the current year precedes 2000.
10261 * doc/meref.me: Add \n(y2, \n(y4.
10263 * tmac/doc-common (Yr): New number register.
10264 (Dd): Don't assume current year precedes 2000.
10266 * tmac/tmac.e (td): Likewise.
10267 (y2, y4): New number registers.
10269 * pic/pic.man: Update reference for pic paper to May, 1991
10272 1999-09-11 Werner LEMBERG <wl@gnu.org>
10274 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10275 Removed quotation marks which prevented correct expansion of
10278 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10280 1999-09-10 Werner LEMBERG <wl@gnu.org>
10282 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10285 * Removed configure.old.
10287 1999-08-31 Werner LEMBERG <wl@gnu.org>
10289 * VERSION: Updated to 1.11.1
10291 1999-05-27 Werner LEMBERG <wl@gnu.org>
10293 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10295 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10296 added quotations around $(tmac_wrap) to avoid syntax error if
10299 * configure: Newly generated using autoconf 2.13.
10301 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10303 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
10305 * README, PROJECTS, NEWS, INSTALL, VERSION,
10306 doc/Makefile. doc/pic.ms, groff/groff.man:
10307 Prepare for 1.11 release. No code changes.
10308 Documentation for pic added (doc/pic.ms).
10310 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
10312 * Version 1.10 released.
10314 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
10316 * afmtodit/afmtodit.pl: Avoid comment on first line.
10318 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
10320 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10321 * configure.in: Call it.
10323 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10324 (distfiles): Doesn't depend on config.log or config.cache.
10326 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
10328 * grog/grog.sh: Use print "" rather than print in END rule.
10330 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
10332 * tbl/main.cc (process_data): Don't give error for excess data
10333 entries that are comments.
10335 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
10337 * tbl/main.cc (process_data): Fix case where new for-scope rules
10338 silently change meaning of code.
10340 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
10342 * troff/env.cc (hyphenate): Loop over all consecutive sequences
10343 of non-zero hyphenation codes.
10345 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
10347 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10349 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
10351 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10353 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
10355 * tmac/tmac.andoc: Make it work in compatibility mode.
10357 * refer/token.h (token_info::is_range_sep): New function.
10358 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10359 * refer/ref.cc (reference::output): More sophisticated check for
10362 * devps/prologue.ps (MANUAL): New procedure.
10363 * grops/ps.cc (main): New -m option.
10364 (usage): Include -m.
10365 (ps_printer::~ps_printer): Implement -m.
10367 * aclocal.m4 (GROFF_G): New macro.
10368 * configure.in: Call it.
10369 * Makefile.in (g): Provided by configure.
10371 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10373 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
10376 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10377 (tmac_m, tmac_s): Deleted.
10378 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10379 tmac_s_prefix): New variables.
10380 (MDEFINES): Change accordingly.
10381 * Makefile.comm (.man.n): Use new TMAC_* variables.
10382 * configure.in (GROFF_TMAC): Call.
10383 * aclocal.m4 (GROFF_TMAC): Define.
10384 * tmac/Makefile.sub (stamp_wrap): New target.
10385 (install_data, uninstall_sub): Handle macro wrapping.
10387 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
10389 * tbl/main.cc (main): Ignore -T option.
10391 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
10393 * devlj4/generate/special.map: Add definition of \(nb.
10395 * tmac/tmac.dvi: Add definition of \(nb.
10397 * troff/dictionary.c (dictionary::dictionary): association::v gets
10398 initialized by association::association.
10400 * tmac/Makefile.sub: Avoid using temporary files when installing.
10402 * troff/env.cc (environment::set_font): Make bad font number a
10405 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10407 * Makefile.in (datadir): Use share rather than lib.
10409 * groff/groff.cc (basename): Rename to xbasename.
10411 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
10413 * Makefile (CCLIBS): Don't use.
10414 * Makefile.ccpg: Likewise.
10416 * acgroff.m4: Rename to...
10417 * aclocal.m4: Modify extensively for autoconf 2.
10418 * configure.in: Likewise.
10419 * Makefile.in: Likewise.
10421 * groff/pipeline.c (const): Declare as empty if __STDC__ not
10423 (xstrsignal): Check for definition of NSIG. Conditionalize
10424 on SYS_SIGLIST_DECLARED. Make return type const.
10426 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
10428 * troff/input.cc (interpolate_macro): Rephrase missing space
10431 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10433 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10434 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10435 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10436 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10437 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10438 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10439 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10440 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10441 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10442 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10443 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10446 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
10448 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10450 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10452 (macro_iterator::macro_iterator): Add additional argument.
10454 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
10456 * troff/div.cc (vertical_size::vertical_size): In place of integer
10457 specifying line spacing use cunits specifying post vertical
10459 (macro_diversion::output, top_level_diversion::output): Likewise.
10460 * troff/div.h: Change declarations accordingly.
10461 * troff/env.cc (pending_output_line): Replace ls field by post_vs
10463 (pending_output_line::pending_output_line,
10464 pending_output_line::output, environment::output,
10465 environment::output_line, environment::output_title,
10466 environment::hyphenate_line): In place of
10467 integer specifying line spacing use cunits specifying post vertical
10469 (environment::environment): Add post_vertical_spacing and
10470 prev_post_vertical_spacing arguments.
10471 (environment::get_post_vertical_spacing): New function.
10472 (environment::total_post_vertical_spacing): New function.
10473 (environment::post_vertical_spacing): New function.
10474 (init_env_requests): Initialize pvs request and .pvs register.
10475 * troff/env.h: Change declarations.
10477 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
10479 * tmac/tmac.pspic: Immediately remove the temporary file.
10481 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
10483 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10484 height is specified.
10486 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
10488 * tbl/table.c (struct vertical rule, class table_entry): Use int
10489 not short for start_row and end_row.
10491 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
10493 * troff/input.cc (trapping_blank_line, blank_line_macro): New
10495 (diverted_space_node::reread, process_input_stack): Call
10496 trapping_blank_line() rather than blank_line().
10497 (init_input_requests): Bind "blm" to blank_line_macro().
10499 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10501 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
10503 * troff/env.cc (environment::possibly_break_line): Require that
10504 width total excluding width of final space node be greater than
10505 the target text length.
10507 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
10509 * troff/node.cc (kern_pair_node::vertical_extent): New function.
10511 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
10513 * troff/node.cc (charinfo_node): New class.
10514 (glyph_node, composite_node): Derive from charinfo_node. Change
10515 member functions accordingly.
10517 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
10519 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10521 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
10523 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10525 * devps/generate/textmap (notsubset): Add.
10527 * tmac/tmac.a4: New file.
10529 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
10531 * pic/main.cc (had_parse_error): New variable.
10532 (do_picture, do_whole_file): Set had_parse_error if yyparse()
10534 (main): Return 1 if had_parse_error is true.
10536 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
10538 * grolj4/lj4.cc (main): Avoid use of strtoul.
10540 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
10542 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10543 iso_8859_1 or $LESSCHARSET is latin1.
10545 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
10547 * hpftodit: New directory.
10548 * Makefile.in (CCPROGDIRS): Add hpftodit.
10549 * devlj4/generate: New directory.
10551 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
10553 * configure.in: Don't use AC_VFORK.
10554 * groff/pipeline.c (run_pipeline): Use fork() always.
10556 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
10558 * grops/ps.cc (main): Use %1 not %s in error message for -w.
10560 * Makefile.in (CCPROGDIRS): Add grolj4.
10561 (DEVDIRS): Add devlj4.
10562 * grolj4, devlj4: New directories.
10563 * tmac/troffrc: Handle lj4.
10564 * tmac/tmac.lj4: New file.
10566 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
10568 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10570 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
10572 * troff/input.cc (do_if_request): At end of second string, switch
10573 environments before getting next token.
10575 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
10577 * devps/psstrip.sed: Split rule that strips whitespace on either
10578 side of delimiters.
10580 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
10582 * troff/node.h (font_family::make_definition): Add return value to
10583 declaration. * troff/symbol.h (symbol::operator==,
10584 symbol::operator!=): Likewise.
10586 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
10588 * groff/groff.cc (main, help, synopsis): Handle -S.
10589 (possible_command::insert_arg): New function.
10591 * tmac/tmac.safer: New file.
10592 * tmac/msafer.man: New file.
10593 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10595 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
10597 * pic/pic.h, pic/main.cc (safer_flag): New variable.
10598 * pic/pic.y (placeless_element): Avoid unsafe operations if
10599 `safer_flag' is set.
10600 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10602 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
10604 * eqn/lex.cc (get_token): Put call to add_context() in block to
10605 work around Sun C++ 4.0 bug.
10607 * include/stringclass.h (operator +): Use ?: instead of `if' to
10608 work around Sun C++ 4.0 bug.
10610 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
10612 * tbl/main.cc (process_format): Accept - as a synonym for the _
10615 * libbib/index.cc (minus_one): Don't declare as const.
10617 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
10619 * troff/input.cc (get_char_for_escape_name): Push back a newline.
10621 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
10623 * troff/input.cc (write_macro_request): New function.
10624 (init_input_requests): Bind write_macro_request to writem.
10626 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
10628 * tmac/tmac.s (@EN): Turn filling back on even if there was no
10631 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10633 * tmac/tmac.s (@TS): Renamed from TS.
10634 (TS): Call LP then TS again.
10635 (cov*ab-init): Alias @TS to TS.
10637 * tmac/tmac.s: Allow QP or RS to initialize.
10639 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
10640 Move initializations of PS and LL here.
10641 (par@init): Don't initialize HY. Avoid changing environment 0.
10642 (par*env-init): Don't all par@reset.
10644 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
10646 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10648 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
10650 * Makefile.in (MDEFINES): Add LDFLAGS.
10651 (LDFLAGS): Add definition line.
10653 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
10655 * troff/input.cc (get_optional_char): Split off error check into...
10656 (check_missing_character): New function.
10657 * troff/token.h: Declare it.
10658 * troff/env.cc (margin_character): Don't call get_optional_char.
10659 Only call tok.next() after making the node.
10661 * include/lib.h (getopt): Make 2nd argument char *const *.
10663 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
10665 * nroff/conftest.sh: Deleted.
10667 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
10669 * pic/make-dos-dist: Deleted.
10671 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
10673 * devps/psstrip.sed: Strip comments before stripping trailing
10676 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
10678 * Version 1.09 released.
10680 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
10682 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10684 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
10686 * libgroff/font.cc (font::load_desc): Fix typo in error message.
10688 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
10690 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10691 about returning without a value.
10693 * troff/charinfo.h (charinfo::get_special_translation): Cast
10694 TRANSLATE_NONE to int.
10696 * refer/token.cc (lookup_token, store_token): Remove bogus loop
10697 test. Fix test so that it works with n unsigned.
10699 * pic/pic.y (defaults_table): Fully bracket initializer.
10700 * pic/lex.cc (lookup_keyword): Likewise.
10701 * eqn/lex.cc (token_table, def_table): Likewise.
10702 * eqn/box.cc (param_table): Likewise.
10703 * troff/input.cc (warning_table): Likewise.
10704 * libgroff/font.cc (table): Likewise.
10705 * grops/ps.cc (ps_printer::special): Likewise.
10706 * grops/psrm.cc (resource_manager::process_file): Likewise.
10707 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10708 * refer/command.cc (command_table): Likewise.
10709 * addftinfo/addftinfo.cc (param_table): Likewise.
10711 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10712 about temp's being unused.
10713 (unused): New function.
10715 * groff/pipeline.cc: Declare c_fatal.
10717 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10720 * libbib/index.cc (index_search_item::load): Prevent compiler
10721 warnings about fd_closer's being unused.
10722 (unused): New function.
10724 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
10726 * troff/input.cc (copy_mode_error): Make `prefix' static.
10729 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10731 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10732 HAVE_CC_OSFCN_H and modify accordingly.
10734 * troff/input.cc (init_charset_table): radicalex overlaps
10737 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10738 udodo!hans@relay.NL.net).
10739 * groff/configure.in: Call it.
10741 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10742 * groff/configure.in: Call it.
10743 * include/lib.h: Conditionalize declaration of pclose.
10745 * troff/div.cc (last_page_number): New global variable.
10746 (top_level_diversion::begin_page): Exit if we just printed the
10748 * troff/div.h (last_page_number): Declare it.
10749 * troff/input.cc (parse_output_page_list): Set last_page_number.
10751 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10752 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10753 tmac/tmac.X: Likewise.
10754 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10755 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10757 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
10759 * tmac/doc-ditroff (hK): Remove groff specific code which
10760 prevented page-breaks between separate manual entries. If this is
10761 the first page, don't set the page number to 1.
10763 * acgroff.m4 (GROFF_POSIX): New macro.
10764 * configure.in: Use it.
10766 * troff/node.cc (class real_output_file,
10767 real_output_file::real_output_file,
10768 real_output_file::~real_output_file): Conditionalize use of
10769 popen/pclose on POPEN_MISSING.
10770 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10771 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10772 (pipe_source): Similarily.
10774 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10776 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10777 presence of declarations by trying to compile example with
10778 conflicting declarations. (gcc only gives a warning for missing
10781 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
10783 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10784 (from Ulrich Lauther).
10786 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
10788 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10790 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
10792 * indxbib/indxbib.cc (write_hash_table): Add code for case where
10793 pointers and ints have different sizes.
10795 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
10797 * tmac/tmac.s (par*env-init): Call par@reset.
10799 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
10801 * tmac/tmac.s (@IP): Switch to a new environment when diverting
10803 (par*push-tag-env, par*pop-tag-env): New macros.
10805 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
10807 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10808 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
10810 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10811 comment. Include <time.h>.
10813 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
10815 * grops/ps.cc (is_small_h, is_small_v): Deleted.
10816 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10819 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
10821 * troff/input.cc (read_request): Only print a prompt if reading
10822 from the terminal. Also clearerr on EOF if reading from the
10823 terminal. Declare isatty.
10825 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
10827 * refer/label.y: Rename map_t to map_func and extractor_t to
10830 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
10832 * include/assert.h: Don't use volatile.
10833 * libgroff/assert.cc: Likewise.
10835 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
10837 * troff/input.cc (abort_request): Look at character in tok before
10838 calling get_copy().
10840 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
10842 * troff/troff.h (NO_RETURN): Deleted.
10843 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
10844 * troff/input.cc (exit_troff): Likewise
10846 * Makefile.in: Remove `Making ...' messages since GNU make now
10849 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10851 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
10853 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10854 to constant 1 inch.
10856 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
10858 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10860 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
10862 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10863 MARK_REG if there was no left delimiter.
10865 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
10867 * pic/troff.cc (troff_output::text): Set line thickness to
10868 relative before outputting text.
10870 * tmac/tmac.e (@k): Don't zero ?T.
10873 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
10875 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10877 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
10879 * troff/input.cc (decode_args): Warn about unquoted tabs (from
10882 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
10884 * troff/input.cc (ignoring): New variable.
10885 (ignore): Set ignoring during call to do_define_macro.
10886 (do_define_macro): Clear ignoring before interpolating terminating
10888 (copy_mode_error): New function.
10889 (get_char_for_escape_name, read_long_escape_name,
10890 interpolate_arg): Use copy_mode_error.
10891 (warning_table): Add WARN_IG.
10892 * troff/troff.h (WARN_IG): Declare.
10893 (WARN_TOTAL): Change accordingly.
10895 * groff/pipeline.c (strsignal): Rename to xstrsignal.
10896 * groff/groff.cc (strsignal): Delete declaration.
10898 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
10900 * troff/div.cc (page_offset): Use 'm' as default scaling.
10902 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
10904 * nroff/nroff.sh: Ignore -u.
10906 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
10908 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10910 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
10912 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10914 (B2): With -Tascii, leave additional vertical space before
10915 and after. Ensure that the left and right indent is restored to
10916 what it was even if the point size changes. Don't call
10917 par@finish. Change the indent, line length and title length
10918 directly. With -Tascii, make the width of the box 1n less.
10919 (B1): Remember 1n at the current point size. Don't call
10920 par@reset. Change the indent, line length and title length
10921 directly. Ensure that the temporary indent is preserved.
10922 (par*box-mark-top): Turn off no spacing mode.
10924 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
10926 * Makefile.in (dist): Use .gz suffix.
10928 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
10930 * troff/input.cc (main): Add return 0.
10931 * pic/main.cc (main): Use return instead of exit.
10932 * tbl/main.cc (main): Likewise.
10933 * eqn/main.cc (main): Likewise.
10934 * grops/ps.cc (main): Likewise.
10935 * grotty/tty.cc (main): Likewise.
10936 * groff/groff.cc (main): Likewise.
10937 * grodvi/dvi.cc (main): Likewise.
10938 * refer/refer.cc (main): Likewise.
10939 * indxbib/indxbib.cc (main): Likewise.
10940 * lkbib/lkbib.cc (main): Likewise.
10941 * soelim/soelim.cc (main): Likewise.
10942 * addftinfo/addftinfo.cc (main): Likewise.
10943 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10944 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10946 * troff/token.h (process_input_stack): Don't declare as static.
10947 * troff/input.cc: Likewise.
10949 * troff/node.c (invalidate_fontno): Make it a static member of
10950 class font_family. Change callers.
10951 * troff/node.c: Change declaration.
10953 * tbl/main.cc (struct input_entry_format): Add explicit public
10955 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10956 struct double_hline_stuff): Likewise.
10957 * tbl/table.h (struct entry_format): Likewise.
10958 * pic/object.h (struct saved_state): Likewise.
10960 * include/stringclass.h: Add forward declarations of friend
10961 functions that are later declared as inline. Don't include inline
10962 specifier in friend declaration.
10964 * libgroff/lib.h: Declare popen and pclose.
10965 * acgroff.m4 (GROFF_POPEN): New macro.
10966 * configure.in: Call it.
10968 * include/lib.h (PI): New constant. Undef first if necessary.
10969 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10970 * grops/ps.cc (degrees, radians): Likewise.
10971 * libgroff/font.cc (font::get_skew): Likewise.
10973 * grops/ps.cc (is_ascii): New function.
10974 (ps_output::put_string): Use is_ascii. Use csprint rather than
10976 (ps_printer::define_encoding): Use csspace.
10977 * libgroff/strtol.c (ISASCII): New macro.
10978 (strtol): Cast arguments to is*() and tolower() to unsigned char.
10979 Use ISASCII rather than isascii.
10980 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10981 * libgroff/cset.cc: Likewise.
10982 * libdriver/input.cc: Include cset.h.
10983 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10986 * refer/refer.cc (main): Use %ld rather than %d for longs.
10988 * libbib/index.cc (index_search_item_iterator::get_tag): Use
10991 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10993 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
10995 * troff/input.cc (hyphenation_code): Skip white space between
10998 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
11000 * tbl/table.h (table::entry_list_tailp): New member.
11001 (table::table): Initialize it.
11002 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11005 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
11007 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11008 with negative horizontal positions. Remove casts of glyph::hpos to
11010 (USHRT_MAX): Delete definition.
11011 (SHRT_MAX, SHRT_MIN): New definitions.
11012 (glyph::hpos): Change type to short.
11013 (tty_printer::end_page): Output multiple backspaces if necessary.
11014 Remove casts of glyph::hpos to int.
11016 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
11018 * tmac/tmac.s (@RT): New definition.
11020 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
11022 * refer/refer.cc (do_file): Make sure current_filename is set when
11025 * pic/common.cc (common_output::dot_line): Handle zero length
11028 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
11030 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11031 (par@init): Initialize \n[HY].
11033 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
11035 * troff/dictionary.cc (dictionary::remove): Continue when
11038 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
11040 * Makefile.com (.y.cc): Avoid ending up with two versions of
11043 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
11045 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11046 (\(,C): Likewise. Also fix typo.
11048 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
11050 * lib.h: Delete extraneous semi-colon.
11052 * Add pso request: `so' from a pipe.
11053 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11054 (file_iterator::close): New function.
11055 (file_iterator::~file_iterator, file_iterator::next_file): Use
11056 file_iterator::close.
11057 (file_iterator::backtrace): Say `process' rather than `file' when
11058 the stream is popened.
11059 (pipe_source): New function.
11060 (init_input_requests): Bind ".pso" to pipe_source.
11062 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
11064 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11066 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
11067 digits in lower case.
11069 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
11071 * Version 1.08 released.
11073 * Makefile.in (dist): Insert || true after ln -s commands that
11076 * mm: Update to mm 1.16.
11078 * acgroff.m4 (GROFF_CSH_HACK): New macro.
11079 * configure.in: Call GROFF_CSH_HACK. Substitute for
11081 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
11083 * nroff/Makefile.sub (nroff): New target.
11084 (install_data): Install nroff.
11085 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11086 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11088 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
11090 * eqn/Makefile.sub (neqn): Add chmod +x.
11092 * grog/Makefile.sub (grog): Remove spurious semi-colon.
11094 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
11096 * troff/input.cc (string_iterator::string_iterator()): Initialize
11099 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
11101 * troff/div.cc (macro_diversion::space,
11102 top_level_diversion::space): Don't set high_water_mark.
11103 (macro_diversion::output, top_level_diversion::output): Don't
11104 include post line space in high water mark.
11106 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
11108 * eqn/eqn.y: Don't define YYDEBUG.
11109 * pic/pic.y: Likewise.
11111 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
11113 * tmac/tmac.e ([3): Add space after comma following editors.
11114 Change double spaces to single spaces.
11115 ([4): Change double spaces to single spaces.
11117 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11118 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11119 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11120 after %!PS-Adobe- (for Newsprint).
11122 * troff/div.cc (top_level_diversion::begin_page): When
11123 before_first_page is 1, set page_number to 1.
11125 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
11127 * eqn/box.cc (box::top_level): Protect equation with \&.
11129 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
11131 * groff/groff.cc (possible_command::set_name): Delete old name.
11133 * groff/groff.cc (possible_command::~possible_command): Use
11136 * troff/node.cc (troff_output_file::begun_page): New member.
11137 (troff_output_file::troff_output_file): Initialize it.
11138 (troff_output_file::really_begin_page): Only output V command if a
11139 page has been begun.
11141 * pic/pic.y (placeless_element): Delete argument to PRINT after
11144 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
11146 * Make wrapman work.
11147 * troff/div.h (class top_level_diversion): Replace
11148 first_page_begun by before_first_page (with opposite sense).
11149 * Change first_page_begun to before_first_page inverting sense.
11150 * troff/div.cc (class nl_reg): New class.
11151 (init_div_requests): Use class nl_reg for \n(nl.
11152 (top_level_diversion::begin_page): Don't call
11153 output_file::begin_page if before_first_page is 2;
11154 reset before_first_page afterwards. If have_next_page_number is
11155 false, then always increment page_number.
11156 * tmac/tmac.an: Set traps within TH rather than at the top-level.
11157 Restore compatibility mode after loading, and then disable
11158 compatibility mode in TH.
11160 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
11162 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11164 * troff/node.h (output_file::trailer): Declare.
11165 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11166 * troff/node.cc (output_file::trailer): New function.
11167 (troff_output_file::~troff_output_file): Move most code into...
11168 (troff_output_file::trailer): New function.
11169 (class troff_output_file): Delete page_length member. Declare
11171 (troff_output_file::really_begin_page): Use current page length
11172 for final V command.
11174 * tbl/main.cc (struct options): New decimal_point_char member.
11175 (options::options): Initialize this.
11176 (process_options): Implement decimalpoint option.
11177 (process_data): Pass decimal_point_char option to table::table.
11178 * tbl/table.h (class table): New decimal_point_char member.
11179 (table::table): Add additional argument.
11180 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11181 second argument specifying decimal point character. Use this
11183 (table::table): Initialize decimal_point_char.
11184 (table::add_entry): Change call to find_dot.
11186 * troff/input.cc (get_copy, token::next): Implement \V.
11187 (interpolate_environment_variable): New function.
11189 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
11191 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11192 * pic/pic.y: Likewise.
11194 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11196 * refer/ref.cc (reference::insert_field, reference::delete_field):
11198 * troff/number.cc (parse_term): Likewise.
11200 * acgroff.m4 (GROFF_PROG_YACC): New macro.
11201 * configure.in: Use GROFF_PROG_YACC.
11203 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11205 * Makefile.in (OPTIMIZE): New define.
11206 (DEBUG): Empty by default.
11207 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11209 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11210 (GROFF_ARRAY_DELETE): Likewise.
11211 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11213 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11215 * devps/psstrip.sed: Use different delimiter on last line (so that
11216 it works with BSD 4.4 sed.)
11218 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
11220 * devps/psstrip.sed: Delete comments.
11222 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11223 optind, opterr, optarg.
11224 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11227 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
11229 * Makefile.in (check): Dummy target.
11231 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
11233 * Version 1.07 released.
11235 * Integrate mm 1.11.
11237 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11238 where start_col was meant.
11240 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
11242 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11244 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
11246 * troff/input.cc (token::next): Make \z\o'...' and similar things
11249 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11251 (environment): Add margin_character_flags member.
11252 * env.cc (environment::environment(symbol),
11253 environment::environment(const environment *): Initialize
11254 margin_character_flags.
11255 (margin_character): Rewrite.
11256 (environment::output_line): Add a margin character if
11257 margin_character_flags is non-zero. Turn off the
11258 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
11259 zero, use margin_character_node without copying and then set
11260 margin_character_node to 0.
11262 * devps/DESC.in: Change minimum size to 1000.
11264 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
11266 * troff/symbol.h (symbol::hash): Change return type to unsigned
11268 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11271 * test-groff: Use -r rather than -x.
11273 * grops/psfig.diff: Include in distribution again.
11275 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
11277 * Makefile.in (dist): Use gzip.
11279 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
11281 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11282 unistd.h as well as in stdlib.h.
11283 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11284 defined; otherwise include <sys/types.h> and <unistd.h> if
11285 UNISTD_H_DECLARES_GETOPT is defined.
11287 * configure.in: use builtin(include, ... rather than include(...
11288 * configure: Regenerate with autoconf 1.3.
11290 * libdriver/print.cc (printer::adjust_arc_center): Use new
11291 algorithm suggested by Andy Fyfe.
11293 * libdriver/printer.cc (printer::adjust_arc_center): New function.
11294 * include/printer.h: Declare this.
11295 * grops/ps.cc (ps_printer::draw): Use it.
11296 * grodvi/dvi.cc (dvi_printer::draw): Use it.
11298 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
11300 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11302 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
11304 * eqn/main.cc (main): Handle "eqn -".
11306 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
11308 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11310 * mm: Integrate version 1.08.
11312 * pic/troff.cc (troff_output::finish_picture): Set
11313 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11314 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11315 if it's not defined. Check whether the register is non-zero rather
11316 than whether it's not defined.
11317 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11319 * indxbib/indxbib.cc: Move all signal handling into...
11320 * indxbib/signal.c: New file.
11321 * configure.in: Call AC_RETSIGTYPE.
11323 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11324 * configure.in: Call GROFF_STRUCT_EXCEPTION.
11325 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11327 * troff/input.cc (token::token, token::operator=): Work round SGI
11329 * pic/object.cc (position::position): Likewise.
11331 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
11333 * pic/pic.h: Move declaration of hypot().
11335 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
11337 * pic/pic.h: Declare hypot().
11339 * pic/pic.h: Define M_PI if necessary.
11341 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
11343 * tmac/tmac.e (re): Add alternative version that doesn't use groff
11346 * devps/prologue.ps (RE): Handle the possibility that the old font
11347 doesn't have a FontName entry.
11349 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
11351 * tmac/tmac.e (fam): Redefine to set family in environment 2.
11352 (@C): Use @fam not fam.
11354 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
11356 * lookbib/lookbib.cc (main): Change type of start to const char *.
11357 * lkbib/lkbib.cc (main): Likewise.
11359 * eqn/lex.cc (definition::definition): Don't use member
11360 initializer syntax for members of anonymous unions.
11362 * troff/input.cc (input_stack::backtrace): Change type of to const
11365 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
11367 * include/stringclass.h (class string): Declare inline friend
11368 functions as inline in class declaration.
11369 * troff/hvunits.h (class hunits, class vunits): Likewise.
11370 * include/refid.h (class reference_id): Likewise
11371 * troff/troff.h (points_to_units(units), scale(units, double)):
11372 Delete declarations.
11373 * libdriver/input.cc (get_char): Delete declaration.
11374 * include/lib.h: Change 2nd argument of getopt from const char **
11376 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11377 char **' before assigning to a `const char **'.
11378 * tbl/table.cc: Delete extra declarations of prints().
11380 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
11382 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11383 char **' before assigning to a `const char **'.
11385 * libgroff/errarg.cc (errarg::errarg): Don't use member
11386 initializer syntax for members of anonymous unions.
11388 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
11390 * mm: Integrate version 1.07.
11392 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
11394 * troff/input.c (translate2): Rename to
11395 (translate_no_transparent).
11396 (init_input_requests): Rename tr2 to trnt.
11398 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
11400 * troff/charinfo.h (class charinfo): Add transparent_translate field.
11401 (charinfo::set_translation, charinfo::set_special_translation):
11402 Add second argument that specifies value for
11403 transparent_translate.
11404 (charinfo::get_translation, charinfo::get_special_translation):
11405 Add optional second argument that specifies whether translation is
11406 being used for transparent throughput.
11407 * troff/input.cc (charinfo::set_translation,
11408 charinfo::set_special_translation): Handle second argument.
11409 (charinfo::charinfo): Initialize transparent_translate.
11410 (translate): Split main part off into
11411 (do_translate): New function. Pass argument saying whether
11412 translation applies to transparent throughput.
11413 (translate2): New request.
11414 (init_input_requests): Bind translate2 to `tr2'.
11416 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
11418 * tbl/table.h (class table): Add `nokeep' flag.
11419 * tbl/main.cc (process_options): Handle `nokeep' option.
11420 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11421 table::do_bottom): Don't output keep/release macro definitions or
11422 calls when `nokeep' option has been specified.
11424 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
11426 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11428 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
11430 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11431 block_entry::divert, alphabetic_block_entry::divert): Add extra
11432 argument giving column separation.
11433 (table::compute_widths): Pass column separation to
11434 table_entry::divert().
11435 (block_entry::do_divert): If an entry spans multiple columns and a
11436 minimumum width has been specified for each column, then set the
11437 line length to the sum of the widths (plus possibly the column
11440 * troff/input.cc (set_escape_char): Don't set the escape_char
11441 until after calling has_arg().
11443 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
11445 * tbl/table.cc (table::do_top): Add missing \s0 for double box
11448 * tbl/table.cc (table::print_double_hline): Avoid extra new line
11449 in case where r > nrows - 1.
11451 * tbl/table.cc (BODY_HEIGHT): Deleted.
11452 (LINE_SEP): New definition.
11453 (table::print_single_hline, table::print_double_hline,
11454 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11455 table::do_row, table::do_top): Use LINE_SEP space before a line
11456 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11458 * tbl/table.cc (text_entry::print_contents): New function.
11459 (text_string_name, right_text_string_name): Deleted.
11460 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11461 (simple_text_entry::do_width, numeric_text_entry::do_width,
11462 alphabetic_text_entry::do_width): Don't store the contents of the
11464 (left_text_entry::simple_print, right_text_entry::simple_print,
11465 center_text_entry::simple_print,
11466 alphabetic_text_entry::simple_print,
11467 numeric_text_entry::simple_print): Print the entry directly
11468 instead of using the stored string.
11470 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
11472 * devps/Makefile: Strip PostScript files.
11473 * devps/prologue: Rename to...
11474 * devps/prologue.ps.
11475 * devps/psstrip.sed: New file.
11476 * devps/download: Use .pfa rather than .ps for installed versions
11479 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
11481 * troff/env.cc (input_trap): Give a warning if the argument is out
11484 * troff/env.cc (adjust): Treat negative argument as missing. Round
11485 argument > 5 down to 5.
11487 * troff/env.cc (center, right_justify): Make negative argument zero.
11489 * troff/div.cc (page_offset, vertical_position_traps): Treat
11490 invalid argument as missing.
11491 * troff/env.cc (line_spacing, line_length, title_length, indent,
11492 underline, hyphen_line_max_request, control_char,
11493 no_break_control_char, widow_control_request, adjust, input_trap,
11494 point_size): Likewise.
11495 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11496 constant_space): Likewise.
11497 * troff/input.cc (compatible, shift, warn_request,
11498 set_escape_char): Likewise.
11500 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11501 * tbl/table.cc (table::table): Likewise.
11503 * Makefile.dev (install_dev): depends on $(DEVFILES).
11505 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
11507 * devX75, devX75-12, devX100, devX100-12: New directories.
11508 * Makefile.in: Add these to DEVDIRS.
11510 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11511 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11512 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11513 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11515 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11516 (uninstall): New target.
11517 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11518 uninstall_prog, uninstall_dev): New targets.
11520 * troff/div.cc (return_request): Treat an invalid argument as
11523 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
11525 * tmac/tmac.e ((f): Set up the environment even when there's a
11526 current diversion. Transperently throughput a call to @N.
11529 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
11531 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11532 up to vertical resolution.
11534 * tbl/table.cc (table::do_row): Change row number after printing
11537 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11539 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
11541 * Rename CHANGES to NEWS.
11543 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
11545 * libgroff/new.cc (operator new): Avoid calling malloc(0).
11547 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
11549 * man.ultrix: Removed.
11551 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
11553 * Makefile.comm (extraclean): Delete files whose names begin with
11556 * pic/troff.cc (troff_output::text): Fix typo in implementation of
11559 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
11561 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11562 * troff/div.cc (page_length, need_space, space_request): Treat
11563 invalid optional argument as missing.
11564 * troff/env.cc (number_lines): If the first argument is present
11565 but not a number, turn on line numbering, don't change the next
11566 line number and parse the remaining arguments.
11568 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11570 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
11572 * eqn/box.h: Change declaration accordingly.
11573 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
11574 the specified size was bad but don't give an error. Check for
11576 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11577 * eqn/lex (do_size): Likewise.
11579 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
11581 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11582 compatible headers.
11584 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
11586 * tbl/table.cc (table::init_output): Improve error message when
11587 table won't fit on one page.
11589 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
11591 * pic/troff.cc (troff_output::start_picture): Generate line
11592 containing a horizontal motion equal to the width of the picture.
11594 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11595 using GROFF_COMMAND_PREFIX environment variable.
11597 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
11599 * mdate.sh: Use $NF rather than $(NF).
11601 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
11603 * pic/main.cc (main): Use %1 not %c in argument to warning.
11605 * eqn/main.cc (main): Output code to check that geqn was given the
11608 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
11610 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11611 `ln -s ../Makefile .; make; rm -f Makefile'.
11613 * troff/hyphen: Rename to...
11615 * troff/input.cc (main): Delete -H option. Don't call
11616 read_hyphen_file().
11617 * troff/env.cc: Include searchpath.h and macropath.h.
11618 (exception_dictionary): Deleted.
11620 (read_hyphen_file): Deleted.
11621 (hyphenation_language): New struct.
11622 (class trie, class hyphen_trie): Move declarations up.
11623 (trie_node::~trie_node): Deleted.
11624 (trie::delete_trie_node): New function.
11625 (trie::do_delete): New pure virtual function.
11626 (hyphen_trie::do_delete): New function.
11627 (trie::~trie): New function.
11628 (hyphen_trie::~hyphen_trie): New function.
11629 (trie::clear): No need to chcek that tp is not 0.
11630 (current_language, language_dictionary): New variables.
11631 (hyphen_word): Give an error if no current language. Use
11632 exceptions dictionary in current language.
11633 (hyphen_trie::read_patterns_file): Find file using macro_path.
11634 Allow comments (starting with %) in patterns file. Don't make it
11635 a fatal error if the file can't be found.
11636 (hyphenate): Return if no current language. Get the exceptions
11637 dictionary and the hyphenation patterns from the current language.
11638 (set_hyphenation_language): New variable.
11639 (hyphenation_patterns_file): New function.
11640 (hyphenation_language_reg): New class.
11641 (hyphenation_language_reg::get_string): New function.
11642 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11643 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
11645 * groff/groff.cc (main, help, synopsis): Delete -H option.
11646 * include/Makefile.sub: Don't define HYPHENFILE.
11647 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11648 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11649 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11650 hyphenation patterns.
11652 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
11654 * eqn/neqn.sh: New file.
11655 * eqn/Makefile.sub: Handle neqn.sh.
11657 * eqn/eqn.h: Declare `nroff' variable.
11658 * eqn/box.cc (param_table): Add `nroff' param.
11659 (nroff): Define it.
11660 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11662 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11664 * troff/troff.h (WARN_FONT): New warning.
11665 (WARN_TOTAL): Change accordingly.
11666 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11667 (warning_table): Add WARN_FONT.
11668 * troff/node.cc (mount_font_no_translate): Pass argument to
11669 font::load_font. If this is non-zero, give a warning.
11670 Don't give an error message when accessing a font that has already
11671 been found to be invalid.
11672 * include/font.h (font::load, font::load_font): Add additional
11673 optional argument which suppresses error message if the font is
11675 * libgroff/font.cc (font::load_font): Handle additional argument.
11676 (font::load): Add additional argument. If this is non-null, set it
11677 to 1 and don't give error message.
11679 * include/printer.h (printer::end_page): Add argument giving
11681 * libdriver/input.cc (do_file): Pass this.
11682 * grops/ps.cc (ps_printer::end_page): Add argument.
11683 * grodvi/dvi.cc (dvi_printer::end_page,
11684 draw_dvi_printer::end_page): Add argument.
11685 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11686 columns_per_page members. New member nlines.
11687 (DEFAULT_LINES_PER_PAGE): Deleted.
11688 (tty_printer::tty_printer): Don't compute lines_per_page from
11689 font::paperlength. Don't compute columns_per_page from
11691 (tty_printer::add_char): Don't check horizontal position against
11692 columns_per_page. Grow glyphs vector if neccessary.
11693 (tty_printer::end_page): Add argument giving page_length in units.
11694 Discard lines past end of page.
11696 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
11698 * tmac/tmac.tty-char: Fix definition of \(/l.
11700 * tmac/tmac.X: Define \(en.
11702 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
11704 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11705 lpq, then use lp rather than lpr.
11707 * tmac/tmac.s (par@reset): Don't call `ad'.
11708 (par*env-init): Call `ad'.
11710 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
11712 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11715 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11716 * indxbib/indxbib.cc: Likewise.
11718 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
11720 * libgroff/putenv.c: New file.
11721 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11722 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11723 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11724 stdlib.h with AC_HAVE_HEADERS.
11726 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
11728 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11731 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
11733 * eqn/box.cc (gsize): Make it an int.
11734 (set_gsize): Parse argument handling increment or decrement.
11735 (box::top_level): Convert gsize to a string.
11737 * troff/input.cc (exit_troff): Make buf unsigned char [].
11738 Call to make_temp_iterator casts buf to char*.
11740 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11742 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11743 * Makefile.cpg (depend.temp): Likewise.
11745 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11747 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11749 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
11751 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11753 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
11755 * Version 1.06 released.
11757 * Integrate mm 1.04.
11759 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
11761 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11763 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
11765 * afmtodit/afmtodit.pl: Add -n option that disables generation of
11767 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11768 afmtodit. Regenerate.
11770 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11771 @f back past the current position.
11773 * tmac/tmac.e: Change calls to @R so that comments are not part of
11776 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
11778 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11780 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11781 check that we can link a call to a function declared in <stdio.h>.
11782 (GROFF_UNISTD_H): New macro.
11783 * configure.in: Call it.
11784 * Makefile.in: Document it.
11785 * include/posix.h: New file.
11786 * troff/troff.h: Don't include <osfcn.h>
11787 * troff/input.cc: Include posix.h.
11788 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11790 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11791 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11793 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11794 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11795 * libbib/search.cc (O_RDONLY): Delete definition.
11796 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11797 Don't include <osfcn.h>.
11799 * acgroff.m4 (GROFF_TIME_T): New macro.
11800 * configure.in: Call it.
11801 * Makefile.in: Document it.
11803 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11804 * configure.in: Call it.
11805 * Makefile.in: Document -DTRADITIONAL_CPP.
11806 * include/ptable.h: Don't include generic.h.
11807 (name2): Define it.
11809 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11810 Afterwards remove [T1 and [T2.
11811 (ref*spec!0, ref*spec!2): Use T1 rather than T.
11812 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11813 (ref*add-T2): Renamed from ref*add-T.
11814 (ref*add-T1): New macro.
11816 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
11818 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11820 * libbib/index.cc: Include <fcntl.h>.
11821 (O_RDONLY): Define if necessary.
11822 (make_index_search_item, index_search_item_iterator::get_tag,
11823 index_search_item::check_files): Use O_RDONLY.
11824 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11825 (O_RDONLY): Define if necessary.
11826 (search_list::add_file): Use O_RDONLY.
11827 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11829 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11832 * libbib/index.cc (S_ISREG): Define it if necessary.
11833 (index_search_item::load): Use S_ISREG.
11835 * include/driver.h: Include <errno.h>.
11837 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
11839 * eqn/box.cc (body_height): Increase default value to 85.
11840 (body_depth): Increase default value to 35.
11842 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
11844 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11845 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11846 protected from expansion with \E.
11848 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11850 * Makefile (Makefile): New target.
11852 * Makefile.sub (configure, distfiles): New targets.
11854 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11857 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
11859 * eqn/box.cc (param_table): Add body_height and body_depth.
11861 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11863 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
11865 * psbb/Makefile.sub: Don't link with libgroff.a.
11867 * acgroff.m4 (GROFF_PUTENV): New macro.
11868 * configure.in: Call GROFF_PUTENV.
11869 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11870 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11873 * troff/env.cc (distribute_space): Rename force_forward argument
11874 to force_reverse. Reverse the list if force_reverse is true.
11876 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
11878 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11880 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11881 height or depth to be negative. Guard against SUP_RAISE quantity
11884 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
11886 * devps/generate/textmap: Add `an' (arrowhorizex).
11887 * tmac/tmac.ps: \(an overlaps horizontally.
11888 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11890 * devps/symbolchars: Add arrowverttp, arrowvertbt.
11891 * devps/textmap: Add arrowvertex.
11892 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11893 updownarrow delimiters.
11894 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11896 * tbl/table.cc (simple_entry::position_vertically,
11897 block_entry::position_vertically): For a centered entry, perform
11898 the motion in two stages.
11900 * refer/refer.cc (split_punct): Don't call lookup_token if there
11903 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
11905 * troff/input.cc (token::next): Delete token_node after copying
11908 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11911 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11913 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11915 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
11917 * grops/ps.cc (usage): -b option takes an argument.
11919 * devps/prologue (PLG): New procedure.
11920 * grops/ps.cc (main, usage): New -g option.
11921 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
11924 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
11926 * include/cset.h: Include <limits.h> if we have it.
11928 * libgroff/illegal.cc: New file.
11929 * include/lib.h (illegal_input_char): Use table.
11930 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11931 * pic/lex.cc (ARG1): Renumber to 14.
11932 * eqn/lex.cc (ARG1): Likewise.
11934 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11935 (eg 1.05.90) correctly.
11937 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
11939 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11940 Rename $r and $R registers to $v and $V.
11941 ($r, $R): Initialize to 0.
11942 (@v, @V): New macros.
11946 * troff/input.cc (main, usage): Add -R option that says not to
11948 * eqn/main.cc (main, usage): Rename -n to -R.
11950 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
11952 * devps/DESC.in: Leave font positions 5-9 blank.
11953 * devdvi/DESC.in: Likewise.
11955 * grog/grog.pl: Handle `.PS <file' correctly.
11957 * troff/input.cc (input_stack::push): Improve error message when
11958 input stack limit exceeded.
11960 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
11962 * refer/refer.cc (main): Fix typo in handling of `a' option.
11964 * refer/refer.cc (do_bib): In state START after a newline remain
11967 * groff/groff.sh: Deleted.
11968 * groff/Makefile.sub: Delete handling of groff.sh.
11970 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11971 to determine whether to use \X'ps:...'.
11972 * tmac/troffrc: Set 0p register to 0.
11973 * tmac/tmac.ps: Set 0p register to 1.
11975 * groff/groff.cc: Support -X option. Give warning for -TXps and
11976 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11977 * tmac/troffrc: Support -r.X=1.
11979 * pic/troff.cc (troff_output::dot): Don't test
11980 zero_length_line_flag.
11982 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
11984 * include/lib.h: Declare getopt() and friends unless
11985 STDLIB_H_DECLARES_GETOPT is defined.
11987 * doc/chars.tr: Delete.
11988 * man/groff_char.man: New file.
11990 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
11992 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11993 user has changed register format.
11995 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
11997 * groff/groff.cc: Get rid of device_table. Get postprocessor from
11998 `postpro' command in DESC file. Get spooler command from `print'
11999 command in DESC file. Execute spooler command with /bin/sh.
12001 * groff/groff.cc: Split Unix-specific parts into...
12002 * groff/pipeline.c: New file.
12005 * COPYING: New file.
12006 * all files: Update copyright notices.
12008 * Rearrange files. Redo Makefiles. Use autoconf.
12010 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
12012 * troff/input.c (charinfo_to_node_list): Interpret character
12013 definition with escape_char of `\'.
12015 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
12017 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12018 Define INT_DIGITS as big enough for 64-bit integer.
12019 * lib/strtol.c: Don't include lib.h.
12020 * lib/lib.h: Delete ifdef __cplusplus stuff.
12022 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
12024 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
12025 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
12026 get DESC from current directory.
12028 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
12030 * tbl/main.c (main): Always reset the line number when reading
12033 * tbl/table.c (table::print_single_hline, table::print_double_hline,
12034 table::define_bottom_macro, table::do_row, table::do_top): Round
12035 vertical spacing up to vertical resolution.
12037 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
12039 * ps/ps.h (enum resource_type): Avoid comma at end of
12041 * dvi/dvi.c (class dvi_printer): Likewise.
12042 * dvi/tfmtodit.c (gf::load): Likewise.
12043 * refer/label.y (struct expression): Likewise.
12044 * refer/refer.c (class label_processing_state): Likewise.
12045 * refer/indxbib.c (do_file): Likewise.
12046 * troff/troff.c (enum warning_type): Likewise.
12047 * tbl/main.c (process_data): Likewise.
12048 * troff/charinfo.h (class charinfo):
12050 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
12052 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
12054 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
12056 * groff.c: Move to new groff subdirectory.
12057 * groff/Makefile: New file.
12058 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12060 * man/mdate.sh: Use ls -L if supported.
12062 * Consolidate all header files produced by gendef into lib/defs.h.
12063 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12064 Don't include path.h.
12065 * lib/Makefile (path.h): Don't generate.
12066 * troff/input.c: Include defs.h. Don't include config.h.
12067 * troff/Makefile (config.h): Don't generate.
12068 * refer/index.h: Don't include suffix.h.
12069 * refer/index.c: Include defs.h.
12070 * refer/indxbib.c: Include defs.h.
12071 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12073 * refer/Makefile (suffix.h, path.h): Don't generate.
12074 * groff.c: Don't include config.h. Include defs.h.
12075 * Makefile (config.h): Don't generate.
12076 (lib/defs.h): Generate.
12077 (topclean): Remove lib/defs.h.
12079 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
12081 * lib/malloc.c, lib/getpagesize.h: Deleted.
12082 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
12084 * lib/Makefile: Delete malloc-related stuff.
12085 * lib/new.c: Workaround COOKIE_BUG if necessary.
12087 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
12088 needed header files directly.
12089 * refer/refer.h: Omit definition of DEFAULT_INDEX.
12090 * Makefile: Include definition of DEFAULT_INDEX in path.h.
12092 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
12094 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12096 * lib/font (font::load_desc, font::load): Don't split argument of
12098 (font::handle_unknown_font_command): Change type.
12099 * ps/ps.c (ps_font::handle_unknown_font_command,
12100 handle_unknown_desc_command): Change type.
12101 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12103 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
12105 * lib/font.h (font::handle_unknown_font_command): Add file and
12107 * lib/font.c (font::handle_unknown_font_command):
12108 * ps/ps.c (ps_font::handle_unknown_font_command):
12109 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12110 lineno arguments. Use _with_file_and_line functions for error
12113 * lib/fontfile.c (font::unknown_desc_command_handler): New static
12115 * lib/font.c (font::set_unknown_desc_command_handler): New
12117 (font::load_desc): For unknown commands, call
12118 unknown_desc_command_handler if not null.
12119 * lib/font.h (class font): Declare them.
12120 (FONT_COMMAND_HANDLER): New typedef.
12121 * ps/ps.c (handle_unknown_desc_command): New function.
12122 (main): Set bflag if we had a -b option. Call
12123 font::set_unknown_desc_command_handler.
12124 (broken.h): Don't include.
12125 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
12127 * ps/devps/Makefile: Add `broken' command to DESC file using
12128 BROKEN_SPOOLER_FLAGS.
12130 * macros/tmac.e ([, ]): Add as synonyms for { and }.
12132 * macros/tmac.e ($p): Only exdent if \$3 > 0.
12134 * macros/tmac.e (@R, @S): New macros.
12135 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12136 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12137 Declare $H, $[0-9], .. macros with @S.
12138 Declare |0, |1, |2, |3 strings with @S.
12140 * macros/tmac.e (@S): Rename to @U.
12142 * macros/tmac.e (@z): Define @b and bp as empty instead of
12145 * macros/tmac.e (@m): Deleted.
12146 (@h): Don't call @m.
12147 (@z): Don't set @m trap.
12149 * macros/tmac.e ($h, $f): Define |z as empty string.
12151 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12154 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12156 ()f): Likewise for * register.
12158 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12159 argument is missing, don't change $R. Call sr with three
12160 arguments when initializing.
12162 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
12164 * macros/tmac.e (sr): New macro.
12165 Initialize $r and $R using sr.
12167 * macros/tmac.e (,): Delete \*(#[.
12169 * troff/env.c (set_tabs): Read the tab type even if the position
12170 is bad. Allow the position of the first tab stop to be negative.
12172 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
12174 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12176 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12177 rather than -DPATHCONF_MISSING.
12178 * Makefile: Get rid of PATHCONF_MISSING.
12180 * refer/map.c: New file.
12181 * refer/index.c: Interface to mmap through map.c. Rename map_size
12183 * refer/Makefile: Handle map.c.
12184 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12186 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
12188 * Makefile: RANLIB should be `true' if there is no ranlib.
12189 * lib/Makefile (libgroff.a): Simplify.
12190 * driver/Makefile (libdriver.a): Simplify.
12192 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12193 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
12196 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
12198 * troff/env.c (compare_ranges): Declare as extern "C".
12200 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12202 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12204 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
12206 * pic/troff.c (troff_output::text): Merge in grops_output::text,
12207 but conditionalize use of \X based on \*(.T.
12208 (grops_output::*): Deleted.
12209 * pic/output.h: Delete declaration of make_grops_output.
12210 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
12211 by default. -n sets it to 0.
12212 (usage): Corresponding changes.
12213 * groff.c (main): Don't pass -x or -p to pic.
12214 * groff.sh: Likewise.
12216 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12219 * ps/devps/afmtodit: Change calculation of asc_boundary and
12220 desc_boundary. Make these bounds inclusive.
12221 * ps/devps: Regenerate font files.
12223 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
12225 * macros/tmac.latin1: New file.
12226 * macros/tmac.tty-char: Use tmac.latin1.
12227 (tmac.tty-tr): Deleted.
12228 * macros/Makefile: Install tmac.latin1.
12229 * macros/tmac.dvi: Use tmac.latin1.
12230 * macros/troffrc: Translate \[char160] onto no-break space here.
12231 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12233 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
12235 * macros/tmac.Xps: Use `do' request.
12237 * macros/tmac.ps: Use `do' request.
12239 * macros/tmac.e (@C): Use `do' request.
12241 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12242 * macros/Makefile: Install tmac.X*.
12244 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12245 * tty/Makefile: Don't install tmac.tty*.
12246 * macros/Makefile: Install tmac.tty*.
12248 * dvi/tmac.dvi: Move to macros.
12249 * dvi/Makefile: Don't install tmac.dvi.
12250 * macros/Makefile: Install tmac.dvi.
12252 * ps/tmac.ps*: Move to macros.
12253 * ps/Makefile: Don't install tmac.ps*.
12254 * macros/Makefile: Install tmac.ps*.
12256 * eqn/box.c: Provide draw_lines parameter corresponding to -D
12258 * macros/eqnrc: Set draw_lines parameter based on device.
12259 * groff.c: Don't pass -D flag to eqn.
12260 * groff.sh: Likewise.
12261 * eqn/main.c: Warn about use of -D.
12263 * troff/input.c (process_startup_file): New function.
12264 (main): Call process_startup_file().
12265 * macros/troffrc: New file.
12266 * macros/Makefile: Install troffrc.
12267 * groff.c (main): Don't pass extra -m option to troff. For a
12268 pseudo device pass the name of the pseudo device to troff using
12270 * groff.sh: Likewise.
12271 * groff.c (possible_command::prepend_arg): Deleted.
12273 * troff/input.c (do_request): New function.
12274 (init_input_requests): Bind "do" to do_request.
12276 * eqn/main.c (main): Instead of loading eqnchar from device directory,
12277 load eqnrc from macro directory.
12278 * macros/eqnrc: New file.
12279 * macros/Makefile: Install eqnrc.
12280 * ps/devps/eqnchar: Deleted.
12281 * ps/devps/Makefile: Don't install eqnchar.
12282 * dvi/devdvi/eqnchar: Deleted.
12283 * dvi/devdvi/Makefile: Don't install eqnchar.
12284 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12287 * lib/device.[ch]: New files.
12288 * lib/font.h (font::set_device_name, font::get_device_name):
12290 * lib/fontfile.c: Use device.h.
12291 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12292 * troff/input.c: Delete definition of `device'.
12293 (main): Don't initialize device.
12294 * troff/troff.h: Include device.h rather than declaring device.
12295 * troff/Makefile: No need to handle DEVICE.
12296 * driver/input.c: Include device.h. Don't use
12297 font::{set,get}_device_name.
12298 * groff.c, Makefile: Rename device.h to config.h.
12299 * groff.c: Use library device variable.
12300 * eqn/main.c: Use library device variable.
12301 * eqn/Makefile: No need to handle DEVICE.
12303 * lib/searchpath.[ch]: New files.
12304 * lib/Makefile: Handle searchpath.[ch].
12305 * troff/input.c (open_file, init_dirs): Deleted.
12306 (macro_dirs): Deleted.
12307 (open_mac_file, macro_source): Use class search_path.
12308 (add_string, struct string_list): Move definition.
12309 (main): Change -M option to use macro_path. Delete call to
12311 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12312 Rewrite to use class search_path.
12313 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12314 * lib/Makefile: fontfile.c depends on searchpath.h.
12315 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12317 * lib/macropath.[ch]: New files.
12318 * troff/Makefile: No need to handle MACROPATH.
12320 * troff/input.c: Delete DUMP code.
12321 * lib/fontfile.c, lib/font.h: Delete
12322 font::forget_command_line_font_dirs.
12324 * troff/input.c (push_token): New function.
12325 (handle_first_page_transition): Use push_token().
12326 (process_input_stack): Change handling of a space at the beginning
12329 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
12331 * troff/input.c (font_dirs): Delete unused variable.
12333 * eqn/lex.c (do_set): Correct error messages.
12335 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
12337 * troff/input.c (do_define_string): Allow the string name to be
12338 followed immediately by a tab.
12339 (define_character): Likewise.
12341 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
12343 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12346 * troff/input.c (input_iterator::is_file): New virtual function.
12347 (file_iterator::is_file): New function.
12348 (input_stack::end_file): New function.
12349 (input_stack::next_file): Handle the situation where there is no
12350 file on the input stack correctly. Avoid making two passes over
12352 (next_file): Make the filename optional; in this case call
12353 input_stack::end_file().
12355 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
12357 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12358 produce a real _ charater when the current font is CW and _
12361 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12362 expression to work around gcc 2.2 bug.
12364 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
12366 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12368 * troff/env.c (environment::add_padding): New function.
12369 (environment::add_char): Use add_padding().
12370 (environment::space): Likewise.
12371 (environment::wrap_up_field): Add some padding if there is none
12372 and there's no current tab.
12373 * troff/env.h: Declare environment::add_padding.
12375 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
12377 * pic/pic.y: undef fmod and rand before declaring them.
12379 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
12381 * troff/input.c (main): If the DESC file specifies a font name of
12382 0, then leave the corresponding font position empty.
12384 * nroff.sh: New file.
12385 * Makefile (install.nobin): Install nroff.sh.
12387 * tty/devlatin1/R.proto: Add ao as synonym for de.
12388 * tty/tmac.tty-char: Define ao as o.
12390 * tty/dev{ascii,latin1}/R.proto: Add aq.
12391 * tty/tmac.tty-char: Delete definition of aq.
12393 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
12395 * troff/input.c (init_charset_table): Don't translate 0240.
12396 * ps/tmac.ps: Translate char160 to space.
12397 * dvi/tmac.dvi: Likewise.
12398 * tty/tmac.tty: Likewise.
12400 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
12402 * dvi/tmac.dvi: Add support for all Latin-1 characters.
12404 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12405 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12408 * tty/tmac.tty-char: Add \(ah.
12410 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12411 No need to define \(FM and \(!/. Conditionalize all character
12414 * ps/devps/lgreekmap: Add +h, +f, +p.
12416 * ps/tmac.psnew: New file.
12417 * ps/Makefile: Install tmac.psnew.
12419 * troff/input.c (charinfo_to_node_list): Don't ever interpret
12420 character definitions in compatible mode.
12422 * troff/input.c (remove_character): New function.
12423 (init_input_requests): Bind remove_character to "rchar".
12425 * ps/tmac.psold: New file.
12426 * ps/Makefile: Install tmac.psold.
12427 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12428 characters into tmac.psold. Make these definitions unconditional.
12430 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12432 * ps/tmac.ps: Don't define \('c and \('C.
12434 * ps/devps/textmap: Move Greek characters to...
12435 * ps/devps/symbolchars:
12437 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
12439 * ps/devps/text.enc: Add quotesingle.
12440 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12441 * tty/tmac.tty-char: Likewise.
12442 * dvi/devdvi/texmi.map: Add +h, +f, +p.
12443 * dvi/devdvi/texi.map: Add Fn.
12444 * dvi/devdvi/msam.map: Add lz.
12445 * dvi/tmac.dvi: Handle Bq, bq, aq.
12447 * pic/lex.c (get_token): Recognize 'th.
12448 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12450 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
12452 * ps/devps/textmap: Move di, mu, +- to...
12453 * ps/devps/symbolchars:
12455 * macros/tmac.s (@XS): Don't call par@reset or fi.
12456 (XA): Call LP. Turn off adjustment. Reduce line length.
12458 * macros/tmac.s: Initially alias XS to LP.
12459 (XS): Rename to @XS.
12460 (cov*ab-init): Alias XS to @XS.
12462 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
12464 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12465 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12466 (token::is_size, token::changes_env): Deleted.
12467 * troff/number.c (parse_term): No need to process \s explicitly.
12468 Call tok.next() only after scale indicator has been processed.
12469 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12471 (token::next): Handle \s, \f, \S, \H immediately rather than
12472 returning them as tokens.
12473 (token::operator==, token::description, token::add_to_node_list,
12474 token::process): Remove handling of deleted tokens.
12476 * troff/env.c (environment::add_char): When adding padding
12477 indicator character, call start_line() if necessary.
12479 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
12481 * ps/devps/afmtodit: Don't output 0 kerns.
12483 * ps/devps/afmtodit: Remove directory from name of encoding in
12484 font description file.
12486 * ps/devps/afmtodit: Improve error messages.
12488 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12490 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12491 * ps/devps/FontMakefile: Deleted.
12492 * ps/devps/afmname: New file.
12494 * ps/devps/symbol.sed: New file.
12495 * ps/devps/symbol.diff: Deleted.
12496 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12497 Generate zapfdr.afm from zapfd.afm.
12499 * tty/tmac.tty (tty-char): Prefix definition with ".
12501 * macros/tmac.an (TP): Don't start a diversion if one has already
12504 * tty/tmac.tty-char: Add Latin-1 characters.
12506 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12508 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
12510 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12511 Move declaration of struct horizontal_span.
12513 * tbl/table.c (table::table): Initialize span_list.
12514 (table::~table): Delete span_list.
12516 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12518 * ps/devps/Makefile: Avoid dependency on GNU make.
12520 * ps/tmac.ps: Check that character does not already exist before
12523 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12524 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12525 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12528 * tty/tmac.tty-char: New file.
12529 * tty/Makefile: Install tmac.tty-char.
12530 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12533 * tty/tmac.tty: Fix definition of \(34.
12535 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12536 bracket-drawing characters onto |. Add *o.
12538 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12539 only if current_field.
12541 * troff/dictionary.c (dictionary::lookup): Free old_table after
12544 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
12546 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12547 whose glyphs are identical to glyphs of some Roman character.
12549 * tty/devlatin1/R.proto (bu): Deleted.
12550 * tty/devascii/R.proto (bu): Deleted.
12551 * tty/tmac.tty: Add definition of \(bu.
12553 * eqn/main.c (do_file): Pass FILE as argument.
12554 (main): Automatically load eqnchar. New options -F and -n.
12555 Pass do_file an opened FILE.
12556 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12557 No need to include font.h.
12558 * groff.sh: Likewise. Don't need to use - for standard input.
12559 Prefix files with -- if first file starts with -.
12561 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12563 * troff/env.c (environment::possibly_break_line): Don't set line
12564 to 0 across call to output_line(). Don't call output_line() until
12565 after discarding nodes after break.
12567 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
12569 * request.h (macro::empty): Declare it.
12570 * input.c (macro::empty): New method.
12571 (interpolate_macro): Don't give a WARN_SPACE if the two-character
12574 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
12576 * troff/env.c (environment::start_field): Decrement space_total
12577 when a space is frozen.
12579 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
12581 * macros/tmac.an (R): Delete macro.
12583 * troff/input.c (get_copy, token::next): Support \# (like \" but
12584 newline is ignored).
12586 * troff/input.c (token::next): Fix error message in 'Y' case.
12588 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
12590 * eqn/delim.c (define_extensible_string): Recognize any prefix of
12593 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
12595 * c++test.c: Include <osfcn.h>.
12597 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12600 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
12602 * tbl/table.c (table::divide_span): Don't count column separation
12603 if expand was specified.
12605 * tbl/main.c (process_format): Don't ignore width specs in
12606 continued format. Give warning for changing equal widths or
12607 column separation in continued format.
12608 (process_data): Set column separation, minimum width, equal
12609 columns at end of table.
12611 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
12613 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12614 node::add_discretionary_hyphen): Use soft_hyphen_char.
12615 (set_soft_hyphen_char): New function.
12616 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
12618 * Makefile (c++tested): Give more helpful message if test fails.
12620 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
12622 * troff/input.c (init_charset_table): Translate 0240 to
12623 an unbreakable space.
12625 * troff/token.h (token::hyphen_indicator): New function.
12626 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12628 * troff/input.c (translate): Allow translation to \%.
12629 * troff/node.c (node::add_char): Handle
12630 TRANSLATE_HYPHEN_INDICATOR.
12631 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12633 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12636 * tty/devlatin1/R.proto: \(hy and - should print as 055.
12638 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
12640 * groff.c (run_commands): If the last command gets a SIGPIPE send
12641 a SIGPIPE to all children than haven't yet terminated. When
12642 command terminates, set pid field to -1.
12644 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
12646 * groff.c (main): Pass an appropriate -filename option to gxditview.
12648 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
12650 * Makefile.bd (install): Remove existing program before copying.
12652 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12653 programs which have Unix counterparts to be installed with
12654 user-specified prefix.
12656 * troff/input.c (exit_troff): Don't check if exit_started.
12657 (exit_request): Don't call exit_troff if exit_started.
12659 * Makefile.bd (install.mm): Rename to install.dwbmm.
12661 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
12663 * driver/input.c (do_file): Add missing break for '#' case.
12665 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
12667 * troff/input.c (input_stack::clear): Clear past any boundaries and
12668 then add the boundaries back.
12670 * troff/input.c (exit_troff): Return immediately if already
12673 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
12675 (pg*end-page): If the text has ended and there are no more
12676 footnotes or keeps, exit.
12678 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12680 * troff/input.c (init_charset_table): Make \(rq transparent by
12683 * macros/tmac.an: Define lq and rq strings.
12685 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12687 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
12689 * troff/env.c (environment::final_break): New function.
12690 (environment::newline): Set prev_line_interrupted to 2 if
12692 * troff/env.h: Declare environment::final_break.
12693 * troff/input.c (exit_troff): Call environment::final_break()
12694 instead of environment::do_break().
12696 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12697 doesn't already exist.
12698 * macros/man.local: New file.
12699 * macros/tmac.an: Load man.local.
12700 * macros/man.ultrix: New file.
12702 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
12704 * troff/input.c (exit_groff): Rename to...
12705 (exit_troff): New function.
12707 * troff/div.c (exit_started, done_end_macro,
12708 seen_last_page_ejector): New global variables.
12709 (began_page_in_end_macro): New static variable.
12710 (exit_flag): Deleted.
12711 (top_level_diversion::top_level_diversion): Initialize
12713 (top_level_diversion): More elaborate test for whether
12714 cleanup_and_exit() should be called.
12715 Set began_page_in_end_macro if the end macro isn't yet finished.
12716 * troff/div.h (top_level_diversion::last_page_count): New data
12718 (top_level_diversion::set_last_page): New function.
12719 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12720 * troff/env.c (do_break): Zero prev_line_interrupted.
12721 * troff/input.c (exit_flag): Delete declaration.
12722 (LAST_PAGE_EJECTOR): New magic cookie.
12723 (token::next): Handle LAST_PAGE_EJECTOR.
12724 (exit_groff): Set exit_started and done_end_macro instead of
12725 exit_flag. Call top_level_diversion::set_last_page. Push a
12726 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
12727 another ejection after setting seen_last_page_ejector.
12729 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
12731 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12733 * macros/tmac.e (TH): Make sure there's room for the initial
12736 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12737 Set FVS in points rather than units.
12739 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
12741 * troff/div.c (top_level_diversion::add_trap): Don't consider the
12742 position of empty slots.
12744 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
12746 * ps/devps/S: Fix height and depth of parenrightex.
12747 * ps/devps/symbol.diff: Regenerate.
12749 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
12751 * tmac.e (u): Do underlining as in -mgs.
12753 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
12755 * tty/tty.c (tty_printer::end_page): If overstriking is
12756 suppressed, still turn overstruck horizontal and vertical lines
12759 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12762 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12764 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
12766 * Version 1.05 released.
12768 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
12770 * tty/tty.c: Instead of keeping an array of glyphs and then
12771 sorting it, keep a ordered linked list of glyphs for each line.
12773 * driver/driver.h: Include stddef.h.
12775 * tty/tty.c (compare_glyph):
12776 * refer/refer.c (rcompare):
12777 * troff/env.c (compare_ranges): Arguments of qsort comparison
12778 function should be const void *.
12780 * troff/number.c (parse_term):
12781 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12784 * refer/label.y (consider_authors): Don't access variables
12785 constructed under a condition outside that condition: put braces
12786 round for statement containing declaration; redeclare use of same
12789 * pic/pic.y (text_expr): Delete production that allows
12790 parenthesised text_expr.
12791 (expr): Allow a conditional_expr to appear in parentheses.
12792 (conditional_expr): Rename to any_expr.
12794 * mm: Install new version 1.01 from jh.
12796 * lib/font.c (font::get_width): Cache scaled widths.
12797 (font::font): Initialize widths_cache.
12798 (font::~font): Destroy widths_cache.
12799 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12801 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
12803 * c++test.c, c++test.ref: New files.
12804 * Makefile: Check that the C++ compiler works.
12806 * ps/tmac.pspic (PSPIC): Do a break.
12808 * ps/tmac.ps: Move definition of PSPIC into...
12809 * ps/tmac.pspic: New file.
12810 (PSPIC): Draw box around picture, but make it invisible to grops.
12811 * ps/tmac.ps: Load tmac.pspic.
12812 * ps/Makefile: Install tmac.pspic.
12814 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
12816 * lib/font.c (scale_round): If n is negative,
12817 subtract .5 before truncating floating point result.
12819 * lib/fontfile.c: Include <errno.h>.
12821 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
12823 * driver/input.c (get_char): Inline. Don't update current_lineno.
12824 Change callers to up date current_lineno if necessary.
12825 Use get_char() instead of getc(current_file).
12827 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
12829 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12831 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
12833 * tty/tty.c (tmac.tty): Define \(rg as (R).
12835 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
12837 * lib/lib.h: New define a_delete.
12838 * Use a_delete instead of delete when deleting an array of objects
12839 without destructors.
12841 * lib/lib.h: Rename adelete to ad_delete.
12842 * Change uses of adelete.
12844 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
12846 * eqn/eqn.y: Include lib.h.
12848 * troff/node.c (grow_font_table): Delete old_font_table.
12850 * mm: Install new version from jh.
12852 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
12854 * tbl/table.h (format_type): Make global instead of local to class
12855 entry_format. Prefix enumerators with FORMAT_.
12856 * tbl/table.c, tbl/main.c: Corresponding changes.
12857 * refer/token.h (token_type): Make global. Prefix enumerators
12859 * refer/token.[ch]: Corresponding changes.
12860 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12862 * troff/div.c (node::set_vertical_size): Don't name argument.
12864 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
12866 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12867 * lib/lib.h: Define adelete accordingly.
12868 * pic/object.c (graphic_object::graphic_object):
12869 * tbl/main.c (format::~format):
12870 * tbl/table.c (table::~table):
12871 * refer/ref.c (reference::~reference, reference::merge,
12872 reference::insert_field, reference::delete_field): Use adelete.
12874 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12876 * tbl/table.h: Corresponding changes.
12878 * common.c (common_output::dashed_arc, common_output::dotted_arc):
12879 Ensure total_angle is positive.
12881 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
12883 * refer/ref.c (reference::merge, reference::insert_field,
12884 reference::delete_field): Avoid delete[0].
12886 * refer/token.c (init_special_chars): Move calls to cmupper
12887 outside calls to init_two_char_letter to work around bug in gcc
12890 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
12892 * lib/new.c (operator new): Use __builtin_new for g++.
12894 * pic/object.c (graphic_object::~graphic_object): Don't use
12897 * pic/object.c (output::compute_scale): Initialize max_width and
12900 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
12902 * troff/input.c (write_request): Call fflush.
12904 * troff/node.h (class composite_node): Move declaration to node.c
12905 * troff/input.c (charinfo_to_node): Rename to ...
12906 (charinfo_to_node_list): Return node list rather than composite
12908 * troff/node.c (make_composite_node): New function.
12909 (make_node, add_char): Call make_composite_node instead of
12911 (class composite_node): Add a tfont * member. Delete font_size
12913 (composite_node::composite_node, composite_node::copy,
12914 composite_node::size): Corresponding changes.
12915 (composite_node::tprint): Provide constant spacing, emboldening
12916 and track kerning as specified in tfont.
12917 (composite_node::width): Change width calculation accordingly.
12918 * troff/env.h (environment::composite): New member.
12919 (environment::is_composite, environment::set_composite): New
12921 * troff/env.c (environment::environment): Initialize composite.
12922 * troff/input.c (charinfo_to_node): Call
12923 environment::set_composite.
12924 * troff/node.c (make_composite_node, make_glyph_node): Use the
12925 plain version of the tfont if the environment is composite.
12927 * troff/node.c (font_info::get_space_width): Additional argument
12928 giving space_size. Handle constant space correctly. Scale by
12929 space_size unless constant spaced.
12930 (env_sentence_space_width): New function.
12931 * troff/node.h: Declare it.
12932 * troff/env.h (environment::get_space_size,
12933 environment::get_sentence_space_size,
12934 environment::get_narrow_space_width,
12935 environment::get_half_narrow_space_width): Make inline.
12936 (environment::get_space_width): Make inline. Just call
12938 * troff/env.c: Delete definitions for funtions made inline.
12939 (environment::space_newline, environment::space): Use
12940 env_sentence_space_width(). Don't scale by space_size.
12941 * troff/node.h: Move declarations of env*space_width() functions
12944 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
12946 * macros/tmac.s (PS): Don't try to set negative indent.
12948 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
12950 * pic/pic.y: Fix min function.
12952 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
12954 * man/mdate.sh: Clear LANGUAGE.
12956 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
12958 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12959 * pic/lex.c: New COMMAND keyword.
12960 * pic/pic.y (print_args, print_arg): New rules.
12961 (placeless_element): Use print_args for PRINT.
12962 New COMMAND element.
12964 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
12966 * troff/input.c (terminal): Handle missing argument correctly.
12968 * pic/pic.y (text_expr): New rule.
12970 * pic/pic.y: Implement := operator.
12972 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
12974 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12977 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
12979 * ps/devps/dingbatsrmap: Include this in the distribution.
12981 * macros/tmac.doc: Replace with new version from 2nd Networking
12982 Release. Fix loading of doc-* files.
12983 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12984 * macros/tmac.doc.old: New file. Apply fixes that had been
12985 applied to old tmac.doc.
12986 * macros/tmac.andoc: Check that we're running under groff.
12987 * macros/Makefile: Rework.
12989 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
12991 * tbl/table.h (format_type):
12992 * refer/token.h (token_type): If NESTED_TYPES is defined, use
12993 typedef to make these types visible at file scope.
12994 * Makefile: Add NESTED_TYPES configuration option.
12996 * troff/div.c (mark): At the top level use the value of
12997 nl_reg_contents rather than the current vertical position.
12999 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
13001 * tty/tty.c: Implement \D for horizontal or vertical lines.
13002 (tty_printer::set_char): Use vec_used+2 as serial number.
13003 Don't allow size of vector to exceed USHRT_MAX-2.
13004 Split off part into...
13005 (tty_printer::add_char): New function.
13006 (tty_printer::draw): New function.
13007 (compare_glyph): Handle equal serial numbers.
13008 (tty_printer::end_page): Handle overstruck characters from \D.
13009 (main, usage): Implement -d option.
13011 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
13013 * tbl/main.c (process_format):
13014 * eqn/text.c (split_text):
13015 * troff/input.c (token::next): Use inner block for declarations
13016 with initializers in switch statement.
13018 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
13020 * pic/common.c (common_output::dash_line): Cope with zero-length
13023 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
13025 * Version 1.04 released.
13027 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
13029 * macros/tmac.an (TH): Define a macro an-init to define variables
13030 based on command line arguments.
13031 (an-header): Call it.
13033 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
13035 * Makefile (install.mm): Rename to install.dwbmm.
13037 * Makefile: Integrate mm.
13038 * mm: New directory.
13040 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
13042 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13045 * pic/troff.c (troff_output::simple_spline,
13046 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13047 shadowing parameter.
13049 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13051 * lib/ptable.h: Add explicit casts when converting from unsigned
13054 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13055 * dvi/devdvi/Makefile: Install SA, SB.
13057 * refer/indxbib.c: Add declaration of mktemp.
13059 * refer/lookbib.c: Add declaration of isatty.
13061 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
13063 * pic/lex.c (interpolate_macro_with_args): While collecting
13064 arguments, keep track of whether we're in a string.
13066 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
13068 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13069 down with \v, so as to avoid problems with top of page trap
13070 setting no space mode.
13072 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
13074 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13076 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
13078 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13079 Improve error message.
13081 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
13083 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13086 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
13088 * groff.c (possible_command::execp): Always use _exit() after a
13091 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13092 NO_SYS_WAIT_H configuration options.
13093 * groff.c: Use these options. Use POSIX-style macros to extract
13094 fields from the status returned by wait().
13096 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
13098 * tbl/table.c (table::compute_separation_factor): Allow the
13099 separation factor to drop to 0.
13101 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
13103 * refer/search.c: Include <errno.h>.
13105 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
13107 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13109 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13112 * pic/lex.c (input_stack::bol): Move definition out of class body.
13114 * pic/main.c: On MSDOS munge argv[0].
13116 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13118 * lib/ptable.c (hash_string): Use unsigned long rather than
13120 (next_ptable_size): Use unsigned rather than int. Give an error
13121 message if we've hit the largest table size.
13122 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
13125 * pic/object.h (object_spec): Make flags unsigned long. Declare
13126 flags as const unisgned long rather than as enums.
13128 * pic/output.c: Deleted.
13130 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13132 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13133 Add additional argument.
13134 (line_entry::note_double_vrule_on_{left,right}): Set value of
13135 douvle_vrule_on_{right,left} flag according to argument.
13136 (simple_line_entry::simple_print,
13137 simple_line_entry::double_line_print): If adjacent to double vrule
13138 on a corner extend rather than shorten the rule by half the double
13141 * troff/number.c (parse_term): In checking for overflow, handle the
13142 case where the current horizontal position is negative.
13144 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
13146 * pic/object.c (draw_arrow): Check for object having zero length.
13148 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
13150 * eqn/main.c (do_file): Split off inline equation handling into...
13151 (inline_equation): New function. Search for starting delimiter
13153 (delim_search): New function. Don't recognize a delimiter that
13154 occurs in the name of an escape sequence, number register, string
13157 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
13159 * eqn/delim.c (delim_box::compute_metrics): Don't call
13160 define_extensible_string if left is 0.
13161 (delim_box::output): Don't print the left delimiter if left is 0.
13162 (delim_box::debug_print): Check for left == 0 before calling printf.
13164 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
13166 * troff/Makefile (majorminor.c): Include only digits in
13169 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
13171 * refer/dirnamemax.c: new file.
13172 * refer/genlimits.c: Deleted.
13173 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13174 Don't check path length.
13175 * refer/Makefile: Add dir_name_max.o; delete genlimits.
13176 * Makefile: Add PATHCONF_MISSING option.
13178 * refer/indxbib.c (get_cwd): New function.
13179 (main): Use get_cwd().
13180 * lib/getcwd.c: New file.
13181 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13182 GETCWD in SUBFLAGS.
13183 * lib/Makefile: Compile getcwd.o.
13185 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13188 * refer/indxbib.c (main): Check success of mktemp.
13190 * lib/tmpfile.c: New file.
13191 * lib/Makefile: Add tmpfile.c.
13192 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13193 * ps/ps.h: Delete declaration of mktemp().
13194 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13195 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13196 * driver/driver.h: No need now to include errno.h.
13198 * everywhere: Set errno to 0 before calling fopen().
13200 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13201 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13202 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13204 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
13206 * troff/env.h (translate_space_to_dummy): Declare it.
13207 * troff/env.c (environment::space_newline, environment::space):
13208 If translate_space_to_dummy is set then make the width of spaces 0.
13209 * troff/input.c (translate): If the second character of a
13210 translation is a space, translate to unbreakable space. If the
13211 first character is a space, set or clear translate_space_to_dummy
13212 according to whether the second character is \&. Weird!
13214 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
13216 * groff.c (run_commands): Don't use non-zero exit code because a
13217 command gets SIGPIPE.
13219 * groff.c, groff.sh: Use -mXps with -TXps.
13221 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13222 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13223 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13224 (ps_printer::special): New specials invis and endinvis.
13225 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13226 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
13227 (ps_printer::end_page): Check that invis_count == 0.
13228 (ps_printer::invis_count): New member.
13229 (ps_printer::ps_printer): Initialize invis_count to 0.
13231 * troff/env.c (environment::hyphenate_line): Hyphenation
13232 indicator at beginning of word inhibits splitting after -, \(em
13235 * pic/pic.y (element): Allow another element to follow } without
13236 any intervening separator.
13238 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
13240 * pic/lex.c (get_delimited): Allow tabs before delimiter.
13242 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
13244 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
13245 declaration of wait() in header files.
13246 * Makefile: Get rid of -DHAVE_UNION_WAIT.
13248 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13250 * lib/lib.h: Declare return type of strerror as char *.
13252 * man/Makefile: Add g flag to sed substitutions.
13253 * Makefile (shgroff, bindist): Likewise.
13255 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
13257 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13258 * ps/devps/prologue (PBEGIN): Define showpage after pushing
13261 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
13263 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13266 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
13268 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13271 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
13273 * troff/input.c (define_number_reg): If currently undefined,
13274 don't define it if the argument is an invalid expression.
13276 * Makefile: Ignore return value of `if' commands without `else'
13279 * Makefile: Split up CPPDEFINES into a series of separate
13280 configuration options.
13282 * troff/input.c (init_registers): Use time_t instead of long
13283 unless LONG_FOR_TIME_T is defined. Use returned result rather
13284 than passing pointer.
13285 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13287 * lib/Makefile (fontpath.h): Use gendef.
13289 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
13291 * troff/input.c (input_iterator::shift): Delete argument name.
13292 * troff/node.c (suppress_output_file::really_begin_page,
13293 suppress_output_file::really_transparent_char, node::ascii_print,
13294 node::tprint): Delete names of unused arguments.
13296 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
13298 * refer/label.y (string): Pass $4 to command_error.
13300 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
13302 * Version 1.03 released.
13304 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
13306 * Makefile: Pass definition of SHELL in SUBFLAGS.
13308 * gendef: New file.
13309 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13310 ps/Makefile: Use gendef to construct header files that are
13311 constructed from the Makefile.
13313 * macros/Makefile: make all should build stripped version of tmac.e.
13315 * refer/Makefile (clean): Remove y.output.
13317 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
13319 * ps/pfbtops.c (main): Add -v option which prints out a version
13321 * ps/Makefile (pfbtops): Link with libgroff.a.
13323 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
13325 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13326 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13328 * refer/lkbib.c (main): Always terminate reference with blank
13330 * refer/lookbib.c (main): Likewise.
13332 * refer/linear.c (file_buffer::load): Check that the file is not a
13335 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13336 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13337 Delete second inclusion of <sys/param.h>.
13339 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
13341 * troff/token.h (token::special): Deleted.
13343 * tbl/main.c (process_format): Rework so that opt->tab_char is
13344 recognized only when appropriate.
13346 * ps/Makefile (clean): Remove pfbtops.
13348 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
13350 * lib/font.c (text_file::next): Don't return if we have got a
13353 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
13355 * refer/refer.c (store_reference): Get hash code from old_table[i]
13356 when rehashing the table.
13358 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
13360 * eqn/box.c (box::top_level): Save size and prev size using \R and
13361 restore it afterwards. Set the size to the size at the beginning
13363 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13364 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13366 * refer/Makefile (limits.h): Use ./genlimits.
13368 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
13370 * refer/index.c: Delete declarations of stat() and fstat().
13372 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
13374 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13376 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
13378 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13380 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
13382 * troff/input.c (token::get_char): Handle \e.
13384 * refer/linear.c: Delete declarations of fstat() and stat().
13386 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
13388 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13389 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13391 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
13393 * troff/input.c (do_define_macro): Improve error handling for end
13394 of file while defining macro.
13396 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
13398 * eqn/box.h: Fix declaration of set_gsize.
13399 * eqn/box.c (set_gsize): Make argument const char *.
13400 (gsize): Declare as char *.
13401 * eqn/main.c (main): Don't convert gsize to int.
13402 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13404 * Version 1.02 released.
13406 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
13408 * macros/tmac.andoc: New file.
13409 * macros/Makefile: Install tmac.andoc.
13411 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13412 operator new and delete on OP_DELETE_BROKEN not being defined.
13413 * Makefile: Mention OP_DELETE_BROKEN.
13415 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
13417 * Makefile (bindist): Pass SUBFLAGS.
13419 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
13421 * Makefile, groff.c: Pass definitions to groff.c via device.h.
13423 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13426 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13428 * ps/ps.h, ps/psrm.c: Make comment_table and
13429 header_comment_table local to resource_manager::process_file.
13431 * groff.sh: With -TXps pass -printCommand option to gxditview.
13433 * groff.c (possible_command::print): Implement using
13434 append_arg_to_string.
13436 * xditview: Merge in new implementation with own ChangeLog.
13438 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
13440 * groff.c (main): Implement PRINT_OPTION.
13441 (append_arg_to_string): New command.
13442 (device_table): Set PRINT_OPTION flag for Xps.
13444 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
13446 * troff/groff.h: Rename to troff.h.
13448 * pic/lex.c (lookup_keyword, docmp): New functions.
13449 (get_token): Use new lookup_keyword.
13450 Don't include key.h.
13451 * pic/key.[ch], pic/pic.gperf: Deleted.
13452 * pic/Makefile: Remove gperf stuff.
13454 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13456 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13458 * troff/Makefile, troff/node.c: Move definition of
13459 STORE_WIDTH into node.c.
13461 * etc/grog.pl, etc/grog.sh: Support -mdoc.
13463 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
13465 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13466 dvi/devdvi/texb.map: Add lq and rq.
13467 dvi/devdvi: Regenerate fonts.
13468 * ps/devps/textmap: Add lq and rq.
13469 * ps/devps: Regenerate fonts.
13470 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13471 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13473 * pic/object.c (position_rectangle): When checking radius
13474 cope with possiblity that width or height is negative.
13475 (box_object::box_object): Have separate xrad and yrad with
13476 signs matching signs of dim components.
13477 (box_object::{north,south}_{east,west}): Use xrad and yrad.
13478 (box_object::print): With rounded boxes use absolute values
13479 for dim and rad arguments.
13481 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13484 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13486 * various files: Add explicit destructors to keep Saber CC +d
13489 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
13491 * eqn/box.c (box::top_level): Restore fonts correctly after
13492 font changes in line containing inline equation. Also
13493 restore previous font as well as current font.
13494 * eqn/pbox.h: Define necessary string and register names.
13496 * troff/input.c (token::next): Case 'R' calls do_register.
13497 (do_register): New function.
13499 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
13501 * groff.c, groff.sh: Support Xps device. Allow each device
13502 to have a pseudo_name and a real_name.
13504 * groff.c (run_commands): Don't print `Broken pipe' messages.
13506 * ps/pfbtops.c: New file.
13507 * ps/Makefile: Add pfbtops.
13509 * troff/number.c (parse_term): Improved error message.
13511 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
13513 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13515 * Makefile: Integrate refer.
13516 * refer: New directory.
13517 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13518 man/lkbib.man: New files.
13519 * man/Makefile: Support refer man pages.
13521 * lib/lib.h: Declare is_prime.
13522 * lib/prime.c: New file.
13524 * troff/input.c (macro_source): New function.
13525 (init_input_requests): Bind "mso" to macro_source.
13527 * troff/env.c (environment::possibly_break_line): Maintain
13528 pointer to pointer to node to be split in ndp so as to avoid
13529 using address of freed node.
13531 * troff/env.c (environment::hyphenate_line): Maintain pointer to
13532 pointer to first node to be hyphenated in startp so as to
13533 avoid using address of freed node.
13535 * troff/env.c (class trie, class hyphen_trie): Make the
13536 elements of the trie be of type char not unsigned char.
13537 Declare arguments to be const char* instead of unsigned char *.
13539 * troff/env.c (hyphenate): Initialize hbuf[0].
13541 * troff/input.c (set_string): Declare p to be char * and cast
13542 *p to unsigned char when necessary.
13544 * troff/input.c (do_define_macro): Declare s to be const
13545 char*. Cast element to unisgned char when necessary, Declare
13546 d to be an int. Handle EOF better.
13548 * troff/Makefile, troff/input.c: Different scheme for passing
13549 definitions of MACROPATH, HYPHENFILE and DEVICE.
13551 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
13553 * tty/devascii/R.proto: Delete entry for em.
13554 * tty/devlatin1/R.proto: Likewise.
13556 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
13558 * troff/input.c (translate): Stop when we get a space. Treat eof
13561 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13563 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
13565 * tbl/main.c (process_format): A font name following a `f'
13566 modifier that starts with a digit can be only one character long.
13567 Also deal with EOF on the second character of the font name.
13569 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
13571 * troff/input.c (token::next): Turn \~ into an
13572 unbreakable_space_node.
13573 * troff/node.c (unbreakable_space_node): New class.
13574 * troff/node.h: Declare it.
13576 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
13578 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
13579 it's >= 0, before outputting it as a single byte.
13581 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
13583 * lib/font.c: Make font_char_metric::code an int.
13584 (font::get_code): Change return type to int.
13585 (font::load): Allow code to be arbitrary integer.
13586 * lib/font.h (font::get_code): Change return type to int.
13587 (font::number_to_index): Change argument type to int.
13588 * troff/input.c (token::next): In case 'N', allow any value.
13589 Store value in token::val.
13590 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13591 (token::get_char, token::add_to_node_list, token::process): Get
13593 (charinfo::set_number): Change argument to int.
13594 (charinfo::get_number): Require that NUMBERED flag be set.
13595 (get_charinfo_by_number): Store numbered characters not between 0
13596 and 255 in a dictionary.
13597 * troff/charinfo.h (get_charinfo_by_number): Change argument type
13599 (charinfo::number): Change type to int.
13600 (charinfo::set_number): Change type of set_number to int.
13601 * troff/node.c (troff_output_file::put_char_width,
13602 troff_output_file::put_char): Test whether character is numbered
13603 using charinfo::numbered().
13604 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13606 * lib/nametoindex.c: New implementation to cope with arbitrary
13609 * troff/input.c (token::operator==): Test val for
13610 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13613 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13614 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
13616 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
13618 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
13621 * all Makefiles: rm targets of cp and >.
13623 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13626 * eqn/lex.c (def_table): Add dollar.
13628 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
13630 * troff/input.c (do_width): Push back newline before closing delim
13633 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
13635 * groff.c (possible_command::prepend_arg): New function.
13636 (main): Prepend device -m option.
13637 * groff.sh: Put device -m options before command-line options.
13639 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
13641 * macros/tmac.an (IP): Quote argument to TP.
13643 * ps/ps.c (main): New option -b, which sets...
13644 (broken_flags): New variable.
13645 (ps_printer::~ps_printer): Incorporate the setup section in the
13646 prolog if (broken_flags & NO_SETUP_SECTION).
13647 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13648 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13649 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13650 ps_printer::print_needed_font_comment,
13651 ps_printer::print_supplied_font_comment,
13652 ps_printer::print_include_font_comments,
13653 ps_printer::lookup_doc_font, ps_printer::download_fonts,
13654 ps_printer::read_download_file, read_document_fonts, add_font,
13655 skip_line, parse_fonts_arg, document_font::document_font,
13656 document_font::~document_font, document_font::download,
13657 ps_output::include_file): Deleted.
13658 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13659 rather than %!PS-Adobe-2.0. Make calls to
13660 resource_manager::need_font for each font that we used. Replace
13661 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13662 print_supplied_font_comment, print_needed_font_comment by call to
13663 resource_manager::print_header_comments. Output %%Orientation
13664 comment. Output %%Requirements: numcopies comment if ncopies > 1.
13665 Don't output the prolog directly. Instead call
13666 resource_manager::output_prolog. Only define #copies when ncopies
13667 > 1. Delete calls to print_include_font_comments and
13668 download_fonts. Add call to resource_manager::document_setup.
13669 (ps_printer::do_file): Call resource_manager::import_file instead
13670 of including it ourselves.
13671 (ps_printer::do_import): Likewise. Also don't call
13672 merge_import_fonts. Push userdict on the dictionary stack before
13673 and pop it afterwards.
13674 Move declaration of ps_output into ps.h.
13675 * ps/psrm.c: New file implementing resource_manager class.
13676 * ps/ps.h: New file declaring ps_output and resource_manager
13678 * ps/devps/zapfdr.ps:
13679 * ps/devps/symbolsl.ps:
13680 * ps/devps/prologue: Use 3.0 conventions.
13681 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13682 Add default definition of BROKEN_SPOOLER_FLAGS.
13683 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
13684 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13686 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
13688 * etc/grog.pl: New file.
13689 * Makefile (GROG): New variable.
13690 Add GROG to SUBFLAGS.
13691 * etc/Makefile (GROG): New variable.
13692 (install.nobin): Install $(GROG) rather than grog.sh.
13694 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
13696 * eqn/special.c (special_box::compute_metrics): Make the input and
13697 output strings the same. Get the new height and depth from the
13698 predefined height and depth registers. Also make subscript kern
13699 and skew available.
13700 (special_box::compute_subscript_kern, special_box::compute_skew):
13703 * eqn/box.c (pointer_box::compute_skew,
13704 simple_box::compute_metrics, box::top_level)
13705 * eqn/text.c (prime_box::compute_metrics,
13706 prime_box::comput_subscript_kern)
13707 * eqn/limit.c (limit_box::compute_metrics):
13708 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13709 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13710 negative numbers in `nr' requests with a leading 0.
13712 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
13714 * eqn/special.c: New file.
13715 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
13716 Add new rule for simple.
13717 * eqn/lex.c (token_table): Add SPECIAL.
13718 * eqn/box.h: Declare make_special_box.
13719 * eqn/Makefile: Add special.[co].
13721 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
13723 * ps/devps/prologue: Possibly set packing to true while defining.
13724 Create grops dictionary here. Initialize local variables before
13725 defining procedures.
13726 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13727 the dictionary stack. Set strokeadjust and overprint to false if
13728 the relevant operators are defined.
13729 (PEND): New procedure.
13730 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13731 prologue. Do everything else in the setup section.
13732 (ps_printer::do_import): Just call PBEGIN and PEND around the
13733 picture. Also push userdict before, and pop it afterwards.
13735 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
13737 * troff/node.c (bracket_node::tprint): Brackets were being printed
13740 * macros/tmac.an (SH, SS): Set fill mode.
13742 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
13744 * troff/div.c (top_level_diversion::begin_page): Set
13745 high_water_mark to 0.
13747 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
13749 * man/mdate.sh: New file.
13750 * man/mdate.c: Deleted.
13751 * man/Makefile: Use mdate.sh instead of mdate.
13754 * eqn/lex.c (do_gsize): Supply missing argument to error message.
13756 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
13758 * man/mdate.c: New file.
13759 * man/*.man: Replace modification date by @MDATE@.
13760 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13761 (mdate): New target.
13763 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13764 Remove illegal input characters.
13766 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
13768 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13770 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
13772 * troff/div.c (begin_page): Change behaviour when
13773 !first_page_begun and !break_flag.
13775 * troff/input.c (do_name_test): Return 0 if argument is empty.
13777 * troff/input.c (read_long_escape_name): Require closing ] to be
13778 at same input level as opening [.
13780 * troff/input.c (read_increment_and_escape_name): New function.
13781 (get_copy, process_input_stack): Use this for \n.
13783 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
13785 * troff/div.c (top_level_diversion::begin_page): Ignore the
13786 current value of page_number if !first_page_begun.
13788 * groff.c (main): Fix declaration of buf.
13790 * troff/input.c (do_name_test): New function.
13791 (token::next): Implement \A.
13792 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13793 (token::description, token::add_to_node_list, token::process):
13794 Handle TOKEN_ESCAPE.
13795 * troff/token.h: New token TOKEN_ESCAPE.
13797 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
13799 * pic/main.c (do_picture): Allow space before and after filename
13800 following `<'. Check that the filename is not empty.
13802 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
13804 * Version 1.01 released.
13806 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13808 * dvi/tmac.dvi: ftr HR to H.
13810 * macros/tmac.e: Round up computation of $r.
13812 * xditview/tmac.X: Don't give up completely in compatibility mode.
13813 Use \n(.s instead of \n[.s].
13815 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13816 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13817 Add u to factors inside \s[...]. Rename frac to dvi-frac.
13818 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13819 short names in the char definitions.
13821 * ps/tmac.ps: Don't give up completely in compatibility mode.
13822 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13823 quote in front of \n(.s. Add u to factors inside \s[...].
13825 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
13827 * tty/tmac.tty: Call the nroff request.
13829 * macros/tmac.e ((x, )x): Better definitions that work properly
13831 (@0, @1): Helper macros for (x.
13833 * macros/tmac.e ($s, hl): Use \l rather than \D.
13835 * tty/tmac.tty: Make it work better in compatibility mode.
13836 (pchar): Rename to tty-char.
13838 * macros/tmac.e (@E): New macro.
13839 (r, i, b, rb, bi): Use @E.
13841 * macros/tmac.e (@F): Don't use (;...) syntax.
13843 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
13844 it was modified for groff.
13846 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13848 * macros/tmac.e (<., .>): Removed.
13849 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13851 * macros/tmac.e: Remove check that groff is being used.
13853 * macros/tmac.e (@C): Change families only if using groff; turn
13854 compatibility mode off while changing familes. Save compatibility
13855 mode before changing families and restore it afterwards.
13857 * macros/tmac.e (@h): Remove test for offset + line length.
13859 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
13860 (lo, th, ac): Define to call @S instead of using als.
13862 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13863 the ratio of the vertical spacing to the point size in units
13864 expressed as a percentage. Use these instead of $10r and $10R,
13865 Delete $10r and $10R.
13867 * lib/font.c (font::load): In default computation of space_width,
13868 divide by sizescale. Use scale_round.
13870 * macros/tmac.an (TP): Don't call `nf'.
13871 (an-do-tag): Don't call `fi'.
13873 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
13875 * troff/input.c (process_input_stack): Handle the case where
13876 spaces at the beginning of an input line are followed by a
13879 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
13881 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13882 * groff.sh: Use pic -x with the dvi device.
13884 * dvi/devdvi/FontMakefile (H): Don't use -s.
13886 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13887 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13888 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13891 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
13893 * ps/psfig.diff: New file.
13894 * ps/tmac.psfig: New file.
13896 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
13898 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13899 (]-): Don't call ref*do-tl.
13901 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13903 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13904 (fn@do-FS): Rename to fn*do-FS.
13906 * troff/input.c (transparent_translate): New function.
13907 (process_input_stack): Apply transparent_translate before calling
13908 diversion::transparent_output(unsigned char).
13910 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
13912 * troff/input.c (do_define_macro): Define the macro before calling
13915 * xditview/Makefile: Add DEVICES variable. Change install target
13918 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
13920 * groff.c (run_commands): Handle the possibility that there are
13921 child processes other than those forked by us.
13923 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
13925 * lib/string.c (string::append): New function.
13926 * lib/stringclass.h: Declare it.
13928 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
13930 * eqn/main.c (main): New option -N which sets
13931 no_newline_in_delim_flag.
13932 (do_file): If no_newline_in_delim_flag is set don't allow newlines
13934 * groff.c (main): Pass -N on to eqn.
13935 (help, synopsis): Mention -N.
13936 * groff.sh: Implement -N.
13938 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
13940 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13941 (]-): Call ref*do-tl if ref*need-tl is non-zero.
13942 (XP): Allow as initializer.
13944 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
13946 * troff/env.c (environment::wrap_up_field): If field_spaces are
13947 non-zero and we have a current_tab, subtract padding from
13948 tab_distance. If this makes tab_distance <= 0, use the next tab
13949 stop instead. If there isn't any next tab or it's a left tab,
13950 wrap up the current tab.
13951 (environment::start_field): Initialize tab_precedes_field.
13952 (environment::wrap_up_tab): If there's a current field, update
13953 pre_field_width, field_distance and tab_precedes_field.
13954 * troff/env.h (environment::tab_precedes_field): New member.
13956 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
13958 * ps/ps.c (ps_printer::do_file): New function.
13959 (ps_printer::special): Bind to `file' special.
13960 (ps_printer::do_exec): Set ndefined_styles to 0.
13962 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
13964 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13965 Avoid stripping first character from the start of unrecognized
13966 escapes. Use lex_error instead of error to report errors.
13967 * eqn/lex.c (get_token): Rework handling of escapes.
13968 (lex_error): Move declaration into...
13971 * xditview/xditview.c (main): Make -page option work.
13973 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13975 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
13977 * macros/tmac.s (B2): Correct size of box.
13979 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
13981 * macros/tmac.s (B2): Postpone drawing the box until in the
13982 top-level diversion.
13984 * tty/tmac.tty: Add font translations for C, CR, CW.
13986 * groff.c (synopsis, help): Document -i.
13987 * groff.sh: Implement -i.
13989 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13990 Simplify the construction of SN.
13992 * troff/number.c (parse_term): Give `|' a higher precedence.
13993 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13996 * macros/tmac.s (B2): Use par@finish instead of par@reset.
13998 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
14000 * lib/string.c (string::move): New function.
14001 * lib/stringclass.h: Declare it.
14003 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
14005 * troff/env.c (distribute_space): Add optional argument
14007 (environment::wrap_up_field): Call distribute_space with
14008 `force_forward' argument of 1.
14010 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
14012 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14013 Inline it. Move reallocation into...
14014 (string::grow1): New function.
14015 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14016 dependencies to include library header files.
14017 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14019 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
14021 * macros/tmac.s (@NH): Use the same number registers than -ms does
14022 for the heading level counters. Use the same string that -ms does
14023 for the number for this heading.
14025 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
14027 * lib/new.c (operator new): Cast result of malloc to char *.
14029 * troff/input.c (spring_trap, lookup_request): Add assert that nm
14032 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
14034 * groff.c (main): Support -i.
14036 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
14038 * pic/pic.h: Include <osfcn.h>.
14040 * ps/ps.c: Add declaration of mktemp.
14042 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14043 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14044 argument as union wait *.
14045 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14046 argument to union wait *.
14048 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
14050 * tty/tmac.tty: Add definition of \(co.
14052 * pic/object.c (make_arc): Only increase radius when radius
14053 strictly less than d.
14054 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14057 * troff/env.c (environment::environment(symbol),
14058 environment::environment(const environment *)): Initialize
14061 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
14063 * tbl/main.c (main): Add exit(0).
14065 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14067 * pic/main.c (main):
14068 * eqn/main.c (main):
14069 * tbl/main.c (main):
14070 * etc/soelim.c (main):
14071 * driver/printer.c (printer::~printer):
14072 * troff/node.c (real_output_file::~real_output_file,
14073 real_output_file::flush): Check for errors on stdout.
14075 * most files: Add 1991 to copyright notice.
14077 * macros/tmac.s: Don't test \n(.x and \n(.y.
14079 * troff/input.c (token::next): Rename `escape_char' label to
14080 `handle_escape_char' and `normal_char' label to
14081 `handle_normal_char'.
14083 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
14085 * groff.c (main, synopsis, help): Support -a option.
14086 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
14087 to trflags while parsing options.
14089 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
14091 * troff/number.c (parse_term): With `m', `M' and `n' scale
14092 indicators, convert scale factor to hunits before scaling.
14094 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
14096 * lib/font.c (scale_round): Better test for overflow when n is
14099 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
14101 * tbl/main.c (process_format): Add second argument of type
14102 options*. Change callers. Allow opt->tab_char as well as '\t'
14103 between format items.
14105 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
14107 * macros/tmac.an (PD): With no arguments, make sure register PD is
14109 (TH): Call PD with no argument, instead of setting register PD
14112 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
14114 * Version 1.00 released.
14116 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
14118 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14120 * dvi/devdvi/DESC: Mount CW instead of CR.
14122 * dvi/tmac.dvi: Add definition of \(tm.
14124 * dvi/devdvi/texsy.map: Add lh, and rh.
14125 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14126 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14128 * dvi/devdvi/FontMakefile: Generate H from cmss10.
14129 * dvi/devdvi/Makefile: Install H.
14130 * dvi/devdvi/H: New file.
14132 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
14134 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14137 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
14139 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14141 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14143 * macros/tmac.s (@EN): Handle the case where the equation is empty
14144 but the label is not.
14146 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
14148 * troff/groff.h: New warning category WARN_SPACE.
14149 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14150 WARN_SPACE to warning_table.
14151 (interpolate_macro): Give a warning of type WARN_SPACE if the name
14152 is longer than two characters and is not defined, but the first
14153 two characters do make a defined name.
14155 * PROBLEMS: New file.
14157 * CHANGES: New file.
14158 * README-0.6, README-1.00: Deleted.
14160 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14161 * xditview/devX75/Makefile: Make devX75-12.
14162 * xditview/devX100/Makefile: Make devX100-12.
14164 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14165 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14167 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
14169 * README-0.7: Rename to README-1.00.
14171 * macros/tmac.pic: New file.
14172 * macros/Makefile (install.nobin): Install tmac.pic.
14174 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
14176 * troff/env.c (hyphen_word): Correct the test for whether the
14177 token is a hyphen. Reset npos to 0.
14179 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14181 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
14183 * macros/tmac.s (ds*common-end): Call par*reset.
14185 (par@reset-indent): Deleted.
14187 * macros/tmac.s (@IP): Divert the label.
14189 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
14191 * xditview/draw.c (setGC): Use a line width of .1m rather than
14192 .04m by default; round rather than truncate value.
14194 * tbl/table.c (class empty_entry): New class.
14195 (empty_entry::empty_entry, empty_entry::line_type): New functions.
14196 (table::add_entry): Represent empty entries by objects of type
14198 (table_entry::line_type): Return -1.
14199 (table::determine_row_type): Ignore entries with line_type 0.
14200 Treat type -1 as non-lines.
14202 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
14204 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14205 macros/tmac.s: Rename \(-d to \(Sd.
14207 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
14209 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14210 * xditview/libXdvi/DviChar.c: Likewise.
14211 * dvi/devdvi/texsy.map: Add `<<', `>>'.
14213 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
14215 * troff/div.c (top_level_diversion::begin_page): Call
14216 init_output() if the_output is 0.
14218 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
14220 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14222 (get_copy): Turn \E into ESCAPE_E.
14223 (token::process, asciify): Handle ESCAPE_E.
14225 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14227 (DS): Implement `.DS R'.
14229 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
14231 * macros/tmac.s (FS): New macro.
14233 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14235 * macros/tmac.s (cov*tl-init): Remove after first execution
14236 instead of aliasing to @nop. Call top of page macro explicitly
14237 instead of setting trap; call @init first. Set pg@top as top of
14239 (cov*auto-init): Deleted. Set cov*tl-init instead of
14240 cov*auto-init as top of page trap.
14241 (TL, LP): Do a break instead of calling cov*tl-init.
14242 (cov*print): With RP format but no TL, alias FS and FE to @FS and
14243 @FE; in this case also give a warning and always start another
14244 page. No need to set pg@top here.
14245 (cov*tl-init): Rename to cov*first-page-init.
14247 * macros/tmac.s (RP): Do `.pn 0'.
14248 (cov*tl-init): With RP format don't do `.pn 0'.
14250 * macros/tmac.s (pg@cs-top): Set no space mode.
14252 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14253 (cov*ab-init): Alias TL, AU and AI to these.
14255 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
14257 * macros/tmac.s (@EQ): Move the space before the equation into @EN
14258 (@EN): Do nothing unless \n[dl] is > 0.
14260 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
14262 * pic/object.c (ellipse_object::radius): New function.
14264 * VERSION: Change version to 0.7.
14266 * tbl/table.c (block_entry::do_divert): Declare return type as
14268 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14270 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
14272 * troff/column.c: New file.
14273 * troff/Makefile: Corresponding changes.
14275 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
14278 * troff/div.c (top_level_diversion::space): If the space causes
14279 the first-page transition and springs a trap, truncate the space
14282 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
14284 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14287 * pic/troff.c (troff_output::line_thickness,
14288 troff_output::set_fill): Do a horizontal motion to compensate for
14289 the width of the \D escape sequence.
14291 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
14293 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14296 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
14299 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14300 Supply empty definition.
14301 (text_entry::simple_print, simple_text_entry::simple_print):
14302 Delete declarations.
14303 (table::add_entry): Represent empty entries by objects of type
14306 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
14308 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14310 * tbl/table.c (left_text_entry::add_tab): New function.
14312 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
14313 initialize like LP.
14315 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
14317 * troff/env.c (environment::start_field): Give an error message if
14318 there is no next tab.
14320 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
14322 * troff/env.c (hyphenate): Skip initial elements with zero
14325 * macros/tmac.s (par@init): Keep VS in points rather than units.
14327 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
14329 * pic/main.c (main): Implement `-c' option.
14330 * pic/output.h: Declare make_tpic_output().
14331 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14333 (tpic_output): New class.
14334 (tpic_output::tpic_output, tpic_output::set_pen_size,
14335 tpic_output::command, make_tpic_output): New functions.
14337 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
14339 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
14340 if they're not already defined.
14341 * tbl/table.c (init_output): Don't test \n(.g.
14343 * troff/input.c (do_if_request): Delete `g' condition. Recognize
14344 `d', `r' and `c' conditions even in compatibility mode.
14346 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
14348 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14351 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
14353 * troff/env.h (environment::prev_line_interrupted): New member.
14354 (environment::get_prev_line_interrupted): New function.
14355 * troff/env.c (environment::newline): Set prev_line_interrupted.
14356 (environment::environment(const environment *),
14357 environment::environment(symbol)): Initialize
14358 prev_line_interrupted.
14359 * troff/input.c (process_input_stack): Don't give special
14360 treatment to space and newline at the beginning of the line if the
14361 previous line was interrupted.
14363 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
14365 * eqn/eqn.y: Disallow PRIME by itself.
14366 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14368 (def_table): Remove definition of '. Define prime to be `.
14370 * eqn/eqn.y: Split off part of rule `script' into a new rule
14373 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
14375 * macros/tmac.s ({, }): New string aliases.
14377 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
14379 * README-0.7: New file.
14381 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
14383 * macros/tmac.s: New file.
14384 * man/groff_ms.man: New file.
14385 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14386 * Makefile.bd: Similarily.
14387 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14388 definition of TMAC_S.
14389 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14390 * macros/TODO: New file.
14392 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
14394 * troff/env.c (right_justify): New function.
14395 (init_env_requests): Bind this to request "rj".
14396 (center_lines): Set right_justify_lines to 0. If we get a bad
14397 integer, center 1 line.
14398 (environment::environment(symbol), environment::environment(const
14399 environment *)): Initialize right_justify_lines.
14400 (environment::get_right_justify_lines): New function.
14401 (init_env_requests): Bind this to number_register ".rj".
14403 * troff/env.c (environment::choose_breakpoint): Implement
14404 hyphenation_margin and hyphenation_space.
14405 (environment::get_hyphenation_space,
14406 environment::get_hyphenation_margin): New functions.
14407 (init_env_requests): Bind these to .hys and .hym.
14408 (hyphenation_space_request, hyphenation_margin_request): New
14410 (init_env_requests): Bind these to hys and hym.
14411 (environment::environment(symbol), environment::environment(const
14412 environment *)): Initialize hyphenation_margin and
14414 * troff/env.h: Corresponding changes to class environment.
14416 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
14418 * troff/div.c (blank_line): Always do a break.
14420 * eqn/box.c (do_text): Turn off escapes while appending text to
14423 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
14425 * troff/input.c (while_break_request, while_continue_request): New
14427 (init_input_requests): Bind these to "break" and "continue".
14428 (while_depth, while_break_flag): New variables.
14429 (while_request): Update while_depth. Break out of loop if
14430 while_break_flag is set.
14432 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
14434 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14437 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
14439 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
14441 * stringify: New file.
14442 * Makefile (groff.o): Use stringify.
14444 * xditview/tmac.X: Remove definition of \(rn.
14445 * xditview/libXdvi/DviChar.c: Remove radicalex from
14448 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
14450 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14451 (alphabetic_block_entry::alphabetic_block_entry,
14452 alphabetic_block_entry::divert, alphabetic_block_entry::print):
14454 (block_entry::divert): Split off body into ...
14455 (block_entry::do_divert): If the block is alphabetic, subtract 2n
14456 from the line length; also update the span width to dl+2n, and the
14457 alphabetic span width to dl.
14459 * driver/input.c (do_file): While reading argument to D command,
14460 when expanding buffer, multiply szp by sizeof(int) rather than 2
14461 in the argument to memcpy.
14463 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14464 width of alphabetic columns.
14466 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
14468 * troff/node.c (lookup_family): Supply second argument to lookup.
14470 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14471 search, return immediately if v is 0.
14473 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14474 (troff_output::start_picture): Set this reg.
14475 (troff_output::end_picture): Remove this reg
14476 * eqn/box.c (box::extra_space): Don't produce `\x's if
14477 EQN_NO_EXTRA_SPACE_REG is defined.
14479 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14480 * eqn/text.c (split_text): Map ' to \(fm when it's the first
14483 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
14485 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14488 * troff/div.c (top_level_diversion::top_level_diversion):
14489 Initialize page_number to 0.
14491 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
14493 * groff/troff (environment::environment(const environment *)):
14494 Initialize name to e->name, rather than "anonymous".
14496 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
14498 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14499 requested_page. Split middle part into ...
14500 (FindPage): New function.
14501 (SetValues): If we don't yet know the last page, and the requested
14502 page is greater than the current page, call FindPage.
14503 Update the font_map_string before doing this.
14505 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14506 Translate \(lh and \(rh into left and right double arrows.
14508 * troff/node.c (class hyphen_inhibitor_node): New class.
14509 (hyphen_inhibitor_node::hyphen_inhibitor_node,
14510 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14511 hyphen_inhibitor_node::type,
14512 hyphen_inhibitor_node::get_hyphenation_type): New functions.
14513 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14514 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14517 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
14519 * troff/node.h (dummy_node::get_hyphenation_type,
14520 transparent_dummy_node::get_hyphenation_type): Declare them.
14521 * troff/node.c: (dummy_node::get_hyphenation_type,
14522 transparent_dummy_node::get_hyphenation_type): New functions.
14524 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
14526 * xditview/libXdvi/draw.c: If M_PI not defined after including
14527 math.h, then define it.
14529 * xditview/Makefile: Add definition of AR. Pass it to the submake
14531 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14533 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
14535 * troff/dictionary.h (object_dictionary::alias): Declare return
14537 * troff/dictionary.c (object_dictionary::alias): Return non-zero
14538 if the old name was defined.
14539 * troff/input.c (alias_macro): Give a warning if the old name was
14541 * troff/reg.c (alias_reg): Likewise.
14543 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
14545 * troff/input.c (token::next): Delete implementation of \R.
14547 * macros/Makefile: Strip comments from tmac.e while installing it.
14549 * troff/input.c: New variable `nroff_mode'.
14550 (troff_request, nroff_request): New functions.
14551 (init_input_requests): Bind `troff' and `nroff' to troff_request
14553 (do_if_request): Compute results of t and n conditions from
14556 * text/text.c (split_text): Fix typo in >=.
14558 * eqn/lex.c: Add definition of `==' to def_table.
14560 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
14562 * pic/tex.c (tex_output::start_picture): Change the definitions of
14563 \graph and \graphtemp so that they work properly with Plain TeX.
14565 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14566 argument to `ar' is not less than the first.
14568 * pic/pic.y: Allow a comma between elements of the variable list
14569 in the argument to `reset'.
14571 * pic/object.c (arc_object::arc_object): Fix computation of
14574 * eqn/main.c (main): Add exit(0).
14576 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
14578 * troff/div.c (begin_page): Test no_space_mode after doing the
14579 break, but still push the page ejector cookie before doing the
14580 break. Also set the next page number after doing the break.
14582 * xditview/xditview.c (NewFile): Don't set the title and icon name
14583 if this is the first file and its name is `-'.
14584 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
14585 the X75 and X100 devices.
14586 (main): If a device has the XT_OPTION flag set and there's exactly
14587 one file argument, pass the driver -xrm and -title options to set
14588 the icon name and window title to the name of the file.
14590 * troff/env.c (environment_switch): If there was an argument but
14591 it wasn't a valid number or name, then pop an environment but
14592 don't give an error message on underflow.
14594 * troff/number.c (start_number): Correct spelling in error message.
14596 * troff/input.c (token::delimiter): Don't print an error message
14599 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14600 ParseDrawFunction if dw->display_enable is true.
14602 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
14604 * pic/pic.y: Parse text positioning like normal attributes, so as
14605 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
14606 positioning attribute.
14608 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
14610 * tbl/main.c (process_data): When in state START while reading a
14611 text block, don't change to state MIDDLE if c is a newline.
14613 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
14615 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14616 so as to avoid shadowing parameter.
14618 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
14620 * tbl/table.c (trim_space): Deleted.
14621 (table::add_entry): Don't call trim_space.
14623 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
14625 * VERSION: Change version to 0.6.
14627 * troff/number.c (parse_expr): Make == work.
14629 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
14631 * man/grog.man: New file.
14632 * man/Makefile: Add grog.n to MAN1PAGES.
14633 * etc/grog.sh: New file.
14634 * etc/Makefile: Install grog.sh as grog.
14636 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
14638 * troff/input.c (token::next): Implement \E.
14640 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
14642 * xditview/tmac.X: Change font translations to match tmac.ps.
14644 * troff/input.c (non_empty_name_warning): Don't give a warning if
14645 `\{' terminates the name.
14647 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
14649 * ps/devps/symbol.diff: New file.
14650 * ps/devps/FontMakefile: Mention symbol.diff.
14652 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
14654 * troff/node.c (font_position): Use get_long_name to read the
14657 * troff/env.c (environment_switch): If we get a number that's < 0
14658 or >= NENVIRONMENTS, treat it like a name.
14659 Change NENVIRONMENTS to 10.
14661 * troff/groff.h: Remove definition of FONTS_MAX.
14662 * troff/node.h (class font_family): Make map a pointer instead of
14663 an array. Add a map_size member. Make it a class. Make nm const
14664 and public. Make invalidate_fontno a friend.
14665 * troff/node.c: Define font_table_size. Make font_info a pointer
14666 rather than an array.
14667 (class troff_output_file): Allocate font_position dynamically. Add
14668 nfont_positions member.
14669 (troff_output_file::set_font): Grow font_position if necessary.
14670 (troff_output_file::~troff_output_file): Delete font_position.
14671 (troff_output_file::troff_output_file): Allocate font_position.
14672 (grow_font_table): New function.
14673 (troff_output_file::really_begin_page,
14674 troff_output_file:really_copy_page): Use nfont_positions rather
14676 (mount_font_no_translate, mount_style): Call grow_font_table if
14678 (font_family::font_family): Allocate map.
14679 (font_family::make_definite): Grow map if necessary. Use
14680 font_table_size instead of FONTS_MAX.
14681 (font_family::~font_family): New function.
14682 (invalidate_fontno): Use font_family::map_size.
14683 (get_fontno, env_space_width, env_half_narrow_space_width,
14684 env_narrow_space_width, symbol_fotno, is_good_fontno,
14685 get_bold_fontno, make_glyph_node): Use font_table_size rather than
14687 (next_available_font_position): Never return 0.
14689 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
14691 * ps/tmac.ps: Add font translations for compatibility with dpost.
14693 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
14695 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14696 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14697 Move definitions baseline_sep, shift_down, column_sep,
14698 matrix_side_sep into...
14699 * eqn/box.c: Add them to param_table.
14700 * eqn/pbox.h: Add declarations to pbox.h.
14702 * troff/input.c (set_string): Cast value to unsigned char *.
14704 * troff/token.h (process_input_stack): Declare it static before
14705 declaring it a friend.
14707 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
14709 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14711 * dvi/devdvi/EX: Regenerate.
14713 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14716 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
14718 * eqn/lex.c: In defaults_table, make definition of `dot' call
14719 `dot_def'. Don't explicitly make it roman. Similarily for other
14722 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14724 (for_input::get, for_input::peek): Use this.
14725 (do_for): Add by_is_multiplicative argument.
14726 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14727 Change semantic value of optional_by to be a double plus a flag
14728 saying whethet the by clause is multiplicative.
14730 * eqn/lex.c (get_delimited_text): Remember location of start of
14731 definition. Improve error handling when EOF is encountered.
14733 * lib/font.h: Rename handle_x_command to
14734 handle_unknown_font_command.
14735 * lib/font.c (font::load): Call handle_unknown_font_command for
14736 any unknown command in the font description file. Don't call
14737 handle_x_command. Include the name of the command in the argv.
14738 Improve message for unknown command after kernpairs or charset
14740 * ps/ps.c (ps_font::handle_x_command): Rename to
14741 handle_unknown_font_command. Remove message about `x download'
14742 command. Give error message for wrong number of arguments.
14743 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14744 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14745 handle_unknown_font_command. Give an error message for wrong
14746 number of arguments. Rename design_size to designsize.
14747 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14748 checksum', `designsize' instead of `design_size'.
14750 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
14752 * eqn/*.[chy]: Change underaccent to uaccent.
14754 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
14755 give it the same precedence as ACCENT.
14756 * eqn/other.c (make_underaccent_box): New function.
14757 * eqn/box.h: Declare it.
14758 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14761 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
14763 * pic/pic.y (reset_all): New function. Called in rule for RESET.
14764 (parse_init): Call reset_all.
14765 (define_variable): When defining scale reset only those
14766 pre-defined variables that are scaled.
14767 (defaults_table): Add `scale' as non-scaled value.
14769 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14770 together with the text; allow any number of positioning words;
14771 allow center as a positioning word.
14773 * pic/object.c (output::compute_scale): Get picture maximum height
14774 and width from variables called maxpswid and maxpsht.
14775 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14777 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
14779 * pic/object.c (object_spec::make_text): Multiply textht by number
14782 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14784 (do_sprintf): New function.
14785 (pic.gperf): Add sprintf token.
14786 (text, sprintf): New rules.
14788 * pic/pic.y: `rand()' with no arguments returns a random number
14789 in the range [0,1).
14791 * pic/pic.y: Allow a bare expression to be an attribute: change
14792 precedences to support this. Change optional_ordinal rule to
14793 optional_ordinal_last to avoid reduce/reduce conflict.
14794 * pic/object.c (object_spec::object_spec): Initialize direction.
14796 * pic/pic.y: Implement ^ operator meaning exponentiation.
14798 * troff/node.h: Add default argument to mount_font.
14799 * troff/node.c (font_position): Read an optional third argument
14800 giving the external_name.
14801 (mount_font): Add optional argument giving the external_name.
14802 (mount_font_not_translate): Have additional argument giving
14803 external name. Use this name to load the font. Pass both names
14804 to font_info::font_info.
14805 (font_info::font_info): Have additional argument giving
14807 (class tfont): New member external_name.
14808 (font_info::get_tfont): Use external name to construct tfont_spec.
14810 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
14812 * eqn/lex.c (init_table): Add argument giving device. Define
14813 name of device to be "1".
14814 (do_ifdef): Counts as true if the argument has been defined with
14816 * eqn/main.c (main): Call init_table with device argument. Make
14817 device local to main.
14818 * eqn/eqn.h: Change declaration of init_table. Remove declaration
14821 * pic/lex.c (get_delimited): Allow text to be delimited by
14822 matching {}s. Don't recognize ending delimiter within a string.
14824 * troff/input.c (get_delim_name): New function.
14825 (token::next): Implement \C.
14827 * lib/font.c (font::load): Grok ---. Add an alias for each
14828 character based on its code.
14829 (font::get_code_width): Deleted.
14830 * lib/font.h (class font): Declare font::number_to_index().
14831 Remove declaration of font::get_code_width.
14832 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14833 to indices of named characters.
14834 (font::number_to_index): New function.
14835 * troff/input.c (font::number_to_index): New function.
14836 (get_charinfo_by_number, charinfo::get_number,
14837 charinfo::set_number): New functions.
14838 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14839 (token::process, token::description, token::get_char,
14840 token::add_to_node_list, token::operator==): Handle
14841 TOKEN_NUMBERED_CHAR.
14842 * troff/charinfo.h: Declare get_charinfo_by_number,
14843 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
14845 (charinfo::numbered): New function.
14846 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14847 * troff/env.h (class environment): Remove declaration of ...
14848 * troff/env.c (environment::make_numbered_char_node): Deleted.
14849 * troff/node.c (make_numbered_node): Deleted.
14850 (class numbered_glyph_node): Remove.
14851 (troff_output_file::put_char_width, troff_output_file::put_char):
14852 Handle numbered chars.
14853 (troff_output_file::numbered_char): Removed.
14854 (tfont::get_code_width): Removed.
14855 (make_glyph_node): Don't search special fonts for numbered
14857 * troff/node.h: Remove declaration of make_numbered_node.
14858 * driver/input.c (do_file): Handle N command.
14859 * driver/printer.h: Add declaration of ...
14860 * driver/printer.c (printer::set_numbered_char): New function.
14861 * dvi/tfmtodit.c (main): Generate unnamed entries.
14862 * ps/devps/afmtodit: Likewise.
14863 * xditview/xtotroff.c (MapFont): Likewise.
14864 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14866 * tbl/main.c (process_format): If multiple widths are specified
14867 for a column but all the widths are the same, don't give an error
14870 * tbl/table.c (table::do_row): If the current row is all lines and
14871 the stuff doesn't contains a line, mark the top of the row after
14872 printing stuff before the row. If the current row is not all
14873 lines and the stuff doesn't contain a line, don't unnecessarily
14874 mark the top of the row before printing the stuff.
14876 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
14878 * troff/groff.h: Remove MAX_PATH.
14879 * troff/input.c (open_file): Dynamically allocate space for the
14881 (open_mac_file, process_macro_file): Corresponding changes.
14883 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
14885 * troff/node.h (class output_file): Make copy_file pure. Add
14886 vspace method ifdef COLUMN. Add is_printing method.
14887 * troff/node.c: Add class printing_reg. Add class
14888 real_output_file. Derive other output_file classes from
14889 real_output_file; in these classes rename begin_page to
14890 really_begin_page, print_line to really_print_line, copy_file to
14891 really_copy_file, transparent_char to really_transparent_char.
14892 Move output_file::flush to real_output_file. Add printing member
14893 to class output_file.
14894 * troff/div.h: Remove printing member from top_level_diversion.
14895 Add vspace member function to class diversion ifdef COLUMN. Add
14896 some declarations ifdef COLUMN.
14897 * troff/div.c (top_level_diversion::copy_file,
14898 top_level_diversion::transparent_output,
14899 top_level_diversion::output): Don't test printing member before
14901 * troff/input.c: Handle initial variable_space_request ifdef
14903 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14904 but comment it out.
14906 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
14908 * troff/div.c (diversion::need): Make any space forced. If we
14909 sprung a trap, set truncated_space to minus the distance to the
14910 trap and set needed_space to the amount that was needed.
14911 (top_level_diversion::space): A forced space turns no_space_mode
14913 (class constant_vunits_reg): New class.
14914 (init_div_requests): Implement number registers .trunc and .ne
14915 using constant_vunits_reg.
14916 (class truncated_space_reg): Deleted.
14918 * troff/div.h: Don't have a no_space_mode member in diversion.
14919 Instead have it in top_level_diversion.
14920 * troff/div.c (diversion::diversion): Don't initialize
14922 (top_level_diversion::top_level_diversion): Initialize
14924 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14925 (macro_diversion::output): Don't clear no_space_mode.
14927 * troff/input.c (diverted_space_node::reread): Don't call
14928 environment::do_break. In fill mode, act like a blank line.
14929 (diverted_copy_file_node::reread): Don't call
14930 environment::do_break.
14932 * troff/div.c (blank_line): New function.
14933 * troff/div.h: Declare it.
14934 * troff/input.c (process_input_stack): Call it.
14936 * troff/div.c (truncated_space_reg::get_string): New function.
14937 (init_div_requests): Bind to .trunc.
14938 (space_request, top_level_diversion::space,
14939 top_level_diversion::output, macro_diversion::space,
14940 macro_diversion::output): Update truncated_space.
14941 (macro_diversion::output): Redo calculations when trap sprung.
14942 (macro_diversion::output, macro_diversion::space): No need for
14945 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14946 after truncating post line spacing.
14948 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
14950 * ps/devps/prologue (MF, SF): Make them work even if setfont is
14951 defined as a procedure rather than as an operator.
14953 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
14955 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14957 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
14959 * troff/div.c (top_level_diversion::output): Merge
14960 output_file::print_line and output_file::end_of_line member
14962 * troff/div.h (class output_file):
14963 * troff/node.c (troff_output_file::print_line,
14964 troff_output_file::end_of_line, output_file::end_of_line,
14965 ascii_output_file::print_line, suppress_output_file::print_line):
14966 Corresponding changes.
14968 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
14970 * troff/input.c (token::next): Don't give a warning for `\.'.
14972 * troff/env.c (environment::get_center_lines): New function.
14973 (init_env_requests): Bind number register .ce to it.
14974 * troff/env.h: Declare it.
14975 * tbl/table.c (table::init_output): Define reset macro to restore
14976 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
14978 (table::print): If center option not given, then imply center
14979 option if SAVED_CENTER_REG > 0.
14981 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
14983 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14984 Troff.ps from DOWNLOAD.
14986 * troff/Makefile: Change comment in DEFINES to avoid confusing
14989 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14990 code. Don't try to catch errors with stopped.
14991 (check_line_lengths): New function.
14992 * ps/devps/prologue (EXEC): Deleted.
14993 (EBEGIN, EEND): New procedures.
14995 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
14997 * troff/input.c: Include request.h before node.h.
14998 * troff/node.c: Likewise.
14999 * troff/env.c: Likewise.
15000 * troff/div.c: Likewise.
15001 * troff/node.h (class special_node): Store argument as a macro
15002 rather than a char *.
15003 * troff/node.c (special_node::special_node, special_node::copy):
15005 (special_node::~special_node): Deleted.
15006 (special_node::tprint): Deleted.
15007 (special_node::tprint_start, special_node::tprint_end,
15008 special_node::tprint_char): New functions.
15009 (troff_output_file::special): Deleted.
15010 (troff_output_file::start_special, troff_output_file::end_special,
15011 troff_output_file::special_char): New functions.
15012 * troff/input.c (special_node::tprint): New function.
15013 (do_special): Use macro not char *.
15014 (do_transparent_macro): Deleted.
15015 (token::next): Don't call do_transparent_macro.
15017 * troff/input.c (token::next): Add 'Y' case.
15018 (do_transparent_macro): New function.
15019 * troff/node.c (troff_output_file::special): Handle newlines with
15020 argument using new continuation convention.
15021 * driver/input.c (get_string): Cope with continuation convention.
15022 (do_file): Don't call skip_line after calling get_string(1).
15023 * ps/ps.c (ps_printer::special, ps_printer::do_import,
15024 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15026 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15029 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
15031 * troff/input.c (asciify): By default, illegal input characters
15032 should return empty string.
15034 * troff/input.c (copy_file): Handle first page transition like title.
15035 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15037 * troff/input.c (token::next): Improve error message for EOF after
15039 (input_char_description): New function.
15040 (get_char_for_escape_name): Use input_char_description.
15041 (token::next): Warn about unrecognized escape sequences.
15042 (warning_table): Add WARN_ESCAPE.
15043 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15046 * troff/token.h: Remove declaration of process_input_stack.
15048 * troff/input.c: Remove declaration of init_hyphen_requests.
15049 * troff/request.h: Correct spelling in declaration of same.
15051 * troff/input.c (token::next): Check whether escape_char is 0.
15053 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
15055 * groff.c (main, usage, help): Implement -P and -L options.
15056 * groff.sh: Likewise.
15058 * troff/input.c (token::next): Use some gotos to avoid code
15061 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15062 Avoid calling symbol::symbol if name empty.
15064 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
15066 * troff/input.c (init_input_requests): Make \n(.x return the major
15067 version number and \n(.y return the minor version number.
15068 * troff/Makefile: Construct file majorminor.c defining
15069 major_version and minor_version automatically from ../VERSION.
15071 * troff/node.c (class glyph_node): Make operator new and operator
15073 (class ligature_node): Similarily.
15075 * troff/input.c (operator==(const macro &, const macro &)): New
15077 (non_interpreted_node::same): Use this.
15078 (string_iterator::string_iterator): Make macro& argument const.
15080 * troff/input.c (input_iterator::get): New function. Don't make
15081 asciify_macro or class non_interpreted_node friends of class
15083 (non_interpreted_node::interpret): Use input_iterator::get.
15084 (asciify_macro): Likewise.
15086 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15087 ~non_interpreted_node): Deleted.
15088 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15091 * troff/symbol.h: Make all symbol member functions const.
15093 * lib/strtol.c: New file.
15094 * lib/Makefile: Add strtol.c.
15095 * Makefile: Define STRTOL as strtol.o to include strtol in
15098 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
15100 * pic/troff.c (troff_output::simple_circle): Divide by scale.
15102 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
15104 * troff/input.c (do_special): Use input_level.
15106 * troff/token.h (TOKEN_BACKSPACE): New token.
15107 (token::backspace): New function.
15108 * troff/input.c (token::description, token::next, token::process):
15109 Grok TOKEN_BACKSPACE.
15110 (do_special): Turn TOKEN_BACKSPACE back into \b.
15112 * troff/token.h (token::leader): New function.
15113 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15115 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15117 * troff/input.c (do_special): Use token::description in error
15120 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
15122 * troff/input.c (decode_args): Combine quoted and
15123 quote_input_level variables. Make it a for (;;) loop.
15125 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15127 * troff/input.c (read_long_escape_name): The test for whether to
15128 expand buffer was off by 1.
15129 (read_string): Similarily.
15131 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
15133 * troff/input.c: Use `const int' rather than `static const int'.
15135 * troff/div.h (diversion::copy_file): Declare as pure virtual.
15136 (macro_diversion::copy_file): New function.
15137 * troff/node.h: New class diverted_copy_file_node.
15138 * troff/node.c: Implement it.
15139 * troff/input.c (copy_file): Use diversion::copy_file. Handle
15140 first page transition by pushing a diverted_copy_file_node.
15141 * troff/input.c (token::next, process_input_stack): Don't handle
15144 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
15146 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15147 whether space widths need adjusting.
15149 * troff/charinfo.h: Generalize translated_to_space to
15150 special_translation so as to allow translation to \&.
15151 * troff/input.c (translate): Allow translation to \&.
15152 (charinfo::*): Corresponding changes.
15153 * troff/node.c (make_node, node::add_char): Corresponding changes.
15154 * troff/node.h (dummy_node::dummy_node): Allow optional first
15157 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15158 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15160 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15161 TOKEN_REQUEST with an argument of TITLE_REQUEST.
15162 (token::process): Grok that.
15163 * troff/input.c (copy_file): Handle first page transition like
15164 title by pushing a COPY_FILE_REQUEST cookie.
15165 (token::next, process_input_stack): Grok that.
15166 * troff/node.h (output_file::copy_file): Add x and y arguments.
15168 * troff/div.c (top_level_diversion::copy_file): Supply them.
15169 * troff/node.c (troff_output_file::copy_file): Add x and y
15170 arguments; moveto specified position. Invalidate font_position
15171 array after copying file.
15172 (output_file::copy_file): New function.
15173 (suppressed_output_file::copy_file, ascii_output::copy_file):
15175 * troff/input.c (transparent_file): New function.
15176 (init_input_requests): Bind to "trf".
15177 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15178 (process_input_stack): Likewise.
15180 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15182 * troff/node.c (init_node_requests): New number registers .kern
15183 pointing to global_kern_mode, and .lg pointing to
15184 global_ligature_mode.
15186 * troff/node.c (ligature): Don't change it if we get a bad
15189 * troff/input.c (do_define_string): Don't strip tabs.
15191 * troff/input.c (asciify_macro): Make the string_iterator auto.
15193 * troff/node.c (init_font_requests): Rename to...
15194 (init_node_requests):
15195 * troff/node.h: Change declaration.
15196 * troff/input.c (main): Change call.
15198 * troff/input.c (node::reread, diverted_space_node::reread): New
15200 (process_input_stack): Call reread rather than
15201 get_diverted_space_node.
15202 * troff/node.c (node::get_diverted_space_node,
15203 diverted_space_node::get_diverted_space_node): Removed.
15204 * troff/node.h: Declare reread methods instead of
15205 get_diverted_space_node methods. Make `n' member private.
15206 * troff/input.c: (token::diverted_space): Removed.
15207 * troff/token.h: Removed declaration.
15210 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
15212 * eqn/script.c (script_box::compute_metrics): Don't let
15213 SUP_RAISE_FORMAT become negative.
15215 * tbl/table.c (table::do_row): Entries that don't end in the
15216 this row shouldn't make the row non-blank.
15218 * tbl/table.c (table::make_columns_equal): Only set the width of
15219 columns which are marked as equal.
15221 * tbl/main.c (process_data): Before issuing excess data error,
15222 if last character was a newline unget it; then get it again after
15223 the error. Also include the contents of the entry in the message.
15225 * groff.c: New file.
15226 * Makefile: Build groff from groff.c. Make it possible to use
15227 either groff.sh or groff.c as groff.
15228 * Makefile.bd: Similarily.
15230 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
15232 * groff.sh: Don't delay expansion of $@ in assignment to files.
15233 Remove occurrences of \".
15235 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
15237 * all Makefiles: Simplify and rearrange.
15239 * Makefile: Handle fmod like malloc.
15240 * lib/Makefile: Similarily.
15241 * lib/fmod.c: Remove #ifdef NEED_FMOD.
15243 * Makefile: Rename OPTIMISE to OPTIMIZE.
15245 * groff.sh: Remove assignment to PATH.
15246 * Makefile: Remove SHPATH variable.
15247 * Makefile.bd: Similarily.
15249 * groff.sh: Add -V option to print the pipeline instead of
15252 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
15254 * lib/font.c: Split off file searching into ...
15255 * lib/fontfile.c: New file.
15257 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15259 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
15261 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15262 Also change misleading comment.
15263 (table::do_vspan): Change similarily misleading comment.
15264 * tbl/main.c (process_data): A format row with an explicit `s'
15265 uses up a data line, even if all the other columns are `_' or `='.
15267 * troff/input.c (token::description): Fix description of
15268 TOKEN_DUMMY and TOKEN_EMPTY.
15270 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
15272 * groff.sh: Fix description of -Z in help message.
15274 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
15276 * pic/object.c (object_spec::make_object): Allow negative and zero
15278 * pic/pic.y: Give linethick default value of -1.0.
15279 * pic/troff.c (troff_output::troff_output): Initialize
15280 last_line_thickness to BAD_THICKNESS.
15281 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15282 (troff_output::line_thickness): Canonicalize negative thicknesses
15283 to RELATIVE_THICKNESS.
15284 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15285 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15287 (tex_output::start_picture): Set pen_size to -2.0.
15289 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15290 0, then use 0 linewidth.
15291 (ps_printer::ps_printer): Initialize line_thickness to -1.
15293 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15295 * ps/devps/symbolchars: Remove `or'.
15296 * ps/tmac.ps: Implement \(or with .char.
15298 * ps/devps/symbolchars: Move most characters into textmap.
15299 * ps/devps/textmap: Add names for troff bracket characters. Remove
15302 * ps/devps/TSymbol.ps: Removed.
15303 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15304 * ps/tmac.ps: Do with .char what TSymbol did.
15305 * ps/devps/download: Remove TSymbol.
15307 * ps/devps/T: Removed.
15308 * ps/devps/Troff.ps: Removed.
15309 * ps/devps/Troff.afm: Removed.
15310 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15311 * ps/devps/download: Remove Troff.
15312 * ps/devps/FontMakefile: Remove T target.
15313 * ps/devps/DESC-A4: Remove T from font list.
15314 * ps/devps/DESC-letter: Likewise.
15316 * troff/input.c (macro_to_node): Rename to ...
15317 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
15318 character's definition while processing it.
15319 * troff/node.c (node::add_char, make_node): Change calls to
15320 macro_to_node accordingly.
15322 * troff/input.c (token::next): Translate \_ to \(ul.
15324 * tty/devascii/R.proto: Add `|'.
15325 * tty/devlatin1/R.proto: Likewise.
15327 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
15329 * man: Put the version number in all the man pages.
15331 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
15333 * Makefile.bd: New file.
15334 * README.bd: New file.
15336 * VERSION: New file.
15337 * lib/version.c: Removed.
15338 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15341 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15342 environment variable.
15344 * all Makefiles: Split install target into install.bin for
15345 binaries, and install.nobin for everything else.
15346 * Makefile: Add bindist target.
15348 * man/afmtodit.man: New file.
15349 * man/Makefile: Add afmtodit.n to MAN1PAGES.
15350 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15352 * ps/Makefile: Pass BINDIR to make install in devps.
15354 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15355 the space character.
15357 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15359 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
15361 * ps/ps.c: Redo font downloading.
15362 * ps/devps/download: New file.
15363 * ps/devps/Makefile: Add download to DEVICEFILES.
15364 * ps/devps/afmtodit: Remove -d option.
15365 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15366 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15367 * ps/devps/zapfdr.ps: Likewise.
15368 * ps/devps/TSymbol.ps: Likewise.
15370 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
15372 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15374 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
15376 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15377 then strip the first line if it starts with %.
15378 * Makefile: Add a comment about this.
15380 * man/tfmtodit.man: New file.
15381 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15382 * dvi/Makefile: Install tfmtodit in BINDIR.
15384 * dvi/tfmtodit.c (usage): Mention -v option.
15386 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
15388 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15389 * troff/node.c (troff_output_file::transparent_char): Don't call
15392 * eqn: Add check_tabs method to most box classes.
15393 * eqn/box.c (box::top_level): Call check_tabs.
15395 * eqn/script.c (script_box::output): Use \Z.
15396 * eqn/limit.c (limit_box::output): Use \Z.
15398 * eqn/box.c (box::top_level): Use itoa.
15400 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
15402 * dvi/tmac.dvi: Add font translations for CR, C, TT.
15403 * dvi/devdvi/Makefile: Don't make links to CW.
15405 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15407 * xditview/tmac.X: Likewise.
15409 * troff/node.c: Add font translation feature.
15410 (get_font_translation): New function.
15411 (symbol_fontno): Translate the font name.
15412 (mount_font_no_translate): Rename to mount_font to this.
15413 (mount_font): New function.
15414 (font_family::make_definite): Call mount_font_no_translate instead
15416 (mount_style): Translate the font name.
15417 (font_translate): New function.
15418 (init_font_requests): Bind "ftr" to font_translate.
15420 * ps/devps/prologue (SN): New procedure that rounds a position to
15421 the nearest (pixel + (.25,.25)).
15422 (DL): Use SN to round endpoints.
15424 * lib/version.c: Changed version to 0.5.
15426 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
15428 * Makefile: Move definition of PAGE to the very beginning, so that
15429 people are less likely to miss it.
15431 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
15433 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15435 * troff/env.c (environment::choose_breakpoint): Make `can't find
15436 breakpoint' error a warning of type WARN_BREAK. Change message to
15437 `can't break line'.
15438 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15440 * troff/input.c: Add WARN_BREAK to warning_table. Include
15441 WARN_BREAK in DEFAULT_WARNING_MASK.
15443 * tty/tmac.tty: Add definition of \(+-.
15445 * groff.sh: Remove `--' option to set command.
15447 * dvi/devdvi/texsy.map: Remove duplicate md entry.
15449 * ps/devps/eqnchar: Better definition of cdot using md.
15450 * dvi/devdvi/eqnchar: Likewise.
15451 * xditview/devX100/eqnchar: Likewise.
15452 * xditview/devX75/eqnchar: Likewise.
15453 * eqn/lex.c: Add definition of cdot.
15455 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
15457 * troff/input.c (get_optional_char): New function.
15458 * troff/input.c (set_page_character): Use get_optional_char(),
15459 rather than has_arg() and tok.get_char(1).
15460 * troff/env.c (tab_character, leader_character, hyphen_char,
15461 field_characters): Likewise.
15462 (margin_character): Likewise. Also always delete the
15463 margin_character_node.
15465 * troff/input.c (token::get_char): Use token::description.
15467 * troff/input.c (has_arg): Don't skip over tab and \}.
15468 * troff/number.c (start_number): Give a warning if the number
15469 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15471 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
15473 * troff/input.c (empty_name_warning, non_empty_name_warning): New
15475 (get_name, get_long_name): Use these. Rename `warn' argument to
15478 * troff/node.c (get_fontno): Test that the symbol is not null.
15480 * troff/input.c (token::description): New function.
15481 * troff/number.c (parse_term): Use token::description in `numeric
15482 expression expected' message.
15483 * troff/groff.h: Add WARN_MISSING.
15484 * troff/number.c (start_number): New function.
15485 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15486 get_incr_number): Use start_number().
15487 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15489 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15490 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15492 * troff/input.c (token::get_char): Use WARN_MISSING.
15493 * troff/input.c (token::delimiter): Use token::description.
15494 * troff/env.c (environment_switch): Back out Aug 3 change.
15495 * troff/input.c (has_arg): Skip over \}s and tabs but give a
15497 * troff/token.h (token::tab): New function.
15498 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15499 * troff/reg.c (alter_format): Likewise.
15500 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15502 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
15504 * troff (most files): Redo warnings. Divide warnings into various
15505 categories; warning() has an additional first argument indicating
15506 the category it falls into.
15507 * troff/input.c (main): -w now takes an argument. New option -W.
15508 (enable_warning, disable_warning): New functions.
15510 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15511 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15513 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
15515 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15516 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15517 * xditview/devX75/eqnchar: Likewise.
15518 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15520 * eqn/other.c: When bar or over applies to a single character
15521 don't produce an overline_box or an underline_box. Instead produce
15522 an accent_box or an underaccent_box, with the accent a line
15523 whose width is accent_width. New classes underaccent_box,
15524 overline_char_box and underline_char_box.
15525 * eqn/box.h: Move overline_box, underline_box, accent_box class
15526 declarations into eqn/other.c. Add declarations of
15527 make_underline_box, make_overline_box, make_accent_box.
15528 * eqn/eqn.y: Call make_overline_box, make_underline_box
15529 make_accent_box instead of constructors.
15530 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15532 * eqn/other.c: Add accent_box::~accent_box.
15533 * eqn/box.h: Declare it.
15535 * groff.sh: With -Tps, use eqn -D.
15537 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15539 (underline_box::output): Similarily.
15540 (accent_box::output): Use \Z.
15542 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15545 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
15547 * troff/div.c (top_level_diversion::transparent_output(unsigned
15548 char)): Use asciify.
15549 * troff/input.c (asciify): Don't make it static.
15550 * troff/token.h (asciify): Declare it.
15552 * troff/input.c (get_name, get_long_name, token::get_char,
15553 token::delimiter): Add an extra default argument which says
15554 whether a warning should be printed.
15555 * troff: Pass a non-zero argument to one of these rather than
15556 printing a warning directly.
15558 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
15560 * troff: Consistently use symbol::is_null.
15562 * troff/dictionary.h: Move some inline functions into
15565 * troff/request.h: Move inline functions into input.c.
15566 (request_or_macro::invoke): Make it pure.
15568 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15569 * troff/input.c (init_input_requests): Use class constant_int_reg.
15570 (class compatible_reg): Deleted.
15571 * troff/div.c (init_div_requests): Use class constant_int_reg.
15572 (class last_post_line_extra_space_reg): Deleted.
15574 * troff/env.c (tab_character): Don't change the tab character if
15575 we get an invalid argument.
15576 (hyphen_char): Similarily.
15578 * troff/reg.c (alter_format): Check that nm is not null.
15580 * Makefile, groff.sh: Make it possible to customize the commands
15581 used for printing PostScript and dvi files. Also make it possible
15582 to customize the path used by groff.sh.
15584 * eqn/eqn.y: Make `left' right associative.
15586 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
15588 * pic/pic.h: Added definition of M_SQRT2 for those systems that
15591 * pic/pic.h: Removed definition of INT_MAX.
15593 * troff/node.c (italic_corrected_node::vertical_extent): Omit
15596 * troff/input.c (token::next): Handle \R like \n.
15598 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
15600 * ps/tmac.pc (PSPIC): Simplify.
15602 * troff/env.c (tab_stops::to_string):
15603 * pic/pic.y (object_type_name):
15604 * pic/troff.c (simple_output::line):
15605 * pic/tex.c (tex_output::spline):
15606 * pic/object.c (object_spec::make_object):
15607 * tbl/main.c (process_data): Add cases to switch statements to
15608 avoid cfront warnings. (Some of these are spurious, since the
15609 switch already has a default case.)
15611 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
15612 `ps-'. Don't test systat; instead check number of arguments to
15615 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
15617 * macros/tmac.e: Do not decrease the page offset by 0.5i.
15619 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15620 Unlink the file as soon as we have opened it, so that we don't
15621 have to bother with signal handlers.
15622 (handler): Deleted.
15623 (fatal_error_exit): Deleted.
15624 (main): Don't call signal.
15626 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15628 * dvi/devdvi/Makefile: Use the -k option with S and MI.
15630 * pic/pic.y: If there is a label, or an nth construction before
15631 the first `.' in the argument to `with', ignore it and generate a
15633 * pic/lex.c (lex_warning): New function.
15635 * tbl/table.c (table::init_output): In section keep and release
15636 macro, use 0 indent when diverting and the correct indent when
15639 * troff/input.c (interpolate_number_format): Do not interpolate
15640 anything if the number register is not defined.
15642 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15644 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
15646 * ps/devps/prologue (PICTURE): Set components of graphics state to
15647 their default values.
15649 * ps/devps/text.enc: Add trademark
15650 * ps/devps/textmap: Add names for club, spade, heart, diamond,
15651 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15652 * ps/devps/symbolchars: Add names for summation and product.
15654 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15655 suchthat. Add pp. Add upper-case letters.
15657 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15658 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15661 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15662 rA (right angle bracket) to ra. Introduce names for double-headed
15663 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15664 * ps/devps/textmap: Likewise for ps device.
15665 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15666 * tty/devascii/R.proto: Rename lA to la and rA to ra.
15667 * tty/devascii/R.proto: Likewise.
15668 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15670 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15672 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15674 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15677 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
15679 * troff/div.c (when_request): Use symbol::is_null rather than
15680 has_arg to determine whether we have an argument.
15681 (change_trap): Remove the trap if we get an invalid number. Give
15682 an error if we don't get at least the macro name.
15683 (diversion_trap): Remove trap if we get an invalid name or number.
15685 * troff/env.c (environment_switch): Pop if we get an invalid
15686 symbol or numeric expression.
15688 * troff/input.c (do_define_macro): If EOF is encoutered while
15689 defining the macro, do tok.next() before returning.
15691 * troff/token.h (has_arg): Move definition from here, to ...
15692 * troff/input.c (has_arg): ... here
15694 * troff/env.c (space_size): Do nothing if we get an invalid argument.
15695 * troff/input.c (shift): Likewise.
15697 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
15700 * pic/troff.c (troff_output::start_picture): Comment out calls to
15703 * eqn/main.c (do_file): Subtract 1 from current_lineno if
15704 interpret_lf_args succeeds.
15706 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15707 \\. This avoids problems with \$N.
15709 * groff.sh: Pass -C to preprocessors.
15711 * lib/lf.c (interpret_lf_args): Be more flexible.
15713 * tbl/main.c (main): Add -C option.
15714 (table_input::get): Do not recognize TE if followed by character
15715 other than a space or newline unless -C option given.
15716 (process_input_file): Likewise for lf, TS.
15717 (process_data): Likewise for lf in text blocks.
15719 * eqn/main.c (main): Add -C option.
15720 (do_file): Don't recognize EQ, EN or lf if followed by character
15721 other than space or newline unless -C option given.
15722 * eqn/lex.c (file_input::read_line): Similarily.
15723 * eqn/eqn.h: Declare compatible_flag.
15725 * etc/soelim.c (main): Add -C option.
15726 (interpret_lf_args): Use version in libgroff.
15729 * pic/main.c (main): Add -C option, which sets compatible_flag.
15730 (top_input::get), (top_input::peek): If -C option not given,
15731 do not recognize .PS/.PE/.PF/.lf if followed by a character
15732 other than space or newline.
15733 * pic/lex.c (file_input::read_line): Similarily.
15734 * pic/pic.h: Add declaration of compatible_flag.
15736 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
15738 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15740 * troff/node.c, troff/node.h: Add `asciify' methods to classes
15741 derived from node. New class space_char_hmotion_node.
15742 * troff/input.c (asciify_macro): New function.
15743 * troff/input.c (init_input_requests): New request `asciify' bound
15745 * macros/mm.diff: New file.
15746 * Makefile: In install.mm target use `patch' to apply
15749 * troff/input.c (macro::print_size): Just print the size in bytes.
15751 * troff/div.c (return_request): Correct the argument
15754 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
15756 * troff/node.h (class composite_node): Add sz member.
15757 * troff/node.c (composite_node::size): Return sz.
15758 * troff/input.c (macro_to_node): Use the initial size in the
15759 environment as the size of the composite_node.
15761 * troff/node.c (node::zero_width_tprint): Provide a reasonable
15764 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
15766 * troff/div.c (change_trap): If we get a bad number expression,
15769 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
15771 * lib/matherr.c (matherr): Define this only if math.h defines
15774 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
15776 * troff/div.c (macro_diversion::distance_to_next_trap): If there
15777 no diversion trap return vunits(INT_MAX - vresolution).
15779 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
15781 * troff/input.c (do_zero_width): New implementation that doesn't
15782 use a temporary environment. Use instead:
15783 (token::add_to_node_list): New function.
15784 * troff/env.c (environment::get_prev_char_height),
15785 (environment::get_prev_char_height),
15786 (environment::get_prev_char_skew): New functions.
15787 (environment::get_prev_char): New function.
15788 (environment::get_prev_char_width): Change to use get_prev_char.
15789 (init_env_request): Implement new registers .cht, .cdp, .csk.
15790 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15791 \Z being processed in a separate environment.
15793 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
15795 * tbl/table.c: Removed TABLE_BOTTOM_REG.
15797 * tbl/table.c (table::init_output): In the section release macro,
15798 give a warning message if the section won't fit on one page.
15800 * tbl/table.c (table::do_top): Emit table keep only if table is
15802 (table::do_bottom): Likewise for table release.
15803 (table::table), (table::add_vertical_rule): Remove reference to
15805 * tbl/table.h: Remove keep member.
15807 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15808 SECTION_RELEASE_MACRO, if there's not enough space before the next
15809 trap to output the diversion, call T# ourselves, set
15810 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15811 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
15812 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
15813 vertical position and return to it before turning traps on again.
15815 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
15817 * troff/node.c, troff/node.h: In classes derived from node,
15818 replace prev_char_width method by last_char_node method.
15819 * troff/env.c (environment::get_prev_char_width): Use
15820 node::last_char_node rather than node::get_prev_char_width.
15822 * Makefile: Added comment about -fno-inline on 68030-based
15825 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15826 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15827 expressions using sizeof to int.
15828 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15830 * macros/tmac.e (TS): Don't move @f back past the current
15833 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
15835 * ps/ps.c (main): Buffer stderr.
15836 * dvi/dvi.c (main): Likewise.
15837 * tty/tty.c (main): Likewise.
15839 * ps/ps.c (ps_printer::do_import): Improve error handling.
15841 * troff/input.c (abort_request): Use asciify.
15843 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15844 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15845 type of first argument int rather than char. This works around a
15846 bug on the 68030 based Apollo using g++ 1.37.1.
15848 * tbl/table.h (class table): Add `keep' member.
15849 * tbl/table.c (table::table): Initialize `keep'.
15850 (table::add_vertical_rule): Set `keep' to 1.
15851 (table::do_top): Only emit table keep macro is `keep' is non-zero.
15852 (table::do_bottom): Likewise for table release macro.
15853 (table::do_row): Emit section keep macro even if the row is 0.
15855 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
15857 * macros/tmac.e (@C): Preserve the font family across the change
15860 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
15862 * lib/font.c: Initialize font::hor and font::vert to 1.
15863 (font::load_desc): Check the values of font::hor and font::vert.
15865 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15866 be included in a C compilation.
15867 (iftoa): Use INT_DIGITS. Include lib.h.
15869 (as_string): Likewise.
15870 * tbl/table.c: Removed definition of INT_DIGITS.
15871 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15872 * troff/input.c (input_input_requests): Likewise.
15873 * ps/ps.c (make_encoding_name): Likewise.
15874 (ps_printer::set_style): Likewise.
15875 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15877 * tty/devascii/R.proto: Map fm onto '.
15878 * tty/devlatin1/R.proto: Likewise.
15880 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
15882 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15883 argument to \w is at a different input level.
15885 * tbl/table.c (table::init_output): Define a new macro
15886 REPEATED_VPT_MACRO, like vpt but if in a diversion also
15887 transparently outputs itself.
15888 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15890 (table::do_row): Likewise.
15892 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15893 TRANSPARENT_STRING_NAME.
15895 * tbl/table.c (table::init_output): In the table release macro
15896 print an error message and don't produce any output if after
15897 issuing the need request the table still will not fit. Also
15898 remove the diversion after bringing it back.
15900 * tbl/table.c (table::init_output): Define a new macro
15901 REPEATED_MARK_MACRO, like mk but if in a diversion also
15902 transparently outputs itself.
15903 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15904 is necessary because .TH might not call .T#.
15905 (table::do_top): Likewise TOP_REG.
15906 (table::define_bottom_macro): If TOP_REG is no longer valid, use
15907 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15908 table header might contain just the two top rules.
15910 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
15912 * troff/div.c: Implement new request `ptr' to print all traps.
15914 * troff/env.c (init_env_requests): Implement `.tabs' reg with
15915 init_string_env_reg.
15916 * troff/env.c (class tab_reg): Deleted.
15918 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
15920 * troff/div.c: New number register .pn returns the number of the
15921 next page as set by the pn request.
15923 * macros/tmac.an: Redid headers and footers. Number each manual
15924 entry starting from 1 unless \nC is > 0, like Sun. Added an
15925 optional 5th argument to .TH which specifies the manual name and
15926 appears in the center of the header. Understand the X, P and D
15927 registers like Sun.
15929 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
15931 * troff/env.c (init_env_requests): New number register `.lt' to
15932 return the title length.
15934 * troff/node.h (class transparent_dummy_node): New class.
15935 * troff/node.c (class transparent_dummy_node): Provide member
15937 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15940 * troff/input.c (token::next): New escape sequence \).
15941 * troff/input.c (get_copy): Recognize \) in copy mode.
15943 * troff/input.c (input_stack::clear): New function.
15944 * troff/input.c (exit_request): Use input_stack::clear.
15946 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15947 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15949 * troff/env.c: Move set_page_character to input.c. Move
15950 page_character to input.c also.
15951 * troff/env.c (title): Split off the reading of the parts of the
15952 title into read_title_parts.
15953 * troff/input.c (read_title_parts): New function. Check the
15954 input_level when testing whether a token matches the delimiter.
15956 * troff/input.c (exit_request): New function.
15957 * troff/input.c (init_input_requests): Bind ex request to
15958 exit_request rather than exit_groff.
15960 * troff/input.c (exit_groff): Call tok.next() before
15961 process_input_stack().
15963 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
15965 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15966 * troff/env.h: ditto.
15967 * troff/input.c: ditto.
15969 * troff/env.c (environment::is_empty): Test pending_lines.
15971 * troff/env.c (environment::have_pending_lines): Removed.
15973 * troff/input.c: Add request to flush pending lines from the
15976 * troff/env.c, troff/env.h: Add automatic widow control feature.
15978 * troff/input.c (exit_groff): Do process_input_stack() after
15979 do_break() but before setting exit_flag to 2.
15981 * troff/input.c: Remove FLUSH_PENDING_LINES and
15982 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15983 environment after END_TRAP token seen, but only if there aren't
15984 any more traps still unfinished.
15985 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15987 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
15989 * troff/env.c: Rename the `retain_size' member of class
15990 pending_output_line to `no_fill'.
15992 * troff/env.c (title): When the line is output, make the
15993 retain_size argument !fill.
15995 * troff/node.h: Add `hyphenated' member to struct breakpoint.
15996 * troff/node.c (space_node::get_breakpoints),
15997 (dbreak_node::get_breakpoints): Fill this in.
15998 * troff/env.c: Allow specification of maximum number of
15999 consecutive hyphenated lines.
16001 * troff/env.c (environment::is_empty): Add test for !current_tab.
16003 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
16005 * troff/env.c (environment::hyphenate_line): Don't completely give
16006 up if the word is not to be hyphenated; continue so that breaks
16007 can be made at break_char_node's.
16009 * lib/lib.h: Only define INT_MAX if it's not already defined;
16010 undef INT_MIN if it's already defined.
16012 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16014 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16015 This works around a bug in AT&T C++ 2.0 used with an ANSI C
16018 * macros/tmac.an (an-header): Set no-space mode.
16020 * macros/tmac.an (TH): Start a new page if necessary.
16022 * Started using ChangeLog at version 0.4.
16025 version-control: never