1 2004-07-02 Werner LEMBERG <wl@gnu.org>
3 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
6 (PUSH_COMP_MODE): New internal character constant.
9 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
10 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
11 (token::next, macro::append): Handle PUSH_COMP_MODE.
12 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
13 POP_GROFFCOMP after each of the decoded arguments to make them
14 independent from the compatibility mode status.
15 (comp_mode): Add `COMP_ENABLE'.
16 (do_define_string, do_define_macro): Handle COMP_ENABLE.
17 (define_string, append_string, define_macro, define_indirect_macro,
18 append_macro, append_indirect_macro): Handle `compatible_flag'.
19 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
21 * man/groff_diff.man, doc/groff.texinfo: Updated.
23 2004-07-01 Werner LEMBERG <wl@gnu.org>
25 * doc/groff.texinfo: Improve documentation of `hcode'.
26 Use @documentencoding and convert document to latin-1; to do that
27 make latin characters active and assign proper macros (within a
28 @tex...@end tex environment).
29 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
30 * doc/Makefile.sub (groff): Ditto.
32 2004-06-29 Werner LEMBERG <wl@gnu.org>
34 Implement two new conditional operators `F <name>' and `S <name>'
35 which check whether <name> is a valid font or style, respectively.
37 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
38 (text_file::text_file): Updated.
39 (text_file::error): Don't emit message if `silent' is set.
40 (font::load_font): Add optional third argument (which is directly
42 (font::load): Add optional second argument to check the header of
43 a font only, without emitting warning or error messages.
44 * src/include/font.h (font): Updated.
46 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
48 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
49 fourth argument to check a font without mounting.
50 (check_font, check_style): New functions.
51 * src/roff/troff/node.h: Updated.
53 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
56 2004-06-27 Werner LEMBERG <wl@gnu.org>
58 Implement new string-valued register `.sty' to return the current
61 * env.cpp (environment::get_style_name_string): New function.
62 (init_env_requests): Add `.sty' register.
63 * env.h (environment): Updated.
64 * node.cpp (font_info): Make `get_style_name' a friend.
65 (get_style_name): New function.
68 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
71 2004-06-15 Werner LEMBERG <wl@gnu.org>
73 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
76 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
78 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
79 and \n[mo] to avoid dependency on current date.
81 2004-06-08 Werner LEMBERG <wl@gnu.org>
83 * Makefile.sub (install_data): New target.
85 2004-06-04 Werner LEMBERG <wl@gnu.org>
87 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
89 2004-06-03 Werner LEMBERG <wl@gnu.org>
91 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
93 (install_data): Add $(srcdir).
95 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
98 2004-06-02 Werner LEMBERG <wl@gnu.org>
100 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
101 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
102 Add test for Xmu library.
103 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
104 GROFF_APPRESDIR_DEFAULT): New macros.
106 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
107 and GROFF_APPRESDIR_DEFAULT.
109 * configure: Regenerated.
111 * Makefile.in (appresdir): New variable.
112 (MDEFINES): Add appresdir.
114 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
116 (install_data, uninstall_sub): New targets to handle GXditview.ad.
118 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
119 `$(srcdir)/eign', not `eign'.
121 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
123 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
124 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
125 Protect (g)xditview with `\%' to avoid hyphenation.
126 Other minor formatting.
128 2004-06-01 Werner LEMBERG <wl@gnu.org>
130 Integrate gxditview into groff's standard directory hierarchy.
132 * src/xditview/*: Moved to ...
133 * src/devices/xditview/*: Here.
134 Moved DviChar.h and XFontName.h to src/include.
135 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
136 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
137 Moved xtotroff.c to new directory src/utils/xtotroff.
138 Provide proper Makefile.sub files (reusing the stuff from
140 DESC renamed to DESC.in.
141 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
142 Converted everything from K&R to ANSI C.
143 Decorated with const where appropriate.
144 Cast string constants with `String' and `char *' where appropriate.
145 Made it compile with C++ (used as a C compiler).
146 Removed other minor compiler warnings.
148 * src/devices/xditview/device.c: Include config.h, string.h, and
150 Don't declare `exit', `strtok', `strchr', and `getenv'.
153 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
156 * src/devices/xditview/xditview.c: Include config.h.
157 Include stdio.h earlier.
158 Protect declaration of `popen' and `pclose' with
159 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
160 Replace `caddr_t' with `XtPointer'.
161 (MakePromptFunc): New typedef.
162 (DoPrint): Use RETSIGTYPE.
163 (promptfunction): Change type to MakePromptFunc.
164 (MakePrompt): Use MakePromptFunc for third argument.
167 * src/devices/xditview/ad2c: Add casts to `String'.
169 * src/include/XFontName.h (XFontNameString): Don't use array
171 Add prototypes for `XParseFontName', `XFormatFontName',
172 `XCompareFontName', and `XCopyFontName'.
174 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
177 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
178 Don't declare `XParseFontName' and `XFormatFontName'.
180 (main): Remove `optind' and `optarg'.
182 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
183 (to select programs which need X).
184 Make XDEVIDIRS depend on `FORCE'.
185 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
188 (LIBDIRS): Use XLIBDIRS.
189 (CPROGDIRS): Use XPROGDIRS.
190 (DEVDIRS): Remove font directories for gxditview.
191 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
192 (EXTRADIRS): Remove src/xditview.
194 * Makefile.sub (DISCLEANFILES): Updated.
196 * Makefile.comm (LIBXUTIL): New variable.
197 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
198 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
200 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
202 * aclocal.m4 (GROFF_X11): New function.
204 * configure.ac: Call GROFF_X11.
205 Don't create src/xditview/Imakefile.
206 Don't emit notice how to build gxditview.
208 * configure: Regenerated.
210 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
212 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
214 * Makefile.in (CPPFLAGS): Define.
215 (MDEFINES): Add CPPFLAGS.
217 2004-05-27 Werner LEMBERG <wl@gnu.org>
219 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
221 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
223 Fix problems with `friend name injections'.
225 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
226 make_script_box), src/roff/troff/div.h (end_diversions),
227 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
230 2004-05-25 Bernd Warken <bwarken@mayn.de>
232 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
234 2004-05-25 Werner LEMBERG <wl@gnu.org>
236 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
237 src/libs/libgroff/color.cpp: Include lib.h.
239 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
241 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
242 through Forte 6u1, and for how to get GNU make on Solaris.
244 2004-05-24 Werner LEMBERG <wl@gnu.org>
246 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
249 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
251 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
254 2005-05-14 Werner LEMBERG <wl@gnu.org>
256 * REVISION: Set to 2.
258 * aclocal.m4 (GROFF_STDINT_H): Removed.
259 (GROFF_INTTYPES_H): Define HACE_CC_INTTYPES_H.
261 * configure.ac: Updated.
262 * configure, src/include/config.hin: Regenerated.
264 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
265 inttypes.h conditionally.
267 2003-05-13 Werner LEMBERG <wl@gnu.org>
269 Version 1.19.1 released
270 =======================
272 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
274 * src/preproc/refer/label.y (same_author_last_name,
275 same_author_name): Handle empty sort keys.
277 2004-05-10 Werner LEMBERG <wl@gnu.org>
279 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
282 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
283 doc-str-Lb-librt): Reset font.
284 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
285 Provide `doc-str-Lb' to reset font.
286 * tmac/groff_mdoc.man: Updated.
288 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
290 * src/preproc/html/pre-html.cpp (make_message): Make it work for
291 snprintf versions which don't conform to ANSI C 99 (this is,
292 counting the string's trailing null byte in the return value).
294 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
296 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
297 that all implementations of sprintf handle null pointers correctly.
299 2004-05-04 Werner LEMBERG <wl@gnu.org>
301 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
302 Document `.U' register.
304 * src/roff/troff/env.cpp (environment::mark_last_line)
305 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
307 2004-05-04 Larry Kollar <kollar@alltel.net>
309 New read-only register `.U'; it returns 1 in safer mode and 0
312 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
315 2004-05-03 Werner LEMBERG <wl@gnu.org>
317 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
319 2004-04-17 Werner LEMBERG <wl@gnu.org>
321 * src/include/font.h (font): Use `int' for ch_index.
322 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
323 font::compact): Updated.
325 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
328 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
329 (hyphen_word): Fix compiler warnings.
330 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
333 (get_delim_number, get_line_arg): Change second argument type to
335 (macro_header::copy, token::next, do_define_string,
336 do_define_character, substring_request, asciify_macro,
337 unformat_macro, read_size, non_interpreted_node::interpret,
338 while_request, main: Fix compiler warnings.
339 (read_color_draw_node): Initialize `col'.
341 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
342 `start_col' and `end_col' of type `int'.
343 (vertical_rule): Make `col' of type `int'.
345 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
348 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
350 (format_serial): Use them to remove dependency on ASCII.
352 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
354 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
357 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
359 (glyph): Change type of `hpos' to `int'.
361 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
362 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
364 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
366 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
368 2004-04-16 Werner LEMBERG <wl@gnu.org>
370 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
371 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
372 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
373 `double' instead of `float' everywhere.
374 * src/preproc/grn/main.cpp: Use `double' instead of `float'
376 (main): Add return value.
377 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
379 Update all user functions.
381 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
382 src/preproc/eqn/box.h, src/preproc/pic/object.h,
383 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
384 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
385 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
386 src/roff/troff/input.cpp, src/roff/troff/request.h,
387 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
390 * src/utils/indxbib/signal.c: Include stdlib.h.
392 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
394 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
395 before the first page.
397 2004-04-14 Thomas Klausner <wiz@netbsd.org>
399 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
400 (doc-operating-system-*): Updated.
401 * tmac/doc-syms (doc-str-St-*): Various small fixes.
402 (doc-str-Lb-*): Add more library names.
404 2004-04-10 Art Haas <ahaas@airmail.net>
406 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
409 2004-04-09 Art Haas <ahaas@airmail.net>
411 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
413 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
415 * arch/misc/shdeps.sh: Generate better comment for sed script.
417 2004-04-08 Art Haas <ahaas@airmail.net>
419 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
420 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
421 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
422 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
423 (polyfill), src/preproc/grn/main.cpp (polyfill),
424 src/preproc/refer/command.cpp (command_table),
425 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
426 gcc 3.5 doesn't like).
428 2004-04-08 Werner Lemberg <wl@gnu.org>
430 Removing many compiler warnings. groff should now compile with
431 a C++ compiler used for C files also. [Simple variable renamings
432 to avoid shadowing aren't logged in detail.]
434 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
435 (draw_dvi_printer::draw) ['c']: Enclose in block.
437 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
438 (page::add_line): Fix typos.
439 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
441 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
442 Some local variable renamings.
443 * src/devices/grolbp/lbp.h: Some local variable renamings.
445 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
448 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
449 Remove redundant local variable declaration.
450 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
451 Don't use `caddr_t' but `void *'.
452 Enclose functions with `extern "C"' for C++.
454 * src/libs/libdriver/input.cpp (remember_filename,
455 remember_source_filename): Use cast for string constant.
457 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
458 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
459 src/libs/libgroff/geometry.cpp: Some local variable renamings.
460 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
462 Enclose functions with `extern "C"' for C++.
463 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
464 (needs_quoting): Return `int'.
465 (quote_arg): Add proper casts to malloc and realloc.
466 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
467 various MS Windows environments.
468 (spawnvp_wrapper): Add proper cast to malloc.
470 * src/preproc/eqn/box.h: Remove redundant declarations of
471 `make_script_box', `make_mark_box' and `make_lineup_box'.
472 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
473 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
476 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
477 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
478 (dx, dy): Renamed functions to...
479 (deltax, deltay): This.
480 * src/preproc/grn/main.cpp: Some local variable renamings.
481 (deffont): Add `const'.
482 (initpic, conv): Use cast for string constant.
484 * src/preproc/html/pre-html.cpp: Some local variable renamings.
485 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
486 (char_buffer::run_output_filter): Second argument is unused.
487 * src/preproc/html/pushback.cpp: Some local variable renamings.
489 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
490 * src/preproc/pic/object.cpp: Some local variable renamings.
492 * src/preproc/refer/label.y (lookup_label): Remove redundant
493 declaration of local variable.
495 * src/preproc/soelim.cpp: Remove redundant declaration of
498 * src/preproc/tbl/main.cpp: Some local variable renamings.
500 * src/roff/groff/groff.cpp (main): Use cast for string constant.
501 * src/roff/groff/pipeline.c: Enclose declarations of `error',
502 `c_fatal', and `i_to_a' with `extern "C"' for C++.
503 Don't use C++-style comments.
505 * src/roff/troff/env.h: Remove redundant declaration of `title'.
506 * src/roff/troff/node.h, src/roff/troff/env.cpp,
507 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
509 * src/roff/troff/div.h: Remove redundant declaration of
511 * src/roff/troff/troff.h: Remove redundant declaration of
513 * src/roff/troff/input.cpp: Remove redundant declaration of
514 `handle_first_page_transition' and `process_input_stack'.
516 * src/utils/hpftodit.cpp: Some local variable renamings.
518 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
520 Don't define RETSIGTYPE.
521 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
523 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
524 (error): Use `const' in argument.
525 (main): Remove redundant declaration of `optind'.
526 Move declaration of `Version_string' to top-level.
528 * PROBLEMS: Document difficulties compiling signal.c if a C++
529 compiler is used for C.
531 2004-04-07 Werner Lemberg <wl@gnu.org>
533 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
535 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
537 Make scripts like nroff.sh and neqn.sh portable across various
538 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
539 non-POSIX path separators. The idea is to extend those scripts to
540 decide at run-time (of the script) which path separator to use.
542 * arch/misc/Makefile.sub: New file.
543 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
544 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
545 a proper definition of the variable `GROFF_RUNTIME'.
547 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
548 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
549 (PROGDEPDIRS): New variable.
551 (PROGDIRS): Add PROGDEPDIRS.
553 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
554 Don't substitute @SEP@ and @BINDIR@.
555 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
556 (PATH): Use GROFF_RUNTIME.
558 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
559 Don't substitute @SEP@ and @BINDIR@.
560 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
561 (PATH): Use GROFF_RUNTIME.
563 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
565 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
566 Cygwin which doesn't handle stderr correctly.
568 2004-03-08 Werner LEMBERG <wl@gnu.org>
570 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
571 against empty argument. Problem reported by <cgd@broadcom.com>.
573 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
575 * Makefile.in (SEP): Replaced with...
576 (RT_SEP, SH_SEP): Separators for the target platform's native path
577 separator and the build environment, respectively.
578 (fontpath, tmacpath): Use RT_SEP.
581 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
582 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
583 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
584 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
586 2004-03-05 Werner LEMBERG <wl@gnu.org>
588 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
589 reduce alignment problems with newer printers which use built-in
590 TrueType fonts (instead of the older Intellifonts). The ideal
591 solution is to provide a second set of groff metric files, but this
592 is extremely time-consuming to produce, given that HP's metric
593 files are very rudimentary.
595 2004-03-01 Werner LEMBERG <wl@gnu.org>
597 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
598 s/operand/argument/ in error message.
600 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
602 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
605 2004-03-01 Antti Kantee <pooka@netbsd.org>
607 * tmac/s.tmac (XE): Fix error message.
609 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
611 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
614 * src/roff/groff/pipeline.c: Declare strcasecmp.
615 (run_pipeline) [_WIN32]: Use function name variants which don't
619 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
621 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
622 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
623 for platforms which use the native Win32 runtime libraries.
624 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
626 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
627 QUOTE_ARG_REALLOC_ERROR): Fix string.
629 * src/preproc/html/pre-html.cpp: Remove declaration of
631 Don't use __MINGW32__.
632 s/DEBUG_FILE/DEBUG_FILE_DIR/.
633 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
634 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
635 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
636 calls to `set_redirection' and `WAIT'.
637 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
638 Fix calls to `set_redirection' and `save_and_redirect'.
639 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
640 to `set_redirection' and `save_and_redirect'.
641 (usage): Fix message.
642 (makeTempFiles, main): Use `DEBUG_FILE'.
644 2004-02-21 Werner LEMBERG <wl@gnu.org>
646 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
648 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
650 * src/libs/libgroff/quotearg.c: New file, providing proper argument
651 quoting for MSVC's spawn* and exec* functions.
652 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
653 spawnvp with proper quoting for MSVC.
655 * src/libs/libgroff/assert.cpp (program_name),
656 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
657 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
659 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
661 * src/include/error.h (program_name): Declare as `extern "C"'.
662 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
664 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
666 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
668 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
670 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
672 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
674 (sbasename) [__MSDOS__ || ...]: New function.
675 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
677 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
678 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
680 Use STDOUT_FILENO instead of hardcoded file handle.
681 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
683 2004-02-19 Werner LEMBERG <wl@gnu.org>
685 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
686 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
688 2004-02-18 Werner LEMBERG <wl@gnu.org>
690 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
691 new font and mapping files.
693 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
694 Keith Marshall <keith.d.marshall@ntlworld.com>
696 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
697 an input pipe. This is needed for the MSVC compiler to make troff's
700 * src/roff/troff/div.cpp: Include nonposix.h.
701 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
703 2004-02-17 Werner LEMBERG <wl@gnu.org>
705 * font/devlj4/generate/special.awk: New script.
706 * font/devlj4/generate/Makefile (S): Use special.awk.
707 * font/devlj4/*: Regenerated, including the following new files:
708 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
709 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
710 * NEWS: Document new lj4 fonts and revised hpftodit.
712 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
714 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
716 2004-01-25 Werner LEMBERG <wl@gnu.org>
718 * src/libs/libgroff/progname.cpp: Replaced with...
719 * src/libs/libgroff/progname.c: New file.
720 * src/libs/libgroff/Makefile.sub: Updated accordingly.
722 2004-01-17 Werner LEMBERG <wl@gnu.org>
724 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
726 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
728 * font/devlj4/generate/wingdings.map,
729 font/devlj4/generate/symbol.map: Include unnamed glyphs.
730 Use groff glyph names where possible.
731 * src/devices/grolj4/lj4_font.man: Minor updates.
733 2004-01-13 Werner LEMBERG <wl@gnu.org>
735 * tmac/www.tmac (DC): Handle TTY devices.
737 * doc/webpage.ms: Document viewCVS from ffii.org.
738 * NEWS, README: Updated.
740 * src/roff/groff/groff.man: Mention lj4_font man page.
742 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
744 (FONTS): Add SYMBOL and WINGDINGS.
745 (SYMBOL, WINGDINGS): New targets.
747 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
749 * src/devices/grolj4/lj4_font.man: New man page.
750 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
751 * src/devices/grolj4.man: Mention lj4_font man page.
753 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
754 * src/utils/hpftodit/hpftodit.man: Document it.
756 Remove details about fonts (which are now in lj4_font.man).
758 * font/devlj4/generate/symbol.map,
759 font/devlj4/generate/wingdings.map: New files.
761 2004-01-12 Werner LEMBERG <wl@gnu.org>
763 * README: Mention ffii's viewcvs access.
765 2004-01-09 Werner LEMBERG <wl@gnu.org>
767 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
769 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
771 Revert most of the change from 2004-01-03 to better control used
774 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
775 (text_symbol_sets, special_symbol_sets): New arrays.
776 (symbol_set_table): New global variable.
777 (read_symbol_sets): Use search order given in the text_symbol_sets
778 and special_symbol_sets arrays. If command line flag -a is not
779 given, search both arrays.
780 (output_charset): Require x_height_tag only for command line flag -i.
782 2004-01-06 Werner LEMBERG <wl@gnu.org>
784 Implement string-valued registers \n[.m] and \n[.M] to return the
785 name of the current drawing and background color, respectively.
787 * src/roff/troff/symbol.h: Moved to...
788 * src/include/symbol.h: Here.
789 Small fixes to make it work outside of the `troff' directory.
790 * src/roff/troff/symbol.cpp: Moved to...
791 * src/libs/libgroff/symbol.cpp: Here.
792 Small fixes to make it work outside of the `troff' directory.
794 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
795 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
798 * src/include/color.h: Include symbol.h.
799 (color): Add new field `nm'.
800 * src/libs/libgroff/color.cpp (color::color): Updated.
802 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
803 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
804 src/roff/troff/reg.cpp: Don't include symbol.h.
806 * src/roff/troff/env.cpp: Don't include symbol.h.
807 (environment::get_glyph_color_string,
808 environment_get_fill_color_string): New member functions.
809 (init_env_requests): Handle `.m' and `.M' registers.
810 * src/roff/troff/input.cpp: Don't include symbol.h.
811 (default_symbol): Moved to symbol.cpp/symbol.h.
812 (do_glyph_color, do_fill_color, define_color): Pass symbol name
813 to color constructor.
814 * src/roff/troff/env.h: Updated.
816 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
817 Document new registers.
819 2004-01-05 Werner LEMBERG <wl@gnu.org>
821 * src/roff/troff/node.cpp (space_node::get_breakpoints,
822 space_node::nbreaks): Protect against zero `next' field.
824 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
826 In hpftodit, use the symbol sets offered in the TFM.
828 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
829 (symbol_set, text_symbol_sets, special_symbol_sets,
830 symbol_set_table): Removed.
831 (get_printcode): Removed.
832 (read_symbol_sets): Initialize `symbol_set' field with
834 Simplify code to just use the `kind' value.
835 (output_charset): Improve output formatting.
836 (dump_symbols): Simplified.
838 2004-01-02 Werner LEMBERG <wl@gnu.org>
840 * font/devlj4/generate/text.map: Add more MSL numbers.
842 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
844 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
845 (text_symbol_sets): Add more symbol sets.
846 (debug_flag): New static variable (moved from `main').
847 (get_printcode, show_symset): New functions.
848 (main): Remove `debug_flag'.
849 (output_charset): Use `show_symset'.
850 (dump_symbols): Use `show_symset'.
851 Print symsets for all glyphs.
852 (read_map): Actually call `unicode_to_ucode_make' but this time
855 2004-01-01 Werner LEMBERG <wl@gnu.org>
857 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
858 Fix placement of comments.
860 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
862 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
863 option `-d' is given.
864 (output_charset): Improve warning messages to give more information.
865 (dump_symbols): Make information more precise.
867 (read_map): Don't call unicode_to_ucode_name; the glyph names must
868 appear as-is and shouldn't be decomposed.
870 2003-12-31 Werner LEMBERG <wl@gnu.org>
872 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
873 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
874 (FONTS): Add TrueType font families Arial and Times New Roman.
875 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
876 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
879 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
881 * test-groff.in (SEP): Quote value.
882 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
883 `tem' to `char*' to avoid deallocation of a pointer to a constant
884 object which some compilers don't like.
886 2003-12-31 Werner LEMBERG <wl@gnu.org>
888 * font/devlj4/generate (text.map, special.map): Rewritten to work
889 with the new hpftodit version.
891 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
893 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
894 set and 8bit character code for all glyphs also.
896 2003-12-30 Werner LEMBERG <wl@gnu.org>
898 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
900 2003-12-29 Werner LEMBERG <wl@gnu.org>
902 More fixes for MSVC compiler.
904 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
907 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
908 STDERR_FILENO) [_MSC_VER]: Define conditionally.
909 (getpid) [_MSC_VER]: Remove.
910 Include direct.h and process.h conditionally.
912 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
913 parentheses for a_delete.
915 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
917 * test-groff: Replaced with...
918 * test-groff.in: This new template to handle path separator
921 * configure.ac: Check for direct.h and process.h.
922 Generate test-groff script.
923 * configure, src/include/config.hin: Regenerated.
925 2003-12-28 Werner LEMBERG <wl@gnu.org>
927 Add integral extension glyph.
928 Add new option `-x' to afmtodit to suppress use of built-in AGL.
930 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
932 * font/devps/generate/textmap: Provide entry for `integralex' to
933 override (old) PUA value of the AGL.
934 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
935 * font/devps/*: Regenerated.
937 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
938 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
940 2003-12-27 Werner LEMBERG <wl@gnu.org>
942 Add forgotten `coproduct' symbol (already available for DVI).
944 * font/devhtml/R.proto, font/devps/generate/textmap,
945 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
946 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
947 U+2210 (\[coproduct]).
949 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
951 hpftodit has been extended to handle TrueType metric files and
952 more glyphs. See hpftodit.man for more details.
954 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
955 ctype.h, and unicode.h.
956 s/msl/charcode/ everywhere since we now handle Unicode values also.
957 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
958 Use it where appropriate.
959 (MULTIPLIER): Replaced with...
960 (multiplier): New global static variable.
962 (tag_type): Add more TFM tags.
963 (tag_name): New array.
964 (ENUM_TYPE, FLOAT_TYPE): Removed.
965 (BYTE_TYPE): New value assigned.
966 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
967 (text_symbol_sets, special_symbol_sets): Extended to cover more
969 (check_type): Add return value.
970 (check_units): Add parameters to get ppi and upem values.
971 Handle TrueType TFM data.
972 (output_font_name): New function.
973 (output_charset): Add parameter to handle TFM type.
974 Handle TrueType TFMs also.
975 (em_fract): New macro.
976 (dump_tags): Be much more verbose and handle more tags.
977 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
978 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
980 (read_map): Add parameter to handle TFM type.
981 Handle both MSL and Unicode mappings.
982 (main): Add two new command line options `-a' and `-q'.
983 Updated to make use of new functions.
986 * src/utils/hpftodit/hpuni.cpp: New file.
988 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
991 2003-12-25 Werner LEMBERG <wl@gnu.org>
993 * src/include/nonposix.h (read) [_MSC_VER]: Define.
995 2003-12-24 Werner LEMBERG <wl@gnu.org>
997 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
998 by Michail Vidiassov <master@iaas.msu.ru>.
1000 2003-12-20 Werner LEMBERG <wl@gnu.org>
1002 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1004 Add missing latin-2 glyphs.
1005 * font/devutf8/R.proto: Add missing latin-2 glyphs.
1007 * tmac/troffrc: Load `composite.tmac' earlier.
1009 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1010 u00{53,73}_0327, and u0049_0307.
1011 * tmac/X.tmac: Add u00{47,67}_0306.
1012 * tmac/tty-char.tmac: Use composite glyph names for readability.
1016 * src/include/unicode.h: Remove `extern' keywords.
1018 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
1020 * tmac/latin5.tmac: New file.
1022 2003-12-19 Werner LEMBERG <wl@gnu.org>
1024 Add some glyphs needed for Turkish.
1026 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1029 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
1030 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1031 u00{53,73}_0327, and u0049_0307.
1033 2003-12-18 Werner LEMBERG <wl@gnu.org>
1035 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1037 Remove trailing zeros.
1039 2003-12-17 Werner LEMBERG <wl@gnu.org>
1041 Make \? transparent to end-of-sentence recognition.
1043 * src/roff/troff/input.cc (non_interpreted_node): Add
1044 `ends_sentence' member function.
1046 2003-12-16 Werner LEMBERG <wl@gnu.org>
1048 * doc/groff.texinfo: Document `dt' request correctly.
1049 Other minor typographical improvements.
1051 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
1053 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1055 2003-12-10 Richard Stallman <rms@gnu.org>
1057 * LICENSE: Better wording.
1059 2003-12-09 Werner LEMBERG <wl@gnu.org>
1061 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1062 * configure, NEWS: Updated.
1064 2003-12-08 Werner LEMBERG <wl@gnu.org>
1066 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1068 2003-12-07 Bernd Warken <bwarken@mayn.de>
1072 2003-12-07 Werner LEMBERG <wl@gnu.org>
1074 * INSTALL: Improved.
1076 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1078 Use path separator character of target platform for compiled-in
1081 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1082 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1083 * configure: Regenerated.
1084 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1086 2003-12-05 Werner LEMBERG <wl@gnu.org>
1088 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1089 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1091 2003-12-04 Bernd Warken <bwarken@mayn.de>
1093 * LICENSE: New file.
1095 2003-12-03 Werner LEMBERG <wl@gnu.org>
1097 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1098 ligatures present in AFM files since groff currently only
1099 understands some standard ligatures and nothing else.
1101 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
1103 * src/roff/groff/groff.cpp (main): Don't run the spooler if
1106 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1109 Don't use Unix wait flags.
1111 2003-12-02 Werner LEMBERG <wl@gnu.org>
1113 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1114 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1115 src/roff/troff/uniuni.cpp: Moved to...
1116 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1117 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1118 src/libs/libgroff/uniuni.cpp: Here.
1120 * src/include/Makefile.sub.old (HDRS),
1121 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1122 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1124 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1126 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1130 2003-12-01 Werner LEMBERG <wl@gnu.org>
1132 * groff.texinfo: Document special behaviour of `.vs 0'.
1133 Improve documentation of `cflags' request.
1136 2003-11-29 Werner LEMBERG <wl@gnu.org>
1138 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1139 * font/devlj4/CORONET: Regenerated.
1141 2003-11-24 Werner LEMBERG <wl@gnu.org>
1143 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1144 if processing hyphenation patterns in traditional mode.
1145 Improve error messages.
1147 2003-11-20 Werner LEMBERG <wl@gnu.org>
1149 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1150 troff_output_file::put_char): Fix type of local variable `c'.
1152 2003-11-19 Werner LEMBERG <wl@gnu.org>
1154 * src/roff/groff/pipeline.c (P): Removed. Updated all function
1156 (i_to_a): Removed. libgroff already provides this function.
1157 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1159 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1161 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1164 2003-11-17 Werner LEMBERG <wl@gnu.org>
1166 * COPYING: Use correct version.
1168 2003-11-11 Werner LEMBERG <wl@gnu.org>
1170 LynxOS 4.0.0 doesn't declare vfprintf.
1172 * configure.ac: Check for vfprintf.
1173 * configure: Regenerated.
1174 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1175 * src/include/config.hin: Regenerated.
1177 2003-11-10 Werner LEMBERG <wl@gnu.org>
1179 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1181 * configure.ac: Check for vsnprintf.
1182 * configure: Regenerated.
1183 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1185 * src/include/config.hin: Regenerated.
1187 2003-11-09 Werner LEMBERG <wl@gnu.org>
1189 * aclocal.m4: Updated syntax to autoconf 2.59.
1190 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1191 Don't check for gsos2.
1192 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
1193 working abs_top_srcdir and abs_top_builddir.
1195 * configure.ac: Updated syntax to autoconf 2.59.
1196 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1197 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1198 * configure: Regenerated.
1200 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1201 s/@groff_top_builddir@/@abs_top_builddir@/.
1203 * src/roff/groff/pipeline.c (xstrsignal):
1204 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1206 2003-11-07 Werner LEMBERG <wl@gnu.org>
1208 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1209 make start angle smaller than end angle to circumvent a bug in tpic
1210 handling of some versions of dvipdfm (and dvipdfmx).
1212 2003-10-30 Werner LEMBERG <wl@gnu.org>
1214 * src/devices/grops/grops.man: Improve section on creating EPS.
1216 2003-10-29 Werner LEMBERG <wl@gnu.org>
1218 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1221 2003-10-28 Werner LEMBERG <wl@gnu.org>
1223 * doc/groff.texinfo: Fix documentation of `.if'.
1225 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
1227 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1228 the form `uniXXXX' also.
1230 2003-10-27 Werner LEMBERG <wl@gnu.org>
1232 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1233 contrib/pic2graph/pic2graph.sh: Implement secure management of
1235 Pass `-P-pletter' to groff to avoid data outside of the converted
1236 area -- some versions of `convert' (for example 5.3.8) don't check
1237 the bounding box of the image but always use a fixed image size
1238 (letter paper format).
1239 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1240 contrib/pic2graph/pic2graph.man: Updated.
1242 * src/roff/groff/groff.man: Document $TMP and $TEMP.
1244 2003-10-26 Werner LEMBERG <wl@gnu.org>
1246 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1247 troff_output::simple_ellipse, troff_output::simple_arc,
1248 troff_output::simple_line, troff_output::simple_spline,
1249 troff_output::simple_polygon): Insert a space before arguments.
1250 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1251 latter doesn't produce a node, so the following `.sp -1' would do
1253 Don't emit `.sp -1' after \M. This also doesn't produce a token
1254 (and we don't have to care about compatibility mode).
1255 (troff_output::set_color, troff_output::reset_color): Don't emit
1256 `.sp -1' after \M and \m.
1258 * src/roff/troff/input.cpp (old_have_input): New global variable.
1259 (input_stack::get): Handle `old_have_input'.
1260 (process_input_stack) <token::TOKEN_NEWLINE>: Call
1261 `trapping_blank_line' depending on `old_have_input', not
1264 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
1266 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1267 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1268 default directory names for temporary files.
1269 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1271 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1272 [__MSDOS__] (run_pipeline): Honour environment variables.
1273 Don't use `tmpnam' but `tempnam' to work around messy
1276 * README.MinGW: New file.
1278 2003-10-16 Werner LEMBERG <wl@gnu.org>
1280 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1281 `(*t)->next' without testing validity of `*t'.
1282 (usage): Make it more readable.
1284 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
1286 Make html device run under both MS-DOS and Win32.
1288 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1289 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1290 spawn or fork+exec has to be used, and whether parent must sleep
1291 until the child process terminates. Used in
1292 `char_buffer::run_output_filter'.
1293 (copyofstdoutfd): Removed.
1294 (char_buffer): Replace `write_file_html' and `write_file_troff'
1295 member functions with `emit_troff_output' and `run_output_filter'.
1296 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1298 (replaceFd): Replaced with...
1299 (set_redirection): New auxiliary function.
1300 (waitForChild): Replaced with...
1301 (save_and_redirect): New auxiliary function for.
1303 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1306 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1308 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1309 (GROFF_LIBC): New function.
1310 * configure.ac: Call GROFF_LIBC.
1312 * configure: Regenerated.
1314 * src/include/lib.h: Handle __MINGW32__.
1315 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1316 Add macro for `pipe'.
1319 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1322 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1325 2003-10-13 Werner LEMBERG <wl@gnu.org>
1327 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1330 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1333 2003-10-12 Werner LEMBERG <wl@gnu.org>
1335 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1336 src/roff/troff/input.cc (usage): Updated.
1338 * NEWS, doc/groff.texinfo: Updated.
1340 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
1342 * src/libs/libgroff/searchpath.cpp
1343 (search_path::open_file_cautious): New function which also handles
1344 `-' as stdin and stdout depending on the access mode.
1345 * src/include/searchpath.h (search_path): Updated.
1347 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1348 * src/devices/grops/ps.h: Include `searchpath.h'.
1349 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1350 Open resource file with `include_search_path.open_file_cautious'.
1351 * src/devices/grops/grops.man: Document new `-I' switch.
1353 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1354 (main), src/devices/grolj4/lj4.cpp (main),
1355 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1357 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1359 (include_search_path): New global variable.
1360 (include_path_append): Removed.
1361 (main): Use `include_search_path.command_line_dir' to handle `-I'.
1362 (do_file): Simplify, using new
1363 `include_search_path.open_file_cautious'.
1365 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1367 (main): Pass arguments to `-I' to both troff and devices.
1368 Improve handling of `-V'.
1369 * src/roff/groff/groff.man: Document changes to -I and -V.
1371 * src/roff/troff/input.cpp (include_search_path): New global
1373 (next_file, source, ps_bbox_request, transparent_file,
1374 process_input_file): Use new
1375 `include_search_path.open_file_cautious'.
1376 (main) Handle `-I' switch.
1377 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1378 Use new `include_search_path.open_file_cautious'.
1379 * src/roff/troff/node.h: New extern symbol `include_search_path'.
1380 * src/roff/troff/troff.man: Document new `-I' switch.
1382 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
1384 Support multiple calls of .Lb in LIBRARY section.
1386 * tmac/doc-common (doc-in-library-section): New register.
1387 (doc-section-library): New string.
1388 (Sh): Set `doc-in-library-section'.
1390 * tmac/doc-syms (Lb): Insert breaks before and after arguments
1391 if in LIBRARY section.
1392 * tmac/doc.tmac (doc-save-global-vars): Updated.
1393 * NEWS, tmac/groff_mdoc.man: Updated.
1395 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
1397 * tmac/doc-common (doc-default-operating-system): New variable.
1400 2003-09-08 Werner LEMBERG <wl@gnu.org>
1402 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1404 2003-08-31 Werner LEMBERG <wl@gnu.org>
1406 * contrib/mom/Makefile.sub: Fix last change to make it really work.
1407 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1408 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1409 $(DEVFILES) are not empty.
1410 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1412 2003-08-26 Chuck Silvers <chuq@chuq.com>
1414 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1415 with parallel runs of `make'.
1417 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
1419 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1420 insert SORT_SEP. With certain combinations of sort specifications,
1421 refer sorted entries in the wrong order. In particular, entries
1422 with a missing field should be be sorted before all entries that
1423 have that field, before refer looks to the next field.
1425 2003-08-23 Werner LEMBERG <wl@gnu.org>
1427 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1428 g++ linker is used. Reported by Mark J. Reed
1429 <mark.reed@turner.com>.
1431 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1433 Add key character `x' to tbl which makes tbl call a user-defined
1434 macro on a table cell.
1436 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1437 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1438 `set_modifier' after printing the compatibility request.
1439 (set_modifier): Print call to `m->macro' if not empty.
1440 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1442 (process_format): Implement cases `x' and `X'.
1443 * src/preproc/tbl/tbl.man, NEWS: Updated.
1445 2003-08-15 Werner LEMBERG <wl@gnu.org>
1447 * doc/groff.texinfo: Minor fixes.
1449 2003-08-09 Werner LEMBERG <wl@gnu.org>
1451 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1453 2003-08-07 Werner LEMBERG <wl@gnu.org>
1455 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1456 argument list to nothing if there is no file to match. Use `ls' as
1457 a protection, similar to autoconf.
1459 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1460 empty argument lists.
1462 * doc/groff.texinfo: Improve documentation how vertical spacing
1463 and line breaks interact.
1466 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1468 2003-08-03 Werner LEMBERG <wl@gnu.org>
1470 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1471 EPS (using eps2eps or similar programs to compute the bounding box).
1473 2003-07-24 Werner LEMBERG <wl@gnu.org>
1475 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1476 * doc/texinfo.tex: Updated from texinfo 4.6.
1477 * README.CVS: From now on we need texinfo 4.6.
1479 2003-07-23 Werner LEMBERG <wl@gnu.org>
1481 Add requests `dei1' and `ami1' for completeness.
1483 * src/roff/troff/input.cc (calling_mode): Remove
1484 CALLING_DISABLE_COMP.
1485 (comp_mode): New enumeration.
1486 (do_define_string, define_string, define_nocomp_string,
1487 append_string, append_nocomp_string): Updated.
1488 (do_define_macro): Add third parameter.
1489 (define_macro, define_nocomp_macro, define_indirect_macro,
1490 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1491 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1494 (init_input_requests): Add `dei1' and `ami1'.
1496 * tmac/trace.tmac: Handle de1 and am1.
1497 (de): Improve tracing message.
1498 (am): Add missing `do'.
1501 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1502 Document new requests.
1504 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1506 Add option -G to .MPIMG to insert a gap between text and the image.
1508 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1509 www-finish-left-ll): Updated.
1510 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1511 (MPIMG): Make option -L and -R optional.
1512 Implement option -G.
1514 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
1516 * src/devices/grohtml/post-html.cpp
1517 (html_printer::do_file_components): Don't use `stdout' as lvalue
1518 since it can be a macro.
1520 2003-07-22 Werner LEMBERG <wl@gnu.org>
1522 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1523 the corresponding test in aclocal.m4.
1525 2003-07-21 Werner LEMBERG <wl@gnu.org>
1527 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1528 names but RGB values directly. Otherwise pnmtopng depends on
1529 an external file `rgb.txt' which maps colour names to values.
1531 2003-07-20 Werner LEMBERG <wl@gnu.org>
1533 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1534 * configure, src/include/config.hin: Regenerated.
1536 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1538 2003-07-19 Werner LEMBERG <wl@gnu.org>
1540 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1542 2003-07-18 Werner LEMBERG <wl@gnu.org>
1544 * *.man: Switch to non-compatibility mode temporarily if GNU
1545 syntax extensions are used in the particular man page.
1547 * PROBLEMS: Add solutions for SGR problems.
1549 2003-07-17 Werner LEMBERG <wl@gnu.org>
1551 Don't ignore grotty's command line options if \X'tty: sgr ...' is
1552 used to change the drawing scheme.
1554 * src/devives/grotty/tty.cpp (bold_flag_option,
1555 underline_flag_option, italic_flag_option, reverse_flag_option,
1556 bold_underline_mode_option): New global variables.
1557 (update_options): New function.
1558 (tty_printer::special): Call update_options.
1559 (main): Don't set xxx_flag but xxx_flag_option, then call
1562 2003-07-14 Werner LEMBERG <wl@gnu.org>
1564 Make grotty emit proper Unicode box drawing characters for -Tutf8.
1566 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1568 (hline_char, vline_char): New global variables.
1569 (tty_printer::tty_printer): Initialize them.
1570 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1571 horizontal and vertical lines.
1572 (crossings): New global array.
1573 (tty_printer::end_page): Use it to determine the proper crossing
1574 character for -Tutf8.
1576 2003-07-12 Werner LEMBERG <wl@gnu.org>
1578 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1579 (HTMLDOCFILES): Revert to `pic.html'.
1580 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1582 2003-07-11 Werner LEMBERG <wl@gnu.org>
1584 * doc/pic.ms: Improve documentation of absolute coordinates.
1585 Document absolute positioning of pictures.
1587 * NEWS: Add new pic capability.
1589 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
1591 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1594 2003-07-07 Werner LEMBERG <wl@gnu.org>
1596 Implement support for dashed and dotted ellipses in pic. Based on
1597 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1599 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1600 common_output::dashed_ellipse, common_output::dotted_ellipse): New
1601 functions. Ellipse arcs are approximated with circle arcs.
1602 * src/preproc/pic/common.h (common_output): Updated.
1603 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1605 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1607 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1609 2003-07-06 Werner LEMBERG <wl@gnu.org>
1611 Make grotty work on platforms which have unsigned char as the
1612 default for char. Based on a patch by Thomas Klausner
1615 * src/devices/grotty/tty.cpp (schar): New typedef.
1616 Updated calls to declare_ptable and implement_ptable.
1617 (glyph): Use schar for back_color_idx and fore_color_idx.
1618 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1619 (tty_printer::tty_color, tty_printer::tty_printer,
1620 tty_printer::color_to_idx, tty_printer::put_color): Updated.
1622 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
1624 * src/roff/nroff/nroff.sh: Add option -d for completeness.
1625 * src/roff/nroff/nroff.man: Updated.
1627 2003-07-05 Werner LEMBERG <wl@gnu.org>
1629 * NEWS, tmac/groff_www.man: Updated.
1630 * doc/Makefile.sub: Updated.
1632 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
1634 Implement support for multiple HTML output files.
1636 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1637 -j command line option.
1639 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1641 (file): New fields `new_output_file', `require_links',
1643 (file::file): Updated.
1644 (files::set_file_name, files::set_links_required,
1645 files::are_links_required, files::is_new_output_file,
1646 files::file_name, files::next_file_name): New functions.
1647 (header_desc): New fields `no_of_level_one_headings',
1649 (header_desc::header_desc): Updated.
1650 (header_desc::write_headings): Handle multiple files.
1651 (html_printer::write_header): Save file name in which header occurs.
1652 (html_printer::determine_header_level): Possibly split files on
1654 (html_printer::do_links, html_printer::troff_tag): Updated.
1655 (html_printer::insert_split_file, html_printer::do_job_name,
1656 html_printer::emit_link, html_printer::write_navigation,
1657 html_printer::do_file_components): New functions.
1658 (html_printer::~html_printer): Handle multiple files.
1659 (main): Handle command line option `-j'.
1661 * src/devices/grohtml/grohtml.man: Updated.
1663 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1666 * tmac/www.tmac (JOBNAME): New macro.
1667 * tmac/s.tmac (SH-NO-TAG): New macro.
1668 (@SH): Call SH-NO-TAG.
1671 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
1673 * tmac/groff_mdoc.man: Improve documentation of punctuation
1676 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
1678 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1680 2003-07-03 Werner LEMBERG <wl@gnu.org>
1682 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1684 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
1686 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1687 after `/*' and `*/'.
1689 (Fn, Fo): Reduce indentation in synopsis.
1691 * tmac/doc-common (doc-check-depth): New macro.
1692 (doc-end-macro, Sh, Ss): Use it.
1693 (Cd): Fix behaviour in synopsis.
1694 (In): Make it parsed and callable.
1695 If not in the synopsis, represent the C header file enclosed in
1697 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1698 Use minus, not hyphen.
1700 * tmc/groff_mdoc.man: Updated.
1702 2003-07-01 Werner LEMBERG <wl@gnu.org>
1704 Integrated grap2graph, contributed by Eric S. Raymond.
1706 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1708 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1709 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1711 2003-07-01 Colin Watson <cjwatson@debian.org>
1713 * src/xditview/*.c: Add prototypes, fix return types, add includes.
1714 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1716 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
1718 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1720 2003-06-31 Werner LEMBERG <wl@gnu.org>
1722 * doc/Makefile.sub (CLEANADD): Remove all files created by
1723 running `make groff.{pdf,dvi}'.
1725 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1728 2003-06-30 Werner LEMBERG <wl@gnu.org>
1730 * Makefile.in (SHELL): Define as @SHELL@.
1731 (mkinstalldirs): Use $(SHELL).
1732 (MDEFINES): Add $(SHELL).
1733 * Makefile.comm (SHELL): Removed.
1735 2003-06-29 Werner LEMBERG <wl@gnu.org>
1737 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1738 The X11 documentation files use them.
1739 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1741 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
1743 * tmac/e.tmac (@C): Handle .ad also.
1745 2003-06-12 Werner LEMBERG <wl@gnu.org>
1747 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1749 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1750 Assign `n' even here. It is possible to construct a node
1751 immediately following an escape character:
1759 2003-06-10 Werner LEMBERG <wl@gnu.org>
1761 * README.WIN32: Removed.
1762 * MANIFEST: Updated.
1764 2003-06-07 Werner LEMBERG <wl@gnu.org>
1766 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1768 2003-06-05 Werner LEMBERG <wl@gnu.org>
1770 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1771 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1773 2003-06-03 Werner LEMBERG <wl@gnu.org>
1775 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1776 is done by the calling function.
1778 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
1780 * tmac/X.tmac: Fix definition of `em'.
1782 2003-05-22 Werner LEMBERG <wl@gnu.org>
1784 * src/roff/troff/input.cc (return_macro_request): Fix detection of
1787 2003-05-18 Werner LEMBERG <wl@gnu.org>
1789 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1790 to make items work which consist only of a tag.
1792 2003-05-17 Werner LEMBERG <wl@gnu.org>
1794 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1795 aren't stretched in a tag (this can fail with unformatted boxes).
1796 Instead, insert a break and go back one line.
1798 2003-05-16 Werner LEMBERG <wl@gnu.org>
1800 * src/roff/troff/input.cc (return_macro_request): If called with
1801 argument pop macro twice. We need this to trace `return'.
1803 * tmac/trace.tmac: Handle `return'.
1806 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1809 2003-05-15 Larry Kollar <kollar@alltel.net>
1811 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1812 registers `FPS', `FVS', and `FPD'.
1814 2003-05-15 Werner LEMBERG <wl@gnu.org>
1816 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1819 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
1821 * tmac/groff_mdoc.man: Slight improvements.
1823 2003-05-03 Werner LEMBERG <wl@gnu.org>
1825 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1826 `doc-header-space' after header line if register `cR' is set.
1828 2003-05-02 Werner LEMBERG <wl@gnu.org>
1832 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
1834 * tmac/doc-common (Nd): Use \[em].
1836 2003-05-01 Werner LEMBERG <wl@gnu.org>
1838 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1839 doc-footer-space): Initialize to 0.5i.
1840 (doc-setup-page-layout): Don't set doc-header-space and
1843 2003-04-30 Werner LEMBERG <wl@gnu.org>
1845 * REVISION: Set to 1.
1847 * doc/pic.ms: Document possible problems with `figname'.
1849 2003-04-29 Werner LEMBERG <wl@gnu.org>
1851 Version 1.19 released
1852 =====================
1854 * VERSION: Set to 1.19.
1855 * REVISION: Set to 0.
1856 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1858 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1859 Define charset as `US-ASCII' in html output.
1861 * tmac/www.tmac (ULE): Add missing scaling indicator.
1863 * win32-diffs: Removed.
1865 2003-04-28 Werner LEMBERG <wl@gnu.org>
1867 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1869 Document how to insert discardable whitespace with `.ss'.
1871 2003-04-27 Werner LEMBERG <wl@gnu.org>
1873 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1874 work with plain TeX also.
1876 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1878 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
1880 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1883 2003-04-24 Werner LEMBERG <wl@gnu.org>
1885 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1886 vbox with positive height and zero depth if in TeX mode.
1888 * NEWS: Document glyph name changes for grodvi and grolj4.
1890 2003-04-23 Werner LEMBERG <wl@gnu.org>
1892 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1893 * doc/pic.ms: Fixed.
1895 2003-04-21 Werner LEMBERG <wl@gnu.org>
1897 HP-UX 10.20 has `snprintf' but it isn't declared.
1899 * configure.ac: Add declaration test for snprintf.
1900 * configure: Regenerated.
1901 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1902 * src/include/config.hin: Regenerated.
1904 2003-04-19 Werner LEMBERG <wl@gnu.org>
1906 Add keyword `figname' to pic, specifying the name of the picture
1907 box in TeX mode. Based on a patch from William J Poser
1908 <wjposer@unagi.cis.upenn.edu>.
1910 * src/preproc/pic/pic.y: New token `FIGNAME'.
1911 (macro_name): New rule of type <str>.
1912 (placeless_element): Handle `FIGNAME'.
1913 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1914 * src/preproc/pic/main.cpp (graphname): New global variable.
1915 (do_picture): Initialize `graphname'.
1916 * src/preproc/pic/pic.h: Updated.
1917 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1920 (tex_output::text): Beautify output.
1921 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1922 `shaded' and `outlined' unconditionally.
1923 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1926 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1927 greater is necessary.
1929 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
1931 Add option -r to soelim to avoid emission of `.lf' lines.
1932 Add option -t to produces TeX comment lines instead of `.lf' lines.
1934 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1937 (main): Handle `-r' and `-t'.
1938 (set_location): Handle `raw_flag' and `tex_flag'.
1939 * src/preproc/soelim/soelim.man, NEWS: Updated.
1941 2003-04-17 Werner LEMBERG <wl@gnu.org>
1943 * tmac/hyphenex.sh: Replaced with...
1944 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1947 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1948 if --quiet is used for the configure script.
1949 * configure: Regenerated.
1951 2003-04-16 Werner LEMBERG <wl@gnu.org>
1953 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1954 Add `const' to second argument.
1955 (html_printer::add_table_end): Add `const' to argument.
1956 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1957 `const' to arguments.
1958 * src/devices/grohtml/html-text.h: Updated.
1960 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1961 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1964 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1965 cast for integer constant.
1967 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1968 (writeNbytes): Add `const' to first argument.
1969 (writeString): Add `const' to argument.
1970 (char_buffer::can_see): Add `const' to third argument.
1971 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1972 `const' to argument.
1973 * src/preproc/html/pushback.h: Updated.
1975 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1976 (include_path_append): Add `const' to argument.
1979 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1981 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1982 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1984 (unicode_decompose_init::unicode_decompose_init): Updated.
1985 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1987 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1988 * src/roff/troff/input.cc (process_startup_file): Add `const' to
1991 * tmac/hyphenex.sh: Make script more portable by using a here
1994 2003-04-15 Werner LEMBERG <wl@gnu.org>
1996 Renamed all `*.cc' files to `*.cpp'.
1997 Updated all configuration files, makefiles, and documentation.
1999 2003-04-14 Werner LEMBERG <wl@gnu.org>
2001 * tmac/hyphenex.sh: Slight improvements.
2003 2003-04-13 Werner LEMBERG <wl@gnu.org>
2005 * font/devascii/R.proto, font/devcp1037/R.proto,
2006 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2007 character slots with unnamed glyphs.
2009 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2010 (an-first): New global variable.
2011 (an-header): Emit vertical space between multiple man pages.
2013 2003-04-11 Werner LEMBERG <wl@gnu.org>
2015 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2018 2003-04-10 Werner LEMBERG <wl@gnu.org>
2020 * PROBLEMS: Revised.
2022 2003-04-10 Bernd Warken <bwarken@mayn.de>
2024 * doc/webpage.ms: Improved.
2026 2003-04-09 Werner LEMBERG <wl@gnu.org>
2028 Add register \n[.height] which returns the value of \H.
2029 Add register \n[.slant] which returns the value of \S.
2031 * src/roff/troff/env.cc (init_env_requests): Implement.
2032 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2035 2003-04-08 Werner LEMBERG <wl@gnu.org>
2037 * tmac/html.tmac: Move some of the data into html-end.tmac.
2038 Remove most of the character translations for eqn since html fonts
2039 now cover those characters.
2041 * tmac/html-end.tmac: New file.
2042 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2043 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2044 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2046 2003-04-07 Werner LEMBERG <wl@gnu.org>
2048 * man/groff_out.man: Document negative values of `N' if -Thtml is
2051 2003-04-06 Werner LEMBERG <wl@gnu.org>
2053 * Makefile.comm (depend.temp): Check location of YTABC.
2055 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2057 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2059 (groff_bin_path): Rename to GROFF_BIN_PATH.
2060 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2061 * doc/Makefile.in (TROFFBIN): New variable for troff
2063 (GROFFBIN): New variable for groff binary path.
2064 (groff_bin_path): Rename to GROFF_BIN_PATH.
2065 (TROFF): Use TROFFBIN.
2066 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2067 * doc/Makefile.sub (GROFFBIN): New variable for groff
2069 (groff_bin_path): Rename to GROFF_BIN_PATH.
2070 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2072 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2073 with INSTALL_SCRIPT.
2074 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2075 * Makefile.dev (all): Depend on DEVSCRIPTS.
2076 (install_dev): Likewise.
2077 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2079 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2080 (DEVGENSCRIPTS): New variable to hold generated scripts.
2082 2003-04-05 Werner LEMBERG <wl@gnu.org>
2084 * src/libs/libdriver/input.cc (IntArray::operator[],
2085 IntArray::get_data): Remove meaningless `const' in return value.
2087 * README.CVS: New file.
2089 2003-04-04 Werner LEMBERG <wl@gnu.org>
2091 Check for stdint.h in C++, not in C.
2093 * aclocal.m4 (GROFF_STDINT_H): New function,
2094 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2096 * configure, src/include/config.hin: Regenerated.
2097 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2100 Fix handling of in grohtml. To do this, troff emits `N'
2101 with a negative value, representing the width of the unbreakable
2102 space (only for -Thtml). grohtml then converts this back to
2103 and uses the value of N as its width.
2105 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2106 unbreakable_space_node::tprint): Emit `N-<width>'.
2107 * src/include/printer.h (printer::set_numbered_char): Make it
2109 Make members `font_table' and `nfonts' protected instead of private.
2110 * src/devices/grohtml/post-html.cc
2111 (html_printer::set_numbered_char): New member function.
2114 * src/libs/libgroff/maxfilename.cc:
2115 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2117 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2120 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
2122 * man/roff.man: Small fixes.
2124 2003-04-03 Werner LEMBERG <wl@gnu.org>
2126 Make groff independent from locale's numeric settings.
2128 * configure.ac: Check for `setlocale'.
2129 * configure, src/include/config.hin: Regenerated.
2131 * src/include/lib.h: Handle HAVE_SETLOCALE.
2133 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2134 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2135 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2138 * doc/groff.texinfo: Change dir category to `Typesetting'.
2139 (Man font macros): Mention that there is no space between arguments
2142 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2143 (*printer::change_color, *printer::change_fill_color): Add missing
2146 2003-04-02 Werner LEMBERG <wl@gnu.org>
2148 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2149 html_table::is_gap): Compute table widths after converting border
2150 positions to avoid rounding errors.
2152 2003-04-01 Werner LEMBERG <wl@gnu.org>
2154 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2155 `space_emitted' properly.
2157 2003-03-31 Werner LEMBERG <wl@gnu.org>
2159 * src/devices/grohtml/html-table.cc: Fix column width calculation.
2160 (html_table::set_linelength): Don't add 1.
2161 (html_table::add_indent): Don't subtract 1.
2163 * tmac/html.tmac: Set default page offset to zero.
2165 2003-03-30 Werner LEMBERG <wl@gnu.org>
2167 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
2169 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2170 unbreakable_space_node::tprint): New functions.
2171 (troff_output_file): Make space_char_hmotion_mode::tprint and
2172 unbreakable_space_node::tprint to friends.
2173 * src/roff/troff/node.h: Updated.
2175 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
2176 in the HTML standard).
2178 2003-03-29 Werner LEMBERG <wl@gnu.org>
2180 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2181 Otherwise, the following code
2190 produces `x a' instead of `xa'. This is a temporary fix, disabling
2191 font changes in diversions for -Thtml.
2193 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2195 (an-do-tag-html): Merge with ...
2196 (an-do-tag): This macro.
2197 Change code slightly to circumvent grohtml bug.
2198 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2200 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2201 html_table::is_gap): Round `width' properly.
2203 * tmac/html.tmac: Provide some default layout parameters for
2206 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2209 2003-03-28 Werner LEMBERG <wl@gnu.org>
2211 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2213 2003-03-27 Werner LEMBERG <wl@gnu.org>
2215 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2218 2003-03-20 Werner LEMBERG <wl@gnu.org>
2220 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2222 * doc/groff.texinfo: Updated.
2224 2003-03-19 Werner LEMBERG <wl@gnu.org>
2226 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2227 TOKEN_END_TRAP>: Reset `have_input'.
2229 2003-03-18 Werner LEMBERG <wl@gnu.org>
2231 * src/roff/groff/groff.man: Mention groff_trace man page.
2233 2003-03-16 Werner LEMBERG <wl@gnu.org>
2235 * Makefile.in (LIBEXT): New variable to indicate the file extension
2236 of library files. Computed heuristically from $(OBJEXT).
2237 (MDEFINES): Add $(LIBEXT).
2238 * Makefile.lib, Makefile.comm: Use it.
2240 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
2241 overlong lines into smaller chunks.
2242 (get_binary): New function.
2244 * src/utils/pfbtops/pfbtops.man: Updated.
2246 2003-03-15 Colin Watson <cjwatson@debian.org>
2248 * src/roff/groff/groff.man: Minor syntax fix.
2250 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
2252 * src/devices/grops/ps.cc (ps_printer::media_set,
2253 ps_printer::~ps_printer): Handle zero paper width and length.
2255 2003-03-13 Werner LEMBERG <wl@gnu.org>
2257 Add options -p and -l to grodvi.
2259 * src/devices/grodvi/dvi.cc: Include paper.h.
2260 (landscape_flag, user_paper_length, user_paper_width): New global
2262 (dvi_printer::begin_page): Emit `papersize' special.
2263 Set color after initialization of `cur_h' and `cur_v'.
2264 (main): Add options `-l' and `-p'.
2265 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2266 * src/devices/grodvi/grodvi.man, NEWS: Updated.
2268 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2270 2003-03-12 Werner LEMBERG <wl@gnu.org>
2272 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2273 * man/groff_tmac.man: This man page.
2274 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2277 * tmac/X.tmac: Don't load pspic.tmac.
2279 2003-03-11 Werner LEMBERG <wl@gnu.org>
2281 Make variable `pr' local to libdriver/input.cc. Based on a patch
2282 by Bernd Warken <bwarken@mayn.de>.
2284 * src/include/driver.h (pr): Removed.
2286 * src/libs/libdriver/input.cc (pr): New global variable.
2287 (do_file): Deallocate `pr'.
2288 * src/libs/libdriver/printer.cc (pr): Removed.
2290 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2291 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2292 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2293 (main): Don't delete `pr'.
2295 2003-03-10 Werner LEMBERG <wl@gnu.org>
2297 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2298 * tmac/papersize.tmac: New file.
2299 * tmac/troffrc: Include `papersize.tmac'.
2300 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2301 * tmac/an-old.tmac: Set LT to LL by default.
2303 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2304 doc/groff.texinfo: Updated.
2306 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2307 bug which caused all odd iso papers to have wrong dimensions.
2309 * src/devices/grops/ps.cc (user_paper_width): New global variable.
2310 (main) <'p'>: Set `user_paper_width' also.
2311 (ps_printer::media_width, ps_printer::media_height): Use values
2312 given with option `-p'.
2314 2003-03-09 Werner LEMBERG <wl@gnu.org>
2316 * src/include/nonposix.h: Provide default for SET_BINARY.
2318 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2319 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2322 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2323 (main): Treat \r\n as \n.
2325 2003-03-08 Werner LEMBERG <wl@gnu.org>
2327 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2328 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2330 2003-03-07 Werner LEMBERG <wl@gnu.org>
2332 Added support to access more than 256 glyphs in Type 1 fonts.
2334 * src/devices/grops/ps.cc (subencoding): New structure.
2335 (style): Add `sub' field.
2337 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2338 Add `set_subencoding', `get_subfont' and `encode_subfont' member
2341 (ps_printer::set_char): Use `set_subencoding'.
2342 (make_subencoding_name): New function.
2343 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2344 (ps_printer::~ps_printer): Emit subencoding definitions.
2346 * src/devices/grops/psrm.cc (valid_input_table): New array to
2347 properly support EBCDIC.
2348 (white_space): Add `\f'.
2349 (ps_get_line): Change first argument to be of type `string &'.
2350 Updated all callers.
2351 This allows to get lines of arbitrary length.
2352 Use `valid_input_table'.
2353 Remove warning about non-conforming PS line length. This seems
2354 not to be of great importance -- for example, dvips don't emit
2356 (PS_LINE_MAX): Removed.
2357 (matches_comment): Change first argument to be of type `string &'.
2359 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2361 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2362 %AGL_to_unicode, %default_ligatures): New hash tables.
2363 Read all map entries.
2364 Add unencoded characters.
2365 Check for default ligatures if there are no `L' entries.
2366 Print all kern entries.
2367 Print all characters in charset.
2368 * src/utils/afmtodit/afmtodit.man: Updated.
2370 * font/devps/*: Regerated all fonts.
2372 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2373 of characters, just use `.trin'. Otherwise the mapping depends
2374 on the font encoding.
2375 * tmac/ps.tmac: Add `fi' and `fl'.
2376 Improve `Fi' and `Fl'.
2377 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2378 * tmac/Xps.tmac: Fix `em'.
2382 2003-03-04 Werner LEMBERG <wl@gnu.org>
2384 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2387 2003-03-03 Werner LEMBERG <wl@gnu.org>
2389 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2391 * font/devps/generate/textmap: Remove entry `similarequal'.
2392 * font/devps/symbolmap: Updated.
2394 2003-03-02 Werner LEMBERG <wl@gnu.org>
2396 * src/libs/libgroff/font.cc (font::load): Fix error message for
2399 * src/devices/grops/grops.man: Improve documentation of the -b
2402 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2403 `ascii' and `cp1047'.
2405 2003-03-01 Werner LEMBERG <wl@gnu.org>
2407 Document composite glyphs and the `composite' request.
2409 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2411 2003-02-28 Werner LEMBERG <wl@gnu.org>
2413 * font/devdvi/generate/ec.map: Add some more Unicode entities.
2414 * font/devdvi/*EC: Updated.
2416 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2417 * tmac/latin1 (latin1-tr): Undo any previous mapping.
2418 * tmac/troffrc: Load `composite.tmac'.
2419 * tmac/Makefile.sub (NORMALFILES): Updated.
2421 * doc/groff.texinfo (Input Encodings): New section.
2424 2003-02-27 Werner LEMBERG <wl@gnu.org>
2426 * doc/texinfo.tex: New version 2003-02-11.06.
2428 * tmac/doc-common (Dt): Don't emit warning for unknown section.
2429 * tmac/groff_mdoc.man: Fix description of `Dt'.
2431 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
2433 * font/devps/prologue.ps: Fix for included Postscript that does
2434 a setpagedevice -- which is now safely ignored.
2438 * src/devices/grops/ps.cc: Now sets the page size in the generated
2439 document. This is done in two ways: Via a %%-comment for gv and
2440 the like, and via a PageSize and setpagedevice for programs that
2441 understands Postscript proper, like ps2pdf.
2443 * src/devices/grops/ps.h: New broken-flag to avoid page size
2444 definition, if required.
2446 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2448 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2449 Not really necessary due to the fix in prologue.ps, but cleaner:
2450 Such information does not belong in an .eps file.
2452 * doc/Makefile.sub: See doc/Makefile.in.
2454 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
2456 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2457 instead of P1 since the latter is broken in some versions of netpbm.
2458 * configure: Updated.
2460 2003-02-26 Larry Kollar <kollar@alltel.net>
2462 Make man pages more customizable.
2464 * tmac/an-old.tmac (FT): New register holding footer distance from
2466 (HF): New string holding the default heading font.
2467 (TH): Handle registers `IN' and `SN' set on the command line.
2469 (PT, BT): New strings to customize header and footer lines.
2470 (an-header, an-footer): Use them.
2472 * tmac/groff_man.man: Document changes.
2474 * doc/groff.texinfo: Document man changes.
2475 Document Ultrix extensions of man.
2477 2003-02-26 Werner LEMBERG <wl@gnu.org>
2479 * src/roff/troff/input.cc (do_width, do_if_request): Reset
2480 `have_input' after changing back to old environment.
2482 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2483 function up to be defined before first call. This is necessary to
2484 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2486 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2487 the default font directory also. Based on a patch from James
2488 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2489 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2490 * src/utils/afmtodit/afmtodit.man: Document it.
2494 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2496 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
2498 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2499 (GROFF_PNMTOPS_NOSETPAGE): New macro.
2500 * configure.ac: Use it.
2501 * configure: Regenerated.
2502 * Makefile.in: Updated.
2504 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2505 (CLEANADD): Add www.tmac-sed.
2506 (pnmtops_nosetpage): Define default.
2507 (install_data): Handle www.tmac-sed and substitute
2508 @PNMTOPS_NOSETPAGE@.
2509 (stamp-sed): Add www.tmac.
2510 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2511 It now breaks URLs at suitable places.
2512 (www:substring_ok): New register set by...
2513 (www:@test_substring): New macro.
2514 (www:error): New alias to www-error.
2515 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2517 (URL): Use www:url_breaks.
2518 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2519 (CDS, CDE): New macros.
2521 2003-02-25 Werner LEMBERG <wl@gnu.org>
2523 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2526 2003-02-24 Werner LEMBERG <wl@gnu.org>
2528 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2529 can be negative also.
2531 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2533 (read_char_table): Avoid negative ascenders.
2534 (output_charset): Add cast.
2535 * font/devlj4/*: Regenerated.
2537 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2540 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2541 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2543 * font/devdvi/*: Regenerated.
2545 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
2546 normal width, while the previously used characters (U+2329 and
2547 U+232A) are classified as wide due to canonical equivalence with the
2548 CJK punctuation characters U+3008 and U+3009.
2550 * font/devutf8/R.proto: Updated.
2551 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2553 * man/groff_char.man: Simplify handling of table traps by
2554 introducing `start block' and `end block' macros.
2555 (Ns, Ne, 2s, 2e, Ds, De): New macros.
2556 (DL): Make it work with Unix troff also.
2557 Fix code values of `la' and `ra'.
2559 * tmac/dvi.tmac: Define `<>' for CW and CWI.
2561 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
2563 * src/devices/grohtml/post-html.cc (element_list::~element_list):
2564 New destructor, fixing a major memory leak.
2566 2003-02-22 Werner LEMBERG <wl@gnu.org>
2568 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2569 to be in conformance with Unicode 3.0 and newer.
2571 * font/devlj4/generate/text.map: Add `Eu'.
2572 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2573 * font/devlj4/S: Regenerated.
2575 * man/groff_char.man: Completely rewritten.
2577 * doc/groff.texinfo: Fix description of request and macro arguments.
2579 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
2583 * src/devices/grohtml/html-table.cc (html_table::~html_table):
2584 Deallocate `columns' list.
2585 * src/devices/grohtml/post-html.cc (char_block::~char_block):
2587 (text_glob::text_glob_html, text_glob::text_glob_special,
2588 text_glob::text_glob_line, text_glob::text_glob_auto_image,
2589 text_glob::text_glob_tag): Avoid memory leaks.
2590 (text_glob::remember_table): Free memory before reassigning.
2592 2003-02-19 Werner LEMBERG <wl@gnu.org>
2594 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2595 alias `hbar'), the Planck constant over two pi.
2597 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2598 `+e' for position 34.
2599 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2600 `u2662' and `u2661'.
2601 * font/devdvi/{MI,S}: Regenerated.
2602 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2603 * font/devlbp/*: Add `hbar' alias.
2604 * font/devlj4/generate/special.map: Ditto.
2605 * font/devlj4/S: Regenerated.
2606 * font/devps/generate/symbolchars: Add `+e'.
2607 * font/devps/generate/textmap: Fix PS name for `-h'.
2609 * font/devps/symbolmap: Regenerated.
2611 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2613 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2615 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2618 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2620 * tmac/tty-char.tmac: Add `+e'.
2622 2003-02-17 Werner LEMBERG <wl@gnu.org>
2624 Another round trying to really fix problems with `have_input'.
2626 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2627 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2629 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2630 handling if both foreground and background colors are default.
2632 * doc/groff.texinfo (Debugging): Document .lf differences to
2635 2003-02-16 Werner LEMBERG <wl@gnu.org>
2637 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2638 null-bytes in created string.
2640 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2641 alias_macro, lookup_request): Improve warning messages.
2643 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2645 Free `last_image_filename'.
2647 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2649 (imageList::createPage, imageList::createImage): Use `free', not
2651 (imageItem::~imageItem): Free `imageName'.
2652 (addRegDef): Use `strsave', not `strdup'.
2653 (get_resolution): Free `pathp'.
2655 2003-02-15 Werner LEMBERG <wl@gnu.org>
2657 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2660 2003-02-14 Werner LEMBERG <wl@gnu.org>
2662 Add memory management for colors to deallocate unnamed colors
2665 * src/include/color.h (color): New members `free_list' and `next'.
2666 New member functions `new' and `delete'.
2668 * src/libs/libgroff/color.cc: Implement it.
2670 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2671 for array size of new operator.
2673 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2674 redundant comparison.
2676 * src/roff/troff/input.cc (word_space_node::reread,
2677 hmotion_node::reread): Avoid warning about unused parameter.
2678 (reset_output_registers): Remove redundant parameter.
2679 (define_color): Undo change 2003-02-12.
2681 * src/roff/troff/reg.h: Updated.
2683 * src/roff/troff/node.cc (troff_output_file::really_print_line,
2684 output_file::put_filename, real_output_file::really_put_filename,
2685 ascii_output_file::really_print_line,
2686 break_char_node::get_hyphen_list): Avoid warning about unused
2688 (suppress_node::tprint): Updated.
2690 * configure.ac: Check declaration for rand() and srand().
2691 * configure: Regenerated.
2693 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2695 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2698 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2699 to avoid compiler warnings.
2701 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2704 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2706 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2708 Updated all callers.
2710 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2712 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2713 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2715 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2716 Parameter is unused.
2717 (html_printer::add_table_end): Define parameter conditionally.
2718 * src/devices/grohtml/output.cc (simple_output::special): Parameter
2721 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2722 (lbp_printer::set_char): Last parameter is unused.
2724 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2726 2003-02-13 Werner LEMBERG <wl@gnu.org>
2728 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2729 Make \D'f ...' move horizontally again for backwards compatibility.
2730 Replace it with \D'Fg ...' where appropriate to avoid dependency
2731 on horizontal resolution.
2733 * src/roff/troff/input.cc (do_get_long_name): New function.
2734 (get_long_name): Call it.
2736 (read_draw_node): Handle `\D'Fx ...' by calling ...
2737 (read_color_draw_node): New function.
2739 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2741 Pass it to `do_get_long_name' which is used instead of
2744 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2745 unnecessary value guard.
2746 (parse_D_command) <'f'>: Add horizontal shift.
2748 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2749 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2750 (FILL_MAX): Removed.
2752 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2755 2003-02-12 Werner LEMBERG <wl@gnu.org>
2757 * src/roff/troff/input.cc (do_name_test, do_expr_test,
2758 do_zero_width): Push `\n' if closing delimiter is missing.
2760 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2761 <'F'>: Make \F non-transparent at the beginning of line.
2762 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2763 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2766 (define_color): Free color in case of reassignment.
2768 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2769 @DefescListEnd): Use @Var, not @var.
2772 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2774 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2775 `shaded' and `outlined' arrays.
2776 (object_spec::object_spec): Initialize `shaded' and `outlined'.
2777 (graphic_object::set_fill_color, graphic_object::set_outline_color):
2779 (closed_object::set_fill_color): Ditto.
2780 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2782 (troff_output::reset_color): Use a_delete instead of free.
2783 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2785 2003-02-11 Werner LEMBERG <wl@gnu.org>
2787 * doc/groff.texinfo: Improve documentation of `ad'.
2788 Document that \D'f...' is dependent on the horizontal resolution.
2789 * man/groff_diff.man: Improve documentation of \D'f...'.
2791 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2792 compensating \h'...' for \D'f ...' since the latter no longer moves
2794 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2796 2003-02-10 Werner LEMBERG <wl@gnu.org>
2798 Improve error messages for `x F' (and `F') commands.
2800 * src/include/error.h: Add declaration for
2801 `current_source_filename'.
2802 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2803 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2804 parameter for source file string.
2805 Updated all callers.
2807 * src/libs/libdriver/input.cc: Add `current_source_filename'.
2808 (remember_source_filename): New function.
2809 (parse_x_command <'F'>, do_file <'F'>): Use it.
2811 2003-02-09 Werner LEMBERG <wl@gnu.org>
2813 Make grotty not emit warnings about unknown colors more than
2816 * src/devices/grotty/tty.cc: Include `ptable.h'.
2817 (TTY_MAX_COLORS): Removed.
2818 (DEFAULT_COLOR_IDX): Defined to -1.
2819 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2820 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2821 Change `tty_colors' to be a ptable.
2822 First arg of `put_color' is now `char'.
2823 New functions `make_rgb_string' and `tty_color'.
2824 (tty_printer::tty_printer): Use `tty_color'.
2825 (tty_printer::color_to_idx): Return value is now `char'.
2828 * src/include/color.h (color): Add `print_color' member function.
2829 * src/libs/libgroff/color.cc (color::print_color): Implement it.
2831 2003-02-08 Werner LEMBERG <wl@gnu.org>
2835 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2838 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2839 assume that value has been allocated with `new[]', thus use
2840 `a_delete' for deallocation.
2842 * src/libs/libdriver/input.cc (get_integer_arg,
2843 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2846 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2847 * src/libs/libgroff/nametoindex.cc
2848 (character_indexer::named_char_index): Use `new <type>[1]'.
2850 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2852 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2853 (split_text): Use `a_delete'.
2855 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2858 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2859 harmless memory leak.
2860 (hyphen_trie::read_patterns_file): Initialize `buf'.
2861 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2862 Initialize `current_fill_color'and `current_glyph_color'.
2863 * src/roff/troff/glyphuni.cc
2864 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2865 * src/roff/troff/uniuni.cc
2866 (unicode_decompose_init::unicode_decompose_init): Ditto.
2867 * src/roff/troff/uniglyph.cc
2868 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2870 2003-01-26 Werner LEMBERG <wl@gnu.org>
2872 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2873 `access' before calling `unlink'.
2874 (do_file): Handle __EMX__.
2876 * src/include/nonposix.h: Handle __EMX__.
2878 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2879 (fontpath,tmacpath): Use it.
2881 Sorted alphabetically.
2883 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2885 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2888 2003-01-27 Werner LEMBERG <wl@gnu.org>
2890 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2891 New files, copied from gnulib.
2892 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2893 * configure.ac: Updated.
2894 * configure: Regenerated.
2896 * src/include/config.hin: Regenerated.
2897 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2898 Don't define `strcasecmp' as `strcmp'.
2899 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2900 Dont define `strncasecmp' as `strncmp'.
2902 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2905 2003-01-26 Werner LEMBERG <wl@gnu.org>
2907 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2910 2003-01-25 Werner LEMBERG <wl@gnu.org>
2912 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2914 2003-01-24 Werner LEMBERG <wl@gnu.org>
2916 Add US-english hyphenation exceptions (converted from Barbara
2917 Beeton's hyphenation exception log reports which appear irregularly
2920 * tmac/hyphen.us: Updated to latest version.
2921 * tmac/README: Updated.
2922 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2923 * tmac/troffrc: Load `hyphenex.us'.
2924 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2925 * doc/groff.texinfo: Updated.
2927 2003-01-23 Werner LEMBERG <wl@gnu.org>
2929 Improve hyphenation slightly. This is a first step in redesigning
2930 the hyphenation algorithm to make it more flexible (e.g. allowing
2931 kerns and ligatures between the hyphenation character and the
2932 following character -- while not used normally in English, other
2933 languages like German would benefit).
2935 * src/roff/troff/env.cc (environment::hyphenate_line): Use
2936 assertion instead of if-clause.
2937 Let `get_hyphen_list' return the number of involved characters in
2938 the hyphenation pattern instead of computing it directly (which
2939 often yields too small values).
2940 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2941 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2944 2003-01-22 Werner LEMBERG <wl@gnu.org>
2946 Fixing a bug which caused groff to hang if the hyphenation exception
2947 dictionary tried to grow.
2949 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2950 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2951 pointer to dictionary.
2953 2003-01-20 Werner LEMBERG <wl@gnu.org>
2955 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2956 negative left italic correction.
2957 * src/utils/afmtodit/afmtodit.man: Document it.
2959 * font/devps/generate/Makefile (RFLAG): Add `-m'.
2960 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2961 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2965 2003-01-16 Werner LEMBERG <wl@gnu.org>
2969 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
2971 * src/preproc/refer/refer.man: Mention REFER environment variable.
2973 2003-01-05 Werner LEMBERG <wl@gnu.org>
2975 Similar to \[is], the square root glyph (\[sr]) and the square root
2976 extension glyph (\[radicalex]) are now text symbols. The new
2977 mathematical versions are called \[sqrt] and \[sqrtex],
2980 * font/devX*/S: Regenerated.
2981 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2982 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2983 * font/devdvi/EX, font/devdvi/S: Regenerated.
2984 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2985 * font/devlj4/generate/special.map: Add `sqrt'.
2986 * font/devlj4/S: Regenerated.
2987 * font/devps/generate/textmap: Add `sqrt'.
2988 * font/devps/S, font/devps/symbolmap: Regenerated.
2990 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2991 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2992 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2993 overlap horizontally.
2995 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2996 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2999 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3000 and `sqrtex' are overlapping glyphs.
3002 2003-01-04 Werner LEMBERG <wl@gnu.org>
3004 * font/devdvi/generate/texsy.map: Add `is'.
3005 * font/devps/symbolmap: Regenerated.
3006 * font/devdvi/*TC, MI, S: Regenerated.
3008 * tmac/dvi.tmac: Remove `is'.
3010 2003-01-03 Werner LEMBERG <wl@gnu.org>
3012 `is' is now a text symbol (only relevant for dvi). The math variant
3013 can be accessed with `integral'.
3015 * font/devX*/S: Regenerated.
3016 * font/devdvi/generate/texex.map: Remove `is'.
3017 * font/devdvi/EX: Updated.
3018 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3019 * font/devlj4/generate/special.map: Ditto.
3020 * font/devlj4/S: Regenerated.
3021 * font/devps/generate/textmap: Add `integral'.
3022 * font/devps/S: Regenerated.
3024 * tmac/dvi.tmac: Define `is'.
3026 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3028 * src/preproc/tbl/main.cc (process_format): Fix error message.
3030 2003-01-02 Werner LEMBERG <wl@gnu.org>
3032 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3033 * font/devps/textmap: Fix entries for `ne' and `nc'.
3034 * font/devps/symbolmap: Regenerated.
3036 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3037 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3038 `38', `58', `78', `-+', `|=', `nc', `ne'.
3040 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3041 Use `schar' for `aq'.
3042 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3043 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3044 * tmac/tty.tmac: Add `ne'.
3046 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3047 for fallback glyphs.
3049 2002-12-29 Werner LEMBERG <wl@gnu.org>
3053 * font/devX*/*: Regenerated.
3054 * font/devdvi/generate/ec.map: Remove `eq'.
3055 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3056 Assign `|=' to position 39.
3057 * font/devdvi/*EC, S: Regenerated.
3058 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3059 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3060 Assign `|=' to position 549.
3061 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3063 Add `uni2243' for `|='.
3065 * tmac/ec.tmac: Add `eq'.
3066 * tmac/dvi.tmac: Add `=~'.
3067 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3070 2002-12-21 Werner LEMBERG <wl@gnu.org>
3072 * font/devdvi/generate/tc.map: Remove `**'.
3073 * font/devdvi/*TC: Regenerated.
3074 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3076 * font/devutf8/NOTES: Updated.
3078 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3079 Don't give default parameter to `set_macro'.
3080 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3081 instead of `set_macro'.
3082 (charinfo::setx_macro): Implement it.
3083 (charinfo::set_macro): Don't change `mode'.
3085 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3086 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3087 * tmac/dvi.tmac: Define `!=' with `.schar'.
3089 2002-12-20 Werner LEMBERG <wl@gnu.org>
3091 * font/devX*/S: Regenerated.
3092 * font/devdvi/generate/ec.map: Remove `pl'.
3093 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3094 * font/devdvi/*{TC,EC}: Regenerated.
3095 * font/devhtml/R.proto: Add `-+'.
3096 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3097 * font/devlbp/*: Remove `or'.
3098 * font/devlj4/generate/special.map: Remove `or'.
3099 * font/devlj4/S: Regenerated.
3100 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3101 `seveneighths', `threeeighths'.
3103 Replace `minusplus' with `uni2213'.
3104 * font/devps/symbolmap: Regenerated.
3105 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3108 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3110 * src/roff/troff/node.cc (troff_output_file::put_char_width):
3111 Call glyph_color and fill_color even if tcommand_flag isn't set.
3112 (make_node, node::add_char): Check not ci->is_fallback but
3115 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3116 * tmac/ec.tmac: Add .rchar entry for `f/'.
3117 Don't remove `12', `14', `34'.
3118 Define `pl' to be always roman.
3119 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3120 Define `18', `38', `58', `78'.
3121 * tmac/tty.tmac: Add `-+'.
3122 * tmac/dvi.tmac: Define `f/'.
3123 (dvi-frac): Use `f/'.
3124 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3125 Define `18', `38', `58', `78'.
3127 2002-12-15 Colin Watson <cjwatson@debian.org>
3129 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3131 2002-12-10 Werner LEMBERG <wl@gnu.org>
3133 Add glyph `tno', a textual variant of `no'.
3135 * font/devX*/*: Regenerated.
3136 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3137 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3138 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3139 * font/devdvi/*: Regenerated.
3140 * font/devlbp/*: Add `tno'.
3141 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3142 * font/devlj4/*: Regenerated.
3143 * font/devps/generate/textmap: Replace `no' with `tno'.
3144 * font/devps/generate/symbolchars: Add `no'.
3145 * font/devps/*: Regenerated.
3147 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3149 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3150 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3154 * tmac/dvi.tmac: Replace most `\\' with `\E'.
3155 Add definition for `sd'.
3156 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3158 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3160 2002-12-08 Werner LEMBERG <wl@gnu.org>
3162 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3163 mode to avoid rounding errors.
3164 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3166 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3167 src/roff/troff/troff.man: Improve documentation of -T.
3169 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
3171 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3172 (run_pipeline) [_WIN32]: Provide working function without `fork'.
3174 2002-12-06 Werner LEMBERG <wl@gnu.org>
3176 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3177 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3178 Scaling Euro.sansserif glyphs down to have the same height as
3180 Removed unnecessary points; added some extrema.
3182 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3185 2002-12-04 Werner LEMBERG <wl@gnu.org>
3187 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3188 and `Euro.symbol.bold.slanted'.
3189 Improve some glyph offsets and widths.
3190 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3192 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3194 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3197 * tmac/europs.tmac: Updated to new glyph indices.
3198 Use Euro.symbol for font familiy `A'.
3200 * doc/groff.texinfo: Minor improvements.
3202 2002-12-02 Werner LEMBERG <wl@gnu.org>
3204 * font/devdvi/generate.tc.map: s/%O/%0/.
3205 * font/devdvi/*TC: Regenerated.
3207 * src/roff/troff/div.cc (init_div_requests): Sorted.
3209 * tmac/dvi.tmac: Remove `Ye'.
3210 * tmac/ec.tmac: Remove `Ye'.
3211 Add .rchar entry for `de'.
3213 * man/groff.man, man/groff_diff.man: Document register `.pe'.
3214 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3217 2002-11-30 Werner LEMBERG <wl@gnu.org>
3219 Add PS font for various Euro glyphs.
3221 * font/devps/generate/freeeuro.sfd: New master font file for
3223 * font/devps/generate/sfdtopfa.pe: New conversion script for
3225 * font/devps/generate/Makefile (FONTS): Add `EURO'.
3226 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3227 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3229 * font/devps/EURO: Generated from `freeeuro.afm'.
3230 * font/devps/download: Add `freeuro.pfa'.
3231 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3234 * tmac/europs.tmac: New file.
3235 * tmac/ps.tmac: Include `europs.tmac'.
3236 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3238 2002-11-29 Werner LEMBERG <wl@gnu.org>
3240 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3241 * font/devdvi/S: Regenerated.
3242 * font/devhtml/R.proto: Fix `CR' and `ci'.
3244 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3246 * font/devps/symbolmap: Regenerated.
3247 * font/devutf8/R.proto: Fix `CR' and `ci'.
3249 * font/devutf8/NOTES: Updated.
3251 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3254 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3256 * tmac/dvi.tmac: Add `lh' and `rh'.
3257 * tmac/Xps.tmac: Fix `lh' and `rh'.
3258 * tmac/X.tmac: Add `OK'.
3259 * tmac/lj4.tmac: Ditto.
3261 2002-11-24 Werner LEMBERG <wl@gnu.org>
3263 * font/devX*/S: Regenerated.
3264 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3265 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3266 * font/devdvi/generate/texsy.map: Remove `or' glyph.
3267 * font/devdvi/S: Regenerated.
3268 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3269 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3270 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3271 `bracketleftbt', `bracketrighttp', `bracketrightex',
3272 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3273 `braceex', `braceleftex', `bracerightex', `bracerighttp',
3274 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3276 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3277 * font/devutf8/NOTES: Updated.
3278 * font/devlj4/generate/special.map: Add glyph `braceex'.
3279 * font/devlj4/S: Regenerated.
3281 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3283 2002-11-14 Werner LEMBERG <wl@gnu.org>
3285 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3288 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3290 * doc/texinfo.tex: New version from texinfo 4.3.
3291 * doc/groff.texinfo: Updated for texinfo 4.3.
3292 Use @tie{} where appropriate.
3293 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3294 * font/devdvi/generate/tc.map: Remove `rn'.
3295 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3296 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3298 * font/devX100/*, font/devX100-12/*, font/devX75/*,
3299 font/devX75-12/*: Regenerated.
3301 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3302 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3303 Improve definition of `an'.
3304 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3306 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3307 * tmac/X.tmac: Add definition for `or'.
3308 * tmac/Xps.tmac: Undo change 2002-11-05.
3309 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3311 2002-11-11 Werner LEMBERG <wl@gnu.org>
3313 * src/roff/troff/node.cc (troff_output_file::put_char): Always
3316 2002-11-10 Werner LEMBERG <wl@gnu.org>
3318 Added three new requests `schar', `fschar', and `rfschar'. `schar'
3319 defines a glyph which is searched after the check for fonts declared
3320 with `.special' (and before the check for all mounted special
3321 fonts). `fschar' defines a glyph for a particular font which is
3322 searched after the check for fonts declared with `.fspecial' (and
3323 before the check for fonts declared with `.special'). `rfschar'
3324 removes glyphs defined with `fschar'.
3326 * src/roff/troff/token.h (char_mode): New enum.
3327 Declare do_define_character.
3328 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3330 (charinfo::is_fallback): Updated.
3331 (charinfo::is_special): New method.
3332 * src/roff/troff/input.cc (do_define_character): Add and use
3333 optional second parameter used as a prefix for font-specific glyph
3335 (define_character, define_fallback_character): Updated.
3336 (define_special_character): New function.
3337 (init_input_requests): Add `schar'.
3338 (charinfo::charinfo, charinfo::set_macro): Updated.
3339 * src/roff/troff/node.cc: Include `stringclass.h'.
3340 (make_glyph_node): Handle special glyphs defined with `.schar' and
3342 (define_font_special_character, remove_font_special_character): New
3344 (init_node_requests): Sorted.
3345 Add `fschar' and `rfschar'.
3346 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3347 Document new requests.
3349 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3350 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3352 2002-11-08 Werner LEMBERG <wl@gnu.org>
3354 Added new font `SC' (cmtex10) to devdvi.
3356 * devdvi/generate/Makefile (FONTS): Add `SC'.
3358 * devdvi/generate/textex.map: New map file for cmtex.
3360 * devdvi/Makefile.sub (DEVFILES): Updated.
3361 * tmac/dvi.tmac: Add fspecial entries for SC.
3362 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
3363 found before `S' since the font position of `SC' is lower due to the
3364 gaps in DESC's `font' line.
3365 * tmac/ec.tmac: Add a `special' call.
3368 * font/devhtml/R.proto: Remove double entry for `ti'.
3369 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3370 * tmac/tty-char.tmac: Remove entry for `bq'.
3371 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3372 * tmac/ec.tmac: Don't remove `aq' glyph.
3373 * tmac/X.tmac: Fix entry for `em'.
3374 Add entries for `fo' and `fc'.
3375 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3377 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3378 documentation of `special' and `fspecial' requests.
3380 2002-11-05 Werner LEMBERG <wl@gnu.org>
3382 * font/devascii/R.proto, font/devcp1047/R.proto,
3383 font/devlatin1/R.proto: Remove entry for `.i'.
3384 * font/devdvi/generate/textt.map: Add entry for `ad'.
3385 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3386 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3387 We need this for getting kerning values to compose `/l' and `/L'.
3388 * font/devdvi: Regenerated font definition files for CM fonts.
3389 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3390 * font/devutf8/R.proto: Ditto.
3391 Remove double entry for `ti'.
3393 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3394 for (groff) ligatures, `la', and `ra'.
3395 Add "'C", "'c", `IJ', and `ij'.
3396 Remove double entry for `ti'.
3397 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3399 Add "'C", "'c", `IJ', and `ij'.
3400 Fix entries for (groff) ligatures, `la', and `ra'.
3402 * tmac/ps.tmac (ps-achar): New macro.
3403 Define "'c" and "'C".
3404 * tmac/tty.tmac: Add entry for `.i'.
3405 * tmac/X.tmac (X-achar): New macro.
3406 Define "'c", "'C", and `:Y'.
3407 Add entries for `IJ' and `ij'.
3408 * tmac/Xps.tmac (Xps-achar): New macro.
3409 Define "'c" and "'C".
3410 Add entries for `IJ' and `ij'.
3411 * tmac/lbp.tmac (lbp-achar): New macro.
3412 Add fallback characters for all groff ligatures and many other
3414 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3415 Add entries for `/l' and `/L'.
3416 Define "'c" and "'C".
3417 Add entries for `IJ' and `ij'.
3419 2002-11-02 Larry Kollar <kollar@alltel.net>
3421 * PROBLEMS: Document how to solve Mac OS X compilation problems.
3423 2002-11-02 Werner LEMBERG <wl@gnu.org>
3425 Adding support for composite glyphs: \[xxx yyy ...] and the
3426 `composite' request.
3428 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3429 to Unicode-based glyph names.
3430 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3431 glyph names to groff glyph names.
3432 * src/roff/troff/uniuni.cc: New file for canonically decomposing
3433 Unicode-based glyph names.
3434 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3435 for handling Unicode glyph names.
3436 * src/roff/troff/input.cc: Include unicode.h.
3437 (composite_glyph_name): New function.
3438 (token::next) <'['>: Handle Unicode glyph names and composite
3440 (composite_dictionary): New dictionary for the `composite' request.
3441 (composite_request): Implement `composite' request.
3442 (init_input_requests): Add `composite'.
3443 Alphabetically sorted.
3444 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3446 (init_env_requests): Alphabetically sorted.
3447 Removed `tas' and `tar' (already commented out).
3448 * src/roff/troff/Makefile.sub: Updated.
3450 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
3452 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3455 2002-10-29 Werner LEMBERG <wl@gnu.org>
3457 Fix computation of .trunc register. Additionally, its value (and
3458 the value of the .ne register) is now always set before entering the
3461 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3462 `needed_space' before calling `space'.
3463 (top_level_diversion::space): Remove special code for 'sp before the
3465 Call `begin_page' with the discarded space as a parameter.
3466 (top_level_diversion::begin_page): Add optional parameter to set
3468 * src/roff/troff/div.h: Updated.
3470 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3473 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3474 (LP): Remove superfluous call to `br'.
3475 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3476 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3478 2002-10-26 Werner LEMBERG <wl@gnu.org>
3480 * tmac/doc-ditroff: Remove useless switch/variable -rC.
3481 (doc-setup-header): Don't set page register `%'.
3482 * tmac/doc-nroff: Remove variable `C'.
3483 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3484 (doc-setup-header): Don't set page register `%'.
3486 * tmac/doc-common (doc-header): Call `ns'.
3487 (doc-paragraph): Protect .sp with .br so that it survives traps
3488 possibly set by the user.
3489 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3491 * tmac/doc*: Replace ' with . for consistency if no effect.
3493 2002-10-26 Werner LEMBERG <wl@gnu.org>
3495 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3496 so that it survives traps possibly set by the user.
3498 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3499 (troff_output_file::set_font): Call flush_tbuf if necessary.
3500 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3501 flush_tbuf and do_motion only if necessary.
3502 (troff_output_file::start_special,
3503 troff_output_file::put_char_width, troff_output_file::put_char,
3504 troff_output_file::draw): Updated.
3505 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3506 vmotion_node::tprint): Undo change 2002-10-23.
3508 2002-10-25 Werner LEMBERG <wl@gnu.org>
3510 * tmac/www.tmac (DC): Fix case of overlapping images.
3512 2002-10-23 Werner LEMBERG <wl@gnu.org>
3514 * src/roff/troff/node.cc (troff_output_file::fill_color,
3515 troff_output_file::glyph_color): Set current color before testing
3517 (troff_output_file::put_char_width, troff_output_file::put_char,
3518 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3520 (troff_output_file::file_color, troff_output_file::glyph_color):
3522 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3523 vmotion_node::tprint): Move first, then call fill_color.
3525 2002-10-20 Werner LEMBERG <wl@gnu.org>
3527 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3528 possible to use multiple main macro packages.
3530 2002-10-19 Werner LEMBERG <wl@gnu.org>
3532 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3533 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3534 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3536 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3537 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3539 2002-10-16 Werner LEMBERG <wl@gnu.org>
3541 * NEWS, doc/webpage.ms: Updated.
3543 2002-10-14 Werner LEMBERG <wl@gnu.org>
3545 * src/roff/troff/node.cc (troff_output_file::put_char_width,
3546 troff_output_file::put_char, troff_output_file::fill_color,
3547 troff_output_file::glyph_color): Handle case where color pointer
3550 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
3552 Add the new -r option to grotty. It is similar to the -i option
3553 except it tells grotty(1) to use the "reverse video" attribute to
3554 render italic fonts.
3556 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3557 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3558 (tty_printer::make_underline, tty_printer::put_color,
3559 tty_printer::end_page): Use it.
3560 (main): Add -r switch.
3562 * src/devices/grotty/grotty.man: Document it.
3564 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
3566 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3567 cast to `unsigned char' to properly read patterns with 8bit
3570 2002-10-08 Werner LEMBERG <wl@gnu.org>
3572 * REVISION: Increased to 2.
3574 Version 1.18.1 released
3575 =======================
3577 2002-10-08 Werner LEMBERG <wl@gnu.org>
3579 * doc/webpage.ms, NEWS: Updated.
3581 2002-10-07 Werner LEMBERG <wl@gnu.org>
3583 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3584 suppress additional whitespace after the header.
3586 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3589 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3591 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
3593 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3594 (Dt): Use it to improve language localization (especially Russian
3597 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
3599 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3600 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3602 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3604 Call `picurve' for BSPLINE.
3605 (HGPrintElt): Handle BSPLINE.
3606 * src/preproc/grn/README: Document it.
3608 2002-10-03 Werner LEMBERG <wl@gnu.org>
3610 * src/roff/troff/node.cc (break_char_node::col): New variable.
3611 Updated constructor.
3612 (space_node::tprint, word_space_node::tprint): Call `fill_color'
3614 (space_node::space_node): Remove assertion.
3615 (break_char_node::add_self): Pass color argument to space node.
3616 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3618 * src/roff/troff/env.cc (environment::do_break,
3619 environment::add_padding): Ditto.
3621 2002-10-02 Werner LEMBERG <wl@gnu.org>
3623 Redesigning color support in troff. Colors are no longer
3624 represented as separate nodes but are now part of glyph nodes and
3625 friends. This fixes the current formatting misbehaviour due to the
3626 changes introduced on 2002-09-20. Some extra code is necessary for
3627 proper grotty support: Without adding color variables to
3628 space-related nodes, the background color would be changed too late.
3630 * src/roff/troff/node.h, src/roff/troff/node.cc:
3631 s/current_pagecolor/current_fill_color/.
3632 s/current_glyphcolor/current_glyph_color/.
3633 (glyph_color_node, fill_color_node): Removed.
3634 (node::get_glyph_color, node::get_fill_color): New virtual member
3636 (space_node::col): New variable.
3637 Updated constructors of space_node and derived classes accordingly.
3638 (hmotion_node::col): New variable.
3639 Updated constructors of hmotion_node and space_char_hmotion_node
3641 (vmotion_node::col): New variable.
3642 Updated constructor accordingly.
3643 (draw_node::gcol, draw_node::fcol): New variables.
3644 Updated constructor accordingly.
3645 (special_node::gcol, special_node::fcol): New variables.
3646 Updated constructors accordingly.
3647 (troff_output_file::put_char, troff_output_file::put_charwidth,
3648 troff_output_file::draw): Set glyph and fill color.
3649 (troff_output_file::start_special): Set glyph and fill color.
3650 Always set current font.
3651 (troff_output_file::fill_color, troff_output_file::glyph_color):
3652 Don't call `do_motion'.
3653 (glyph_node::gcol, glyph_node::fcol): New variables.
3654 Updated constructors of glyph_node and ligature_node accordingly.
3655 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3657 (glyph_node::merge_glyph_node,
3658 kern_pair_node::add_discretionary_hyphen,
3659 node::add_discretionary_hyphen): Updated.
3660 (break_char_node::merge_self): Updated.
3661 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3662 vmotion_node::tprint): Handle color.
3663 (make_glyph_node, make_node, node::add_char): Updated.
3665 * src/roff/troff/env.cc (environment::space_newline,
3666 environment::space, environment::output_line, environment::do_break,
3667 environment::make_tab_node, environment::add_padding, title):
3669 (environment_switch, environment_copy): Don't add color nodes.
3671 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3673 (token::next): Updated.
3674 \m and \M now are as transparent as \s.
3675 (process_input_stack, token::add_to_node_list, token::process,
3676 read_draw_node): Updated.
3677 (charinfo_to_node_list): Don't add color nodes.
3679 * doc/groff.texinfo: Updated.
3681 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
3683 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3686 2002-09-27 Colin Watson <cjwatson@debian.org>
3688 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3690 2002-09-23 Werner LEMBERG <wl@gnu.org>
3692 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3694 (DEFAULT_LINEWIDTH_FACTOR): New macro.
3695 (linewidth_factor): New global variable.
3696 (lbp_printer::set_line_thickness): Fix case for size < 0, using
3698 (long_options): Add -w/--linewidth option.
3700 (main): Handle -w option to set linewidth_factor.
3701 (lbp_printer::lbp_printer): Initialize req_linethickness, not
3704 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3706 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
3708 Fixed a bug in the line thickness setting code.
3710 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3712 (lbp_printer::set_line_thickness): Pass environment as second
3714 Implement it actually.
3715 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3716 and `set_line_thickness, depending on the current font size.
3718 2002-09-21 Werner LEMBERG <wl@gnu.org>
3720 Some Debian patches.
3722 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3723 * src/roff/troff/node.cc (bracket_node::copy): Initialize
3726 2002-09-20 Werner LEMBERG <wl@gnu.org>
3728 * configure: Regenerated with autoconf 2.54.
3730 2002-09-20 Werner LEMBERG <wl@gnu.org>
3732 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3734 Rename cur_fill_color to fill_color.
3735 * src/roff/troff/env.cc: Updated.
3737 2002-09-20 Werner LEMBERG <wl@gnu.org>
3739 * src/roff/troff/env.cc (title): Copy color status after processing
3741 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3742 fill color nodes to reset colors properly.
3744 * tmac/www.tmac (DC): Fix color handling.
3746 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3747 * doc/groff.texinfo: Fixing documentation of `tl' request.
3748 * doc/webpage.ms: Updated.
3750 2002-09-19 Werner LEMBERG <wl@gnu.org>
3752 * src/roff/troff/env.cc (environent_switch, environment_copy):
3753 Emit glyph and fill color nodes to initialize colors properly.
3755 2002-09-17 Colin Watson <cjwatson@debian.org>
3757 * src/roff/troff/env.cc (environment::set_glyph_color,
3758 environment::set_fill_color): Fix typo which prevented \m[] work
3761 2002-09-17 Werner LEMBERG <wl@gnu.org>
3763 Add left and right italic correction to non-slanted PS fonts. This
3764 is an experimental feature to improve image rendering of grohtml.
3766 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3767 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3768 * font/devps/*: All non-slanted fonts regenerated.
3771 2002-09-16 Werner LEMBERG <wl@gnu.org>
3773 Add a site-specific font directory.
3775 * Makefile.in (localfontdir, legacyfontdir): New variables.
3776 (fontpath): Use them.
3777 (MDEFINES, uninstall_dirs): Updated.
3778 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3779 Remove `FONTPATH' and `MACROPATH'.
3781 * src/roff/troff/troff.man, NEWS: Updated.
3782 * doc/groff.texinfo (Font Directories): New section.
3785 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3786 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3787 src/preproc/grn/grn.man: Minor fixes.
3789 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3790 Remove unused variable.
3792 2002-09-11 Werner LEMBERG <wl@gnu.org>
3794 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3795 * man/groff_out.man: Fix documentation of 'N'.
3797 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
3799 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3800 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3802 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3803 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3804 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3805 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3806 PRE_TAG>: Call `begin' with `FALSE'.
3808 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3810 * src/libs/libgroff/string.cc (string::extract): Fix position of
3811 terminating null byte.
3813 2002-09-08 Werner LEMBERG <wl@gnu.org>
3815 Add global option `nospaces' to tbl so that leading and trailing
3816 spaces in data items are ignored.
3818 * src/libs/libgroff/string.cc (string::remove_spaces): New member
3819 function to remove leading and trailing spaces.
3820 * src/include/stringclass.h: Updated.
3822 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3824 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3826 Fix typo in error messages.
3827 (process_data): Implement `nospaces' option.
3828 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3830 2002-09-07 Werner LEMBERG <wl@gnu.org>
3832 * src/include/config.hin: Add `HAVE_ISATTY'.
3833 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3835 * src/libs/libgroff/tmpname.cc: Include `time.h'.
3836 * src/libs/libdriver/input.cc (Char): Add `operator==' and
3837 `operator!=' for `char'.
3838 * doc/groff.texinfo: Replace @ifnottex block for top node with
3841 2002-09-06 Werner LEMBERG <wl@gnu.org>
3843 * doc/Makefile.in (.texinfo.html): Add -I switch.
3844 * doc/groff.texinfo: Add @ifnottex block for top node to make
3845 translation to HTML work.
3847 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
3849 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3850 (get_papersize, determine_vertical_offset): Removed.
3851 (char_buffer::do_image): Always specify letter size.
3853 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3856 2002-09-05 Werner LEMBERG <wl@gnu.org>
3858 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3859 default indentation.
3861 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
3863 * src/preproc/html/pre-html.cc (imageList::createPage): Use
3865 (generateImages): Clean up push-back buffer.
3867 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3869 * doc/groff.texinfo: Minor fixes.
3871 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
3873 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3874 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3876 (determine_vertical_offset): Use LETTER_LENGTH.
3877 (createPage): Moved to ...
3878 (imageList::createPage): This.
3879 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3880 (imageList::getMaxX): New function.
3881 (createImage): Moved to ...
3882 (imageList::createImage): This.
3883 (imageList::createImages): New function.
3884 (generateImages): Read `maxx' directly.
3886 (scanArguments): Don't specify `gsPaper' for `-o'.
3887 (makeTempFiles): Call `xtmpfile' with the last argument set to
3890 2002-08-24 Werner LEMBERG <wl@gnu.org>
3892 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3893 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3894 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3895 * src/preproc/html/pushback.cc: Include nonposix.h.
3896 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3899 2002-08-23 Werner LEMBERG <wl@gnu.org>
3901 Use $(OBJEXT) for the object file extension.
3903 * Makefile.comm (.SUFFIXES): Add .obj.
3904 (.cc.obj, .c.obj): New implicit rules.
3905 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3906 (MDEFINES): Add EXEEXT and OBJEXT.
3907 * */Makefile.sub: s/.o/.$(OBJEXT)/.
3909 2002-08-22 Werner LEMBERG <wl@gnu.org>
3911 * INSTALL: Mention texinfo 4.2 as a prerequisite.
3913 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
3915 * src/devices/grohtml/post-html.cc (colType): Make enum global to
3917 (html_printer::update_min_max, html_printer::add_table_end): New
3919 (html_printer::lookahead_for_tables): Use them.
3920 Reset page offset correctly.
3921 (html_printer::~html_printer): Add creation of creator comment up.
3923 2002-08-20 Werner LEMBERG <wl@gnu.org>
3925 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3926 * man/groff_tmac.man: Fix typos.
3927 * man/groff_font.man: Minor reordering.
3928 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3930 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
3932 Avoid endless loops while scanning for tables.
3934 * src/devices/grohtml/post-html.cc (list::insert): Set
3936 (html_printer::next_horiz_pos): Add `text_glob' argument; update
3938 Return immediately if that argument is NULL.
3939 (html_printer::calc_nf): Don't test if `g' is NULL.
3940 (html_printer::lookahead_for_tables): Use
3941 `glyphs.move_right_get_data'.
3942 Don't test if `g' is NULL.
3944 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
3946 A better fix, replacing fix 2002-08-15, for increasing SIZE.
3948 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3950 (char_block::char_block): Allocate `buffer'.
3951 (char_buffer::add_string): Use it.
3953 2002-08-15 Werner LEMBERG <wl@gnu.org>
3955 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3956 src/devices/grodvi/grodvi.man: Document default line thickness.
3958 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
3960 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3963 2002-08-14 Werner LEMBERG <wl@gnu.org>
3965 * doc/webpage.ms: Updated.
3967 2002-08-09 Werner LEMBERG <wl@gnu.org>
3969 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3972 2002-08-08 Aaron Campbell <aaron@monkey.org>
3974 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3977 2002-08-08 Werner LEMBERG <wl@gnu.org>
3979 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3982 Don't push back a space but a newline onto the stack.
3984 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
3986 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3989 * src/devices/grohtml/post-html.cc (html_printer::end_font,
3990 html_printer::start_font): Handle them.
3991 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3993 (html_text::do_bold): Don't reset italic and tt.
3994 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3995 * font/devhtml/DESC.proto: Add those fonts.
3996 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3998 2002-08-07 Werner LEMBERG <wl@gnu.org>
4000 * MORE.STUFF: Added gpresent.
4002 * tmac/trace.tmac: Show nesting level by a corresponding amount of
4003 whitespace before printing the logging message.
4005 2002-07-31 Colin Watson <cjwatson@debian.org>
4007 * src/devices/grohtml/html-table.cc (html_table::finish_row):
4008 Initialize `n' to zero. This fixes a segfault on ARM.
4010 2002-07-30 Werner LEMBERG <wl@gnu.org>
4012 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4014 2002-07-29 Werner LEMBERG <wl@gnu.org>
4016 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4019 2002-07-28 Colin Watson <cjwatson@debian.org>
4021 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4023 (html_printer::html_printer): Initialize `pointsize'.
4025 2002-07-26 Werner LEMBERG <wl@gnu.org>
4027 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4029 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4030 (gnu.eps): Add -rle switch to pnmtops.
4031 (distfiles): Add gnu.eps and gnu.png.
4033 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
4035 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4038 2002-07-24 Werner LEMBERG <wl@gnu.org>
4040 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4041 ' \+' but ' *' for sed.
4042 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4044 2002-07-23 Werner LEMBERG <wl@gnu.org>
4046 * doc/groff.texinfo: Document `papersize' keyword.
4047 * NEWS, man/groff_font.man: Updated.
4049 2002-07-23 Colin Watson <cjwatson@debian.org>
4051 Extend papersize keyword to accept more than a single entry. The
4052 first valid will be used.
4054 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4055 (font::scan_papersize): Really skip final newline.
4056 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4058 2002-07-23 Werner LEMBERG <wl@gnu.org>
4060 * configure.ac: Test for isatty.
4061 * configure: Regenerated.
4062 * src/include/posix.h: Check HAVE_ISATTY.
4063 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4064 * src/utils/lookbib/lookbib.cc: Include posix.h.
4065 Don't declare isatty.
4067 2002-07-21 Werner LEMBERG <wl@gnu.org>
4069 * NEWS: Add `output' request.
4071 * REVISION: Increased to 1.
4073 Version 1.18.0 released
4074 =======================
4076 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
4078 Allow internal glyph indices > 0xFF in grohtml for input characters.
4080 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4082 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4083 Updated all callers.
4084 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4085 (html_printer): Updated.
4087 2002-07-19 Werner LEMBERG <wl@gnu.org>
4089 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4090 * font/devutf8/R.proto: Adding some missing glyphs.
4091 * font/devutf8/NOTES: Updated.
4093 * tmac/dvi.tmac: Add more composite glyphs.
4094 * tmac/html.tmac: Updated.
4096 * man/groff_char.man: Add `sum' and `product' entities.
4100 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
4102 Improved table, tab, and indenting support.
4104 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4105 string_iterator::suppress_newline_flag): Removed. Updated all
4106 function which have used it.
4108 * src/roff/troff/env.cc: Include `input.h'.
4109 (environment::add_node): Accept 0 as parameter.
4110 (environment::add_html_tag): Add `force' parameter.
4111 Updated all callers.
4112 (environment::add_html_tag_tabs): Ditto.
4113 For the moment, support left-aligned tabs only.
4114 (environment::make_html_tag): New function.
4115 (fill, no_fill): Set .br html tag additionally.
4116 (environment::newline): Emit `eol.ce' or `eol' tag for html.
4117 (environment::add_html_tag_eol): Removed.
4118 (tab_stops::distance_to_next_tab): Add variant for handling
4120 (environment::distance_to_next_tab): Ditto.
4121 Updated all callers.
4122 (environment::handle_tab): Handle tabs for html.
4124 * src/roff/troff/env.h: Updated.
4126 * src/roff/troff/div.cc: Updated all callers of
4127 `environment::add_html_tag'.
4129 * src/devices/grohtml/html-table.cc,
4130 src/devices/grohtml/html-table.h: New files.
4132 * src/devices/grohtml/html-text.cc (html_text): New members
4133 `blank_para' and `start_space'.
4134 (html_text::issue_tag): Don't emit TABLE_TAG.
4135 Handle indentation for PRE_TAG and P_TAG.
4136 (html_text::end_tag): Updated.
4137 (html_text::table_is_void, html_text::issue_table_begin,
4138 html_text::issue_table_end): Removed.
4139 (html_text::do_push): Simplified.
4140 [DEBUGGING]: Small fix.
4141 (html_text::push_para): Add new parameter for indentation; updated
4144 (html_text::do_indent, html_text::do_table, html_text::done_table,
4145 html_text::is_in_table): Removed.
4146 (html_text::do_pre): Handle P_TAG also.
4147 (html_text::shutdown): Handle p->indent.
4148 (html_text::check_emit_text): Simplified.
4149 (html_text::do_emittext): Reset `blank_para'.
4150 (html_text::do_para): Add new parameter for indentation; updated
4152 (html_text::remove_indent): New function.
4153 (html_text::do_space): Handle verbatim text properly.
4154 (html_text::ever_emitted_text, html_text::starts_with_space,
4155 html_text::remove_para_align): New functions.
4156 (html_text::dump_stack_element, html_text::dump_stack): Updated.
4158 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4161 * src/devices/grohtml/post-html.cc: Include html-table.h.
4162 (INDENTATION): Removed.
4163 (text_glob): Added many `is_<foo>' functions.
4164 Added table description `tab'.
4165 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4167 (list): Add `insert' and `move_to' member functions.
4168 (page): Add `insert_tag' member function.
4169 (page::dump_page) [DEBUG_TABLES]: Improved.
4170 (html_printer): Add `table' and `max_linelength' elements.
4171 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4172 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4173 `remove_tabs', `remove_courier_tabs'.
4174 (html_printer::emit_raw): Handle indentation.
4175 (html_printer::do_center, html_printer::write_header): Updated.
4176 (html_printer::is_courier_until_eol): Check for tag.
4177 (html_printer::do_linelength): Handle max_linelength.
4178 (html_printer::do_page_offset, html_printer::do_indentation): Handle
4180 (html_printer::do_tempindent): Updated.
4181 (html_printer::do_indentedparagraph): Removed.
4182 (html_printer::do_indent): Simplified.
4183 (html_printer::do_eol): Use `ever_emitted_text'.
4184 (html_printer::do_flush, html_printer::do_links): Don't call
4186 (html_printer::do_break): Handle end_tempindent.
4187 (html_printer::troff_tag): Get argument.
4189 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4190 (html_printer::flush_page): Call `lookahead_for_tables'.
4191 Don't call `done_table'.
4192 (html_printer::add_to_sbuf): Always call do_indent.
4194 * src/devices/grohtml/Makefile.sub: Updated.
4196 * tmac/an-old.tmac (TP): Don't handle html device specially.
4197 (an-do-tag-html): New function which will be used instead of
4198 `an-do-tag' if html device is used.
4200 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4202 * tmac/s.tmac (@IP): Don't handle html device specially.
4203 (@IP-html): New function which will be used instead of `@IP' if
4204 html device is used.
4206 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4207 is a hack which will eventually vanish again.
4208 (PIMG): Handle `-C' option correctly if not html.
4211 2002-07-17 Werner LEMBERG <wl@gnu.org>
4213 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4215 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
4217 * contrib/pic2graph/pic2graph.*: Use convert(1).
4218 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4220 2002-07-14 Bernd Warken <bwarken@mayn.de>
4222 * tmac/groff_trace.man: New file.
4223 * tmac/Makefile.sub: Updated.
4226 2002-07-13 Werner LEMBERG <wl@gnu.org>
4228 * src/roff/groff/groff.man: Add some cross references.
4230 2002-07-12 Werner LEMBERG <wl@gnu.org>
4232 * src/roff/troff/input.cc (substring_request): Add warnings for
4233 string indices out of range.
4235 2002-07-11 Werner LEMBERG <wl@gnu.org>
4237 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4238 * font/devdvi/*EC: Regenerated.
4240 2002-07-10 Bernd Warken <bwarken@mayn.de>
4242 * man/groff_char.man: Updated and extended.
4244 2002-07-10 Werner LEMBERG <wl@gnu.org>
4246 * src/roff/troff/input.cc (length_macro): Renamed to...
4247 (length_request): This.
4248 Move call of `tok.next()' to the very end, otherwise the register
4249 value hasn't been updated yet.
4250 (init_input_requests): Updated.
4252 2002-07-09 Werner LEMBERG <wl@gnu.org>
4254 * src/roff/troff/input.cc (substring_macro): Renamed to...
4255 (substring_request): This.
4256 (init_input_requests): Updated.
4257 * src/roff/troff/request.h: Updated.
4259 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
4261 * src/roff/grog/grog.sh: Fix typo.
4263 2002-07-08 Werner LEMBERG <wl@gnu.org>
4265 * win32-diffs: Updated.
4267 Handle `papersize' keyword properly in DESC.
4269 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4271 Updated all callers.
4272 * src/libs/libgroff/paper.cc: Add four more paper formats used by
4274 * src/include/paper.h: Updated.
4276 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4277 Other minor C syntax fixes.
4278 (papersize, paperlength, paperwidth): Renamed to `user_*'.
4279 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4281 (lbp_printer::lbp_printer): Pass three arguments.
4282 Set paper dimensions properly.
4283 (make_printer, main): Updated.
4284 (handle_unknown_desc_command): Fix error messages.
4285 (main): Handle papersize keyword in DESC properly.
4287 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4289 (lbp_printer::lbp_printer): Pass an argument.
4290 Set paper_size properly.
4291 (handle_unknown_desc_command): Removed.
4292 (make_printer, main): Updated.
4293 * src/devices/grolj4/grolj4.man: Minor documentation fix.
4295 * man/groff_font.man, NEWS: Updated.
4297 2002-07-07 Werner LEMBERG <wl@gnu.org>
4299 Integrated eqn2graph, contributed by Eric S. Raymond.
4301 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4303 * Makefile.in, NEWS: Updated.
4305 2002-06-04 Werner LEMBERG <wl@gnu.org>
4307 Changing the substring request to make it fit better with other
4308 string manipulation functions in other programming languages:
4309 Index 0 is now the first character in the string, and index -1
4310 indicates the last character. Since this request didn't work
4311 properly anyway in the last release, it doesn't harm too much to
4314 * src/roff/troff/input.cc (substring_macro): Use loops to get
4315 the real string length (ignoring COMPATIBLE_SAVE and
4316 COMPATIBLE_RESTORE) and offsets.
4317 Implement change described above.
4319 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4320 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4322 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4324 2002-06-03 Werner LEMBERG <wl@gnu.org>
4326 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
4327 COMPATIBLE_RESTORE are completely ignored.
4329 * src/roff/troff/input.cc (char_list::set, char_list::get): New
4331 (macro): `length' field renamed to `len'.
4332 Added new field `empty_macro' (1 if macro is empty), to be used
4333 instead of checking `len'.
4334 Updated all callers.
4335 (macro::empty): Updated.
4336 (macro::length, macro::set, macro::get): New functions.
4337 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4339 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4340 COMPATIBLE_RESTORE pairs.
4341 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4342 * src/roff/troff/request.h: Updated.
4344 * doc/groff.texinfo: Document .chop's behaviour better.
4346 2002-06-02 Werner LEMBERG <wl@gnu.org>
4348 * doc/pic.ms: Fix documentation for the addition of positions.
4350 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4352 2002-06-29 Werner LEMBERG <wl@gnu.org>
4354 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4356 * src/roff/troff/input.cc (have_string_arg): New global variable.
4357 (read_mode): New enumeration.
4358 (read_escape_name): Use it. Update all calls.
4359 (read_long_escape_name): Use it. Update all calls.
4360 Set have_string_arg if appropriate.
4361 (get_char_for_escape_name): Add parameter for handling space
4363 (interpolate_string_with_args, decode_string_args): New functions.
4364 (get_copy, token::next): Call it if necessary.
4365 (interpolate_string): Fix error message.
4367 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4370 2002-06-24 Bernd Warken <bwarken@mayn.de>
4372 * man/groff_tmac.man: Updated and extended.
4374 2002-06-24 Werner LEMBERG <wl@gnu.org>
4376 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4378 2002-06-23 Werner LEMBERG <wl@gnu.org>
4380 * doc/pic.ms: Improve documentation of composite block objects.
4382 2002-06-22 Werner LEMBERG <wl@gnu.org>
4384 * src/roff/troff/input.cc (init_registers): Add three registers
4385 `seconds', `minutes', and `hours' to hold the current time.
4387 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4390 2002-06-20 Werner LEMBERG <wl@gnu.org>
4392 Make \X accept both `\ ' and `\~', converting them to single space
4395 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4396 (token::unstretchable_space): New inline function.
4397 * src/roff/troff/input.cc (token::next, token::delimiter,
4398 token::description, token::add_to_node_list, token::process): Handle
4399 TOKEN_UNSTRETCHABLE_NODE.
4400 (encode_char): Handle tok.stretchable_space and
4401 tok.unstretchable_space.
4403 * NEWS, doc/groff.texinfo: Document it..
4405 2002-06-19 Werner LEMBERG <wl@gnu.org>
4407 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4409 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4410 keyword to enable/disable SGR output.
4411 (tty_printer::change_fill_color): New function.
4412 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4414 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4417 2002-06-18 Werner LEMBERG <wl@gnu.org>
4419 Add a `color' request and a `.color' register to control usage of
4422 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4423 (color_flag): This (which is the inverse).
4424 (activate_color): New function.
4425 (main, init_input_requests): Updated.
4426 * src/roff/troff/troff.h, src/roff/troff/node.cc
4427 (troff_output_file::fill_color, troff_output_file::glyph_color):
4430 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4431 Document the changes.
4433 2002-06-17 Colin Watson <cjwatson@debian.org>
4435 Circumvent bug in autoconf 2.53 regarding top_builddir.
4437 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4438 * Makefile.in, doc/Makefile.in:
4439 s/@top_builddir@/@groff_top_builddir@/.
4440 * configure: Regenerated (with autoconf 2.53).
4442 2002-06-17 Werner LEMBERG <wl@gnu.org>
4444 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4445 `paperwidth' and `paperlength' for the `papersize' keyword.
4447 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
4449 * src/devices/grops/grops.man: Add info about Type 42 fonts.
4451 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
4453 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4454 html_printer::do_linelength, html_printer::do_pageoffset,
4455 html_printer::do_indentation, html_printer::do_tempindent,
4456 html_printer::do_break, html_printer::begin_page): Clear indented
4458 * tmac/html.tmac: Disable hyphenation.
4460 2002-06-15 Werner LEMBERG <wl@gnu.org>
4462 Don't produce HTML files if utility programs are missing.
4464 * Makefile.in (make_html, make_install_html): New variables.
4465 (MDEFINES): Updated.
4467 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4469 * configure.ac: Use it.
4470 * configure: Regenerated.
4472 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4473 (HTMLEXAMPLESFILES): This new variable.
4474 (EXAMPLESIMAGEFILES): Renamed to...
4475 (HTMLEXAMPLEIMAGEFILES): This.
4476 (CLEANADD): Add HTMLEXAMPLEFILES.
4477 (all): Use `make_html'.
4479 (install_data): Use `make_install_html'.
4480 Move html stuff to...
4481 (install_html): This new target.
4482 (uninstall_sub): Updated.
4484 2002-06-14 Bernd Warken <bwarken@mayn.de>
4486 * src/roff/grog/Makefile.sub (grog): Renamed to...
4488 (grog): New rule to always install grog.sh as grog.
4490 2002-06-08 Bernd Warken <bwarken@mayn.de>
4492 * src/roff/grog/grog.pl: Fix typo.
4494 2002-06-07 Werner LEMBERG <wl@gnu.org>
4496 * doc/groff.texinfo: Add more info on .tr arguments.
4498 2002-06-05 Werner LEMBERG <wl@gnu.org>
4500 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4502 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4503 * configure: Regenerated.
4505 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4507 * src/roff/troff/symbol.cc (table_sizes): Add more values.
4509 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4511 2002-06-04 Werner LEMBERG <wl@gnu.org>
4513 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4514 is not initialized at the time we need it in case `--prefix' hasn't
4515 been set. Check for `ac_default_prefix' also.
4516 Test for `papersize' keyword also and generalize allowed whitespace.
4517 * configure: Regenerated.
4519 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4522 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4524 (src_version, src_revision): New variables to avoid overwriting
4525 from parent make process.
4526 (version.cc): Updated.
4528 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4529 (linebuf, linebufsize): New global variables.
4530 (sys_fatal): Use `fatal' to abort properly.
4531 (get_line): New function.
4532 (get_resolution): Use it.
4533 Improve error messages.
4534 (get_papersize): Check `papersize' also.
4536 Improve error messages.
4538 2002-06-03 Werner LEMBERG <wl@gnu.org>
4540 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4541 should be removed only if builddir is not srcdir.
4542 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4543 (clean): Depend on `mostlyclean'.
4544 (distclean): Depend on `clean'.
4545 (realclean, extraclean): Depend on `distclean'.
4546 (.y.cc, .y.o): Simplified. The output files are no longer written
4547 to srcdir but to builddir.
4548 * Makefile.in (MDEFINES): Add `version' and `revision'.
4549 (uninstall_dirs): Fix order of directories.
4550 * doc/Makefile.sub (version, revision): Removed.
4551 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4552 Added `HTMLDOCFILES'.
4553 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4554 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4555 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4558 * doc/texinfo.tex (\authortt): New macro.
4559 (\shortcontt): Define.
4560 (\titlepage): Set \tt to \authortt while defining \authorfont.
4561 (\appendixbox): New macro.
4562 (\chapmacro, \appendixentry): Use \appendixbox to get even
4563 indentation for letters.
4564 (\summarycontents): Set \tt.
4565 (\internalpagesize): Add two arguments for real paper width and
4566 height as needed by pdfTeX.
4567 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4569 (\tempdima, \tempdimb): New temporary dimensions.
4570 (\pagesizesyyy): Updated.
4572 2002-06-02 Werner LEMBERG <wl@gnu.org>
4574 Adding a new keyword `papersize' to the DESC file format (similar
4575 but not completely identical to grolbp's extension). grops now has
4576 a -p command line option to override `papersize'. Finally, grolbp
4577 has been adapted to the new syntax.
4579 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
4580 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4582 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4583 (CCSRCS): Add `paper.cc'.
4585 * src/include/font.h (font): Add `papersize' element.
4586 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4587 (font::scan_papersize): New function.
4588 (font::load_desc): Use it for handling `papersize' keyword.
4589 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4591 * src/devices/grops/ps.cc: Include paper.h.
4592 (user_paper_length): New global variable.
4593 (ps_printer): Use paper length as initializer.
4594 (make_printer): Updated.
4595 (main): Handle new `-p' option.
4596 * src/devices/grops/grops.man: Updated.
4598 * src/devices/grolbp/lbp.cc: Include paper.h.
4599 s/papersizes/lbp_papersizes/.
4600 (set_papersize): Use new `papersizes' array.
4601 (handle_unknown_desc_command): Don't handle `papersize'.
4602 (main): Use `font::scan_papersize' for handling `-p' option.
4603 * src/devices/grolbp/grolbp.man: Updated.
4605 * man/groff_font.man: Document `papersize'.
4608 2002-05-30 Werner LEMBERG <wl@gnu.org>
4610 * src/devices/grops/TODO: Updated.
4611 * src/devices/grops/grops.man: More info on paper formats.
4612 * man/groff_font.man: Document `paperheight' and `paperwidth'.
4614 2002-05-29 Werner LEMBERG <wl@gnu.org>
4616 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4617 to list only if srcdir != currdir.
4618 (distfiles): New target.
4620 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4621 (NOMAKEDIRS): New variable.
4624 2002-05-26 Werner LEMBERG <wl@gnu.org>
4626 Add .output request, similar to \! at top-level.
4628 * src/roff/troff/input.cc (transparent): Remove unused declaration.
4629 (output_request): New function.
4630 (init_input_requests): Add it.
4632 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4635 * Makefile.in (MDEFINES): Add INSTALL_INFO.
4636 (prepare_examples): Fix typo.
4637 * doc/groff.texinfo (@direntry): Fix it.
4639 2002-05-25 Werner LEMBERG <wl@gnu.org>
4641 Including the doc subdir into groff's Makefile system.
4643 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4644 * configure.ac: Use it.
4645 Generate `doc/Makefile'.
4646 * configure: Regenerated.
4648 * Makefile.in (infodir, INSTALL_INFO): New variables.
4649 (MDEFINES, uninstall_dirs): Updated.
4650 (OTHERDIRS): Add `doc'.
4651 * Makefile.comm (CLEANDIRADD): New variable.
4652 (mostlyclean): Use it.
4654 * doc/Makefile.sub, doc/Makefile.in: New files.
4655 * doc/Makefile: Removed.
4657 * NEWS, INSTALL: Updated.
4659 2002-05-24 Werner LEMBERG <wl@gnu.org>
4661 * doc/homepage.ms: Renamed to ...
4662 * doc/webpage.ms: This.
4665 2002-05-23 Werner LEMBERG <wl@gnu.org>
4667 Integrating the `mom' macro package, contributed by Peter Schaffter
4670 * contrib/mom/*: New subdirectory tree.
4671 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4672 be used for documentation files.
4673 (MDEFINES, uninstall_dirs): Use them.
4674 (OTHERDIRS): Add contrib/mom.
4675 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4677 * MANIFEST, NEWS: Updated.
4679 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
4681 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4682 if at outer level; at start-up we are at outer level.
4684 * src/roff/troff/input.cc (do_suppress): Implement it.
4687 Add option -p to show progress information.
4688 pre-grohtml will now render only one page at a time, reducing the
4689 size of needed disk resources enormously.
4691 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4692 (imagePageName): New global variable.
4693 (psPageName, show_progress, currentPageNo): New global variables.
4694 (html_system): Close saved stderr and stdout handles.
4695 (write_end_image): Accept a parameter to control \O escape.
4696 (write_start_image): Adapted to new \O meaning.
4697 (char_buffer::write_upto_newline): Updated.
4698 (createAllPages): Replaced with...
4699 (createPage): This new function to create a single page for images.
4700 It uses `psselect' from the psutils package.
4701 (removeAllPages): Removed.
4702 (createImage): Updated.
4703 Handle progress display.
4704 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4705 (scanArguments): Add option -p.
4706 (makeTempFiles): Updated to create temp files for psPageName and
4708 (removeTempFiles): Removed.
4711 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4712 html_printer::write_header): Append `\0' to `buffer'.
4713 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4715 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4716 Handle `text_emitted'.
4717 (html_text::table_is_void): Slightly rewritten.
4718 (stop): New external symbol.
4719 (html_text::do_push) [DEBUGGING]: Use it and simplify.
4720 (html_text::shutdown): Call `dump_stack'.
4721 (html_text::do_space): Rewritten.
4722 * src/devices/grohtml/grohtml.man: Document -p and the need of
4725 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4727 Call \O[0] if `ps4html' is active.
4728 * tmac/s.tmac (@EQ, @EN): Handle html better.
4730 * tmac/html.tmac: Don't use black for background colour.
4732 * src/roff/troff/node.cc: Include `div.h'.
4733 (troff_output_file::really_print_line): Don't use `is_on'.
4734 (troff_output_file::word_marker, troff_output_file::flush_tbuf
4735 troff_output_file::check_charinfo,
4736 troff_output_file::put_char_width, troff_output_file::put_char,
4737 troff_output_file::determine_line_limits, troff_output_file::draw,
4738 real_output_file::begin_page, glyph_color_node::tprintf,
4739 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4741 (troff_output_file::really_on): Call `do_motion'.
4742 (suppress_node::tprint): Use `get_page_number' instead of `%'
4744 Call `reset_output_registers' conditionally on `is_on'.
4746 * doc/groff.texinfo: Document new syntax of \O.
4747 * NEWS, man/groff_diff.man: Updated.
4749 2002-05-22 Werner LEMBERG <wl@gnu.org>
4751 * MORE.STUFF: Add info about David Frey's deroff implementation.
4754 2002-05-16 Werner LEMBERG <wl@gnu.org>
4756 Pic's `with' attribute now accepts positions.
4758 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4759 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4761 (object_spec): Add rule for `WITH' and `position'.
4762 (relative_path): Give `corner' the precedence of `CHOP'.
4763 * src/preproc/pic/object.h (path): New members `pos' and
4765 * src/preproc/pic/object.cc: Updated initializers of `path'.
4766 (path::follow): Handle `is_position'.
4768 * doc/pic.ms: Completely updated grammar description.
4769 Many typographical improvements.
4771 2002-05-15 Werner LEMBERG <wl@gnu.org>
4773 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4774 code of x in range 0-127) also.
4775 * doc/groff.texinfo, man/groff_diff.man: Updated.
4777 Added keywords `north', `south', `east', and `west' for corners
4780 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4782 (yylex): Handle them.
4783 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4784 (corner): Handle them.
4786 2002-05-14 Werner LEMBERG <wl@gnu.org>
4788 * src/devices/grops/grops.man: Clarify handling of `download' file.
4790 2002-05-11 Werner LEMBERG <wl@gnu.org>
4792 Adding `warnscale' and `spreadwarn' requests, based on a patch from
4793 Jeffrey Friedl <jfriedl@yahoo.com>.
4795 * src/roff/troff/input.cc (spread_limit, warn_scale,
4796 warn_scaling_indicator): New global variables.
4797 (warnscale_request, spreadwarn_requests): New functions.
4798 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4799 (init_input_requests): Updated.
4800 (error_type): Add `OUTPUT_WARNING'.
4801 (do_error): Handle it.
4802 (output_warning): New warning function which shows output location.
4803 * src/roff/troff/env.h (spread_limit): New external variable.
4804 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4806 (distribute_space): Emit warning if added space is larger than
4808 (environment::possibly_break_line): Emit warning if a line can't
4809 be adjusted on both sides.
4811 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4813 2002-05-08 Werner LEMBERG <wl@gnu.org>
4815 * src/roff/troff/node.cc (special_node::special_node): Use
4816 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
4817 \X''\% crashes, for example.
4819 * doc/groff.texinfo: Document \! and \? used at top-level.
4821 2002-05-06 Werner LEMBERG <wl@gnu.org>
4823 * src/preproc/pic/pic.man: Fix some keyword syntax.
4824 Other minor typographical fixes.
4826 * src/roff/groff/groff.man: Fix typos.
4828 2002-05-04 Werner LEMBERG <wl@gnu.org>
4830 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4831 (ShortOpt[]): This to avoid problems with refer.
4833 * doc/pic.ms: Fix typo.
4834 Fix pic grammar description.
4836 * tmac/an-old.tmac (ne): Use de1, not de.
4838 2002-05-03 Werner LEMBERG <wl@gnu.org>
4840 * doc/groff.texinfo: Finished separation of glyphs and characters.
4841 Don't use the string `Appendix' for appendix headers (both in
4842 the text and the table of contents).
4843 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4846 Use registers LL and LT (similar to -ms) for controlling the
4847 length of title and line, respectively, in the -man and -mdoc
4850 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4851 (doc-setup-page-layout): Use \n[LL] and \n[LT].
4852 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4854 (an-header, an-p-footer): Use \n[LT].
4855 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4856 doc/groff.texinfo: Document it.
4858 2002-05-02 Werner LEMBERG <wl@gnu.org>
4860 * doc/fdl.texi: New file.
4861 * doc/groff.texinfo: Include it.
4862 Define and use @copying.
4863 Starting with separating glyph, symbol, and character.
4865 2002-04-27 Werner LEMBERG <wl@gnu.org>
4867 * Makefile.in (EXEEXT): Set it.
4868 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4871 * src/include/nonposix.h: Define GS_NAME.
4872 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4874 Some preliminary changes for EMX support under OS/2.
4876 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4877 __EMX__ similar to __MSDOS__.
4878 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4880 2002-04-25 Werner LEMBERG <wl@gnu.org>
4882 * doc/groff.texinfo: Integrated groff_out.man.
4885 2002-04-23 Werner LEMBERG <wl@gnu.org>
4887 * man/groff_out.man: Minor fixes.
4889 2002-04-23 Werner LEMBERG <wl@gnu.org>
4891 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4892 correct page references.
4893 Fixed many index entries.
4895 2002-04-23 Bernd Warken <bwarken@mayn.de>
4897 * man/roff.man: Enlarged.
4899 2002-04-22 Werner LEMBERG <wl@gnu.org>
4901 * doc/groff.texinfo: More examples, other fixes.
4903 2002-04-20 Werner LEMBERG <wl@gnu.org>
4905 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4906 will now form a chain, e.g.
4915 This is for compatibility with plan 9's troff.
4917 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4921 * doc/groff.texinfo: Add documentation of remaining requests and
4924 2002-04-19 Werner LEMBERG <wl@gnu.org>
4926 * doc/groff.texinfo: Add documentation of remaining escapes.
4928 * font/devdvi/generate/tc.map: Remove entry for `sr'.
4929 * font/devdvi/*TC: Regenerated.
4931 2002-04-18 Werner LEMBERG <wl@gnu.org>
4933 * src/roff/troff/input.cc (token::next): Make \H behave consistently
4934 if not in compatibility mode, i.e., increment relative to the
4936 * doc/groff.texinfo: Updated accordingly.
4938 2002-04-17 Werner LEMBERG <wl@gnu.org>
4940 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4942 2002-04-16 Bernd Warken <bwarken@mayn.de>
4944 * src/roff/groff/groff.man: Improve documentation of -P option.
4947 2002-04-15 Werner LEMBERG <wl@gnu.org>
4949 Add new escape \F to switch font family.
4951 * src/roff/troff/input.cc (token::next): Handle \F.
4952 * src/roff/troff/env.cc (environment::set_family): Handle
4954 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4957 2002-04-14 Werner LEMBERG <wl@gnu.org>
4959 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4962 2002-04-13 Werner LEMBERG <wl@gnu.org>
4964 Implement \f[] as an alternative to \fP. Change \mP and \MP to
4965 \m[] and \M[], respectively.
4967 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4968 (symbol::symbol): Handle NULL string and empty string differently.
4969 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4970 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4971 Add optional parameter.
4972 Updated calling functions.
4973 (get_copy, do_glyph_color, do_fill_color, token::next): Use
4975 * src/roff/troff/env.cc (environment::set_font): Ditto.
4977 * src/preproc/pic/troff.cc (troff_output::set_fill,
4978 troff_output::reset_color: Updated.
4980 * tmac/www.tmac: Updated.
4982 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4983 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4986 * tmac/Xps.tmac: Remove some redundant code.
4988 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4989 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
4990 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
4993 2002-04-13 Bernd Warken <bwarken@mayn.de>
4995 * src/include/printer.h, src/libs/libdriver/printer.cc
4996 (printer::change_fill_color): New member function.
4997 * src/libs/libdriver/input.cc (parse_D_command): Use it.
4999 2002-04-12 Werner LEMBERG <wl@gnu.org>
5001 * doc/groff.texinfo: Completed pass on gtroff reference.
5003 2002-04-11 Werner LEMBERG <wl@gnu.org>
5005 * doc/groff.texinfo: More fixes.
5007 2002-04-11 Bernd Warken <bwarken@mayn.de>
5009 * src/include/color.h: Decorate with `const'.
5012 * src/libs/libgroff.color.cc: Decorate with `const'.
5014 (color::color): Initialize members.
5015 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5016 command according to the documentation.
5018 * man/groff_out.man: Updated.
5021 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
5023 * src/preproc/html/pre-html.cc (write_start_image): Remove
5025 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5027 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5028 \C'hy' caused an assertion failure.
5030 * src/roff/troff/env.cc (environment::environment): Initialize
5032 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5034 2002-04-10 Werner LEMBERG <wl@gnu.org>
5036 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5037 Document pvs request and .pvs register.
5039 2002-04-09 Werner LEMBERG <wl@gnu.org>
5041 * doc/groff.texinfo: Improve and fix documentation of diversions
5044 2002-04-08 Werner LEMBERG <wl@gnu.org>
5046 * doc/groff.texinfo: Fix documentation of drawing functions.
5049 2002-04-07 Werner LEMBERG <wl@gnu.org>
5051 * doc/groff.texinfo: Better documentation of double quotes as
5055 2002-04-06 Werner LEMBERG <wl@gnu.org>
5057 * man/groff_font.man: Document names of special characters better.
5058 * doc/groff.texinfo: Minor improvements.
5060 * tmac/lbp.tmac: Load latin1.tmac.
5061 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5063 * font/devX*/*: Regenerated (all chars > 0x80 removed).
5065 2002-04-05 Werner LEMBERG <wl@gnu.org>
5067 * tmac/tty.tmac: Don't use shc request.
5068 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5071 * man/groff_diff.man: Minor fixes.
5073 * font/devlbp/*: Remove all `charXXX' entities.
5075 * src/libs/libgroff/font.cc (font::~font): Deallocate
5076 `special_device_coding'.
5077 (font::load): Use `new' for allocating `special_device_coding'.
5078 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5079 Removed unused member.
5081 2002-04-05 Werner LEMBERG <wl@gnu.org>
5083 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5084 (resource_manager::do_begin_binary,
5085 resource_manager::do_begin_data): Use it.
5087 * doc/texinfo.tex: Updated to version 4.2.
5089 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5090 (token::zero_width_break): New inline function.
5091 * src/roff/troff/input.cc (token::next): Use it.
5092 (token::description): Updated.
5093 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5094 (token::add_to_node_list, token::process): Use it.
5095 * NEWS, doc/groff.texinfo: Updated.
5097 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5098 * tmac/tty.tmac: Add missing backslash.
5100 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
5102 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5103 `.ps' register instead of `.s' to handle fractional point sizes.
5104 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5105 limit_box::output): Ditto.
5106 * src/preproc/eqn/other.cc (size_box::compute_metrics,
5107 size_box::output): Ditto.
5108 * src/preproc/eqn/over.cc (over_box::compute_metrics,
5109 over_box::output): Ditto.
5110 * src/preproc/eqn/script.cc (script_box::compute_metrics,
5111 script_box::output): Ditto.
5112 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5113 sqrt_box::output): Ditto.
5115 2002-04-03 Michael Selway <mas@ssl.co.uk>
5117 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5120 2002-04-03 Werner LEMBERG <wl@gnu.org>
5122 * doc/homepage.ms: Reduce title size.
5123 * doc/groff.texinfo: Fix documentation of .t register.
5124 Fix handling of colon.
5127 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5128 only if page length is positive to avoid a loop.
5130 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5133 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
5135 * src/include/nonposix.h, src/roff/groff/pipeline.c:
5136 s/__CYGWIN32__/__CYGWIN__/.
5138 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
5140 * doc/gnu.xpm: New image contributed by Emily Mulley.
5141 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5142 (homepage.html): Be dependent on gnu.eps.
5143 * doc/homepage.ms: Updated to new image.
5145 * src/devices/grohtml/post-html.cc (html_printer): New member
5147 (html_printer::flush_sbuf, html_printer::set_char): Set it.
5148 (html_printer::sbuf_continuation): Use it.
5150 2002-03-28 Werner LEMBERG <wl@gnu.org>
5152 * src/libs/libgroff/getopt.c: Updated to latest version.
5154 * tmac/README: More on hyphen.tex license.
5156 2002-03-26 Larry Kollar <kollar@alltel.net>
5158 * doc/groff.texinfo: Add documentation of most missing requests.
5160 2002-03-25 Werner LEMBERG <wl@gnu.org>
5162 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5163 of `+-', `mu', and `di', respectively.
5165 * font/devascii/R.proto, font/devutf8/R.proto,
5166 font/devlatin1/R.proto, font/devhtml/R.proto,
5167 font/devcp1047/R.proto, font/devlpb/*: Add them.
5168 * font/devps/generate/textmap: Ditto.
5169 * font/devps/*: Regenerated.
5170 * font/devlj4/generate/text.map: Add them.
5171 * font/devlj4/*: Regenerated.
5172 * font/devdvi/generate/tc.map: Use them.
5173 * font/devdvi/generate/texsy.map: Add them.
5174 * font/devdvi/*: Regenerated.
5175 * font/devX*/*: Regenerated.
5177 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5178 tmac/tty-char.tmac: Updated.
5180 * NEWS, man/groff_char.man: Updated.
5182 2002-03-24 Werner LEMBERG <wl@gnu.org>
5184 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5185 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5186 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5187 we use `.fchar' in dvi.tmac.
5188 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5189 * tmac/Xps.tmac: Simplify some char definitions.
5190 Add definition for \[f/].
5191 * man/groff_char.man: Updated for new X.tmac.
5193 * tmac/README: New file.
5195 2002-03-23 Phil Lobbes <phil@perkpartners.com>
5197 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5198 internal .y.o rule took precendence over the .y.cc rule, compiling
5199 the yacc files with gcc instead of g++.
5201 2002-03-23 Werner LEMBERG <wl@gnu.org>
5203 * tmac/dvi.tmac: Add replacement font for `CB'.
5205 * tmac/doc.tmac: s/request/macro/ in messages.
5206 (doc-generic-macro): Improve error message.
5207 * tmac/groff_mdoc.man: Minor improvements.
5209 2002-03-22 Werner LEMBERG <wl@gnu.org>
5211 * doc/groff.texinfo: Document possible conflict between `tr' and
5214 2002-03-21 Werner LEMBERG <wl@gnu.org>
5216 Improve handling of hyphenation patterns. It is now possible to
5217 use most of TeX's pattern files unmodified. To make the process
5218 more flexible, a new request `hpfcode' has been added which
5219 provides a character code mapping for the `hpf' request. See
5220 comment before hpf_getc() for more details.
5222 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5224 (read_patterns_file): Additional parameter for exception dictionary.
5225 Extended to recognize \pattern, \hyphenation, and \endinput.
5226 (do_hyphenation_patterns_file): Updated.
5227 * src/roff/troff/env.h (hpf_code_table): New extern.
5229 * src/roff/troff/input.cc (hpf_code_table): New array.
5230 (init_hpf_code_table, hyphenation_patterns_file_code): New
5232 (hyphenation_code): Handle translation from `trin' correctly.
5233 (main, init_input_requests): Updated.
5234 (charinfo::set_translation): Handle hyphenation code also.
5236 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5239 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5240 char' is used for offsets in hyphenation exceptions.
5242 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5244 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5246 2002-03-20 Larry Kollar <kollar@alltel.net>
5248 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5251 2002-03-18 Werner LEMBERG <wl@gnu.org>
5253 * tmac/html.tmac: Fix serious typo.
5255 2002-03-17 Larry Kollar <kollar@alltel.net>
5257 * doc/groff.texinfo: Add documentation for `writec' request.
5259 2002-03-17 Werner LEMBERG <wl@gnu.org>
5261 Added request `hpfa' to append hyphenation patterns.
5263 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5265 (hyphenation_patterns_file): Renamed to...
5266 (do_hyphenation_patterns_file): This.
5267 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5269 (init_hyphen_requests): Updated.
5270 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5272 2002-03-16 Werner LEMBERG <wl@gnu.org>
5274 Added request `writec' in analogy to `tmc'.
5276 * src/roff/troff/input.cc (write_request): Renamed to...
5277 (do_write_request): This.
5278 Added one parameter.
5279 (write_request, write_request_continue): New functions.
5280 (init_input_requests): Updated.
5281 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5283 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5285 * NEWS: Document it.
5287 2002-03-15 Werner LEMBERG <wl@gnu.org>
5289 * man/groff.man: Add writem request.
5291 Add request `trin' (translate input) to make `.asciify' work
5292 correctly. This is necessary since `charXXX' entity names are no
5293 longer hardcoded in font definition files.
5295 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5296 `translate_input' members.
5297 (charinfo::set_asciify_code, charinfo::get_asciify_code,
5298 charinfo::set_translation_input): New methods.
5299 (charinfo::set_translation): Add third argument.
5300 * src/roff/troff/input.cc (charinfo:set_translation): Set
5302 (do_translate): Add second argument.
5303 (translate_input): New function.
5304 (init_input_requests): Updated.
5305 * src/roff/troff/node.cc (glyph_node::asciify,
5306 composite_node::asciify): Use `get_asciify_code'.
5308 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5310 * NEWS, man/groff.man, man/groff_diff.man: Updated.
5312 2002-03-14 Larry Kollar <kollar@alltel.net>
5314 * doc/groff.texinfo: Improve documentation of .RS and .RE.
5316 2002-03-14 Werner LEMBERG <wl@gnu.org>
5318 Add a new request `sizes' similar to the `sizes' command in DESC
5321 * src/roff/troff/env.cc (override_sizes): New function.
5322 (init_env_requests): Use it.
5323 * src/roff/troff/token.h: Export `read_string'.
5324 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5326 2002-03-12 Werner LEMBERG <wl@gnu.org>
5328 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5330 2002-03-10 Werner LEMBERG <wl@gnu.org>
5332 * tmac/pspic.tmac: Add support for -Tdvi.
5333 * tmac/dvi.tmac: Include pspic.tmac.
5334 * src/devices/grodvi/grodvi.man: Document it.
5337 * font/devlj4/generate/Makefile: Fix URL of metric files.
5339 2002-03-09 Werner LEMBERG <wl@gnu.org>
5341 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5343 2002-03-09 Larry Kollar <kollar@alltel.net>
5345 * tmac/groff_ms.man: Add documentation for RS and RE macros.
5347 2002-03-08 Werner LEMBERG <wl@gnu.org>
5349 * doc/groff.texinfo: Fixes for texinfo 4.1.
5351 2002-03-07 Werner LEMBERG <wl@gnu.org>
5353 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5355 Handle CYGWIN properly.
5357 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
5359 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5360 * tmac/lbp.tmac: Add some font translations.
5362 2002-03-02 Werner LEMBERG <wl@gnu.org>
5364 * font/devcp1047/R.proto, font/devlatin1/R.proto,
5365 font/devhtml/R.proto: Remove `charXXX' entries.
5366 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5369 * font/devlj4/generate/text.map: Remove `charXXX' entries.
5370 * font/devlj4/*: Regenerated all font definition files.
5371 * tmac/lj4.tmac: Load latin1.tmac.
5373 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5374 from 2000-06-17: LJ4 metric files are *not* text files.
5376 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5377 register to test for EBCDIC.
5379 2002-03-01 Werner LEMBERG <wl@gnu.org>
5381 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5382 files (as grops already does).
5383 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5385 * src/devices/grops/grops.man: Document comment lines in encoding
5388 * tmac/cp1047.tmac: New file.
5389 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5390 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5391 * tmac/Makefile.sub (NORMALFILES): Updated.
5393 * tmac/ec.tmac: Don't load latin1.tmac again.
5395 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5396 font/devps/generate/dingbats.map,
5397 font/devps/generate/dingbats.rmap, font/devps/text.enc,
5398 font/devps/generate/Makefile (symbolmap): Add header comment.
5399 * font/devps/generate/textmap: Ditto.
5400 Remove `charXXX' entries.
5401 * font/devps/symbolmap: Regenerated.
5402 * font/devps/*: Regenerated all font definition files.
5404 2002-02-28 Werner LEMBERG <wl@gnu.org>
5406 Add color support to grodvi (for drawing colors are currently
5407 translated to gray values).
5409 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5410 (dvi_printer): Add `cur_color' member.
5411 (dvi_printer::set_color): New function.
5412 (draw_dvi_printer): Remove `fill'.
5413 (draw_dvi_printer::fill_next): Pass environment as parameter.
5414 Update code for new color support translated to gray.
5415 (dvi_printer::set_char): Updated.
5416 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5417 changes crossing the page border.
5418 (dvi_printer::draw): Updated.
5419 Remove cases `f' and `F'.
5420 * tmac/dvi.tmac: Add color definitions.
5421 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5423 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5426 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5427 versions of autoconf.
5428 * configure: Updated.
5430 * doc/homepage.ms: Use `.blm'.
5431 * tmac/www.tmac (www-depth): New auxiliary variable.
5432 (www-pop-level): Don't issue HTML tag.
5433 (ULS, ULE, LI): Use absolute indentation.
5435 * src/devices/grops/ps.cc (ps_printer::begin_page,
5436 ps_printer::end_page): Switch forth and back to default color while
5437 starting a new page.
5439 2002-02-27 Werner LEMBERG <wl@gnu.org>
5441 Add EC and TC fonts to devdvi.
5443 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5444 * font/devdvi/generate/cork.map: Renamed to...
5445 * font/devdvi/generate/ec.map: This.
5446 Remove entry for `aq'.
5447 * font/devdvi/generate/tc.map: New file.
5448 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5451 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5452 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5453 * tmac/ec.tmac: New file.
5454 * tmac/Makefile.sub (NORMALFILES): Updated.
5455 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5456 * man/groff_char.man: Check `ECFONTS' register.
5458 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5460 2002-02-26 Werner LEMBERG <wl@gnu.org>
5462 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5463 * font/devdvi/generate/cork.map: Add 'y and 'Y.
5464 * font/devdvi/*: Updated.
5465 * tmac/dvi.tmac: Formatting.
5467 Add font `HBI' for the dvi output.
5468 Add support for font families `T' and `H'.
5470 * font/devdvi/HBI: New file.
5471 * font/devdvi/B: Renamed to ...
5472 * font/devdvi/TB: This.
5473 * font/devdvi/BI: Renamed to ...
5474 * font/devdvi/TBI: This.
5475 * font/devdvi/I: Renamed to ...
5476 * font/devdvi/TI: This.
5477 * font/devdvi/R: Renamed to ...
5478 * font/devdvi/TR: This.
5479 * font/devdvi/H: Renamed to ...
5480 * font/devdvi/HR: This.
5481 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5482 * font/devdvi/generate/Makefile (HBI): New rule.
5484 (R, I, B, BI, H): Renamed to ...
5485 (TR, TI, TB, TBI, HR): This, respectively.
5487 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5488 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5489 Add `styles' and `family' keywords.
5490 * tmac/dvi.tmac: Alias `H' to `HR'.
5491 Add some fspecial requests for italic fonts.
5492 Add TR and TI as special.
5493 Add support for `_' with font CWI.
5495 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5496 operator `:'. Until now, the expression `0:1' would return 2
5499 2002-02-25 Werner LEMBERG <wl@gnu.org>
5501 * man/groff_char.man: Added some missing PS glyph names (from the
5503 * font/devps/generate/textmap, font/devps/symbolmap: Add
5506 * doc/groff.texinfo: Minor additions and fixes.
5507 * man/groff_diff.man: Remove documentation of fp request. This
5508 is already covered in the original troff manual.
5509 Updated to be consistent with other doc files.
5512 2002-02-24 Werner LEMBERG <wl@gnu.org>
5514 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5516 Define new variable OTHERDEVDIRS (containing `font/devlj4
5517 font/devlbp' if not EBCDIC).
5518 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5519 (OTHERDEVDIRS): New variable.
5520 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5521 * configure: Regenerated.
5523 * NEWS, src/devices/grotty/grotty.man: Updated.
5525 2002-02-23 Werner LEMBERG <wl@gnu.org>
5527 * src/roff/troff/input.cc (do_overstrike, do_bracket,
5528 get_line_arg): Honour input level.
5530 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5532 * font/*/*: Implement it in all font files.
5533 * font/devps/generate/textmap, font/devps/generate/symbolchars,
5534 * font/devps/symbolmap: Updated.
5535 * font/devlj4/generate/text.map: Updated.
5536 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5537 * font/devdvi/generate/texmi.map: Updated.
5539 * font/devutf8/R.proto: Remove all `charXXX' entries.
5540 * font/devutf8/NOTES: Updated.
5542 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5545 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5547 * NEWS, man/groff_char.man: Updated.
5549 2002-02-21 Phil Lobbes <phil@perkpartners.com>
5551 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5553 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5555 * src/roff/grog/grog.pl: Fix computation of $refer.
5557 2002-02-19 Werner LEMBERG <wl@gnu.org>
5559 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5560 `snprintf' and `vsnprintf'.
5562 * src/include/htmlindicate.h: Renamed to...
5563 * src/include/htmlhint.h: This.
5564 * src/include/Makefile.sub: Updated.
5565 * src/preproc/eqn/main.cc: Updated.
5567 2002-02-18 Werner LEMBERG <wl@gnu.org>
5569 * man/roff.man, man/groff_out.man, man/groff.man,
5570 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5571 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5573 * win32-diffs: Updated.
5575 2002-02-17 Werner LEMBERG <wl@gnu.org>
5577 * doc/Makefile (clean): Add *.eps.
5578 (MEMACROS): Removed.
5579 (TFLAG): New variable.
5582 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5584 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5586 * tmac/www.tmac: Use dummy diversion while resetting and disabling
5588 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5590 * src/roff/troff/troff.man: Fix order of parameter description.
5594 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
5596 Simplify image handling for grohtml.
5599 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5601 (html_text::dump_stack): Don't emit newline while debugging.
5602 (html_text::do_push) [DEBUGGING]: Print more info.
5603 (html_text::check_emit_text): Fix handling of <p>.
5604 * src/devices/grohtml/html.h: Updated.
5605 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5606 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
5607 send its data to stderr also.
5609 (simple_output::space_or_newline) [DEBUGGING]: Removed.
5610 * src/devices/grohtml/post-html.cc (html_printer::do_links,
5611 html_printer::html_printer): Remove `DEBUGGING' conditionals.
5613 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5615 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5616 is_inline_image): Removed.
5617 (html_begin_suppress, html_end_suppress): Don't take a parameter.
5618 (graphic_start, graphic_end): Removed.
5619 * src/include/htmlindicate.h: Updated.
5620 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5621 (macroset_template): New global variable.
5622 (makeFileName): Use `macroset_template'.
5623 (write_end_image): Don't take a parameter.
5625 (write_start_image: Don't emit newline.
5626 (char_buffer::write_upto_newline): Updated.
5627 (char_buffer::skip_to_newline): Renamed to ...
5628 (char_buffer::skip_until_newline): This.
5630 (char_buffer::write_file_troff, char_buffer::write_file_html):
5632 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5633 (removeAllPages): Remove `DEBUGGING' conditionals.
5634 (addRegDef, dump_args): New functions.
5635 (char_buffer::do_html, char_buffer::do_image): Handle
5636 `www-image-template' command line variable.
5637 Add more debugging code.
5638 (addps4html): Removed.
5639 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5641 * src/preproc/eqn/main.cc: Include `ctype.h'.
5642 (suppress_html): Removed.
5644 (inline_equation): Use `html_begin_suppress' and
5645 `html_end_suppress'.
5646 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5647 (troff_output::start_picture, troff_output::finish_picture):
5649 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5650 (process_input_file): Updated.
5652 * src/roff/troff/div.cc (page_number): Set page number only if the
5653 `ps4html' register isn't defined.
5654 * src/roff/troff/input.cc (image_no): New external variable.
5655 (do_suppress): Use it.
5656 * src/roff/troff/node.h (suppress_node::image_id): New member.
5657 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5658 (suppress_node::suppress_node): Initialize `image_id' member.
5659 (suppress_node::same): Handle `image_id' also.
5660 (suppress_node::copy): Updated.
5661 (last_image_id): New global variable.
5662 (suppress_node::tprint): Use it.
5664 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5666 * tmac/pspic.mac (PSPIC): Fix html support.
5667 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5668 * tmac/www.tmac (www-image-template): Set up.
5669 (HTMLINDEX): Renamed to...
5671 (BODYCOLOR): Renamed to...
5673 (BACKGROUND): Renamed to...
5675 (URL): Change order of parameters for consistency.
5676 (MAILTO): Renamed to...
5678 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5679 (IMG, PIMG, MPIMG): This.
5680 (HTML-H-BEGIN, HTML-H-END): Renamed to...
5682 (LINKS): Renamed to...
5684 (LINE): Renamed to...
5686 (NO-AUTO-RULE): Renamed to...
5688 (HTML-TL): Renamed to...
5690 (UL-BEGIN, UL-END): Renamed to...
5692 (DROPCAP): Renamed to...
5694 (TS, TE, EQ, EN): Provide default definitions.
5695 (www-make-unique-name): Updated.
5696 (HTML-IMAGE-INLINE): Fix typo.
5697 * tmac/groff_www.man: Updated.
5699 * doc/Makefile (homepage.html): Add option -r to grohtml.
5700 Use shortened image name.
5701 * doc/groff.texinfo: Updated info on grohtml strings and macros.
5702 * doc/homepage.ms: Updated and extended.
5704 2002-02-14 Werner LEMBERG <wl@gnu.org>
5706 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5708 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5709 SGR_BACK_DEFAULT_COLOR): Replaced with ...
5710 (tty_printer::put_color): Use it.
5711 (ttr_printer::end_page): Simplify.
5713 2002-02-13 Werner LEMBERG <wl@gnu.org>
5715 * tmac/groff_tmac.man: Moved to...
5716 * man/groff_tmac.man: This place.
5717 * tmac/Makefile.sub, man/Makefile.sub: Updated.
5719 2002-02-12 Werner LEMBERG <wl@gnu.org>
5721 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5722 $(COMPILE.c) to not include groff's assert.h.
5724 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5726 * NEWS, src/drivers/grotty/grotty.man: Document it.
5728 2002-02-11 Werner LEMBERG <wl@gnu.org>
5730 * src/libs/snprintf/snprintf.c: Updated to latest version
5733 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
5734 test whether there is `.]' also.
5735 Don't check for spaces after `.['.
5736 * src/roff/grog/grog.sh: Do the same.
5738 2002-02-10 Werner LEMBERG <wl@gnu.org>
5742 * src/libs/libgroff/illegal.cc: Renamed to ...
5743 * src/libs/libgroff/invalid.cc: This.
5744 (illegal_char_table): Renamed to ...
5745 (invalid_char_table): This.
5746 * src/libs/libgroff/Makefile.sub: Updated.
5747 * win32-diffs: Updated.
5749 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5750 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5751 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5752 font::load), src/preproc/eqn/main.cc (read_line, main),
5753 src/preproc/eqn/lex.cc (file_input::read_line),
5754 src/preproc/pic/lex.cc (file_input::read_line,
5755 simple_file_input::get, simple_file_input::peek),
5756 src/preproc/pic/main.cc (top_input::get, top_input::peek),
5757 src/preproc/pic/pic.man, src/preproc/refer/main.cc
5758 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5759 do_bib), src/preproc/tbl/main.cc (table_input::get),
5760 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5761 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5762 do_zero_width, read_request, encode_char, ps_get_line,
5763 transparent_file, get_char_for_escape_name, transparent_translate,
5764 asciify, input_char_description, read_string, set_string),
5765 src/roff/troff/env.cc (environment::add_html_tag),
5766 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5768 * src/include/lib.h: Updated.
5770 * src/preproc/eqn/eqn.cc: Removed.
5774 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5776 2002-02-09 Werner LEMBERG <wl@gnu.org>
5778 * doc/gnu.xpm: New image.
5779 * doc/Makefile (DOCS): Add homepage.ps.
5780 Add rules for converting xpm->png and xpm->eps.
5781 Use `gnu.{xpm,eps}' as image names.
5782 * doc/homepage.ms: Updated.
5784 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
5786 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5787 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5788 Remove calls to `B1' and `B2'
5789 (PNG-IMAGE): New macro for inclusion of images in PNG format.
5790 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5791 auxiliary variables for MARGIN-PNG-IMAGE.
5792 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5793 auxiliary macros for MARGIN-PNG-IMAGE.
5794 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5796 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5797 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5798 (DROPCAP): New macro to produce dropcap characters.
5799 (www-do-image): Renamed back to...
5800 (HTML-DO-IMAGE): This.
5801 Updated all callers.
5803 * doc/Makefile (gnubw.eps): Updated.
5804 * doc/homepage.ms: Updated.
5806 2002-02-08 Werner LEMBERG <wl@gnu.org>
5808 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5809 Added `linethick' to table in section `Style Variables'.
5811 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
5813 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5815 2002-02-07 Werner LEMBERG <wl@gnu.org>
5817 Adding options -C (compatibility mode) and -c (grotty's old output
5820 * src/roff/nroff/nroff.sh: Implement it.
5822 * NEWS, src/roff/nroff/nroff.man: Updated.
5824 * PROBLEMS: Document bison 1.32 bug.
5826 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5828 * src/roff/troff/node.cc (make_tfont): Define it earlier.
5829 * src/roff/troff/div.h: Add prototype for `end_diversions'.
5830 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5831 * src/roff/troff/env.h: Add prototype for `title'.
5833 Adding EBCDIC support to grotty.
5835 * src/devices/grotty/tty.cc (CSI): New macro.
5836 (SGR_*, tty_printer::put_color): Use it.
5838 2002-02-06 Werner LEMBERG <wl@gnu.org>
5840 Implementing color support in grotty. The new switch -c activates
5841 the old drawing scheme, disabling color at the same time. The new
5842 switch `-i' selects italic instead of underlining (SGR only).
5844 * src/devices/grotty/tty.cc (putstring): New define instead of
5845 `fputs'. Updated all callers.
5846 (old_drawing_scheme): New global variable.
5847 (COLOR_CHANGE): New enum value.
5848 (SGR_*): New defines containing color handling escape sequences.
5849 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5850 (glyph): New members `back_color_idx' and `fore_color_idx'.
5851 (glyph::order): Add COLOR_CHANGE.
5852 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5853 `is_underline', `is_bold', `cu_flag', `tty_colors'.
5854 New methods `make_underline', `make_bold', `color_to_idx',
5855 `change_color', `put_color'.
5856 (cu_flag): Moved into `tty_printer' class.
5857 (tty_printer::tty_printer): Initialize colors.
5858 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5859 tty_printer::draw, tty_printer::end_page): Handle colors also.
5860 (main): Add options `-c' and `-i'.
5862 * NEWS, src/devices/grotty/grotty.man: Updated.
5864 * src/include/errarg.h (errarg): Add support for `unsigned int'.
5865 * src/libs/libgroff/errarg.c: Implement it.
5867 * src/include/printer.h (printer): Add `change_color' method
5868 (currently used by grotty only).
5869 * src/libs/libdriver/printer.cc: Implement it.
5870 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5871 call to `pr->change_color'.
5873 * src/roff/troff/node.cc (troff_output_file::fill_color,
5874 troff_output_file::glyph_color): Call `do_motion'.
5876 * tmac/tty.tmac: Add color definitions.
5878 * src/roff/groff/groff.man: Minor fixes.
5880 2002-02-05 Bernd Warken <bwarken@mayn.de>
5882 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5883 it. This is a preparation for future changes.
5885 2002-02-05 Werner LEMBERG <wl@gnu.org>
5887 * src/roff/troff/input.cc (process_input_stack): Fix the case
5888 where leading spaces are followed by \f or \s; previously, an
5889 incorrect space width has been used.
5891 * doc/roff.man (quoted_char): Fix argument.
5892 (comment): Define string.
5894 2002-02-04 Larry Kollar <kollar@alltel.net>
5896 * doc/groff.texinfo: More fixes.
5898 2002-02-04 Werner LEMBERG <wl@gnu.org>
5900 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5901 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5902 `restore_compatibility' before `output_string' -- the LINE_STRING
5903 register now already contains proper switches from and to
5906 * man/groff_char.man: Add Euro symbol.
5907 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5908 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5909 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5912 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5914 (.texinfo.html): Add support for texinfo->html.
5916 2002-02-03 Werner LEMBERG <wl@gnu.org>
5918 Added three new requests `ds1', `as1', and `ami'. The former two
5919 are equivalent to `ds' and `as' with the difference that
5920 compatibility mode is saved on entry, switched off during string
5921 expansion, and restored on exit. The latter is the pendant to `dei'
5924 (do_define_string): Use `define_mode' and `calling mode'.
5925 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5926 end of string, respectively.
5927 (define_string, append_string): Use `calling_mode'.
5928 (define_nocomp_string, append_nocomp_string,
5929 define_string_indirect): New functions.
5930 (init_input_requests): Updated.
5931 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5933 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5934 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
5935 mm macro package accesses this string register directly.
5936 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5938 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
5941 2002-02-02 Larry Kollar <kollar@alltel.net>
5943 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5945 2002-01-31 Werner LEMBERG <wl@gnu.org>
5947 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5949 2002-01-31 Bernd Warken <bwarken@mayn.de>
5951 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5952 * man/groff_out.man: Revised and updated.
5954 2002-01-30 Bernd Warken <bwarken@mayn.de>
5956 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5957 out the unused `{' and `}' commands. Undefined by default.
5958 (IntArray): Make `data' private.
5959 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5960 new methods instead.
5961 (skip_line_D, skip_to_end_of_line): New functions.
5962 (get_D_fixed_args): Use `skip_line_D'.
5963 Changed to handle dummy odd arguments by ...
5964 (get_D_fixed_args_odd_dummy): This new function.
5965 (get_D_variable_args): Split some code into ...
5966 (get_possibly_integer_args): This new function.
5967 (send_draw): Use more `const'.
5968 (delete_current_env): New function.
5969 (position_to_end_of_args): Use `size_t'.
5971 (send_draw): Updated.
5972 (parse_D_command): Handle `c', `C', and `t' better.
5976 2002-01-29 Werner LEMBERG <wl@gnu.org>
5979 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5980 @Def...ListEnd which replaces @Def...x. This is necessary to get
5981 proper HTML output -- see the comment in the file for more
5985 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
5987 Fixes to make color changes of 2002-01-21 work with grohtml.
5989 * src/devices/grohtml/post-html.cc (style): Updated.
5990 (html_printer): Remove unused methods.
5991 (html_printer::do_font, html_printer::draw, html_printer::set_char,
5992 html_printer::special): Updated.
5993 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5994 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5995 Added some debugging code.
5996 (html_text::start_tag): Updated.
5997 (html_text::do_push): New method.
5998 (html_text::push_para): Call it.
5999 Add method for handling color.
6000 (html_text::do_color): Updated.
6001 (html_text::shutdown): Handle color.
6002 * src/devices/grohtml/html-text.h (tag_definition): New member
6006 2002-01-28 Werner LEMBERG <wl@gnu.org>
6008 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6010 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
6012 Add two switches -a and -g to control the antialiasing bits for
6013 text and graphics, respectively.
6015 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6017 * src/devices/grohtml/grohtml.man: Document them.
6018 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6020 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6021 (setupAntiAlias): New function.
6022 (createAllPages): Updated.
6023 (scanArguments): Handle `-a' and `-g'.
6024 (main): Call `setupAntiAlias'.
6027 2002-01-27 Werner LEMBERG <wl@gnu.org>
6029 * doc/groff.texinfo (Def*): Call index function after deffn.
6031 * tmac/html.tmac: Call `nroff' request.
6033 2002-01-26 Larry Kollar <kollar@alltel.net>
6035 * tmac/groff_ms.man: Add some omissions.
6037 2002-01-25 Larry Kollar <kollar@alltel.net>
6039 * tmac/groff_ms.man: Typographical improvements.
6041 2002-01-25 Werner LEMBERG <wl@gnu.org>
6043 * doc/groff.texinfo: Updated version and copyright.
6044 * src/devices/grops/grops.man: Updated.
6046 * tmac/groff_tmac.man: Fix `ig' macro.
6048 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6050 Use `.ne' unconditionally everywhere.
6051 (TS): Only insert some vertical space. Doing a page break is no
6052 longer necessary due to the redefinition of the `ne' request.
6054 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6055 warning for unknown subcommands but parse and pass them to the
6058 2002-01-24 Werner LEMBERG <wl@gnu.org>
6060 * tmac/groff_www.man, NEWS: Fix typos.
6062 2002-01-21 Werner LEMBERG <wl@gnu.org>
6064 Complete revision of color support:
6066 Adapt programs to the new libdriver/input.cc.
6068 Color spaces are no longer converted to RGB but transferred as-is
6069 in the troff intermediate output format.
6071 Handle default color gracefully. troff now supports a `default'
6072 color (which can't be changed).
6074 grops will now use the proper color space functions if available.
6078 Note that currently grohtml doesn't handle colors properly. This
6081 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6082 (ui_to_a): New function.
6083 * src/include/lib.h: Updated.
6085 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6086 (color): Simplified; removed all `double' members and methods.
6087 A new array `components' now holds the color parameters.
6088 (color::is_default, color::get_components): New methods.
6089 (color::operator==, color:operator!=): New.
6090 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6091 to make access to the `components' array more comprehensible.
6092 * src/libs/libgroff/color.cc: Implement new color support.
6093 (atoh): Small fixes.
6094 (color::read_encoding): Simplified for new troff intermediate color
6096 (default_color): New global variable.
6098 * src/roff/troff/input.cc (default_symbol): New global variable.
6099 (lookup_color): Use it.
6100 (default_black): Removed.
6101 (do_glyph_color, do_fill_color): Simplified.
6102 (define_color): Handle default color.
6104 (do_if_request): Handle default color.
6105 * src/roff/troff/env.cc (environment::environment): Initialize
6106 colors with `default_color'.
6107 * src/roff/troff/node.cc (troff_output_file::put): Add method
6109 (troff_output_file::hex): Removed.
6110 (troff_output_file::fill_color, troff_output_file::glyph_color):
6111 Updated to include/color.h and libdriver/input.cc.
6113 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6114 fill color properly (identically to the outline color). \D'f...'
6115 doesn't work any more.
6116 All function calls to it updated.
6118 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6120 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6123 * src/devices/grops/ps.cc (ps_output::put_color): New method.
6124 (ps_printer::sbuf_color): Make a real member instead of pointer.
6125 (ps_printer::fill_color, ps_printer::output_color): Removed.
6126 (ps_printer::ps_printer): Updated.
6127 (ps_printer::set_char): Ditto.
6128 (ps_printer::set_color): Use various color schemes.
6129 Use `put_color' method.
6130 (ps_printer::flush_sbuf): Don't set color.
6131 (ps_printer::fill_path): Take `environment' as parameter.
6132 Simplify color handling.
6133 (ps_printer::set_line_thickness): Renamed to ...
6134 (ps_printer::set_line_thickness_and_color): This (and updated).
6135 (ps_printer::set_color): Change second parameter from `complete'
6136 to `fill' which better describes what it does.
6137 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6138 and text in the right order.
6140 Remove branches for `f' and `F'; this is handled by
6142 * src/devices/grops/ps.h: Updated.
6143 * font/devps/prologue (FL): Redefined.
6144 ({F,C}r,k,g: New color functions (with and without filling).
6146 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6147 * man/groff_diff.man, man/groff.man, man/groff_out.man,
6148 doc/groff.texinfo, NEWS: Updated.
6150 2002-01-20 Bernd Warken <bwarken@mayn.de>
6152 * src/libs/libdriver/input.cc: Completely rewritten. See comments
6153 in this file for what has been changed.
6155 2002-01-19 Werner LEMBERG <wl@gnu.org>
6157 * test-groff: Fix GROFF_FONT_PATH.
6158 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6159 is read before .TH or .Dd is parsed.
6161 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
6163 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6164 quadrant boundaries.
6166 2002-01-18 Werner LEMBERG <wl@gnu.org>
6168 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
6171 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
6173 * tmac/doc.common: Initialize %I register for the %I macro to
6174 avoid (harmless) warning.
6175 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6176 when in the SYNOPSIS section.
6178 2002-01-17 Bruno Haible <haible@clisp.cons.org>
6180 * src/preproc/pic/lex.cc (get_token): Fix typo.
6182 2002-01-17 Werner LEMBERG <wl@gnu.org>
6184 * devices/grops/ps.cc: Fix incorrectly applied last patch.
6186 2002-01-17 Larry Kollar <kollar@alltel.net>
6188 * tmac/groff_ms.man: Completely rewritten.
6190 2002-01-16 Werner LEMBERG <wl@gnu.org>
6192 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6194 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
6196 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6198 (ps_printer::draw): Ditto.
6200 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
6202 * tmac/groff_mdoc.man: Minor fixes.
6204 2002-01-13 Werner LEMBERG <wl@gnu.org>
6206 * man/groff_out.man: Some fixes.
6208 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
6210 * doc/pic.ms: Fix typos.
6212 2002-01-12 Werner LEMBERG <wl@gnu.org>
6214 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6216 2002-01-10 Werner LEMBERG <wl@gnu.org>
6218 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6222 2002-01-09 Bernd Warken <bwarken@mayn.de>
6224 * man/groff_out.man: Revised.
6225 * man/roff.man: Minor fixes.
6226 * src/roff/troff/troff.man: Some reordering.
6228 2002-01-09 Werner LEMBERG <wl@gnu.org>
6230 * tmac/an-old.tmac: Add dummy macros for equation support.
6232 2002-01-07 Werner LEMBERG <wl@gnu.org>
6234 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6236 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
6238 * tmac/groff_man.man: Small improvements.
6240 2002-01-07 Bernd Warken <bwarken@mayn.de>
6242 * man/groff_diff.man: Revised.
6244 2002-01-06 Werner LEMBERG <wl@gnu.org>
6246 * tmac/www.tmac: Remove extraneous backslash.
6248 2002-01-06 Bernd Warken <bwarken@mayn.de>
6250 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6252 2002-01-05 Werner LEMBERG <wl@gnu.org>
6254 Integrated groffer, contributed by Bernd Warken.
6256 * contrib/groffer/*: New.
6257 * Makefile.in, NEWS: Updated.
6259 2002-01-04 Werner LEMBERG <wl@gnu.org>
6261 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6262 registers defined in macro packages.
6263 Revising the ms part.
6265 2002-01-04 Larry Kollar <kollar@alltel.net>
6267 * doc/groff.texinfo: Add documentation for ms macros.
6269 2002-01-02 Werner LEMBERG <wl@gnu.org>
6271 First step in adding PS support for the Euro symbol. `eu' is the
6272 official Euro logo, `Eu' is a font-specific glyph variant.
6274 * font/devps/text.enc: Add `Euro' at position 9.
6275 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6276 * font/devps/symbolmap: Regenerated.
6280 2002-01-02 Bernd Warken <bwarken@mayn.de>
6282 * man/roff.man: Revised.
6284 2002-01-01 Bernd Warken <bwarken@mayn.de>
6286 * src/roff/groff/groff.man: Completely rewritten.
6288 2001-12-31 Werner LEMBERG <wl@gnu.org>
6290 * doc/Makefile: Updated.
6292 2001-12-30 Werner LEMBERG <wl@gnu.org>
6294 * tmac/www.tmac: Make all names of internal macros/registers/strings
6295 lowercase, and prepend `www-'.
6296 Other minor changes.
6297 * src/roff/troff/troff.man: Add preprocessor string at BOF.
6299 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
6301 Implement option `-b' in grohtml to set the HTML background colour.
6303 * src/devices/grohtml/post-html.cc (default_background): New global
6305 (html_printer::html_printer): Initialize `background' to
6306 `default_background'.
6307 (main): Implement option `-b'.
6309 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6311 * src/devices/grohtml/grohtml.man: Updated.
6312 * doc/Makefile (.ms.html): Use `-b'.
6313 * tmac/html.tmac: Don't set background color.
6315 Add new grohtml tag `.html-tl'.
6317 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6319 (title_desc::title_desc): Updated.
6320 (html_printer::troff_tag): Handle `.html-tl'.
6321 (html_printer::write_title): Use `with_h1'.
6322 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6323 (HTML-TL): New macro.
6325 Add support for unordered lists in HTML.
6327 * tmac/www.tmac (www-level): New auxiliary register.
6328 (www-level1, www-level2, www-level3): New auxiliary strings.
6329 (www-push-level, www-pop-level): New auxiliary macros
6330 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6334 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6335 (DEFAULT_VERTICAL_OFFSET): Removed.
6336 (IMAGE_BOARDER_PIXELS): Set to 0.
6337 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6338 (vertical_offset): Initialize with 0.
6339 (gsPaper): New global variable.
6340 (get_resolution): Scan for and return unsigned int.
6341 (get_papersize): New function to get paper length from devps/DESC.
6342 (determine_vertical_offset): New function.
6343 (createAllPages): Produce gray-level images and use proper page
6345 (createImage): Use `-quiet' option of pnmcrop.
6346 (addZ): Fix passing of `-Z'.
6347 (scanArguments): Fix handling of `-o'.
6348 (main): Call `determine_vertical_offset'.
6349 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6352 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6353 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6354 glyph descenders properly.
6356 * doc/homepage.ms: Include `gnubw.eps'.
6357 * doc/Makefile (gnubw.eps): New rule.
6358 (homepage.html): Depend on `gnubw.eps'.
6360 2001-12-25 Werner LEMBERG <wl@gnu.org>
6362 * src/roff/troff/input.cc (default_black): Fix return value.
6364 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
6366 * tmac/doc-common (Dt): Change output of architecture strings.
6367 Do some syntax cleanup.
6368 * tmac/groff_mdoc.man: Updated.
6370 2001-12-23 Werner LEMBERG <wl@gnu.org>
6372 Adding an `itc' request (input line trap accepting \c).
6374 * src/roff/troff/env.h (environment): New member
6375 `continued_input_trap'.
6376 Make `do_input_trap' a friend function instead of `input_trap'.
6377 * src/roff/troff/env.cc (environment::environment,
6378 environment::copy): Updated.
6379 (environment::newline): Implement it.
6380 (do_input_trap): New function.
6381 (input_trap): Call `do_input_trap'.
6382 (input_trap_continued): New function.
6383 (init_env_requests): Updated.
6384 * src/roff/troff/TODO: Updated.
6386 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6389 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6391 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
6393 * tmac/doc-common, tmac/doc-syms: Small updates.
6395 2001-12-22 Colin Watson <cjwatson@debian.org>
6397 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6399 2001-12-22 Bernd Warken <bwarken@mayn.de>
6401 * MANIFEST: New file.
6403 2001-12-22 Werner LEMBERG <wl@gnu.org>
6405 * src/preproc/grn/grn.man: Updated.
6407 2001-12-22 Solar Designer <solar@openwall.com>
6409 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6412 2001-12-19 Werner LEMBERG <wl@gnu.org>
6414 Implement a fallback character request `.fchar'.
6416 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6417 (is_fallback): New inline function.
6418 * src/roff/troff/input.cc (do_define_character): New function.
6419 (define_character): Call `do_define_character'.
6420 (define_fallback_character): New function.
6421 (init_input_requests): Add `fchar'.
6422 (charinfo::charinfo): Updated.
6423 (charinfo::set_macro): New argument to set `fallback' flag.
6424 * src/roff/troff/node.cc (make_glyph_node, make_node,
6425 node::add_char): Check `fallback' flag.
6426 * NEWS, man/groff_diff.man, man/groff_man: Updated.
6428 2001-12-16 Werner LEMBERG <wl@gnu.org>
6430 * groff.texinfo: Document exact search algorithm for glyphs.
6432 2001-12-15 Werner LEMBERG <wl@gnu.org>
6434 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6435 the left side of $(MANPAGES) rule to make it always non-empty.
6437 2001-12-14 Werner LEMBERG <wl@gnu.org>
6439 * src/roff/troff/input.cc (default_black): Define default color
6440 `black' if not yet defined.
6442 2001-12-13 Werner LEMBERG <wl@gnu.org>
6444 Implement new string-valued register `.fn' to return the current
6445 real (internal) font name.
6447 * env.cc (environment::get_font_name_string): New function.
6448 (init_env_requests): Add `.fn' register.
6449 * env.h (environment): Updated.
6450 * node.cc (font_info): Make `get_font_name' a friend.
6451 (get_font_name): New function.
6454 * man/groff_diff.man, man/groff.man, NEWS: Updated.
6456 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6458 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6460 2001-12-12 Werner LEMBERG <wl@gnu.org>
6462 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6464 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
6466 * man/groff_diff.man: Adding documentation for \O.
6468 2001-12-10 Werner LEMBERG <wl@gnu.org>
6470 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6471 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6473 2001-12-09 Werner LEMBERG <wl@gnu.org>
6475 * man/roff.man: Revised.
6476 * src/roff/groff/groff.man: Replace man page references with a
6477 pointer to roff.man.
6479 2001-12-09 Bernd Warken <bwarken@mayn.de>
6481 * man/roff.man: Completely rewritten.
6483 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6485 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6487 2001-12-05 Werner LEMBERG <wl@gnu.org>
6489 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6491 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6492 order of initializers.
6495 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
6497 * doc/groff.texinfo: Fix documentation of \O.
6499 * src/devices/grohtml/html-text.cc (html_text::do_indent,
6500 html_text::do_table, html_text::do_emittext, html_text::do_para):
6501 Use `const' for first argument.
6502 (html_text::do_table): Use cast.
6503 * src/devices/grohtml/html-text.h: Updated.
6504 * src/devices/grohtml/output.cc (simple_output::put_string): Add
6505 method for `const string &s'.
6506 * src/devices/grohtml/html.h: Updated.
6507 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6508 (ANCHOR_TEMPLATE): Modified.
6509 (manufacture_headings): New global variable to handle `-h' option.
6510 (is_subsection): Removed.
6511 (char_buffer::add_string): Add `const' to first argument.
6512 Protect against invalid string argument.
6513 Add method for `const string &s'.
6514 (text_glob): Completely redesigned.
6515 (page): Use `const' for strings and remove string length variable.
6516 (page::add_html): Removed.
6517 (page::add_end_encode): New member function.
6518 (to_unicode): Moved upwards.
6519 (title_desc, header_desc): Updated.
6520 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6522 (html_printer::is_bold, html_printer::make_bold): New member
6524 (html_printer::end_of_line): Updated.
6525 (generate_img_src, html_printer::do_auto_image,
6526 html_printer::do_title, html_printer::write_header,
6527 html_printer::determine_header_level, html_printer::do_heading,
6528 html_printer::do_linelength, html_printer::do_pageoffset,
6529 html_printer::do_indentation, html_printer::do_tempindent,
6530 html_printer::do_indentedparagraph, html_printer::do_break,
6531 html_printer::flush_sbuf, get_html_translation,
6532 html_printer::begin_page, html_printer::special): Rewritten to get
6533 rid of static string length limit.
6534 (html_printer::troff_tag): Added `.no-auto-rule'.
6535 (html_printer::flush_globs): Small fix.
6536 (html_printer::determine_space): Don't compute `space_width'.
6537 (html_printer::translate_to_html): Renamed to ...
6538 (html_printer::emit_html): This (with updates).
6539 (html_printer::write_header): Implement `-h' option.
6540 (html_printer::draw): Remove commented-out code. Handle `F'
6542 (html_printer::add_char_to_sbuf): Removed.
6543 (html_printer::add_to_sbuf): Rewritten.
6544 (html_printer::sbuf_continuation): Fixed.
6545 (html_printer::seen_backwards_escape, reverse,
6546 html_printer::remove_last_char_from_sbuf): Removed.
6547 (char_translate_to_html, str_translate_to_html): Removed.
6548 (html_printer::overstrike): New function member.
6549 (html_printer::set_char): Use it.
6550 (html_printer::do_body): New function member.
6551 (html_printer::~html_printer): Use it.
6552 (main): Handle `-h' option.
6554 * src/devices/grohtml/grohtml.man: Document -h switch.
6556 * src/preproc/html/pre-html.cc: Include searchpath.h
6557 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6558 (get_resolution): New function.
6559 (checkImageDir): Use `0777' permissions in mkdir()
6560 (write_start_image): Rewritten to use `\O[5...]'.
6561 (createImage, generateImages): Updated.
6562 (main): Handle `F' and `h' options.
6563 Use `get_resolution'.
6565 * src/roff/troff/input.cc (begin, end, image): Removed.
6566 (do_suppress): Take parameter.
6567 Handle modified syntax of `\O'.
6568 (token::next): Updated.
6569 (init_markup_requests): Removed.
6572 * src/roff/troff/div.h: Add declaration for begin_page().
6574 * tmac/color-html.tmac: Removed. Contents moved to...
6575 * tmac/html.tmac: Here. Set background color.
6576 * tmac/color.tmac: Removed. Contents moved to...
6577 * tmac/ps.tmac: Here.
6578 * tmac/www.tmac: Remove the title command when generating images
6580 (NO_AUTO_RULE): New macro.
6581 (HTML_DO_IMAGE): Use revised `\O' escapes.
6582 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6584 2001-12-02 Werner LEMBERG <wl@gnu.org>
6586 * tmac/groff_mdoc.man: Fix typo.
6588 2001-12-01 Colin Watson <cjwatson@debian.org>
6590 * man/roff.man: Fix typo.
6592 2001-11-29 Werner LEMBERG <wl@gnu.org>
6594 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6597 * src/roff/troff/input.cc (read_draw_node): Emit error message if
6598 more than one argument to \D'f ...'.
6600 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6602 2001-11-28 Werner LEMBERG <wl@gnu.org>
6604 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6607 * tmac/groff_man.man: Minor cosmetic fix.
6609 2001-11-27 Werner LEMBERG <wl@gnu.org>
6611 * src/roff/groff/groff.man, tmac/groff_tmac.man,
6612 tmac/groff_www.man: s/mwww/www/.
6614 2001-11-26 Werner LEMBERG <wl@gnu.org>
6616 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6617 * configure: Regenerated.
6618 * win32-diffs: Updated.
6620 * tmac/groff_mwww.tmac: Renamed to ...
6621 * tmac/groff_www.tmac: This.
6622 * tmac/mwww.tmac: Removed.
6623 * NEWS, tmac/Makefile.sub: Updated.
6625 2001-11-21 Werner LEMBERG <wl@gnu.org>
6627 * doc/groff.texinfo: Improve documentation of the `\v' escape.
6628 Fix explanation of `\D' and `rt'.
6630 2001-11-20 Werner LEMBERG <wl@gnu.org>
6632 * tmac/an-old.tmac (an-header): Set header length equal to page
6634 * doc/groff.texinfo: Improve documentation of `ne' request. Other
6638 2001-11-19 Werner LEMBERG <wl@gnu.org>
6640 * NEWS, man/Makefile.sub: Updated.
6642 2001-11-19 Bernd Warken <bwarken@mayn.de>
6644 * man/ditroff.man: New file.
6646 2001-11-17 Werner LEMBERG <wl@gnu.org>
6648 * man/groff_differences.man: Renamed to ...
6649 * man/groff_diff.man: This. Updated.
6650 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6652 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6653 * src/preproc/html/pushback.cc: This. Updated.
6654 * src/preproc/html/pushbackbuffer.h: Renamed to ...
6655 * src/preproc/html/pushback.h: This.
6656 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6659 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6660 * src/libs/libgroff/htmlhint.cc: This.
6661 * src/libs/libgroff/Makefile.sub: Updated.
6663 * tmac/an-old.tmac (an-end): Fix page length.
6665 2001-11-16 Werner LEMBERG <wl@gnu.org>
6667 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6668 * man/Makefile.sub: Include groff_differences.man.
6669 * VERSION: Set to 1.18.
6670 * REVISION: Set to 0.
6672 2001-11-16 Bernd Warken <bwarken@mayn.de>
6674 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6675 the second dot (or ending macro name) to end a macro.
6676 * doc/groff.texinfo: Doc fix.
6678 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
6680 * tmac/doc-common (doc-header): Handle very long document titles
6683 2001-11-16 Werner LEMBERG <wl@gnu.org>
6685 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6687 2001-11-15 Werner LEMBERG <wl@gnu.org>
6689 * src/roff/troff/troff.man: Revised and split into troff.man and...
6690 * man/groff_differences.man: New file.
6693 2001-11-13 Werner LEMBERG <wl@gnu.org>
6695 * tmac/an-old.tmac (TS, TE): New macros for table support.
6697 2001-11-12 Werner LEMBERG <wl@gnu.org>
6699 * src/include/lib.h: Provide a fix for emx to not include
6702 2001-10-27 Werner LEMBERG <wl@gnu.org>
6704 * src/roff/troff/input.cc (substring_macro): Fix computation of
6707 2001-10-20 Werner LEMBERG <wl@gnu.org>
6709 Undo change from 2001-08-28.
6711 * src/roff/troff/input.cc (have_input): New global variable.
6712 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6713 in compatibility mode.
6714 (process_input_stack): Use it.
6716 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
6718 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6719 being handled as end-of-sentence characters,
6721 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
6723 * src/roff/troff/input.cc (file_iterator): New members
6724 `suppress_newline_flag' and `seen_escape'.
6725 (file_iterator::next_file): Updated.
6726 (file_iterator::fill): Use it.
6727 (string_iterator): New member `suppress_newline_flag'.
6728 (string_iterator::fill): Set it.
6729 (get_color_element): Use MAX_COLOR_VAL.
6730 * src/roff/troff/env.cc (environment): Remove `need_eol'.
6731 (no_fill): Don't set `env->ignore_next_eol'.
6732 (environment::newline): Handle `eol' tag properly.
6734 (environment::add_html_tag): Set `env->ignore_next_eol'.
6736 * src/roff/troff/env.h (environment): Updated.
6738 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6740 (html_printer::outstanding_eol): New member function.
6741 (html_printer::do_title): Use new functions.
6742 (html_printer::troff_tag): Test `id_eol_ce'.
6744 2001-10-10 Werner LEMBERG <wl@gnu.org>
6746 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6747 files work with -C also.
6749 2001-10-05 Werner LEMBERG <wl@gnu.org>
6751 * doc/pic.ms: Minor fix.
6752 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6753 as a valid command line switch.
6754 * src/devices/grohtml/post-html.cc (main): Ditto.
6756 * src/devices/grohtml/grohtml.man: Updated.
6757 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6759 2001-10-04 Werner LEMBERG <wl@gnu.org>
6761 Implementing color support in troff, pic, grops, and grohtml. These
6762 changes are based on a major patch provided by Gaius Mulley
6765 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6766 definitions with both hex values and fractions.
6768 New escapes: \m and \M for drawing and background color,
6769 respectively. This corresponds to the troff output commands `m'
6772 groff and troff accept command line switch `-c' to disable color
6773 output (which is automatically disabled in compatibility mode).
6775 New scaling indicator `f' for fractions (1f = 65536u).
6777 New conditional operator `m' to test for defined colors with `if'
6780 New keywords `color' (or `colour', `colored', `coloured'), `outline'
6781 (or `outlined'), and `shaded' added to pic.
6783 * src/include/color.h: New file.
6784 * src/include/driver.h: Include it.
6785 * src/include/printer.h: Include color.h.
6786 (environment): New members `col' and `fill'.
6787 (printer): Remove `adjust_arc_center' member function.
6788 * src/include/Makefile.sub: Updated.
6790 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6792 Handle `m' and `DF' troff commands.
6793 * src/libs/libgroff/color.cc: New file.
6794 * src/libs/libgroff/Makefile.sub: Updated.
6796 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6798 (createImage): Fix computation of `y2'.
6800 (buffer::write_file_html): Remove calls to `stop'.
6802 * src/preproc/pic/common.h (common_output): New abstract function
6803 members `set_color', `reset_color', `get_last_filled', and
6804 `get_outline_color'.
6805 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6806 (object_spec): Add members `shaded' and `outlined'.
6807 * src/preproc/pic/output.h (output): `command' is now abstract.
6808 New function members `set_color', `reset_color', `get_last_filled',
6809 and `get_outline_color'.
6810 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6811 `outline[d]', and `shaded'.
6812 * src/preproc/pic/object.cc (output::command): Removed.
6813 (output::set_location): Moved to output.h.
6814 (graphic_object): Add protected members `outline_color' and
6816 Add member functions `set_outline_color', `get_outline_color', and
6818 (closed_object): Add member function `set_fill_color'.
6819 Add member `color_fill'.
6820 (graphic_object::print_text): Use `out->set_color' and
6822 (box_object::print, ellipse_object::print, circle_object::print,
6823 line_object::print, spline_object::print, arc_object::print): Ditto.
6824 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6825 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6826 `SHADED', making them `%left'.
6827 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6828 * src/preproc/pic/tex.cc (tex_output): New dummy function members
6829 `set_color', `reset_color', `get_last_filled', and
6830 `get_outline_color'.
6831 * src/preproc/pic/troff.cc (simple_output): New abstract function
6832 members `set_color', `reset_color', and `get_last_filled'.
6833 (simple_output::polygon, simple_output::circle,
6834 simple_output::ellipse): Use `get_last_filled'.
6835 (troff_output): New members `last_filled' and `last_outlined'.
6836 New function members `set_color', `reset_color', `get_last_filled',
6837 and `get_outline_color'.
6838 (troff_output::finish_picture): Use `reset_color'.
6839 (troff_output::set_fill): Test `last_filled'.
6840 * src/preproc/pic/pic.man: Updated.
6842 * src/roff/groff/groff.cc (main): Implement `-c' option.
6843 (synopsis, help): Updated.
6844 src/roff/groff/groff.man: Updated.
6846 * src/roff/troff/troff.h: Include color.h.
6847 (warning_type): Add WARN_COLOR.
6848 * src/roff/troff/env.h (environment): New members
6849 `{cur,prev}_{glyph,fill}_color'.
6850 New member functions `get_{prev_,}{glyph,fill}_color'.
6851 * src/roff/troff/env.cc: Initialize and implement them.
6852 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6853 Replace `NULL' with `0' everywhere for consistency.
6854 (lookup_color, default_black, do_glyph_color, do_fill_color,
6855 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6856 define_color): New functions.
6857 (token::next): Implement \M and \m escapes.
6858 (do_if_request): Implement `m' operator.
6860 (main): Implement `-c' option.
6861 (init_markup_requests): Add `defcolor' request.
6862 (warning_table): Add `color' warning.
6863 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6865 * src/roff/troff/node.cc (troff_output_file): New members
6866 `current_{page,glyph}color'. New member functions `put_hex',
6867 `glyph_color', and `fill_color'.
6868 (glyph_color_node::*, fill_color_node::*): Implement it.
6869 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6870 (parse_term): Add support for `f'.
6871 * src/roff/troff/troff.man: Updated.
6873 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6875 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6876 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6878 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6879 (tag_definition): Use `void *' for arg1.
6880 (html_text): New member functions `do_color' and `done_color'.
6881 Use `void *' for second parameter of `push_para' member function.
6882 New `push_para' member function with a single parameter.
6883 Use `char *' for parameter of `issue_table_begin' member funtion.
6884 New `issue_color_begin' member function.
6885 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6887 (html_text::issue_color_begin): New function.
6888 (html_text::issue_table_begin): Use `char *' for parameter.
6889 (html_text::start_tag, html_text::shutdown,
6890 html_text::check_emit_text): Updated.
6891 (html_text::push_para): Use `void *' for second parameter.
6892 Add same function with only one parameter.
6893 (html_text::do_*): Updated.
6894 (html_text::do_color, html_text::done_color): New functions.
6895 * src/devices/grohtml/post-html.cc (style): New member `col'.
6896 Mew member `style' with 6 parameters.
6897 (style::style, style::operator==): Updated.
6898 (html_printer::do_font): Use it.
6899 (html_printer::draw): Add dummy entry for `F'.
6900 (html_printer::set_char): Updated.
6901 * src/devices/grohtml/grohtml.man: Updated.
6903 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6904 trailing zeroes removed.
6905 (ps_printer): New members `sbuf_color', `fill_color', and
6907 Removed member `fill'.
6908 New member function `set_color'.
6909 (ps_printer::ps_printer, ps_printer::set_char): Updated.
6910 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6911 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6913 * tmac/color-html.tmac, tmac/color.tmac: New files.
6914 * tmac/troffrc: Include them.
6915 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6916 * tmac/Makefile.sub: Updated.
6918 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6919 man/groff.man: Updated.
6920 * font/devps/prologue.ps: Define FC and CO functions.
6922 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
6924 Fix incorrect cropping of images and incorrect handling of special
6925 characters. Fix handling of file names in \O.
6927 * src/include/geometry.h: New file.
6928 * src/libs/libgroff/geometry.cc: New file.
6929 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6931 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6933 (do_suppress): Updated.
6934 * src/roff/troff/node.cc: Include geometry.h.
6935 (troff_output_file::flush_tbuf): Fixed parameters to
6936 `check_output_limits'.
6937 (troff_output_file::check_charinfo): Ditto.
6938 (troff_output_file::determine_line_limits): Add support for `Da'
6941 * src/devices/grohtml/post-html.cc (str_translate_to_html):
6942 Add new parameter `is_special' to decode special characters from
6944 (html_printer::do_title, html_printer::do_heading,
6945 html_printer::do_indentedparagraph,
6946 html_printer::translate_to_html, html_printer::special): Updated.
6948 2001-10-03 Werner LEMBERG <wl@gnu.org>
6950 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6951 Fix entry for config.h.
6952 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6953 * tmac/troffrc: Translate nonbreakable space character to `\~'.
6954 * src/preproc/eqn/eqn.man: Document -d command line option.
6956 2001-09-27 Werner LEMBERG <wl@gnu.org>
6958 * man/groff.man: Use
6966 instead of the old code (`.ad .hy' after the table) to suppress
6967 incorrect hyphenation for grohtml output.
6969 2001-09-22 Werner LEMBERG <wl@gnu.org>
6971 * man/groff_font.man, man/groff_out.man: Minor fixes.
6973 2001-09-20 Werner LEMBERG <wl@gnu.org>
6975 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
6976 Arnold Robbins <arnold@skeeve.com>).
6978 2001-09-09 Werner LEMBERG <wl@gnu.org>
6980 * configure: Regenerated with autoconf 2.52.
6982 * doc/groff.texinfo: Complete revision of indices.
6984 2001-09-07 Werner LEMBERG <wl@gnu.org>
6986 * doc/Makefile (clean): Updated to delete all indices.
6988 2001-09-05 Werner LEMBERG <wl@gnu.org>
6990 * src/roff/troff/troff.man: Remove superfluous line.
6992 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6993 given on the command line (or rather, if only the default warnings
6996 2001-09-03 Werner LEMBERG <wl@gnu.org>
6998 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6999 use .ne for TTY devices.
7001 2001-08-31 Werner LEMBERG <wl@gnu.org>
7003 * src/roff/troff/token.h, src/roff/troff/input.cc:
7004 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7006 2001-08-28 Werner LEMBERG <wl@gnu.org>
7008 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7009 * src/roff/troff/input.cc (token::next): Return
7010 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7012 (token::description): Updated.
7013 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7014 (token::add_to_node_list, token::process): Ignore
7015 TOKEN_TRANSPARENT_ESCAPE.
7017 2001-08-27 Werner LEMBERG <wl@gnu.org>
7019 * tmac/an-old.tmac: Fix `S' string.
7021 2001-08-26 Werner LEMBERG <wl@gnu.org>
7023 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7025 2001-08-25 Werner LEMBERG <wl@gnu.org>
7027 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7029 Many other minor fixes.
7031 * configure.ac: Add message at end to inform how to compile
7033 * configure: Regenerated.
7035 2001-08-24 Werner LEMBERG <wl@gnu.org>
7037 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7038 Updated to latest version of libc.
7040 2001-08-23 Werner LEMBERG <wl@gnu.org>
7042 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7043 Autoconf 2.50 and newer can handle this.
7044 * configure: Regenerated.
7046 2001-08-21 Werner LEMBERG <wl@gnu.org>
7048 * doc/pic.ms: Fix typo.
7049 * src/preproc/tbl/tbl.man: Document case of global options.
7051 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
7053 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7054 handling of `CR' font.
7056 2001-08-20 Werner LEMBERG <wl@gnu.org>
7058 Use a config.h file.
7060 * src/include/lib.h: Include config.h.
7061 * All C files: Ditto (if necessary).
7062 * All C++ source and header files: Include lib.h first (if
7065 * src/include/config.hin: New file (autogenerated by autoheader).
7066 * stamp-h.in: New file.
7067 * configure.ac: Updated.
7068 * aclocal.m4: Add third parameters to AC_DEFINE macros.
7069 (GROFF_ARRAY_DELETE): Simplified.
7070 * Makefile.sub (DISTCLEANFILES): Updated.
7071 Added targets for remaking config.status, config.hin, config.h,
7072 stamp-h.in, and stamp-h.
7073 * configure: Regenerated.
7075 2001-08-19 Werner LEMBERG <wl@gnu.org>
7079 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
7081 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7082 (do_sprintf): Use snprintf().
7084 2001-08-18 Werner LEMBERG <wl@gnu.org>
7086 * src/libs/snprintf/*: Added an snprintf module written by Mark
7088 * src/libs/libgroff/Makefile.sub: Updated.
7089 * configure.ac: Add test for snprintf().
7090 * Makefile.in: Updated.
7091 * configure: Regenerated.
7093 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7096 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
7098 * tmac/doc.tmac (Ex): New implementation.
7099 * tmac/doc-common, tmac/groff_tmac.man: Updated.
7101 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
7103 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7105 * tmac/groff_tmac.man: Updated.
7107 2001-08-13 Werner LEMBERG <wl@gnu.org>
7109 * src/preproc/tbl/tbl.man: Minor documentation update.
7111 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
7113 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7114 * configure.ac: Add declaration test for gettimeofday().
7115 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7116 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7117 * configure: Regenerated.
7119 2001-08-11 Werner LEMBERG <wl@gnu.org>
7121 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7122 * configure.ac: Add declaration test for strcasecmp().
7123 * Makefile.in: Updated.
7124 * configure: Regenerated.
7125 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7126 this is necessary because groff's mkstemp.cc is C++.
7127 Add declaration conditionally for strcasecmp().
7129 2001-08-10 Werner LEMBERG <wl@gnu.org>
7131 Integrated pic2graph, contributed by Eric S. Raymond.
7133 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7135 * Makefile.in, NEWS: Updated.
7137 * src/preproc/tbl/tbl.man: Revised.
7139 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
7141 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7143 2001-08-09 Werner LEMBERG <wl@gnu.org>
7145 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7148 2001-08-08 Paul Eggert <eggert@twinsun.com>
7150 * Makefile.sub (configure): Depend on configure.ac, not
7152 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7154 2001-08-07 Werner LEMBERG <wl@gnu.org>
7156 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7159 2001-08-06 Werner LEMBERG <wl@gnu.org>
7161 * src/roff/troff/troff.man: Improve documentation of -E option.
7163 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7165 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7168 2001-07-27 Werner LEMBERG <wl@gnu.org>
7170 * src/preproc/refer/refer.cc: Undo last change.
7171 * src/devices/grohtml/post-html.cc: Ditto.
7173 2001-07-26 Werner LEMBERG <wl@gnu.org>
7175 * src/preproc/refer/refer.cc: Include `lib.h'.
7176 * src/devices/grohtml/post-html.cc: Ditto.
7178 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
7180 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7181 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7182 * Makefile.in: Comment updated.
7183 * configure: Regenerated.
7185 2001-07-25 Werner LEMBERG <wl@gnu.org>
7187 * src/preproc/pic/pic.cc: Removed.
7188 * src/preproc/pic/pic_tab.h: Removed.
7189 * src/preproc/refer/label.cc: Removed.
7191 * doc/Makefile (.ms.html): Don't use a file name extension in
7192 argument to grohtml's -I option.
7193 * Makefile.in (dist): Remove CVS directories.
7194 Call `distfiles' target.
7196 * src/devices/grohtml/grohtml.man: Add information about valid
7197 versions of pnmtopng.
7198 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7199 name instead of number.
7201 2001-07-24 Werner LEMBERG <wl@gnu.org>
7203 * doc/groff.texinfo: Minor fixes.
7205 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
7207 * doc/Makefile (.ms.html): Put image files into a subdirectory.
7210 2001-07-20 Werner LEMBERG <wl@gnu.org>
7212 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7213 * src/libs/libgroff/mkstemp.cc: New file.
7214 * src/libs/libgroff/mksdir.cc: New file.
7215 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7216 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7217 * src/libs/libgroff/Makefile.sub: Updated.
7218 * src/include/lib.h: Add mksdir() prototype.
7219 * src/include/posix.h: Define S_IXUSR if not yet defined.
7221 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7222 (createAllPages): Use mksdir() instead of current code.
7223 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7224 (main): [!HAVE_MKSTEMP]: Removed.
7226 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7227 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7229 * configure.ac: Add tests for stdint.h, sys/time.h, and
7231 Call new GROFF_xxx macros.
7232 * configure: Regenerated.
7233 * Makefile.in: Comments updated.
7235 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
7237 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7238 instead of current code.
7239 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7240 * src/roff/groff/groff.cc (possible_command::insert_args): New
7242 (main): Use it for predriver handling instead of insert_arg().
7244 2001-07-19 Werner LEMBERG <wl@gnu.org>
7246 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7249 * src/include/posix.h: Define S_IWUSR if not yet defined.
7251 2001-07-18 Werner LEMBERG <wl@gnu.org>
7255 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
7257 * tmac/groff_mdoc.man: Document new -width and -column syntax.
7258 Some other minor fixes.
7259 * tmac/an-old.tmac: Add `AT' and `UC' macros.
7261 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
7263 Replace call to `troff' with `groff -Z' to make it aware of
7266 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7267 (troff_command, command_prefix): Removed.
7268 (alterDeviceTo): Use groff.
7269 (addZ): New function.
7270 (char_buffer::do_html): Use it.
7271 (scanArguments): Use TROFF_COMMAND.
7272 (findPrefix): Removed.
7274 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7276 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
7278 * doc/pic.ms: Documentation fixes.
7280 2001-07-17 Werner LEMBERG <wl@gnu.org>
7282 Replace atexit() with global destructor.
7284 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7285 (xtmpfile_list_init): New global structure to deallocate
7286 xtmpfile_list on exit. Its destructor inherits most code from
7288 (remove_tmp_files): Deleted.
7289 (add_tmp_file): Simplified.
7291 2001-07-16 Werner LEMBERG <wl@gnu.org>
7293 Replace strdup() with strsave().
7295 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7296 (set_papersize): Use strsave() and a_delete.
7297 (main): Use strsave().
7298 * src/preproc/html/pre-html.cc (make_message, createAllPages,
7299 removeAllPages): Use strsave() and a_delete.
7301 * configure.ac: Remove test for strdup.
7302 * Makefile.in: Comment updated.
7303 * configure: Regenerated.
7305 2001-07-15 Werner LEMBERG <wl@gnu.org>
7307 * win32-diffs: Updated.
7309 2001-07-14 Werner LEMBERG <wl@gnu.org>
7311 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7312 removing the old one.
7313 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7315 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7317 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7319 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
7321 Merge -xwidth into -width. Add -xwidth functionality to -column
7324 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7326 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
7327 string immediately following a leading dot starts with a valid mdoc
7329 Add similar code to the -column branch.
7330 (doc-Bl-usage): Updated.
7331 * groff_mdoc.man: s/-xwidth/-width/.
7333 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
7335 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7336 running into centered or non-formatted text.
7338 2001-07-11 Werner LEMBERG <wl@gnu.org>
7340 Introduce short and long prefixes to have the selection at run-time
7341 whether there is a 8+3 limit for names of temporary files.
7343 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7344 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7345 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7347 (temp_init): New global structure to initialize above three
7349 (xtmptemplate): Use two parameters for long and short prefix.
7350 Simplify code use above three variables.
7351 (xtmpfile): Use long and short prefixes as parameters.
7352 * src/include/lib.h: Updated.
7354 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7356 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7357 (createAllPages, makeTempFiles): Updated.
7359 2001-07-09 Werner LEMBERG <wl@gnu.org>
7361 * REVISION: Increased to 3.
7363 Version 1.17.2 released
7364 =======================
7366 2001-07-07 Werner LEMBERG <wl@gnu.org>
7368 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7371 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
7373 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7375 * tmac/groff_mdoc.man: Fix synopsis.
7377 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
7379 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7380 Restore `doc-Pa-font'.
7382 2001-07-04 Werner LEMBERG <wl@gnu.org>
7384 * src/utils/indxbib/dirnamemax.c: Moved to ...
7385 * src/libs/libgroff/maxfilename.cc: Here.
7386 s/dir_name_max/file_name_max/.
7388 * src/include/lib.h: Add file_name_max.
7389 * src/utils/indxbib/indxbib.cc: Updated.
7390 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7393 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7395 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7397 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7398 REGION_TEMPLATE): New macros.
7399 (createAllPages, makeTempFiles): Use them.
7400 Include `nonposix.h'.
7401 (html_system): New function.
7402 (createAllPages, createImage): Use it.
7405 * tmac/www.tmac: Fix typos.
7407 2001-07-03 Werner LEMBERG <wl@gnu.org>
7409 * tmac/www.tmac: Disable hyphenation in normal text only if output
7411 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7412 * tmac/groff_mwww.man, NEWS: Updated.
7414 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
7416 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7419 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
7421 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7422 doc-display-ps-stack): Implement font and font size stack for
7425 2001-07-02 Werner LEMBERG <wl@gnu.org>
7427 * REVISION: Increased to 2.
7428 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7430 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7431 beginning of a line.
7432 * src/groff/grog/grog.sh: Ditto.
7434 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
7436 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7439 2001-06-27 Werner LEMBERG <wl@gnu.org>
7441 Fix problems with preprocessor string for `man' program.
7443 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
7444 Updated/added copyright.
7445 Moved Emacs's local variable to identify nroff mode to the end of
7446 the file; add local variable if missing.
7448 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
7450 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7451 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7452 * configure: Regenerated.
7454 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
7456 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7457 * configure: Regenerated.
7459 2001-06-24 Werner LEMBERG <wl@gnu.org>
7461 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7463 * doc/pic.ms: Fix typos.
7465 Version 1.17.1 released
7466 =======================
7468 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
7470 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7471 * configure: Updated.
7473 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
7475 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7477 * src/roff/troff/dic.cc (blank_line): Add html tag.
7479 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
7481 * src/roff/troff/input.cc (do_suppress): Fix typo.
7483 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
7485 Added two new options (-D and -I) to specify image names and a
7486 subdirectory to place the images in.
7488 Change syntax from \\Ox to \\O[x].
7490 * src/devices/grohtml/post-html.cc (main): Add options.
7492 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7493 Use `NULL' instead of `0' for null string pointers.
7494 (MAX_RETRIES): New macro.
7495 (lengthOfintToStr, intToStr, make_message): New functions.
7496 (makeFileName): Make function static.
7497 Implement -D and -I options.
7498 (checkImageDir): New function.
7499 (write_end_image, write_start_image): Use new syntax of \O.
7500 (createAllPages, removeAllPages): Implement -D and -I options. Use
7502 (createImage): Use make_message().
7503 (addps4html): Add guard for malloc().
7504 (usage, scanArguments): Updated.
7505 (makeTempFiles): Use mkstemp().
7506 (removeTempFiles): Use unlink().
7507 (findPrefix): Add guard for malloc().
7509 * src/roff/troff/input.cc (get_delim_file_name): New function to
7511 (do_suppress): Updated to parse new syntax.
7512 * src/devices/grohtml/grohtml.man: Updated.
7513 * tmac/www.tmac: Updated to new syntax.
7517 2001-06-15 Werner LEMBERG <wl@gnu.org>
7519 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7521 * src/devices/grohtml/grohtml.man: Minor improvements.
7523 2001-06-14 Werner LEMBERG <wl@gnu.org>
7525 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7527 2001-06-11 Werner LEMBERG <wl@gnu.org>
7529 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7530 line to specify preprocessor options -- mandb 2.3.1 only recognizes
7532 * src/preproc/grn/grn.man: Add proper '\" string.
7534 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
7536 * test-groff: Don't use PATH but GROFF_BIN_PATH.
7538 2001-06-08 Werner LEMBERG <wl@gnu.org>
7540 Updated to autoconf 2.50.
7542 * configure.in: Renamed to...
7543 * configure.ac: This.
7544 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7545 (GROFF_OS390): Updated.
7546 * configure: Regenerated.
7548 2001-05-18 Werner LEMBERG <wl@gnu.org>
7550 * src/roff/troff/env.c, src/roff/troff/env.h,
7551 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7554 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
7556 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7558 2001-05-16 Werner LEMBERG <wl@gnu.org>
7560 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7561 less than or equal zero; set it to 1 then.
7562 * src/roff/troff/node.h (node::node): Initialize `last'.
7564 2001-05-08 Werner LEMBERG <wl@gnu.org>
7566 * tmac/an-old.tmac: Make predefined strings work in compatibility
7568 Add troff version guard.
7569 * tmac/doc.tmac: Simplify version guard.
7571 2001-05-07 Werner LEMBERG <wl@gnu.org>
7573 The .ns and .rs requests are now honoured not only in the top-level
7574 but in all diversions (similar to UNIX troff).
7576 This change is based on a patch from Tadziu Hoffmann
7577 <hoffmann@usm.uni-muenchen.de>.
7579 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7580 (top_level_diversion): Remove `no_space_mode' member.
7581 * src/roff/troff/div.cc (diversion::diversion,
7582 top_level_diversion::top_level_diversion): Updated.
7583 (macro_diversion::output): Reset `no_space_mode'.
7584 (no_space, restore_spacing): Use `curdiv' unconditionally.
7585 (space_request, blank_line): Check `curdiv->no_space_mode'.
7586 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7587 `curdiv' unconditionally.
7588 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7591 2001-05-06 Werner LEMBERG <wl@gnu.org>
7593 Added two new requests `de1' and `am1' which are similar to `de' and
7594 `am' with the difference that compatibility mode is saved on entry,
7595 switched off during macro execution, and restored on exit.
7597 * src/roff/troff/input.h: Added two new special characters
7598 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7599 * src/roff/troff/input.cc (input_iterator): Added two member
7600 functions `save_compatible_flag' and `get_compatible_flag'.
7601 (input_stack): Ditto.
7602 (string_iterator): Ditto. Also add private member
7603 `saved_compatible_flag'.
7604 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7605 (calling_mode): New enumeration.
7606 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
7607 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7608 (define_macro, define_indirect_macro, append_macro, ignore): Use
7610 (define_nocomp_macro, append_nocomp_macro): New functions.
7611 (init_input_requests): Updated.
7612 (do_request): Rename local variable `saved_compatible_flag' to
7613 `old_compatible_flag'.
7614 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7616 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7617 public and trap-invoked macros. As a consequence, the man macros
7618 work in compatibility mode also.
7620 2001-05-06 Solar Designer <solar@openwall.com>
7622 * Makefile.in: Use $(mandir).
7624 2001-05-06 Alexios Zavras <zvr@pobox.com>
7626 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7628 2001-05-05 Werner LEMBERG <wl@gnu.org>
7630 Added `.ns' number register: Returns 1 in no-space mode (if in
7631 top-level diversion), 0 otherwise.
7633 * src/roff/troff/div.cc (no_space_mode_reg): New class.
7634 (init_div_requests): Updated.
7635 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7638 2001-05-04 Werner LEMBERG <wl@gnu.org>
7640 * src/roff/nroff/nroff.man: Improved documentation (especially
7643 2001-05-02 Werner LEMBERG <wl@gnu.org>
7645 Added `brp' request: This is \p as a request.
7647 * src/roff/troff/env.cc (environment::do_break): Add parameter
7649 (do_break_request): New function (was `break_request').
7650 (break_request): Calls `do_break_request'.
7651 (break_spread_request): New; calls `do_break_request'.
7652 (init_env_requests): Updated.
7653 * src/roff/troff/env.h: Updated.
7654 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7656 * REVISION: Increased to 1.
7657 * win32-diffs: Updated.
7659 2001-05-01 Werner LEMBERG <wl@gnu.org>
7661 * tmac/an-old.tmac: Fix minor compatibility mode issue.
7662 * tmac/troffrc-end: Make it really work in compatibility mode.
7664 2001-04-27 Werner LEMBERG <wl@gnu.org>
7666 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7669 2001-04-22 Werner LEMBERG <wl@gnu.org>
7671 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7672 latest versions from glibc CVS archive.
7674 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7675 <c.zeelenberg@hccnet.nl>.
7677 2001-04-21 Werner LEMBERG <wl@gnu.org>
7679 * configure.in: Move check for mkstemp() to...
7680 * aclocal.m4 (GROFF_MKSTEMP): This new function.
7681 * configure: Regenerated.
7683 * src/include/groff-getopt.h: Don't use variable names in
7686 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
7687 * src/devices/grohtml/Makefile.sub,
7688 src/devices/grohtml/post-html.cc: Updated.
7690 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
7692 * configure.in: Add special check for mkstemp().
7693 * src/libs/libgroff/tmpfile.cc: Use it.
7694 * src/utils/indxbib/indxbib.cc: Ditto.
7695 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7696 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7699 2001-04-20 Bruce Lilly <blilly@erols.com>
7701 `Version_string' as C++ object was not visible to linker from C
7703 Add `const' to `Version_string'.
7705 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7706 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7707 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7708 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7709 (scanArguments), src/preproc/refer/refer.cc (main),
7710 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7711 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7712 (main), src/devices/grohtml/post-html.cc (main),
7713 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7714 (main), src/utils/hpftodit/hpftodit.cc (main),
7715 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7716 (main), src/utils/lkbib/lkbib.cc (main),
7717 src/utils/addftinfo/addftinfo.cc (main): Implement it.
7719 * src/roff/groff/pipeline.c: Add _UWIN.
7720 * src/include/nonposix.h: Ditto.
7722 2001-04-20 Werner LEMBERG <wl@gnu.org>
7724 * src/include/lib.h: Use HAVE_STRERROR.
7725 * src/roff/groff/pipeline.c: Ditto.
7726 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7727 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7728 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7729 * win32-diffs: Updated.
7730 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7732 2001-04-19 Werner LEMBERG <wl@gnu.org>
7734 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7735 instead of hardwired `"troff"'.
7736 (char_buffer::read_file): Remove unused variables.
7737 (char_buffer::write_file_troff): Ditto.
7738 (char_buffer::write_file_html): Ditto.
7739 (generateImages): Ditto.
7741 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7743 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7745 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7746 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7747 index_search_item::search1): Ditto.
7748 * src/roff/troff/node.h (width_list): Reorder members.
7749 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7750 (lookup_warning): Ditto.
7751 (prepend_string): Commented out.
7752 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7753 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7754 * src/preproc/tbl/main.cc (process_format): Ditto.
7755 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7757 * src/preproc/pic/pic.cc: Updated.
7758 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7759 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7760 * src/preproc/refer/command.cc (execute_command): Ditto.
7761 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7762 * src/preproc/refer/token.cc (lookup_token): Ditto.
7763 * src/preproc/soelim/soelim.cc: Ditto.
7764 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7765 (isHexDigit): Commented out.
7766 (pushBackBuffer::isString): Remove unused variable.
7767 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7769 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7770 resource_manager::read_resource_arg, read_one_of, parse_extensions):
7772 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7773 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7774 lookup_paper_size): Ditto.
7775 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7776 (text_glob, element_list): Reorder members.
7777 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7779 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7780 return value to `void'.
7781 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7783 * src/devices/grohtml/html.h (simple_output::check_newline,
7784 simple_output::space_or_newline, simple_output::enable_newlines):
7786 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7788 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7789 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7790 output_ligatures, output_charset, read_map): Ditto.
7791 * src/utils/lookbib/lookbib.cc (main): Ditto.
7792 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7793 (do_file): Fix typo (`=' -> `==').
7794 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7795 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7797 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
7799 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7800 Fix usage of GROFF_BIN_PATH.
7801 * src/roff/nroff/nroff.man: Updated.
7803 2001-04-18 Werner LEMBERG <wl@gnu.org>
7805 * NEWS: Fixing typos.
7808 Version 1.17 released
7809 =====================
7811 2001-04-17 Werner LEMBERG <wl@gnu.org>
7813 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7814 directory, not in $(srcdir).
7816 2001-04-16 Werner LEMBERG <wl@gnu.org>
7818 * doc/groff.texinfo: More info on conditionals.
7820 2001-04-15 Werner LEMBERG <wl@gnu.org>
7822 * doc/groff.texinfo: Added some info about groff internals.
7824 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7825 about missing special character only if the name is non-null.
7827 2001-04-14 Werner LEMBERG <wl@gnu.org>
7829 Removing the grohtml-old device driver which is now obsolete.
7831 * src/devices/grohtml-old/*: Removed.
7832 * font/devhtml-old/*: Removed.
7833 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7835 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7836 * test-groff (PATH): Updated.
7837 * tmac/Makefile.sub (NORMALFILES): Updated.
7838 * tmac/an-old.tmac: Remove special code for html-old device.
7839 Replace `html-or-html-old' register with `an-html'.
7840 * tmac/eqnrc: Updated.
7841 * tmac/html-old.tmac: Removed.
7842 * tmac/troffrc, tmac/troffrc-end: Updated.
7843 * tmac/www.tmac: Remove special code for html-old device.
7844 Replace `html-or-html-old' register with `www-html'.
7846 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7847 src/libs/libgroff/htmlindicate.cc (graphic_end),
7848 include/htmlindicate.h, src/preproc/grn/*.cc,
7849 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7850 single argument for consistency with rest of source code.
7852 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7854 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
7856 * src/roff/troff/troff.man: Fixing typos.
7858 2001-04-13 Werner LEMBERG <wl@gnu.org>
7860 * doc/pic.ms: Fixing many font switches.
7861 * doc/groff.texinfo: Fixes, additions.
7862 * MORE.STUFF: Updated.
7864 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
7866 * src/devices/grohtml/grohtml.man: Updated manual page regarding
7868 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7870 (removeTempFiles): New function to tidy up temporary files.
7871 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7872 Many fixes to do with the new inline suppress node and image regions
7874 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7875 (generate_img_src): New function.
7876 (html_printer::do_auto_image): Utilizes it.
7877 (do_heading, do_title): Include inline images within their contents.
7878 (html_printer::begin_page): Tidied up comments that are issued to
7879 the html output file.
7880 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7882 (text_glob::is_br): New method used by do_heading.
7883 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7884 equivalent diversion.
7885 * src/include/html-strings.h: Altered image tags to reflect the
7887 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7889 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7890 it is already inside a pic image. Only emit tags if the argument
7891 `-Tps:html' is present.
7892 * src/preproc/tbl/main.cc: Changes to reflect additional
7893 `html_end_suppress' parameter.
7894 * src/roff/troff/env.cc: Only emit eol tag if a node has been
7895 emitted since the last eol tag was written.
7896 * src/roff/troff/env.h: New boolean `emitted_node'.
7897 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7898 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
7899 * src/roff/troff/node.cc (check_charinfo): New method.
7900 (troff_output_file::determine_line_limits): Alterations to limit
7902 * tmac/www.tmac: Changes to reflect new suppress nodes.
7904 2001-04-12 Bruno Haible <haible@clisp.cons.org>
7906 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7907 Escape the html_glyph in the buffer.
7908 (str_translate_to_html): Output the unescaped escaped_char.
7909 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7910 `frame=void', not `frame=none'. Add `border=0'.
7912 2001-04-12 Werner LEMBERG <wl@gnu.org>
7914 * PROBLEMS: Add some words on how to avoid wrapper macros.
7916 2001-04-11 Blake McBride <blake@florida-software.com>
7918 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7920 2001-04-11 Werner LEMBERG <wl@gnu.org>
7922 * font/devlbp/Makefile.sub (CLEANADD): Set it.
7923 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7924 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7925 * Makefile.sub (DISTCLEANFILES): Here.
7927 * libs/libgroff/new.cc: Include `nonposix.h'.
7928 * win32-diffs: Updated.
7930 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
7932 Added skeleton macro for defunct macros.
7934 Updated documentation.
7936 When inside displays, an empty input line warning should be
7937 suppressed. If another macro call is put inside a display,
7938 all subsequent empty lines found in that display caused a
7939 warning to be emitted.
7941 * tmac/doc.tmac (doc-defunct-macro): New macro.
7942 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7943 (doc-restore-global-vars): Fixed typo.
7944 (doc-empty-line): Check the `doc-display-depth' register to
7945 determine whether we are inside display or not.
7947 * tmac/doc-common: Removed `Or' and `Sf' registers.
7948 Moved obsolete `Ds' macro to doc.tmac.
7950 * tmac/groff_mdoc.man: Bump document date.
7951 Document `.Vt' under ``Variable Types''.
7952 Removed documentation for obsolete `.Or' macro.
7954 2001-04-10 Werner LEMBERG <wl@gnu.org>
7957 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7959 2001-04-10 Bruno Haible <haible@clisp.cons.org>
7961 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7962 (usage): Add stream argument. Don't exit.
7963 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7964 Write --version output to stdout, not stderr.
7965 (usage): Add stream argument. Don't exit.
7966 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7967 (usage): Add stream argument. Don't exit.
7968 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7970 (usage): Add stream argument. Don't exit.
7971 (main): Write --help output to stdout, not stderr.
7972 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7973 (usage): Add stream argument. Don't exit.
7974 * src/devices/grops/ps.cc (main): Accept --help and --version.
7975 (usage): Add stream argument. Don't exit.
7976 * src/devices/grotty/tty.cc (main): Accept --help and --version.
7977 (usage): Add stream argument. Don't exit.
7978 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7979 (main): Accept --help and --version.
7980 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7981 (main): Accept --help and --version.
7982 * src/preproc/html/pre-html.cc (usage): Add stream argument.
7983 (scanArguments): Accept --help and --version.
7984 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7985 (main): Accept --help and --version.
7986 * src/preproc/refer/refer.cc (main): Accept --help and --version.
7987 (usage): Add stream argument. Don't exit.
7988 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7990 (main): Accept --help and --version.
7991 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7992 (main): Accept --help and --version.
7993 * src/roff/groff/groff.cc (main): Accept --help and --version.
7994 (synopsis): Add stream argument.
7995 (help): Write --help output to stdout, not stderr.
7996 (usage): Add stream argument. Don't exit.
7997 * src/roff/grog/grog.pl: Accept --help and --version.
7999 * src/roff/grog/grog.sh: Accept --help and --version.
8000 * src/roff/nroff/nroff.sh: Accept --help and --version.
8001 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8002 (usage): Add stream argument. Don't exit.
8003 (main): Accept --help and --version.
8004 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8005 (usage): New function with stream argument, doesn't exit.
8006 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8007 (usage): New function with stream argument, doesn't exit.
8008 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8009 (usage): Add stream argument. Don't exit.
8010 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8011 (main): Accept --help and --version.
8012 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8014 (main): Accept --help and --version.
8015 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8016 (main): Accept --help and --version.
8017 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8018 (usage): Add stream argument. Don't exit.
8020 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
8022 Fix indentation in SYNOPSIS.
8024 Updated to include changes of latest BSD mdoc version (basically,
8025 the only change is that `.Fn' and `.Fc' put a final semicolon after
8026 a function declaration in the SYNOPSIS section).
8028 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8029 (doc-in-synopsis-section): New variable. Updated all related
8031 (doc-indent-synopsis-active): New register.
8032 (Nd, Fn, Fo): Use it.
8033 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8034 `.Cd' with long argument line produces indented wrapped lines.
8035 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8036 undesirable line break to be output.
8037 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8039 (Fn, Fc): Add final `;' to output.
8040 (doc-save-global-vars, doc-restore-global-vars): Updated.
8041 * tmac/doc-common: Remove `Ex' register.
8043 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8046 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8048 * tmac/doc.tmac (Cd): Simplify code.
8049 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8051 2001-04-06 Werner LEMBERG <wl@gnu.org>
8053 Implement continuous underlining for nroff mode. To do that, a new
8054 request in the ditroff language has been added: `x u N' (N is 0
8057 \X and \Y are now transparent to end-of-sentence recognition.
8059 * src/include/printer.h (printer): Add `type' parameter to `special'
8061 * src/libs/libdriver/printer.cc (printer::special): Updated.
8062 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8064 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8065 specials of type `p'.
8066 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8067 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8068 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8069 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8070 (glyph::order): New method.
8071 (tty_printer::add_char): Use it.
8072 (tty_printer::special): New method.
8073 (tty_printer::end_page): Implement it.
8075 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8076 * src/roff/troff/node.cc (special_node::special_node): Add parameter
8077 to set `no_init_string'.
8078 (special_node::tprint_start): Use it.
8079 (special_node::same, special_node::copy): Updated.
8080 (special_node::ends_sentence): New method.
8081 (troff_output_file::start_special): Add parameter to include
8082 inititialization of special conditionally.
8084 * src/roff/troff/env.h (environment): New member `underline_spaces'.
8085 * src/roff/troff/env.cc (do_underline_special): New function.
8086 (environment::set_font): Use it.
8087 (do_underline): Use it. This was `underline()'.
8088 (underline): Call `do_underline()'.
8089 (continuous_underline): New function which calls `do_underline()'.
8090 (environment::newline): Use `do_underline_special()'.
8091 (init_env_requests): Updated.
8093 * NEWS, man/troff_out.man: Updated.
8095 2001-04-06 Bruno Haible <haible@clisp.cons.org>
8097 * font/devutf8/R.proto: Fix code of 'shc'.
8099 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8101 Many fixes. Diag lists can now be nested also; additionally,
8102 `-compact' and `-offset' are supported.
8104 * tmac/doc.tmac (doc-have-indent): Replaced with ...
8105 (doc-list-have-indent-stackXXX): A new register stack.
8106 (doc-have-diag-list): Removed.
8107 (Bl): Use `doc-list-have-indent-stackXXX'.
8109 (doc-diag-list): Use `doc-compact-list-stackXXX'.
8110 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8111 (doc-set-vertical-and-indent): Ditto.
8112 (doc-next-list-depth): Removed.
8113 (doc-increment-list-stack): Updated.
8114 (doc-decrement-list-stack): Use `doc-list-depth' instead of
8115 `doc-next-list-depth'.
8116 (doc-end-list, doc-end-column-list): Don't use
8117 `doc-increment-list-stack'.
8118 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8119 (doc-save-global-vars, doc-restore-global-vars): Updated.
8120 * tmac/doc-common: Updated.
8121 * tmac/groff_mdoc.man: Updated.
8124 2001-04-02 Werner LEMBERG <wl@gnu.org>
8126 * src/devices/grotty/grotty.man: Fix grammatical error.
8128 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
8130 Remove .Ld from mdoc package; replace it with special handling of
8133 * tmac/doc-common: Remove `Ld' register.
8134 Uncomment `doc-volume-ds-*' strings.
8135 Remove `doc-operating-system-default'.
8137 * tmac/doc-syms (Ld): Removed.
8138 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8142 * tmac/groff_mdoc.man: Many fixes and updates.
8144 2001-03-29 Werner LEMBERG <wl@gnu.org>
8146 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
8147 Bond <tkb@tkb.mpl.com>.
8148 * tmac/www.tmac: Save compatibility mode.
8150 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
8152 * tmac/groff_mdoc.man: Many fixes.
8154 2001-03-28 Werner LEMBERG <wl@gnu.org>
8156 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8159 2001-03-27 Werner LEMBERG <wl@gnu.org>
8161 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8162 diversion. This fixes overlong tags.
8164 2001-03-26 Werner LEMBERG <wl@gnu.org>
8166 * doc/groff.texinfo: Fixed and improved documentation of fonts.
8167 * tmac/doc-syms: Fix error messages.
8168 * tmac/an-old.tmac: Remove incorrect double backslashes.
8170 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
8172 * tmac/Makefile.sub: Strip mdoc.local also
8173 * tmac/strip.sed: Fixed.
8175 2001-03-24 Werner LEMBERG <wl@gnu.org>
8177 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8178 selecting the font size.
8179 * tmac/groff_mdoc.man, NEWS: Document it.
8181 2001-03-23 Werner LEMBERG <wl@gnu.org>
8183 * src/roff/troff/div.cc (save_vertical_space): Add default argument
8185 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8186 argument to restore previous font family.
8187 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8189 * doc/groff.texinfo: More fixes and additions (mainly for font
8190 manipulating commands).
8192 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8193 * tmac/groff_mdoc.man: This. The quick reference has been removed.
8194 * tmac/Makefile.sub, NEWS: Updated.
8196 2001-03-23 Werner LEMBERG <wl@gnu.org>
8198 Replaced mdoc implementation. The new version is `state of the
8199 art', using almost all new features of groff 1.17 -- it won't run
8200 with older versions.
8202 * tmac/doc.tmac: Completely rewritten.
8203 * tmac/doc-common: Ditto.
8204 * tmac/doc-nroff: Ditto.
8205 * tmac/doc-ditroff: Ditto.
8206 * tmac/doc-syms: Ditto.
8207 * tmac/mdoc.local: New file.
8208 * tmac/groff_mdoc.samples.man: Replaced with ...
8209 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8210 * tmac/strip.sed: Updated.
8211 * tmac/Makefile.sub: Updated.
8214 * tmac/groff_man.man: Add `man.local' to the FILES section.
8216 2001-03-22 Werner LEMBERG <wl@gnu.org>
8218 * doc/groff.texinfo: Added many @noindent.
8219 Replaced @end_Example -> @endExample.
8220 Added info whether registers are r/o.
8221 Many other additions and fixes.
8223 2001-03-21 Werner LEMBERG <wl@gnu.org>
8225 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8226 in makeinfo of texinfo 4.0) to be used in @Def* macros.
8227 Improved @Def* macros: Now the exact syntax of request, register,
8228 and escapes is shown.
8229 Added macros for parentheses and brackets to be used in @Def*.
8230 Many fixes and improvements of the documentation.
8232 2001-03-20 Werner LEMBERG <wl@gnu.org>
8234 * doc/groff.texinfo: Added new index: `st' (for strings).
8235 Added macros @Defstr(x).
8236 Added macro @Example (adding @group).
8237 Other minor improvements.
8239 2001-03-19 Werner LEMBERG <wl@gnu.org>
8241 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8242 `rq' for requests. `fn' is no longer used.
8243 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8246 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8247 number with name of man page.
8249 2001-03-19 Larry Kollar <kollar@alltel.net>
8251 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
8254 2001-03-19 Werner LEMBERG <wl@gnu.org>
8256 * man/groff_font.man: Document `prepro', `postpro', and `print'.
8257 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8258 * src/devices/grohtml/grohtml.man: Fixing typos.
8260 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
8262 * tmac/s.tmac (@IP): Pass `.ip' html tag.
8263 * tmac/groff_mwww.man: Remove .LINE macro
8264 * tmac/www.tmac (LINE): Add `.ti'.
8266 * src/devices/grohtml/post-html.cc (html_printer): New member
8268 (html_printer::emit_raw): Use it.
8269 (html_printer::do_linelength): Ditto.
8270 (html_printer::do_pageoffset): Ditto.
8271 (html_printer::do_indentation): Ditto.
8272 (html_printer::do_tempindent): Ditto.
8273 (html_printer::do_break): Ditto.
8274 (html_printer::begin_page): Ditto.
8275 (html_printer::do_indentedparagraph): New function.
8276 (html_printer::troff_tag): Handle `.ip'.
8277 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8278 Add `<td width=...>' handling.
8279 (html_text::do_table): Add parameter.
8280 (html_text::do_indent): Updated.
8281 * src/devices/groohtml/html-text.h: Updated.
8283 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
8285 Introduced simple html tables to implement indentation.
8287 * src/devices/grohtml/html.h (word, word_list): New structures.
8288 (simple_output): Use it.
8289 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8290 (html_printer): Improve indentation handling.
8291 (html_printer::emit_raw): Set `in_table' element. Handle
8293 (html_printer::write_header): Move conditional downwards.
8294 Don't allow whitespace in tags.
8295 (html_printer::do_linelength): Handle line length and indentation
8297 (html_printer::do_pageoffset): Handle indentation conditionally.
8298 (html_printer::do_indentation): Ditto.
8299 (html_printer::do_tempindent): New function member.
8300 (html_printer::do_fill): Take care of indentation.
8301 (html_printer::do_flush): Finish table.
8302 (html_printer::do_links): Ditto.
8303 (html_printer::do_break): New function for handling `.br' and `.ti'.
8304 (html_printer::troff_tag): Use it.
8306 (html_printer::flush_globs): Fix.
8307 (html_printer::flush_page): Finish table.
8308 (html_printer::html_printer): Fix error message. Set up
8310 (html_printer::add_to_sbuf): Remove special handling of character
8312 (to_unicode): Remove `stop()'.
8313 (html_printer::write_title): Cleanup.
8314 (html_printer::begin_page): Use `put_string()'. Handle indentation.
8315 (html_printer::~html_printer): Flush text and end the line.
8317 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8318 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8320 (html_text::start_tag): Disable newlines.
8321 (html_text::table_is_void): New function.
8322 (html_text::issue_table_begin): Ditto.
8323 (html_text::issue_table_end): Ditto.
8324 (html_text::push_para): Better table handling.
8325 (html_text::do_indent): New function.
8326 (html_text::do_table): Ditto.
8327 (html_text::done_table): Ditto.
8328 (html_text::do_tt): Handle PRE_TAG.
8329 (html_text::is_in_table): New function.
8330 (html_text::check_emit_text): Handle tables.
8331 (html_text::do_emittext): Use `nl()'.
8332 (html_text::do_para): Handle table.
8333 (html_text::remove_def): New function.
8334 * src/devices/grohtml/output.cc (word, word_list): Implement
8336 (simple_output::end_line): Flush last word.
8337 (simple_output::simple_comment): Ditto.
8338 (simple_output::begin_comment): Recoded.
8339 (simple_output::end_comment): Ditto.
8340 (simple_output::comment_arg): Removed.
8341 (simple_output::check_newline): Improve test and flush last word.
8342 (simple_output::space_or_newline): Improved.
8343 (simple_output::write_newline): Replaced with...
8344 (simple_output::nl): This.
8345 (simple_output::put_raw_char): Flush last word.
8346 (simple_output::check_space): Removed.
8347 (simple_output::put_translated_string): Ditto.
8348 (simple_output::put_string): Simplified.
8349 (simple_output::put_number): Updated.
8350 (simple_output::put_float): Ditto.
8351 (simple_output::put_symbol): Removed.
8352 (simple_output::enable_newlines): Add `check_newline()'.
8353 (simple_output::flush_last_word): New function.
8355 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8356 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8358 * tmac/s.tmac (@PP, @IP): Add html conditional code.
8359 * tmac/an-old.tmac (TP): Ditto.
8361 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
8363 * mdate.sh: Make it POSIX compliant.
8365 2001-03-09 Werner LEMBERG <wl@gnu.org>
8367 Added the `return' request to end a macro immediately. It simply
8368 pops iterators from the input stack until a macro iterator is found.
8370 * src/roff/troff/input.cc (input_iterator::is_macro,
8371 macro_iterator::is_macro): New member.
8372 (input_return_boundary): New class to signal an immediate return
8374 (input_stack::add_return_boundary, input_stack::is_return_boundary):
8376 (input_stack::clear): Use it.
8377 (input_stack::pop_macro): New function.
8378 (while_request): Use `is_return_boundary()'.
8379 (return_macro_request): New function.
8380 (init_input_requests): Use it.
8382 * src/roff/troff/TODO: Updated.
8383 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8385 2001-03-08 Werner LEMBERG <wl@gnu.org>
8387 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8390 2001-03-07 Werner LEMBERG <wl@gnu.org>
8392 Make `\B' more rigid.
8394 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8396 (get_number_rigidly): New function.
8397 * src/roff/troff/input.cc (do_expr_test): Use it.
8398 * src/roff/troff/token.h: Updated.
8400 * src/roff/troff/request.h: Fix typo (init_html_request ->
8401 init_markup_request).
8403 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
8405 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
8406 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8407 are now `.begin', `.end', `.image'.
8409 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8410 (html_printer::add_to_sbuf): Changing type of `code' parameter.
8411 Use add_char_to_sbuf().
8412 (to_unicode): New function.
8413 (char_translate_to_html): Changing type of `ch' parameter.
8415 (html_printer::~html_printer): Comment out doctype string.
8416 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8417 instead of `.html-end'.
8418 (write_start_image): Use `.begin' and `.image' instead of
8419 `.html-begin' and `.html-image'.
8420 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8421 (html_begin): Renamed to ...
8423 (html_end): Renamed to ...
8425 (html_image): Renamed to ...
8427 (init_html_requests): Renamed to ...
8428 (init_markup_requests): This.
8429 * tmac/www.tmac: Updated.
8431 2001-02-28 Bram <bram@avontuur.org>
8433 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8436 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
8438 * doc/meref.me: Fixing some typos.
8440 2001-02-16 Werner LEMBERG <wl@gnu.org>
8442 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8443 method. Return `HYPHEN_MIDDLE' if it was `\:'.
8444 * src/roff/troff/node.h: Updated.
8446 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
8448 * tmac/groff_tmac.man: Fix typo.
8450 2001-02-16 Werner LEMBERG <wl@gnu.org>
8452 Fixing a bug which prevented proper end-of-sentence recognition
8453 between an `unformatted' box and the following text. As a
8454 consequence, vertical line distances are no longer preserved in
8455 boxes after a call to `.unformat' -- because boxes aren't
8456 line-oriented (contrary to diversions), this doesn't make sense
8459 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8461 (vertical_size_node::set_unformat_flag): New method.
8462 * src/roff/troff/node.hh: Updated.
8463 * src/roff/troff/input.cc (word_space_node::reread,
8464 hmotion_node::reread): Reset `unformat' flag after usage.
8465 (unformat_macro): Append only if `set_unformat_flag()' returns
8467 * src/roff/troff/troff.man: Updated.
8469 2001-02-15 Werner LEMBERG <wl@gnu.org>
8471 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8472 documentation of `asciify' and `unformat' requests.
8474 2001-02-13 Werner LEMBERG <wl@gnu.org>
8476 Redesigned the `unformat' request. It is no longer connected with
8477 `asciify' but rather uses new `reread()' methods if the `unformat'
8478 flag is set. Additionally, the handling of space characters after
8479 unformatting has been fixed so that they retain their width.
8481 * src/roff/troff/node.h (width_list): New structure to store
8482 original widths of spaces.
8483 (node): Added `unformat' member.
8484 Replaced `num_spaces' variable with `orig_width' list.
8485 * src/roff/troff/node.cc (*node::asciify,
8486 asciify_reverse_node_list): Removed `unformat_only' flag and related
8488 (word_space_node::asciify, word_space_node::word_space_node): Use
8490 (word_space_node::~word_space_node): New destructor.
8491 (word_space_node::copy): Updated to handle `orig_width'.
8492 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8493 (*node::merge_space): Update `orig_width' list if necessary.
8494 (*node::set_unformat_flag): New methods to set the `unformat' flag.
8495 * src/roff/troff/enc.cc (environment::space_newline): Use
8497 (environment::space): Added method to handle space width and
8498 sentence space width as parameters. Use `width_list'.
8499 (environment::make_tab_node): Updated.
8500 * src/roff/troff/env.h: Updated.
8501 * src/roff/troff/input.cc (word_space_node::reread,
8502 unbreakable_space_node::reread, hmotion_node::reread): New methods
8503 to handle nodes specially if `unformat' flag is set.
8504 (do_asciify_macro): Renamed back to ...
8505 (asciify_macro): This.
8506 (unformat_macro): New implementation to simply set the `unformat'
8509 * MORE.STUFF: Added more info about deroff.
8511 2001-02-08 Werner LEMBERG <wl@gnu.org>
8513 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8514 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8515 and `add_self()' methods to avoid hyphenation. For example, the
8516 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8517 soft hyphen after `foo'. Now the hyphen list is correctly
8518 `foo<ignore><ignore>bar'.
8520 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
8522 * tmac/groff_tmac.man: Fix `BIR' macro.
8524 2001-02-04 Werner LEMBERG <wl@gnu.org>
8526 A new escape sequence `\:', inserting a zero-width break point.
8528 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8529 * src/roff/troff/input.cc (get_copy, token::next, asciify):
8531 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8533 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
8534 and `asciify()' methods.
8535 * src/roff/troff/node.cc (space_node::space_node): Updated.
8536 (space_node::asciify): Handle `was_escape_colon'.
8537 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8539 Handle `\~' similar to other comparable requests.
8541 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8543 (token::next): Move creation of an unbreakable_space_node to...
8544 (token::add_to_node_list): Here.
8546 Fix a bug which sometimes prevented hyphenation of words connected
8547 with `\~' or `\ ' (and other escape sequences handled as
8548 TOKEN_NODE). This also fixes a hyphenation problem with boxes
8549 (after a call to the `unformat' request).
8551 * src/roff/troff/env.h (environment::possibly_break_line,
8552 environment::hyphenate_line): Introducing `start_here' parameter.
8553 * src/roff/troff/env.cc (environment::space_newline,
8554 environment::space): Use it.
8555 (environment::possibly_break_line, environment::hyphenate_line):
8557 * src/roff/troff/input.cc (process_input_stack): Use it.
8558 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8559 space_char_hmotion_node, overstrike_node): Add
8560 `get_hyphenation_type()' method.
8561 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8562 if `unformat_only' is active.
8564 2001-01-30 Werner LEMBERG <wl@gnu.org>
8566 Implemented new read-only number register `.linetabs' which
8567 returns 1 if in line-tabs mode, 0 otherwise.
8569 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8570 * src/roff/troff/env.cc (get_line_tabs): New function.
8571 (init_env_requests): Use it.
8572 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8574 * VERSION, REVISION: Changing to 1.17.0.
8576 2001-01-28 Werner LEMBERG <wl@gnu.org>
8578 Fixed a bug which prevented hyphenation of words which are finished
8581 * src/roff/troff/token.h (token): Add enum type
8582 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8583 * src/roff/troff/input.cc (token::next, token::description,
8584 get_line_arg, token::add_to_node_list, token::process): Use it.
8586 2001-01-27 Werner LEMBERG <wl@gnu.org>
8588 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8589 * src/roff/troff/div.cc (do_divert): Use it.
8591 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8593 2001-01-25 Werner LEMBERG <wl@gnu.org>
8595 Adding the `linetabs' request. If set, tab distances are not
8596 computed relative to the input line but relative to the output line.
8598 * src/roff/troff/env.h (environment): New member `line_tabs'.
8599 * src/roff/troff/env.cc (line_tabs_request): Implement request.
8600 (environment::environment, environment::copy): Updated.
8601 (environment::distance_to_next_tab): Use `line_tabs'.
8602 (init_env_requests): Register request.
8603 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
8606 2001-01-24 Werner LEMBERG <wl@gnu.org>
8608 Introducing a new read-only register `.int' which is set to a
8609 positive value if the last output line is interrupted (i.e., if it
8612 * src/roff/troff/env.cc (init_env_requests): Add it.
8613 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8615 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
8617 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8618 * src/preproc/html/pre-html.cc (findPrefix): New function which
8619 generates the troff executable name via the system prefix.
8620 * src/preproc/eqn/main.cc: Modified warning message.
8622 2001-01-23 Werner LEMBERG <wl@gnu.org>
8624 troff's `box' and `boxa' requests didn't preserve temporary
8627 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8628 `saved_target_text_length' members.
8629 * src/roff/troff/div.cc (do_divert): Use them.
8631 Tabs (but not yet leaders and fields) are now handled correctly by
8634 * node.h (hmotion_node): Add field `was_tab'.
8635 * env.cc (environment::make_tab_node): Set it.
8636 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8638 Added new request `unformat' which will, contrary to `asciify',
8639 preserve font information after unformatting (i.e., only nodes
8640 dealing with horizontal space are converted back to input
8643 * input.cc (asciify_macro): Renamed to ...
8644 (do_asciify_macro): this, having a new parameter `unformat_only'.
8645 (asciify_macro, unformat_macro): New; using do_asciify_macro.
8646 (init_input_requests): Added `unformat'.
8647 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8648 parameter to control asciification process.
8649 * node.h (*_node::asciify): Ditto.
8650 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8652 2001-01-20 Werner LEMBERG <wl@gnu.org>
8654 * doc/groff.texinfo: Minor improvement of `.in' documentation.
8656 2001-01-18 Werner LEMBERG <wl@gnu.org>
8658 * tmac/ps.tmac: Remove call of psold.tmac.
8659 * tmac/psold.tmac: Comment updated.
8660 * tmac/psnew.tmac: Removed since no longer needed.
8661 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8663 * font/devutf8/R.proto: Adding `shc' glyph.
8664 * font/devutf8/NOTES: Updated.
8666 * test-groff: Updated.
8668 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
8670 First cut of the new html device driver. Changes to pre-html and
8671 the new grohtml are too numerous to be documented here.
8673 Stuff related to `html' has been renamed to `html-old' and `html2'
8674 stuff has been renamed to `html' (including directories). The new
8675 html device driver is therefore invoked as `-Thtml'.
8677 Added new `\O' escape to suppress output (needed by html driver).
8679 Added functions and code to pass info about input-level commands
8680 (`.in', `.fl', etc.) to html driver.
8682 Three new functions (.html-begin, .html-end, and .html-image) for
8683 better html handling: `html-begin' will execute the remaining line
8684 if at the outermost nesting level, increasing an internal counter.
8685 `html-end' does the same but decreases the internal counter.
8686 `html_image' puts its arguments into a special node (suppress_node)
8687 to define an image region.
8689 The `output' request has been removed.
8691 * tmac/html-tags.tmac: Removed.
8692 * tmac/arkup.tmac: Updated and renamed to ...
8693 * tmac/www.tmac: New file.
8694 * tmac/markup.tmac Updated and renamed to ...
8695 * tmac/mwww.tmac: New file.
8696 * tmac/Makefile.sub: Updated.
8697 * tmac/an-old.tmac: Updated.
8698 * tmac/eqnrc: Updated.
8699 * tmac/groff_man.man
8700 * tmac/groff_markup.man: Updated and renamed to ...
8701 * tmac/groff_mwww.man: New file.
8702 * tmac/groff_tmac.man: Updated.
8703 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8704 * tmac/html.tmac: Updated and renamed from html2.tmac.
8705 * tmac/pspic.tmac: Updated html support.
8706 * tmac/s.tmac: Added html output support.
8707 * tmac/troffrc, tmac/troffrc-end: Updated.
8709 * Makefile.in, doc/Makefile: Updated.
8710 * doc/groff.texinfo: Added info about new `\O' escape.
8711 * doc/homepage.ms: Use `MAILTO' macro.
8713 * font/devhtml/DESC.proto: Add `C' font.
8714 * font/devhtml/Makefile.sub: Updated.
8715 * font/devhtml/R.proto: Minor fixes.
8716 * font/devhtml-old/Makefile.sub: Updated.
8718 * src/devices/grohtml-old/Makefile.sub: Updated.
8720 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8722 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8723 graphic_start): Add `inline' parameter. Update.
8724 (html_end_suppress, graphic_end): Update.
8726 * src/include/html-strings.h: New file.
8727 * src/include/htmlindicate.h: Comments updated.
8728 * src/include/printer.h: Updated.
8730 * src/preproc/eqn/main.cc (do_file, main): Updated.
8731 * src/preproc/pic/troff.cc (troff_output::start_picture,
8732 troff_output::finish_picture): Updated.
8733 * src/preproc/tbl/main.cc (process_input_file): Updated.
8735 * src/roff/groff/groff.cc (main): Updated.
8736 Pass device arguments to predrivers also.
8737 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8738 * src/roff/troff/env.h (environment): Updated.
8739 New elements `need_eol' and `ignore_next_eol' (for html output).
8740 * src/roff/troff/env.cc (environment::environment): Add initializers
8741 for `need_eol' and `ignore_next_eol'.
8742 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8744 (point_size, fill, no_fill, center, right_justify, line_length,
8745 indent, temporary_indent, break_request, handle_tab): Use
8747 (set_tabs): Use `add_html_tag_tabs()'.
8748 (environment::add_html_tag): Updated.
8749 (environment::do_break): Updated.
8750 * src/roff/troff/div.cc (space_request, flush_output): Use
8751 `environment::add_html_tag()'.
8752 * src/roff/troff/input.cc: Updated.
8753 New variable `html_level' to indicate nested `html-begin' requests.
8754 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8755 (non_interpreted_char_node, token_node, non_interpreted_node): Add
8756 `force_tprint()' method.
8757 (token::next): Handle `\O'.
8758 (do_suppress): Implement it.
8759 (html_begin, html_end, html_image): New functions.
8760 (init_output_requests): Renamed to ...
8761 (init_html_requests): this.
8763 (macro::append_str, macro::append_unsigned, macro::append_int): New
8765 New variable `output_low_mark_miny' to limit minimal value of y.
8766 (reset_output_registers): Use it.
8767 (output_request): Removed.
8768 (get_output_registers): New function.
8769 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8770 (*_node): Added `force_tprint()' if necessary.
8771 (special_node): New elements `tf' and `get_tfont()'.
8772 (suppress_node): New class.
8773 * src/roff/troff/node.cc:
8774 New global variables `image_no' and `suppress_start_page'.
8775 (real_output_file): New method `is_on()'.
8776 (troff_output_file): New method `start_special(tfont)'.
8777 (troff_output_file::really_print_line): Use `tprint' conditionally.
8778 (real_output_file::print_line): Updated.
8779 (real_output_file::on): Updated.
8780 (*_node): Added `force_tprint()'.
8781 (special_node::special_node): Initializer updated.
8782 (special_node::same, special_node::copy, special_node::tprint_start):
8784 (get_reg_int, get_reg_str): New functions.
8785 (suppress_node::*): New methods.
8786 New global variables last_position, last_image_filename;
8787 (min): New inline function.
8788 * src/roff/troff/reg.h, src/roff/troff/request.h,
8789 src/roff/troff/troff.h: Updated.
8791 2001-01-13 Werner LEMBERG <wl@gnu.org>
8793 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8794 documentation of `asciify' request.
8796 2001-01-12 Werner LEMBERG <wl@gnu.org>
8798 * src/roff/troff/input.cc: Move definition of special characters
8799 like `ESCAPE_TILDE' to ...
8800 * src/roff/troff/input.h: New file.
8801 * src/roff/troff/Makefile.sub (HDRS): Add it.
8803 Extending the .asciify request to `unformat' space characters also.
8805 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8806 to count input space characters.
8807 Update constructors to take care of it.
8808 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8809 `ESCAPE_SPACE' instead of normal space.
8810 (word_space_node::asciify): New method.
8811 (unbreakable_space_node::asciify): New method.
8812 (word_space_node::merge_space): New method.
8813 * src/roff/troff/env.cc (environment::space_newline,
8814 environment::space): Add code to initialize `num_spaces' (using the
8815 constructor of `word_space_node').
8816 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8819 2001-01-09 Werner LEMBERG <wl@gnu.org>
8821 * man/groff_char.man: Use table header traps only conditionally.
8823 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
8825 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8827 2001-01-08 Werner LEMBERG <wl@gnu.org>
8829 Introducing the `box' and `boxa' requests which are similar to
8830 `di' resp. `da' but omitting a partially filled line (which is
8831 restored after ending the diversion).
8833 * src/roff/troff/div.h (diversion): Add elements to save partially
8835 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8836 partially filled line.
8837 (divert, divert_append): Updated.
8838 (box, box_append): New functions.
8839 (init_div_requests): Use them.
8840 * src/roff/troff/env.h (environment): do_divert() is now a friend.
8841 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8843 * doc/groff.texinfo: Fix documentation of `lf' request.
8845 2000-12-25 Werner LEMBERG <wl@gnu.org>
8847 * src/roff/troff/troff.man, NEWS: Document `writem' request.
8849 2000-12-21 Werner LEMBERG <wl@gnu.org>
8851 Ignore `ss' request if in compatibility mode.
8853 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8854 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8855 * src/roff/troff/env.cc (space_size): Use it.
8857 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8858 `ss' request in nroff mode.
8860 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8863 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
8865 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8867 2000-12-13 Werner LEMBERG <wl@gnu.org>
8869 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8870 * src/preproc/eqn/neqn.man: Small fixes and additions.
8872 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
8874 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8877 * src/preproc/eqn/neqn.man: New file.
8879 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8882 * tmac/e.tmac: Add `T&' macro.
8883 Fix `indent cannot be negative' warning.
8884 * tmac/s.tmac: Fix `indent cannot be negative' warning.
8886 2000-12-07 Werner LEMBERG <wl@gnu.org>
8888 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8890 2000-12-06 Werner LEMBERG <wl@gnu.org>
8892 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8895 * MORE.STUFF: Added info about deroff for djgpp.
8897 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8898 documentation of -rcR switch.
8900 2000-12-03 Werner LEMBERG <wl@gnu.org>
8902 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8903 if -rcR=1 (which is now the default in nroff mode), a single, very
8904 long page is created instead of multiple pages: All `ne' and `wh'
8905 requests are put into conditionals; a new macro `an-end' is added to
8906 be called with `em'.
8908 Some other minor cleanups.
8910 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8912 2000-12-02 Werner LEMBERG <wl@gnu.org>
8914 Fixing a bug which prevented hyphenation in words followed
8915 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8917 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8918 Adding possibly_break_line().
8919 * src/roff/troff/env.h (environment): Make possibly_break_line()
8922 Make `\~' usable in .tr request.
8924 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8925 (token): Add stretchable_space().
8926 * src/roff/troff/input.cc (token::next, token::delimiter,
8927 token::description, process_input_stack, do_translate,
8928 add_to_node_list, token::process): Use it.
8929 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8930 for adjusting the space.
8931 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
8932 for stretchable space.
8933 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8934 (make_node): Add code for stretchable space.
8935 * src/roff/troff/env.cc (environment::add_char): Use it.
8936 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8937 (get_copy, token::next, transparent_translate, asciify): Use it.
8939 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8940 doc/groff.texinfo: Updated.
8941 * man/groff.man: Small reorderings.
8943 2000-11-23 Werner LEMBERG <wl@gnu.org>
8946 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8948 * src/roff/troff/input.cc (main): Add `config_macro_path' and
8949 `safer_macro_path' to -M option.
8950 * src/roff/troff/troff.man: Fixes.
8952 2000-11-22 Werner LEMBERG <wl@gnu.org>
8954 Use safer path (except for config files) if -U isn't specified. Add
8955 a special macro path (without home and current directory) for config
8956 files. Add home directory to unsafe path for consistency. Don't
8957 include the home directory in the font path.
8959 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8961 * src/include/macropath.h: Add `config_macrp_path'.
8962 * src/libs/libgroff/fontfile.cc: Fix font path.
8963 * src/roff/troff/input.cc (process_startup_file): Use
8964 `config_macro_path'.
8965 (main): Select unsafe path if -U is given.
8967 * src/preproc/eqn/main.cc (main): Fixing search path for
8969 * src/preproc/eqn/eqn.man: Updated.
8971 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8974 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8975 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8976 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8977 src/devices/grotty/grotty.man: Updated.
8979 * Makefile.in: Fix comments.
8981 2000-11-17 Werner LEMBERG <wl@gnu.org>
8983 * tmac/safer.tmac: Empty file added (again) for compatibility
8985 * tmac/Makefile.sub: Updated.
8987 2000-11-16 Werner LEMBERG <wl@gnu.org>
8989 * src/devices/grodvi/dvi.cc (main),
8990 src/devices/grohtml2/post-html.cc (main),
8991 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8992 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8993 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8994 (main), src/preproc/html2/pre-html.cc (main),
8995 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8996 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8997 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8998 (main), src/utils/hpftodit/hpftodit.cc (main),
8999 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9000 (main), src/utils/lookbib/lookbib.cc (main),
9001 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9002 (main): Use stdout for -v.
9003 * src/roff/groff/groff.cc (run_commands),
9004 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9005 to make direct printing to stdout possible.
9006 * src/roff/groff/pipeline.h: Updated.
9008 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9009 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9010 * src/utils/afmtodit/afmtodit.man: Updated.
9012 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9013 (version): New function.
9015 * src/utils/addftinfo/addftinfo.man: Updated.
9017 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9018 Fixing copyright dates.
9020 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9023 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9026 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9028 2000-11-15 Werner LEMBERG <wl@gnu.org>
9030 In all programs, make -v return immediately with exit status 0 to
9031 be compliant with the GNU standard.
9033 * src/devices/grodvi/dvi.cc (main),
9034 src/devices/grohtml2/post-html.cc (main),
9035 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9036 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9037 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9038 (main), src/preproc/html2/pre-html.cc (main),
9039 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9040 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9041 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9042 (main): Implement it.
9045 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
9046 and postprocessors to the -v option.
9048 * src/roff/grog/grog.pl: Implement -v.
9049 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9050 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9052 * src/roff/nroff/nroff.sh: Implement -v.
9053 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9054 * src/roff/nroff/nroff.man: Updated.
9056 * src/preproc/eqn/main.cc (main): Fix comment typo.
9058 * MORE.STUFF: Added info about djgpp port of grap.
9060 2000-11-14 Werner LEMBERG <wl@gnu.org>
9062 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9063 mode (or rather, implemented non-compatibility mode).
9064 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9066 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9067 replacing it -- we don't find gxditview otherwise.
9068 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9070 * src/preproc/pic/depend: Removed. Unnecessary.
9072 Implemented dummy keyword `solid' in pic for compatibility with
9075 * lex.cc (lookup_keyword): Added `solid'.
9076 * pic.y: Added SOLID with dummy rule.
9077 * pic.cc, pic_tab.h: Regenerated.
9078 * doc/pic.ms: Updated.
9080 2000-11-13 Werner LEMBERG <wl@gnu.org>
9082 For security reasons, don't use the current directory but the home
9083 directory while searching and scanning troffrc and troffrc-end.
9084 Similarly, replace the current directory with the home directory
9087 * Makefile.in (fontpath, tmacpath): Remove current directory.
9089 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9090 two parameters `add_home' and `add_current'.
9091 (search_path::~search_path, search_path::command_line_dir,
9092 search_path::open_file): Remove tests for `dirs' being zero.
9093 * src/include/searchpath.h: Adjust.
9094 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9096 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9098 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9099 * src/roff/troff/input.cc: Use `mac_path', initialized with
9101 (process_startup_file): Set `mac_path' to `safer_macro_path'.
9102 * src/roff/troff/env.cc: Use `mac_path'.
9104 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9106 * NEWS, man/roff.man, src/roff/troff/troff.man,
9107 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9110 2000-11-12 Werner LEMBERG <wl@gnu.org>
9112 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9114 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9115 * configure.in: Fix typo in comment.
9116 * configure: Regenerated.
9118 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9121 2000-11-08 Werner LEMBERG <wl@gnu.org>
9123 Add system tmac directory (/usr/local/lib/groff/site-tmac).
9125 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9126 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9129 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9130 * tmac/Makefile.sub (install_data): Create
9131 $(systemtmacdir) and $(localtmacdir).
9132 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9133 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9134 NEWS, doc/groff.texinfo: Updated and minor fixes.
9136 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9137 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9138 $(systemtmacdir) since the wrapper files are platform-dependent.
9140 2000-11-01 Werner LEMBERG <wl@gnu.org>
9142 * doc/groff.texinfo: Fix typo.
9144 2000-10-26 Werner LEMBERG <wl@gnu.org>
9146 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
9147 tmac.doc.old -> doc-old.tmac
9148 tmac.an.old -> an-old.tmac
9150 * tmac/tmac.*: Moved to ...
9151 * tmac/*.tmac: this.
9152 * tmac/man.local: Fix comment.
9153 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9154 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
9155 Added some `FILES' sections. More use of @...@ directives. Other
9157 * arch/djgpp/README, font/devutf8/NOTES: Updated.
9158 * doc/homepage.ms, doc/groff.texinfo: Updated.
9159 * man/groff.man, man/roff.man: Updated.
9160 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9161 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9162 src/devices/grotty/grotty.man: Updated.
9163 * src/preproc/pic/pic.man: Updated.
9164 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9165 instead of -mdoc.old.
9166 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9167 * src/roff/nroff/nroff.man: Updated.
9170 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9172 * tmac/mm.diff: Removed -- it has no use now since the mm package
9175 * tmac/*: Removed trailing spaces.
9177 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9178 the tmac subdirectory also).
9180 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9181 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9182 stuff since it is no longer needed.
9184 * README, PROBLEMS: Updated.
9186 2000-10-25 Werner LEMBERG <wl@gnu.org>
9188 Invert current behaviour: Search first FOOBAR.tmac, then
9191 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9192 (open_mac_file, macro_source): Implement it.
9193 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9194 doc/groff.texinfo, NEWS: Document it.
9196 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9197 Small documentation improvements.
9199 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9202 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9204 2000-10-24 Werner LEMBERG <wl@gnu.org>
9206 Add local tmac directory (groff/site-tmac).
9208 * Makefile.in: Add $(localtmacdir).
9209 (uninstall_dirs): Add $(localtmacdir).
9210 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9211 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9212 in $(localtmacdir). Create $(localtmacdir).
9213 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9214 Updated and minor fixes.
9216 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9218 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9220 2000-10-23 Werner LEMBERG <wl@gnu.org>
9222 Move hyphen.us to tmac directory.
9224 * src/roff/troff/hyphen.us: Removed.
9225 * src/tmac/hyphen.us: Added.
9226 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9228 Change installation structure for data files from .../groff/... to
9229 .../groff/<version><revision>/... to be conform with other GNU
9232 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9233 doc/Makefile: Implement it.
9234 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9235 * configure: Updated.
9236 * arch/djgpp/README, font/devutf8/NOTES: Use it.
9237 * NEWS: Document it.
9238 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9239 @MACRODIR@ instead of hard-coded directories.
9241 2000-10-22 Werner LEMBERG <wl@gnu.org>
9243 Implement $GROFF_BIN_PATH environment variable (which defaults to
9244 $bindir) used for child programs of groff and similar wrappers.
9246 * gendefs.sh: Improve documentation.
9247 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9248 src/preproc/eqn/Makefile.sub (neqn),
9249 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9250 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9252 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9253 $GROFF_PATH__ (the latter for communication with troff).
9254 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9256 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9257 doc/groff.texinfo: Document it.
9259 * doc/groff.texinfo: Improve documentation of troff's -a option.
9261 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
9263 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9264 non-intrusive eol marker.
9265 (troff_output_file::determine_line_limits): New function.
9266 (troff_output_file::draw): Use it.
9267 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9268 output_pending_lines() instead of output_line().
9269 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9270 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9271 createImage): Small fixes.
9273 2000-10-14 Werner LEMBERG <wl@gnu.org>
9275 Replace tmac.safer with a real secure solution.
9277 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9278 system_request, pipe_output): Disable requests if in safer mode.
9279 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9280 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9281 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9282 doc/groff.texinfo, src/roff/groff/groff.man,
9283 src/roff/troff/troff.man, arch/djgpp/README: Updated.
9285 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9286 (resource_manager::output_prolog): Replace setenv() with putenv().
9288 2000-10-09 Werner LEMBERG <wl@gnu.org>
9290 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9291 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9292 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9293 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9294 compilation errors with some compilers. It seems that this code
9295 is no longer necessary -- if yes, it is easy to add some #ifdef's
9296 for that particular old-fashioned compiler.
9298 * MORE.STUFF: Added info about Meta-tbl.
9300 * doc/groff.texinfo: Added more info about `.if "..."..."'.
9302 2000-10-07 Werner LEMBERG <wl@gnu.org>
9304 Adding a new escape sequence \B'...': If the string between
9305 the delimiters is a valid numeric expression, return the character
9306 `1', and `0' otherwise. This is an analogon to \A.
9308 * src/roff/troff/input.cc (do_expr_test): Implement it.
9309 (token::next): Use it.
9310 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9312 * tmac/tmac.trace: Made independent from escape character.
9314 2000-10-06 Werner LEMBERG <wl@gnu.org>
9316 Adding a new request .dei: define indirect. The first and second
9317 parameter of .dei are taken from string registers instead directly;
9318 this very special request is needed to make tmac.trace independent
9319 from the escape character (which might even be disabled).
9321 * src/roff/troff/input.cc (do_define_macro): Implement it.
9322 (define_macro_indirect): New function.
9323 (init_input_requests): Use it.
9325 Adding two requests .ecs and .ecr: Save and restore the escape
9326 character. These two requests are needed to make tmac.trace
9327 independent from the escape character (which might even be
9330 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9332 (init_input_requests): Use it.
9334 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9336 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
9338 Adding a new option -P and new environment variable GROPS_PROLOGUE
9339 to grops, selecting a different prologue file (minor modifications
9342 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9343 src/devices/grops/ps.cc (main): Implement it.
9344 * src/devices/grops/grops.man, NEWS: Document it.
9346 2000-09-22 Werner LEMBERG <wl@gnu.org>
9348 * INSTALL: Add info about selecting paper format.
9350 2000-09-21 Werner LEMBERG <wl@gnu.org>
9352 * src/roff/troff/input.cc (main): Fixing compiler warning.
9353 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9354 strings.h from the former to the latter.
9355 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9356 stuff from the former to the latter.
9358 2000-09-11 Werner LEMBERG <wl@gnu.org>
9360 Implementing two new requests .tm1 and .tmc: The former is similar
9361 to .tm but can output leading spaces; its syntax is similar to
9362 defining a string, i.e., a `"' can be used to mark the beginning of
9363 the string to be written to stderr: `.tm1 " test'. The latter is
9364 similar to .tm1 but doesn't write out a final newline character.
9366 * src/roff/troff/input.cc (terminal1, terminal_continue,
9367 do_terminal): New functions.
9368 (init_input_requests): Use them.
9369 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9371 2000-09-09 Werner LEMBERG <wl@gnu.org>
9373 * tmac/groff_mdoc.samples.man: Small fixes.
9375 2000-09-08 Werner LEMBERG <wl@gnu.org>
9377 * tmac/groff_mdoc.man: Fixing typo.
9379 2000-09-02 Werner LEMBERG <wl@gnu.org>
9381 Implementing a .nop request which does nothing.
9383 * src/roff/troff/input.cc (nop_request): New function.
9384 (init_input_requests): Use it.
9385 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9387 2000-09-01 Werner LEMBERG <wl@gnu.org>
9389 * doc/groff.texinfo: Added some comments.
9391 2000-08-30 Werner LEMBERG <wl@gnu.org>
9393 * src/roff/troff/TODO: Updated.
9395 2000-08-25 Werner LEMBERG <wl@gnu.org>
9397 * doc/groff.texinfo: Fix comment how to compile the DVI file.
9399 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9401 * font/devps/generate/Makefile (SHELL): Define explicitly to
9402 "/bin/sh", for non-Unix platforms.
9403 (extraclean): Use a more portable "" quoting instead of a
9404 backslash (which doesn't work on DOS/Windows).
9406 * font/devlj4/generate/Makefile (extraclean): Ditto.
9408 * font/devdvi/generate/Makefile (extraclean): Ditto.
9410 2000-08-25 Werner LEMBERG <wl@gnu.org>
9412 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9413 src/roff/troff/troff.man: Document Eli's latest changes.
9415 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9417 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9418 macro file names of the form NAME.tmac as well as tmac.NAME.
9420 2000-08-25 Werner LEMBERG <wl@gnu.org>
9422 * src/include/posix.h: Remove definition of FILENAME_MAX.
9424 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9425 `sys_fatal' and `stop' function().
9427 * test-groff: Updated.
9429 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
9431 Added the new troff command .output <arg> to suppress output (while
9432 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9433 registers (for passing the output dimensions to the output device).
9435 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9437 * src/roff/troff/node.h, src/roff/troff/node.cc
9438 (troff_output_file::really_print_line,
9439 ascii_output_file::really_print_line,
9440 supress_output_file::really_print_line): Use `width' parameter.
9441 (troff_output_file::really_on, troff_output_file::really_off,
9442 output_file::on, output_file::off, real_output_file::on,
9443 real_output_file::off, real_output_file::really_on,
9444 real_output_file::really_off): New functions.
9445 (real_output_file:public output_file): New variable `output_on'.
9446 (real_output_file::begin_page, real_output_file::copy_file,
9447 real_output_file::transparent_char, real_output_file::print_line):
9449 (real_output_file::print_line): Use check_output_limits.
9450 * src/roff/troff/reg.h, src/roff/troff/request.h,
9451 src/roff/troff/input.cc (assign_registers): New function to remove
9453 (do_ps_file): Use it.
9454 (check_output_limits, reset_output_registers, output_request,
9455 init_output_requests): New functions.
9456 (init_input_requests): Updated.
9458 Added new grohtml2 device and html2 preprocessor (coding
9459 not yet finished) which will eventually replace grohtml.
9461 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9463 * src/include/htmlindicate.h, src/include/htmlindicate
9464 (html_begin_suppress, html_end_suppress): New functions.
9465 * src/preproc/tbl/main.cc: Use it.
9466 * src/roff/groff/groff.cc: Add support for html2 device (which will
9467 automatically invoke the html2 preprocessor).
9468 * src/roff/troff/input.cc (is_html2): New variable.
9469 * src/roff/troff/troff.h, src/roff/troff/env.h,
9470 src/roff/troff/env.cc (environment::add_html_tag): New function
9472 (environment::do_break): Use it.
9473 * font/devhtml2/*: New files.
9474 * src/devices/grohtml2: New device.
9475 * src/preproc/html2: New preprocessor.
9476 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9478 2000-08-23 Werner LEMBERG <wl@gnu.org>
9480 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9482 2000-08-22 Werner LEMBERG <wl@gnu.org>
9484 * src/include/lib.h: Provide a fix for IRIX to not include
9487 2000-08-18 Werner LEMBERG <wl@gnu.org>
9489 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9490 since some non-GNU sed programs can't handle null regexps.
9491 * configure, src/preproc/eqn/Makefile.sub,
9492 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9494 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9495 bug (string.h and strings.h are both needed according to latest
9498 * MORE.STUFF: Added info about unroff and troffcvt.
9500 2000-08-08 Werner LEMBERG <wl@gnu.org>
9502 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9505 * tmac/tmac.man.old: Remove unused number register.
9507 * tmac.doc: Minor documentation fix.
9509 2000-08-07 Paul Eggert <eggert@twinsun.com>
9511 * src/roff/groff/pipeline.c (is_system_shell):
9512 Fix typo: "monocased_shell" no longer exists.
9514 2000-08-07 Paul Eggert <eggert@twinsun.com>
9516 Remove FILENAME_MAX limits.
9518 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9519 that the argument length is less than FILENAME_MAX.
9520 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9521 Use struct hack to allocate and free file name.
9522 (struct xtmpfile_list): fname is now part of the structure,
9523 not a pointer to another string.
9525 2000-08-07 Tom Schmidt <tschmidt@micron.com>
9527 * src/include/posix.h: Add a default value for FILENAME_MAX.
9529 2000-08-06 Paul Eggert <eggert@twinsun.com>
9531 Add support for new BSD-style man pages (with ".Dd" instead of
9532 ".TH"), so that "groff -man" understands both styles, even
9533 when running "groff -man" on a host whose system man page
9534 macros don't support ".Dd".
9536 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9537 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9538 in case the system man macros don't define Dd or TH.
9540 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9541 * tmac/tmac.an: New one-line file.
9542 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9544 2000-08-06 Werner LEMBERG <wl@gnu.org>
9546 * src/roff/troff/troff.man: Fixing typos.
9548 Version 1.16.1 released
9549 =======================
9551 2000-07-31 Werner LEMBERG <wl@gnu.org>
9553 Preparing release 1.16.1.
9555 * REVISION: Revision number set to 1.
9556 * MORE.STUFF: Added info about port to DOS.
9557 * NEWS, win32-diffs: Updated.
9559 * src/include/nonposix.h: Remove first line -- this file is used
9562 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9565 2000-07-30 Werner LEMBERG <wl@gnu.org>
9567 * doc/texinfo.tex: Update to latest version.
9569 2000-06-28 Paul Eggert <eggert@twinsun.com>
9571 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9572 commands that fail. Don't assume that "export a=b" is valid shell
9573 syntax. This is needed for Solaris 2.5.1.
9575 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9576 comment about missing Solaris headers.
9578 * PROBLEMS: Add section about problems with Sun Make and VPATH.
9580 2000-06-25 Werner LEMBERG <wl@gnu.org>
9582 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9585 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9587 * win32-diffs: Updated.
9588 * README.WIN32: Added CRs to make all Windows editors happy.
9590 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9591 src/roff/groff/pipeline.c).
9593 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9595 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9596 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9598 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
9600 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9601 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9603 (main): Support non-Posix systems with several different styles of
9604 slash characters in file names.
9606 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9607 (main) [SET_BINARY]: Switch stdin into binary mode.
9609 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9610 (main): Support file names with several possible slash-type
9611 characters, as given by DIR_SEPS[] in nonposix.h.
9612 (main) [__MSDOS__]: If renaming the temporary index file fails
9613 because it has more than one dot in its trunk, replace the dot
9614 with an underscore and try again.
9615 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
9617 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9619 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9620 (File::File): Open the input file in binary mode. Strip CR
9621 characters from each CR-LF pair.
9622 (xbasename): Support file names with several possible slash-type
9623 characters, as given by DIR_SEPS[] in nonposix.h.
9625 * src/include/Makefile.sub (HDRS): Add nonposix.h.
9627 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9628 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9629 [!_POSIX_VERSION]: Define for traditional Unix systems.
9630 (real_output_file::real_output_file): Remove the MSVC-specific
9631 call to popen, use instead POPEN_WT, appropriately defined on
9632 nonposix.h. #include nonposix.h.
9633 (real_output_file::~real_output_file): Remove the MSVC-specific
9634 call to pclose, a suitable macro is now defined on nonposix.h.
9635 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9636 and WEXITSTATUS instead of assuming traditional Unix
9637 interpretation of the status returned by pclose.
9639 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9640 call to popen, use POPEN_RT instead (appropriately defined on
9641 nonposix.h). #include nonposix.h.
9642 (ps_bbox_request): Open the PostScript file in binary mode.
9643 Close the file after processing it.
9644 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9647 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9648 A version of run_pipeline that doesn't use `fork'.
9649 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9650 (system_shell_name, system_shell_dash_c)
9651 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9652 the ugliness of testing DOS/Windows file names for equality, and
9653 support both stock shells and ports of Unix shells.
9655 * src/roff/groff/groff.cc: #include nonposix.h.
9656 (BSHELL): Definition moved to nonposix.h.
9657 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
9658 instead of a literal "-c".
9659 (xbasename): Support file names with several possible slash-type
9660 characters, as given by DIR_SEPS[] in nonposix.h.
9661 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9664 * src/preproc/soelim/soelim.cc: #include nonposix.h.
9665 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9667 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9670 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9672 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9675 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9677 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9678 P_tmpdir is defined, use it instead of the literal "/tmp".
9679 (remove_tmp_files, add_tmp_file): New functions.
9680 (xtmpfile): Record temporary files and register an atexit function
9681 to delete them explicitly, instead of relying on the OS to do
9682 that, which doesn't work on non-Unix systems.
9684 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9685 (search_path::search_path): Use PATH_SEP instead of a literal
9687 (search_path::command_line_dir): Ditto.
9688 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9689 to support non-Posix systems.
9691 * src/libs/libbib/search.cc: #include nonposix.h.
9692 (search_list::add_file): Open the file in binary mode.
9694 * src/libs/libbib/linear.cc: #include nonposix.h.
9695 (file_buffer::load): Remove \r characters preceding \n from the
9698 * src/libs/libbib/index.cc: #include nonposix.h.
9699 (make_index_search_item): Open index_filename in O_BINARY mode.
9700 (index_search_item_iterator::get_tag): Ditto. Remove \r
9701 characters before \n characters.
9702 (index_search_item::check_files): Open files in binary mode.
9703 (index_search_item::munge_filename): Support DOS-style file names
9704 with backslashes and drive letters, use IS_ABSOLUTE.
9706 * src/devices/grops/ps.cc: #include nonposix.h.
9707 (main) [SET_BINARY]: Switch stdout to binary mode.
9709 * src/devices/grolj4/lj4.cc: #include nonposix.h.
9710 (main) [SET_BINARY]: Switch stdout to binary mode.
9712 * src/devices/grolbp/lbp.cc: #include nonposix.h
9713 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9715 * src/devices/grodvi/dvi.cc: #include nonposix.h.
9716 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9718 (main) [SET_BINARY]: Switch stdout to binary mode.
9719 [_MSC_VER]: Remove an explicit call to _setmode.
9721 * src/include/nonposix.h: New file.
9723 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9724 operation when building with DJGPP.
9725 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9726 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9729 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9731 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9732 etc. can include a semi-colon on DOS/Windows.
9733 (depend.temp): Use depend1.temp instead of depend.temp1, to
9734 prevent files from overerwiting each other on 8+3 filesystems.
9736 * gendef.sh (t): Change definition to work with DOS/Windows.
9738 doc/groff.texinfo: Apart of some typo corrections, I also changed
9739 some index entris, to make them more non-ambiguous, and also put
9740 @ignore around some parts that are not yet written, to allow the
9741 Info output be readable.
9743 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
9745 Replaced specific checks for function declarations with a generic
9746 routine taken from GNU bfd.
9748 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9749 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9750 * configure.in: Use it.
9751 * src/devices/grolbp/lbp.cc, src/include/lib.h,
9752 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9753 src/roff/groff/groff.cc: Use it.
9754 * Makefile.in, configure: Updated.
9756 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
9758 * src/devides/grolbp/lbp.h: Removed unused variables.
9760 2000-05-31 Keith Thompson <kst@sdsc.edu>
9762 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9765 2000-05-31 Werner LEMBERG <wl@gnu.org>
9767 * aclocal.m4 (GROFF_SRAND): New function to test the return value
9768 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9769 * configure.in: Use it.
9770 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9771 * configure, Makefile.in: Updated.
9773 * configure.in: Add test for strncasecmp().
9774 * src/include/lib.h: Use it.
9776 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
9778 * src/preproc/grn/Makefile.sub: Add MLIB.
9780 2000-05-29 Nix <nix@esperi.demon.co.uk>
9782 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9784 2000-05-29 Werner LEMBERG <wl@gnu.org>
9786 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9788 * PROBLEMS: Small update.
9790 * src/devices/grolbp/lbp.cc: Various small fixes.
9792 2000-05-28 Keith Thompson <kst@sdsc.edu>
9794 * src/roff/nroff/nroff.sh: Fix main loop syntax.
9796 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9798 2000-05-25 Werner LEMBERG <wl@gnu.org>
9800 * man/roff.man: Removed unused macro.
9802 2000-05-24 Werner LEMBERG <wl@gnu.org>
9804 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
9805 This is needed e.g. if you do
9806 `make distclean; ./configure; make dist'.
9808 Version 1.16 released
9809 =====================
9811 2000-05-23 Werner LEMBERG <wl@gnu.org>
9813 Adding font CWI (constant width italic) to devdvi.
9815 * font/devdvi/CWI: New file.
9816 * font/devdvi/generate/Makefile: Add generating rule.
9817 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9818 tmac/tmac.dvi: Use it.
9819 * NEWS: Announce it.
9821 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9822 * font/devlj4/generate/Makefile: Cosmetic changes only.
9824 * man/groff.man: Removed most of the redundant description of
9825 special characters (which is in groff_char.man). Added font
9826 translation CB->CR for devdvi. Other minor fixes.
9828 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9829 (registered) symbols.
9831 2000-05-22 Werner LEMBERG <wl@gnu.org>
9833 * doc/Makefile: Added rule for creating info files.
9835 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
9837 * font/devdvi/generate/Makefile: Fixed dependencies.
9839 * font/devps/*: Regenerated. Heavy changes for Bookman and
9840 NewCentury Schoolbook!
9841 * font/devps/generate/afmname: Will now run with GNU awk.
9842 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9843 * font/devps/generate/Makefile: Cosmetic changes only.
9845 2000-05-21 Werner LEMBERG <wl@gnu.org>
9847 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9848 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
9849 `.SS' now produces a heading with a smaller size than `.SH'.
9850 Completely formatted.
9851 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9853 * man/groff.man: Improved table appearance. Use of `eo' request
9854 to reduce number of doubled backslashes in macro definitions.
9855 Replacing `\e' with `\(rs'. Other minor fixes.
9857 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9858 to have correct line number.
9860 * INSTALL: Small improvement.
9862 2000-05-20 Bernd Warken <bwarken@mayn.de>
9864 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9867 2000-05-19 Bernd Warken <bwarken@mayn.de>
9869 * man/groff.man: Complete update (with a lot of corrections by WL).
9871 2000-05-18 Werner LEMBERG <wl@gnu.org>
9873 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9875 * font/*/*: Implement it.
9876 * man/groff_char.man, NEWS: Document it.
9878 * src/include/unix.h: Removed. It isn't used.
9880 * doc/groff.texinfo: Slight improvements.
9882 2000-05-17 Werner LEMBERG <wl@gnu.org>
9884 * README, win32-diffs: Small fixes and improvements.
9886 2000-05-16 Werner LEMBERG <wl@gnu.org>
9888 * FDL: New file (the Free Documentation License version 1.1).
9890 * doc/groff.texinfo: Added many start-up values for gtroff.
9891 Some structural improvements of the source code.
9893 2000-05-15 Werner LEMBERG <wl@gnu.org>
9895 * src/roff/troff/input.cc: Added small comment about troffrc-end.
9896 * src/roff/troff/troff.man: Added info about troffrc-end.
9898 2000-05-14 Werner LEMBERG <wl@gnu.org>
9900 * Makefile.in (EXTRADIRS): Fix typos.
9901 (dist): Handle deletion of old .tar.gz file correctly.
9902 (DISTDIRS): Include all tty output devices.
9904 * doc/groff.texinfo: Adding more cross references; countless other
9907 2000-05-13 Werner LEMBERG <wl@gnu.org>
9909 * MORE.STUFF: Added Robert Marks's utilities.
9911 2000-05-12 Werner LEMBERG <wl@gnu.org>
9913 Added win32 port contributed by Blake McBride
9914 <blake@florida-software.com>.
9916 * README.WIN32, win32-diffs: New files.
9919 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9920 (tmove, tmove2): Added parentheses to avoid compiler warnings.
9921 (change): Removed unused variables.
9923 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9924 (savebounds): Changed return value from `int' to `void'.
9925 * src/preproc/grn/hdb.cc: Ditto.
9927 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9928 final backslash in comment to avoid compiler warning.
9930 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9932 * doc/groff.texinfo: More fixes.
9934 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
9936 * tmac/tmac.doc: Documentation fix.
9938 2000-05-11 Werner LEMBERG <wl@gnu.org>
9940 * doc/groff.texinfo: Reading the source code shows up a lot of
9941 omissions and incorrect data... More conversion to @Deffn macros.
9943 2000-05-10 Werner LEMBERG <wl@gnu.org>
9945 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9948 * src/roff/troff/request.h: Removing unused `no_break_flag'.
9950 2000-05-09 Werner LEMBERG <wl@gnu.org>
9952 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9955 * doc/groff.texinfo: Extended history section. More conversion to
9956 @Deffn macros. More .tr documentation.
9958 2000-05-07 Werner LEMBERG <wl@gnu.org>
9960 * doc/groff.texinfo: Completed tab section. Added info about
9963 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
9965 * PROBLEMS: Describe configure script fix for OS/390 Unix.
9967 2000-05-05 Werner LEMBERG <wl@gnu.org>
9969 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9971 * NEWS: Document it.
9973 * man/troff.man: Minor optical improvements.
9975 2000-05-03 Werner LEMBERG <wl@gnu.org>
9977 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9979 * font/*/*: Implement it.
9980 * man/groff_char.man, NEWS: Document it.
9982 2000-05-02 Werner LEMBERG <wl@gnu.org>
9984 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9986 * NEWS: Document the three new man pages.
9988 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9989 * configure: Updated.
9991 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9993 2000-05-01 Werner LEMBERG <wl@gnu.org>
9995 Added grap support to grog.
9997 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9998 * src/roff/grog/grog.man: Document it.
10000 * doc/groff.texinfo, NEWS: Add info about grap support.
10002 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10003 (with slight fixes by me).
10005 * tmac/groff_tmac.man: New file documenting tmac mechanism.
10006 * tmac/Makefile.sub: Add groff_tmac.man.
10007 * man/roff.man: New file giving overview of roff system.
10008 * man/troff.man: A short reference of troff.
10009 * man/Makefile.sub: Add roff.man and troff.man.
10011 2000-04-30 Werner LEMBERG <wl@gnu.org>
10013 Added grap support to groff.
10015 * src/roff/groff/groff.cc: Implement it.
10016 * src/roff/groff/groff.man: Document it.
10018 * src/devices/grotty/grotty.man: Add cp1047 device.
10019 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10021 * src/roff/groff/groff.man: Ditto.
10022 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10023 * doc/groff.texinfo: Ditto.
10025 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10028 2000-04-29 Werner LEMBERG <wl@gnu.org>
10030 * man/groff_char.man: Add `pc' glyph.
10031 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10032 * tmac/tmac.tty: Add `pc' glyph.
10033 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
10034 we use cp1047 output device.
10036 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10037 there are still hardcoded latin1->unicode values in utf8's font
10039 * configure: Updated.
10040 * NEWS: Minor clarification. Updated.
10042 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
10045 2000-04-28 Werner LEMBERG <wl@gnu.org>
10047 Adding EBCDIC code page 1047.
10049 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10050 font/devcp1047/DESC.proto: New files.
10052 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10053 either ascii/latin1 or cp1047.
10054 * Makefile.in: Use it.
10055 * configure: Updated.
10057 Replacing and/or adding `md' (mathdot) glyph with `pc'
10058 (periodcentered) in all text fonts.
10060 * font/*/*: Change it.
10062 2000-04-27 Werner LEMBERG <wl@gnu.org>
10064 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10066 * configure.in: Add check for strings.h.
10067 * src/include/driver.h: Use HAVE_STRINGS_H.
10068 * src/devices/grolbp/lpb.cc: Remove string.h.
10070 * src/include/groff-getopt.h: New file. It will be used instead of
10071 getopt.h (to be included in lib.h) to avoid endless problems with
10072 picky C++ compilers.
10073 * src/include/lib.h: Use groff-getopt.h.
10074 * src/include/Makefile.sub: Updated.
10076 * configure: Updated.
10077 * Makefile.in: Updated.
10079 * NEWS: Mention EBCDIC support.
10081 2000-04-26 Werner LEMBERG <wl@gnu.org>
10083 * TODO: Some additions.
10085 2000-04-25 Werner LEMBERG <wl@gnu.org>
10087 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10090 2000-04-23 Werner LEMBERG <wl@gnu.org>
10092 * src/roff/troff/troff.man: Minor fixes.
10094 2000-04-22 Werner LEMBERG <wl@gnu.org>
10096 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10097 `.T' string register and the incompatible definition of the `.T'
10098 number register (compared to Unix troff).
10100 * man/groff_char.man: Add some missing characters.
10101 * font/devutf8/NOTES: Update.
10103 2000-04-21 Werner LEMBERG <wl@gnu.org>
10105 * src/include/htmlindicate.h, src/include/lib.h,
10106 src/include/posix.h: Fix copyright.
10108 * src/include/Makefile.sub: Update.
10110 2000-04-20 Werner LEMBERG <wl@gnu.org>
10112 * src/roff/troff/input.cc (input_char_description): Removing
10113 superfluous space char.
10115 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10117 * doc/groff.texinfo: Document EBCDIC.
10119 2000-04-19 Werner LEMBERG <wl@gnu.org>
10121 Introducing `shc' as the glyph name for the soft hyphen character.
10123 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10124 font/devlatin1/R.proto: Use it.
10128 2000-04-18 Werner LEMBERG <wl@gnu.org>
10130 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10131 dependency on ASCII order.
10133 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
10135 * src/libs/libgroff/illegal.c: Added EBCDIC table.
10136 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10138 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10139 to increase portability.
10141 2000-04-15 Werner LEMBERG <wl@gnu.org>
10143 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10144 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10145 the generic `\n' if under OS/390 Unix.
10147 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10149 * configure: Regenerated.
10151 2000-04-14 Werner LEMBERG <wl@gnu.org>
10153 * doc/groff.texinfo: More conversions to @Deffn.
10155 2000-04-12 Werner LEMBERG <wl@gnu.org>
10157 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10160 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10162 2000-04-10 Werner LEMBERG <wl@gnu.org>
10164 * doc/groff.texinfo: More conversions to @Deffn.
10166 2000-04-08 Werner LEMBERG <wl@gnu.org>
10168 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10169 Updated to latest version (glibc 2.1.3).
10171 2000-04-07 Werner LEMBERG <wl@gnu.org>
10173 * doc/Makefile (clean): Include more index files.
10174 Add rule texinfo->dvi.
10176 2000-04-05 Werner LEMBERG <wl@gnu.org>
10178 * doc/groff.texinfo: Added new index `op' for operators. More
10179 info on end of sentence characters. More use of @Deffn.
10181 2000-03-30 Werner LEMBERG <wl@gnu.org>
10183 * */*.man: Adding a note that a whitespace can be inserted between
10184 a command line option and its parameter -- we are using GNU getopt.
10186 * src/roff/groff/groff.man: Add example of `-m mandoc'.
10188 2000-03-28 Werner LEMBERG <wl@gnu.org>
10190 Correct anachronism of calling the man macro file with `-man'
10191 instead of `-m man' etc.
10193 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10194 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10195 load tmac.<package>.
10197 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
10201 * doc/groff.texinfo: Updated.
10203 * tmac/groff_man.man: Copyright added.
10205 2000-03-27 Werner LEMBERG <wl@gnu.org>
10207 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10208 typeset the request resp. escape name with a tt font -- due to a
10209 bug in texinfo.tex it is necessary to use the `-e' switch with
10212 Improving info about usage of groff units.
10216 2000-03-20 Werner LEMBERG <wl@gnu.org>
10218 * doc/groff.texinfo: Added section about man macro package
10219 (I've basically taken groff_man.man). Introducing new indices `ma'
10220 for macros/strings and `gl' for glyph names. Other minor fixes.
10222 * tmac/groff_man.man: Fixed some typos.
10224 2000-03-19 Werner LEMBERG <wl@gnu.org>
10226 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10229 * doc/texinfo.tex: New file.
10231 2000-03-18 Werner LEMBERG <wl@gnu.org>
10233 * doc/groff.texinfo: Improved section on number registers. Other
10236 2000-03-16 Werner LEMBERG <wl@gnu.org>
10238 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
10241 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10242 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10243 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10244 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10246 * src/preproc/grn/grn.man: Better synopsis; added copyright.
10248 * src/roff/grog/grog.man: Updated copyright date.
10250 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
10252 * configure.in: Added test for strdup.
10254 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10257 Replaced dynamic allocation of arrays `[...]' with `new' operator.
10261 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
10263 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10265 2000-03-11 Werner LEMBERG <wl@gnu.org>
10267 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10269 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10270 * src/include/lib.h: Remove some spaces.
10272 2000-03-10 Werner LEMBERG <wl@gnu.org>
10274 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10275 initializers from arguments (some compilers don't like this).
10277 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
10279 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10280 used by pic and eqn to tell grohtml where the graphic regions start
10282 * src/libs/libgroff/Makefile.sub: Use it.
10283 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10284 graphic_start() and graphic_end() from htmlindicate.cc.
10286 2000-03-09 Werner LEMBERG <wl@gnu.org>
10288 * tmac/tmac.safer: Will now work correctly in compatibility mode.
10289 * tmac/groff_man.man: More fixes.
10291 2000-03-08 Werner LEMBERG <wl@gnu.org>
10293 * doc/Makefile: Added texput.log to the `clean' target.
10294 * doc/groff.texinfo: Added info about delimiters for escapes.
10296 2000-03-08 Bernd Warken <bwarken@mayn.de>
10298 * src/preproc/pic/pic.man: Add info on conversion of pic images to
10299 other graphic formats.
10301 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
10303 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10304 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10305 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10308 2000-03-07 Werner LEMBERG <wl@gnu.org>
10310 * doc/groff.texinfo: Spelling fixes.
10312 2000-03-06 Werner LEMBERG <wl@gnu.org>
10314 * tmac/groff_man.man: Completely revised to cover everything in
10317 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10318 Other minor fixings.
10319 * src/roff/troff/env.cc (environment_copy): Improve error message and
10321 * src/roff/troff/TODO: Updated.
10323 * doc/Makefile: Bug fixes -- this is still provisional, though...
10325 * tmac/eqnrc: Small fixes.
10327 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
10329 Adding a request `evc' to copy environments.
10331 * src/roff/troff/env.cc (environment::copy, environment_copy):
10333 * src/roff/troff/env.h: Add prototype.
10335 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
10337 Adding strsep() -- Solaris 8 doesn't have it.
10339 * configure.in: Test it.
10340 * src/devices/grolbp/lbp.cc: Add code.
10342 2000-03-05 Werner LEMBERG <wl@gnu.org>
10344 * src/roff/troff/div.cc (macro_diversion::output,
10345 top_level_diversion::output): Fixing an incompatibility with
10346 original troff: \x'0' updates the .a register also. Thanks to
10347 <Andries.Brouwer@cwi.nl> for pointing this out.
10348 * doc/groff.texinfo: Document it.
10350 * Makefile.in: Create Makefile.dep if necessary before calling the
10351 submake process to avoid warning about nonexistent file.
10353 * NEWS, PROJECTS: Updated.
10355 2000-03-04 Werner LEMBERG <wl@gnu.org>
10357 * tmac/troffrc: Add tmac.lbp.
10359 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
10361 * tmac/tmac.lbp: New file.
10362 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10365 2000-03-03 Werner LEMBERG <wl@gnu.org>
10367 * Makefile.in: Fixing $(subdir).
10369 * README, NEWS: Small fixes.
10371 * test-groff: Adding path to grolbp.
10373 * configure.in: The (new) file src/xditview/Imakefile.in will be
10374 also configured -- it is now possible to build gxditview in a
10375 directory different from $srcdir.
10377 2000-03-02 Blake McBride <blake@florida-software.com>
10379 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10381 * MORE.STUFF: Added website of bell labs and info about plot2dev.
10383 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
10385 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10388 2000-02-29 Werner LEMBERG <wl@gnu.org>
10390 Adding GNU getopt to the groff distribution.
10392 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10394 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10395 * aclocal.a4: Remove GROFF_GETOPT function.
10396 * configure.in, Makefile.in, PROBLEMS: Update.
10397 * src/include/lib.h: Replace getopt tests with getopt.h.
10398 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10400 * doc/groff.texinfo: Further checking/updating. Adding more index
10403 * man/groff_out.man: Fix nroff mode activation (for emacs).
10404 * man/groff_font.man: Add missing ligature.
10406 2000-02-28 Werner LEMBERG <wl@gnu.org>
10408 * doc/groff.texinfo: Further checking/updating. Adding more index
10411 * src/devices/grolbp/grolbp.man: Added a comment line at the
10412 beginning of the file (similar to shell scripts) which indicates
10413 that `tbl' should be used as a preprocessor.
10415 2000-02-27 Blake McBride <blake@florida-software.com>
10417 Adapting groff to MS Visual C++ 6.0 compiler (tested with
10418 Windows NT 4.0). Uses _MSC_VER define where necessary.
10420 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10421 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10422 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10423 src/include/lib.h, src/libs/libgroff/errarg.cc,
10424 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10425 src/preproc/refer/label.y, src/preproc/refer/label.cc,
10426 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10427 src/roff/troff/div.cc, src/roff/troff/env.cc,
10428 src/roff/troff/input.cc, src/roff/troff/node.cc,
10429 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10430 if_to_a() to avoid name clashes.
10431 * src/include/posix.h: Don't use unistd.h.
10432 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10433 clause for integrating non-Unix xtmpfile() code.
10434 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10435 structure; use "rt" for popen() in pipe_source(); add getpid()
10437 * src/roff/troff/node.cc: Use special versions of popen() in
10438 real_output_file() and pclose() in ~real_output_file().
10440 2000-02-27 Werner LEMBERG <wl@gnu.org>
10442 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10443 LBP-8 series laser printers). This code has been contributed by
10444 Francisco Andrés Verdú <pandres@dragonet.es>.
10446 * src/devices/grolbp/*: The grolbp output device.
10447 * font/devlpb/*: The font description files.
10448 * Makefile.in: Add grolpb and devlbp subdirectories.
10450 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10451 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10454 * doc/groff.texinfo: Further checking/updating. Adding more index
10459 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10461 * man/groff_font.man: Adding info about obsolete DESC keywords.
10462 * src/devices/grolj4/grolj4.man: Documenting additional DESC
10465 2000-02-26 Werner LEMBERG <wl@gnu.org>
10467 * src/preproc/grn/grn.man: Added info about the gremlin file format
10468 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10470 2000-02-25 Werner LEMBERG <wl@gnu.org>
10472 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10473 friends to be non-integer.
10475 * src/preproc/grn/grn.man: Document it.
10477 * doc/groff.texinfo: Further checking/updating. Adding more index
10480 2000-02-24 Werner LEMBERG <wl@gnu.org>
10482 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10483 line thicknesses to be integer multiples of this value.
10485 * src/preproc/grn/grn.man: Commenting out the -s option -- the
10486 corresponding code doesn't work (yet).
10488 * doc/groff.texinfo: Further checking/updating. Adding more index
10491 2000-02-23 Werner LEMBERG <wl@gnu.org>
10493 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10494 specify line thickness instead of base units. The new default
10495 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10496 thick lines respectively.
10498 Removed unused variable `prevval'.
10500 * src/preproc/grn/grn.man: Updated.
10502 2000-02-22 Werner LEMBERG <wl@gnu.org>
10504 * src/preproc/grn/main.cc: Slight formatting.
10506 * src/roff/groff/groff.man: Formatting fix.
10507 * src/preproc/grn/grn.man: Ditto.
10509 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10511 * doc/groff.texinfo: Further checking/updating.
10513 2000-02-21 Werner LEMBERG <wl@gnu.org>
10515 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10517 * test-groff: Added grn subdir to path.
10519 * doc/groff.texinfo: Some restructing and other small improvements.
10521 * src/roff/groff/groff.cc (help): Fixed info string.
10523 2000-02-20 Werner LEMBERG <wl@gnu.org>
10525 * doc/meref.me: Fix description of .GS request.
10527 * src/roff/troff/troff.man: Fixing typo.
10529 Adding the `grn' preprocessor for gremlin graphic files.
10531 * src/preproc/grn/*: This is the Berkeley distribution written by
10532 David Slattengren and Barry Roitblat, adapted to groff by Daniel
10533 Senderowicz and Werner Lemberg.
10535 * doc/grnexampl.{me,g}: A sample for grn.
10537 * Makefile.in: Added subdirectory entry for grn.
10539 * src/roff/groff/groff.cc: Added support for grn. It can be now
10540 called with the switch `-g'.
10542 * src/roff/groff/groff.man: Updated.
10544 * src/roff/grog/grog.{man,pl,sh}: Updated.
10548 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
10550 * src/include/lib.h: Added xtmptemplate and made xtmpfile
10551 parametrically polymorphic.
10553 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10554 and the alterations to xtmpfile.
10555 xtmpfile can be requested to return the filename created
10556 and asked not to unlink the temp file. The default behaviour
10557 if parameters are absent is exactly the same as before.
10559 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
10561 A new request `length' is available which returns the length of a
10562 string in a number register:
10564 * src/roff/troff/input.cc (length_macro): Implement it.
10565 * src/roff/troff/input.cc (init_input_requests): Register it.
10567 2000-02-11 Werner LEMBERG <wl@gnu.org>
10569 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10570 of the `substring' request.
10572 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10575 * src/roff/troff/TODO, NEWS: Updated.
10577 2000-02-09 Werner LEMBERG <wl@gnu.org>
10579 * src/roff/groff/groff.man: Added an example.
10581 2000-02-06 Werner LEMBERG <wl@gnu.org>
10583 I've considerably modified the directory structure of the
10584 distribution to get a more vertical layout. For example, the number
10585 of top level directories has been reduced from 42 to 6.
10587 As a consequence, many changes, especially to the makefiles, were
10590 * The makefile variables `top_builddir' and `top_srcdir' have been
10591 introduced. Virtually all relative paths have been replaced with
10592 absolute ones using these two variables.
10594 * Dependencies (in the files `Makefile.dep') are no longer part of
10595 the distribution. Instead, they are created during a `make install'
10596 in the build directory.
10598 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10599 make `top_srcdir' and `top_builddir' absolute.
10601 Some other changes:
10603 * Man pages now depend on the files `VERSION' and `REVISION'.
10605 * The added shell script `mkinstalldirs' will replace `mkdir' in
10608 * VERSION: Version number increased to 1.16.
10610 2000-02-04 Werner LEMBERG <wl@gnu.org>
10612 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10614 * Makefile.in: Removed $(tmac_m) since it is no longer needed
10615 (after an update of the mm stuff).
10617 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10619 2000-02-03 Werner LEMBERG <wl@gnu.org>
10621 The .psbb request will now also accept Mac PS images (i.e. using LF
10622 as the EOL character).
10624 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10625 (with slight modifications).
10626 * troff/input.cc (do_ps_file): Use it.
10628 * test-groff: Add grohtml and grolj4 output devices to PATH.
10630 2000-01-30 Werner LEMBERG <wl@gnu.org>
10632 * NEWS, MORE.STUFF: Updated.
10634 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
10636 Add the `srand' command to pic.
10638 * pic/lex.cc, pic/pic.y: Implement it.
10639 * pic/pic.man: Document it.
10640 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10642 2000-01-30 Werner LEMBERG <wl@gnu.org>
10644 Add a new request `.psbb'. This does exactly what the external
10645 program psbb did. It scans a PostScript image file for a
10646 %%BoundingBox comment and extracts the bounding box values (in
10647 PostScript units) which are then stored in the four new (read-only)
10648 number registers `llx', `lly', `urx', and `ury'.
10650 This will allow the usage of the .PSPIC macro without worrying
10651 about unsafe behaviour of groff, i.e., it will work without the
10652 `-U' switch of groff.
10654 * troff/input.cc: Implement it.
10655 * tmac/tmac.pspic: Use it.
10656 * troff/troff.man, grops/grops.man, NEWS: Document it.
10657 * psbb/*, Makefile.in: Remove it since it is no longer needed.
10659 This is bloody C code simply adapted from psbb.c! Any improvements
10662 2000-01-29 Werner LEMBERG <wl@gnu.org>
10664 * man/groff_font.man: Minor clarifications.
10668 2000-01-28 Werner LEMBERG <wl@gnu.org>
10670 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10672 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
10674 * man/groff_font.man: Brought up to date regarding tcommand
10676 * libgroff/font.cc: Handle everything after `--' as a comment
10678 * devps/*: Added comment delimiter inside devps font files.
10680 2000-01-28 Werner LEMBERG <wl@gnu.org>
10682 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10683 \fC...\fP (which now works as expected).
10685 * troff/troff.man: Fix typo.
10687 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
10689 Completed the pass_filenames implementation in troff.
10691 * libdriver/input.cc: Will read the new `F' tcommand.
10692 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10693 * troff/input.cc: Use it.
10695 2000-01-26 Werner LEMBERG <wl@gnu.org>
10697 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
10698 font will now be updated even if an invalid font is selected.
10700 2000-01-24 Werner LEMBERG <wl@gnu.org>
10702 * doc/homepage.ms: Updated for new tmac.arkup.
10704 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10706 * tmac/tmac.arkup: Cleanup.
10708 Added `\&' to .HTML macro to `leave vertical mode', so to say.
10710 Removed obsolete .LINK macro completely.
10712 The macros .URL, .FTP, and .MAILTO now accept a third argument which
10713 will be immediately appended to the second argument (to be used with
10714 punctuation, for example).
10716 Disabled .CDFTP macro temporarily for security reasons.
10718 * tmac/groff_markup.man: Complete revision for latest changes in
10719 tmac.arkup -- note that it does not yet format correctly with
10722 2000-01-23 Bruno Haible <haible@clisp.cons.org>
10724 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10725 * devutf8/R.proto: Add mappings for wp, lh, rh.
10726 * devutf8/NOTES: Updated.
10728 2000-01-23 Werner LEMBERG <wl@gnu.org>
10730 * doc/groff.texinfo: Updated version/copyright info.
10732 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
10734 Added support for two new directives in device descriptions:
10735 `pass_filenames' (to pass the input file name to the output device)
10736 and `use_charnames_in_special' (to support e.g. accented characters
10737 in the `X' request).
10739 * include/font.h, troff/charinfo.h: Declare it.
10741 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10743 * devhtml/DESC: Use it.
10745 * troff/input.cc: New function encoded_char.
10747 * troff/token.h: Add test for `specialness'.
10749 2000-01-21 Werner LEMBERG <wl@gnu.org>
10751 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10752 mistake from the list of files to be installed.
10754 2000-01-18 Werner LEMBERG <wl@gnu.org>
10756 * README: Added info how to apply patches.
10758 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
10760 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
10762 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
10764 * troff/input.cc: Add support for troffrc-end.
10766 * tbl/main.cc: Altered to issue table-start and table-end special
10767 characters if using the html device.
10769 * devhtml/*: Modified font files to incorporate html encoding of
10772 * tmac/groff_markup.man: New file documenting tmac.arkup.
10774 * tmac/troffrc-end: New file. This is invoked after all user
10775 specified macros. Currently used by the html device to include
10776 tmac.html. Thus no need for users to specify -mhtml anymore.
10778 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10779 (MAN7): Add groff_markup.man.
10781 * tmac/tmac.an, tmac/tmac.html: Small html updates.
10783 * tmac/troffrc: tmac.arkup will now be called for the html device.
10785 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10786 extra device specific information about fonts.
10788 * doc/homepage.ms: New file. It is an example how an HTML home page
10789 could look like with grohtml.
10791 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
10793 2000-01-12 Bruno Haible <haible@clisp.cons.org>
10795 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
10798 * devutf8/NOTES: Updated.
10800 2000-01-08 Bruno Haible <haible@clisp.cons.org>
10802 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10803 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10804 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10805 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10806 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10807 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10808 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10809 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10812 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10814 2000-01-12 Fabrizio Polacco <fab@prosa.it>
10816 grolj4: Paper size will be searched case-insensitively.
10818 * include/lib.h: Add check for strcasecmp().
10819 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10820 * configure.in: Check for strcasecmp().
10822 2000-01-11 Werner LEMBERG <wl@gnu.org>
10824 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10827 2000-01-10 Werner LEMBERG <wl@gnu.org>
10829 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10832 Add a new read-only register, `.Y', which contains the groff
10835 * troff/input.cc (init_input_requests): Define it.
10836 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10837 * doc/groff.texinfo, troff/troff.man: Document it.
10839 * libgroff/Makefile.sub (version.cc): Add definition of
10840 `Version_string[]', consisting of `<major>.<minor>.<revision>'
10841 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10842 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10843 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10844 troff/input.cc, pfbtops/pfbtops.c: Use it.
10846 2000-01-10 Fabrizio Polacco <fab@prosa.it>
10848 Add a revision scheme to the groff package.
10850 * REVISION: New file.
10851 * libgroff/Makefile.sub (version.cc): Use it to define
10852 `revision_string[]'.
10853 * grops/psrm.cc: Use revision_string (converted to an unsigned
10854 integer) in constructor of resource_manager.
10856 2000-01-10 Bruno Haible <haible@clisp.cons.org>
10858 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10860 * Makefile.in (DEVDIRS): Add devutf8.
10861 * grotty/tty.cc: Include device.h.
10862 (glyph): Change type of `code' to `unsigned int'.
10863 (tty_printer): New field is_utf8. Constructor takes device argument.
10864 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10865 (tty_printer::add_char): Change type of first arg to `unsigned int'.
10866 (tty_printer::put_char): New function.
10867 (tty_printer::end_page): Use put_char() instead of ::putchar().
10868 (make_printer): Pass device to tty_printer constructor.
10869 * nroff.sh: Determine default device by calling 'locale'. As a
10870 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10871 Recognize UTF-8 locales.
10872 * tmac/eqnrc: Recognize utf8 like latin1.
10873 * tmac/troffrc: Device utf8 needs tmac.tty.
10875 2000-01-07 Werner LEMBERG <wl@gnu.org>
10877 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10879 2000-01-07 Paul Eggert <eggert@twinsun.com>
10881 Add a new predefined writeable number register, `year',
10882 which contains the current year.
10884 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10885 * tmac/tmac.s: Use it.
10886 * troff/input.cc (init_registers): Initialize it.
10888 2000-01-06 Werner LEMBERG <wl@gnu.org>
10890 * PROBLEMS: Fixed typo.
10892 2000-01-04 Paul Eggert <eggert@twinsun.com>
10894 * PROBLEMS: Add Y2k advice for the yr number register.
10896 2000-01-03 Paul Eggert <eggert@twinsun.com>
10898 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10900 2000-01-02 Werner LEMBERG <wl@gnu.org>
10902 * tmac/tmac.arkup: Slight modification of macros to provide better
10903 appearance for non-HTML formats.
10905 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
10907 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10908 does not automatically translate to malloc(n) on all OSes
10909 (e.g., SunOS) so do it explicitly. Also, check the returned
10912 2000-01-01 Werner LEMBERG <wl@gnu.org>
10914 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
10916 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10917 expects this variable
10919 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
10921 * doc/Makefile: Added instructions to create HTML and text
10922 versions of some files.
10924 1999-12-31 Werner LEMBERG <wl@gnu.org>
10926 * Updated INSTALL.gen.
10928 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10929 better resp. correctly with non-HTML devices.
10931 Version 1.15 released
10932 =====================
10934 1999-12-28 Werner LEMBERG <wl@gnu.org>
10936 * NEWS, VERSION: Changed to 1.15
10938 1999-12-27 Paul Eggert <eggert@twinsun.com>
10940 * nroff/nroff.man: -S is safer, not safe.
10942 * groff/groff.cc (main): Use `safer', not `safe', in variable
10943 names. This does not change the behavior.
10945 * troff/input.cc (main): Likewise.
10947 * nroff/nroff.sh: Likewise.
10949 * troff/input.cc (prepend_string): New function.
10950 (main): Prepend -msafer, so that we check macro libraries for
10953 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10955 Version 1.14 released
10956 =====================
10958 1999-12-26 Werner LEMBERG <wl@gnu.org>
10960 * NEWS, VERSION: Changed to 1.14.
10962 1999-12-24 Werner LEMBERG <wl@gnu.org>
10964 * refer/refer.cc: Fixing the last fix.
10966 Version 1.13 released
10967 =====================
10969 1999-12-23 Werner LEMBERG <wl@gnu.org>
10971 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10976 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10978 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10979 document conventions, the version number must be a real.
10981 Version 1.12.1 released
10982 =======================
10984 1999-12-22 Werner LEMBERG <wl@gnu.org>
10986 * VERSION: Changed to 1.12.1.
10988 1999-12-22 Alan Rooks <arooks@istar.ca>
10990 * refer/refer.cc (do_file): Slight modification to satisfy the
10991 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10994 1999-12-20 Werner LEMBERG <wl@gnu.org>
10996 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10999 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11000 list of unsafe requests.
11002 * pic/pic.man: Fixed a typo.
11004 * man/groff_out.man: Fixed a typo.
11006 1999-12-18 Werner LEMBERG <wl@gnu.org>
11008 * Makefile.in: Doc fixes.
11010 1999-12-17 Fabrizio Polacco <fab@prosa.it>
11012 * groff/groff.cc: Missing `U' option added to getopt().
11014 * troff/troff.man: Missing `U' option added to synopsis.
11016 Version 1.12 released
11017 =====================
11019 1999-12-14 Werner LEMBERG <wl@gnu.org>
11021 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11024 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11025 with the more appropriate terms `safer' and `unsafe'.
11027 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11028 sys_nerr and sys_errlist[].
11030 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11032 * pic/pic.y, pic/pic.cc: Added check for fmod().
11034 1999-12-13 Werner LEMBERG <wl@gnu.org>
11036 * VERSION: Changed to 1.12.
11038 Here some patches from various sources; most of them taken from
11039 the Debian distribution.
11041 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11042 tmac/Makefile.sub: New files copied directly from the NetBSD
11043 distribution. Probably, some additional adaptation later on is
11046 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11047 of unsafe requests.
11049 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11050 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11051 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
11052 (`-S') is now the default.
11054 * README, NEWS: Updated.
11056 1999-12-09 Werner LEMBERG <wl@gnu.org>
11058 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11060 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11062 1999-12-06 Werner LEMBERG <wl@gnu.org>
11064 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11065 grief than relief today. Additionally, it is against the GNU
11068 * configure: Recreated.
11070 1999-12-05 Werner LEMBERG <wl@gnu.org>
11072 * configure.in: Added GROFF_LIBM.
11074 * configure: Recreated.
11076 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11079 * Makefile.in: Added definition of $(LIBM).
11081 * Makefile.comm (LIBM): Removed.
11083 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11085 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
11087 * doc/Makefile: Added rule for generation pic.html.
11089 (clean): Files produced by grohtml will be removed also.
11091 * doc/pic.ms: Small fix.
11093 * tmac/tmac.html: Fixed suppression of headers.
11095 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
11097 * tmac/tmac.html: Fixing horizontal arrows.
11099 Turning off hyphenation.
11101 * tmac/tmac.an: Improved support for grohtml; better indentation,
11102 no footers/headers.
11104 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
11106 * tmac/tmac.arkup: Added CDFTP macro
11108 * tmac/tmac.html: All headers are turned off for ms, me, and mm
11111 * tmac/troffrc: Some additions for HTML stuff.
11113 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
11115 * tmac/tmac.html: Small changes.
11117 1999-09-26 Werner LEMBERG <wl@gnu.org>
11119 * doc/groff.texinfo: Minor fixes.
11121 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
11123 * devhtml/TR: Changed spacewidth to 3.
11125 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11127 * tmac/tmac.html: Moved markup macros to tmap.arkup.
11129 * tmac/tmac.arkup: New file.
11131 * grohtml/ChangeLog: New file.
11133 1999-09-16 Werner LEMBERG <wl@gnu.org>
11135 * doc/groff.texinfo (Common Features): Added Copying chapter.
11136 Changed format to @smallbook.
11138 1999-09-15 Werner LEMBERG <wl@gnu.org>
11140 * NEWS: Added info about groff.texinfo.
11142 * doc/groff.texinfo: Will now compile (using texi2dvi) without
11145 1999-09-14 Werner LEMBERG <wl@gnu.org>
11147 * groff/groff.man: More updates.
11149 1999-09-13 Werner LEMBERG <wl@gnu.org>
11151 * doc/groff.texinfo: New file. This manual is still very
11152 rudimentary. It has been originally contributed by Trent
11153 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11156 * INSTALL: Added information about the `doc' subdir
11158 * troff/troff.man: Minor fixes.
11160 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11163 * troff/input.cc (usage): Added missing `-ffam' to usage message.
11165 * Makefile.in (dist): groff-$(version).tar.gz must be removed
11166 also, otherwise it is included itself in another call of `make
11169 * groff/groff.cc (synopsis): Removed superfluous space.
11171 * PROJECTS, PROBLEMS, NEWS: Updated.
11173 * VERSION: Updated to 1.12beta.
11175 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
11177 * README: Updated: Included documentation about CVS repository,
11178 mailing lists, and daily snapshots.
11180 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11182 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
11184 * tmac/tmac.an: If the tag didn't fit into the space that the
11185 macro `TP' specifies, the rest of the tag went into the space for
11188 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
11190 * grolj4/lj4.cc: Added duplex printing (option `-d').
11192 * grolj4/grolj4.man: Document duplex printing.
11194 1999-09-12 Werner LEMBERG <wl@gnu.org>
11196 * doc/Makefile (pic.ps): Fixed rule which caused problems with
11197 non-GNUish sed programs.
11199 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11202 * configure.in (LIBS): Added `-lc'
11204 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11206 * pic/tex.cc (solid_arc): Casting M_PI to double.
11208 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11210 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11211 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11212 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11214 * groff/groff_man.man: New file. This manual page was originally
11215 written for the Debian GNU/Linux system by Susan G. Kleinmann
11218 * eqn/list.cc (list_box::compute_metrics,
11219 list_box::compute_sublist_width): Removed variable declaration to
11220 avoid shadowing warnings.
11222 * grops/psrm.cc (resource_manager::process_file): Ditto.
11224 * tfmtodit/tfmtodit.cc (main): Ditto.
11226 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11227 to avoid shadowing warnings.
11229 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11230 shadowing loop variable.
11232 * groff/groff.man, troff/troff.man: Added doc about grohtml.
11234 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
11236 New grohtml frontend to convert groff input to html.
11238 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11240 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11242 * tmac/eqnrc: Added html device.
11244 * tmac/tmac.html: New file.
11246 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11247 (troff_output::start_picture, troff_output::finish_picture),
11248 tbl/main.cc (process_input_file):
11249 Surrounded output with `graphics_start' and `graphics_end' so that
11250 the html driver can identify non-text portions.
11252 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11253 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11254 grotty/tty.ps (tty_printer::set_char): Additional parameter
11257 * include/printer.h: Class printer: New function
11258 set_char_and_width; new variables (is_char_named, is_named_set,
11259 named_command, named_char_s, named_char_n) to hold information
11260 about named characters -- needed by the html driver.
11262 * libdriver/printer.cc (printer::set_ascii_char,
11263 printer::set_special_char): Use set_char_and_width.
11265 * devhtml/*: New device files for html driver.
11267 * grohtml/*: New driver grohtml.
11269 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
11271 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11274 1999-09-11 Luke Mewburn <lukem@netbsd.org>
11276 * libgroff/string.cc (search): Small fix to test against NULL
11279 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
11281 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11282 \b'abc') were stacked in reverse order when processed in a
11285 * troff/node.h: Added `*last' to struct `node' to make the above
11288 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11289 The default scale for the 'f' and 't' graphics functions were 'm'
11290 rather than 'u' (i.e., no scaling).
11292 1999-09-11 Peter Miller <peterm@jna.com.au>
11294 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11295 do_file), soelim/soelim.man: Added `-I file' option to soelim,
11296 defining include paths.
11298 * soelim/soelim.cc (include_path_append): New function.
11300 1999-09-11 Larry Jones <larry.jones@sdrc.com>
11302 * tbl/main.cc (process_options): Unix (at least Documenter's
11303 Workbench) tbl allows arbitrary non-alpha characters between
11306 1999-09-11 Paul Eggert <eggert@twinsun.com>
11308 Y2k fixes. Don't assume that the current year precedes 2000.
11310 * doc/meref.me: Add \n(y2, \n(y4.
11312 * tmac/doc-common (Yr): New number register.
11313 (Dd): Don't assume current year precedes 2000.
11315 * tmac/tmac.e (td): Likewise.
11316 (y2, y4): New number registers.
11318 * pic/pic.man: Update reference for pic paper to May, 1991
11321 1999-09-11 Werner LEMBERG <wl@gnu.org>
11323 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11324 Removed quotation marks which prevented correct expansion of
11327 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11329 1999-09-10 Werner LEMBERG <wl@gnu.org>
11331 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11334 * Removed configure.old.
11336 1999-08-31 Werner LEMBERG <wl@gnu.org>
11338 * VERSION: Updated to 1.11.1
11340 1999-05-27 Werner LEMBERG <wl@gnu.org>
11342 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11344 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11345 added quotations around $(tmac_wrap) to avoid syntax error if
11348 * configure: Newly generated using autoconf 2.13.
11350 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11352 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
11354 * README, PROJECTS, NEWS, INSTALL, VERSION,
11355 doc/Makefile. doc/pic.ms, groff/groff.man:
11356 Prepare for 1.11 release. No code changes.
11357 Documentation for pic added (doc/pic.ms).
11359 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
11361 * Version 1.10 released.
11363 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
11365 * afmtodit/afmtodit.pl: Avoid comment on first line.
11367 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
11369 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11370 * configure.in: Call it.
11372 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11373 (distfiles): Doesn't depend on config.log or config.cache.
11375 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
11377 * grog/grog.sh: Use print "" rather than print in END rule.
11379 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
11381 * tbl/main.cc (process_data): Don't give error for excess data
11382 entries that are comments.
11384 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
11386 * tbl/main.cc (process_data): Fix case where new for-scope rules
11387 silently change meaning of code.
11389 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
11391 * troff/env.cc (hyphenate): Loop over all consecutive sequences
11392 of non-zero hyphenation codes.
11394 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
11396 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11398 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
11400 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11402 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
11404 * tmac/tmac.andoc: Make it work in compatibility mode.
11406 * refer/token.h (token_info::is_range_sep): New function.
11407 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11408 * refer/ref.cc (reference::output): More sophisticated check for
11411 * devps/prologue.ps (MANUAL): New procedure.
11412 * grops/ps.cc (main): New -m option.
11413 (usage): Include -m.
11414 (ps_printer::~ps_printer): Implement -m.
11416 * aclocal.m4 (GROFF_G): New macro.
11417 * configure.in: Call it.
11418 * Makefile.in (g): Provided by configure.
11420 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11422 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
11425 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11426 (tmac_m, tmac_s): Deleted.
11427 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11428 tmac_s_prefix): New variables.
11429 (MDEFINES): Change accordingly.
11430 * Makefile.comm (.man.n): Use new TMAC_* variables.
11431 * configure.in (GROFF_TMAC): Call.
11432 * aclocal.m4 (GROFF_TMAC): Define.
11433 * tmac/Makefile.sub (stamp_wrap): New target.
11434 (install_data, uninstall_sub): Handle macro wrapping.
11436 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
11438 * tbl/main.cc (main): Ignore -T option.
11440 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
11442 * devlj4/generate/special.map: Add definition of \(nb.
11444 * tmac/tmac.dvi: Add definition of \(nb.
11446 * troff/dictionary.c (dictionary::dictionary): association::v gets
11447 initialized by association::association.
11449 * tmac/Makefile.sub: Avoid using temporary files when installing.
11451 * troff/env.cc (environment::set_font): Make bad font number a
11454 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11456 * Makefile.in (datadir): Use share rather than lib.
11458 * groff/groff.cc (basename): Rename to xbasename.
11460 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
11462 * Makefile (CCLIBS): Don't use.
11463 * Makefile.ccpg: Likewise.
11465 * acgroff.m4: Rename to...
11466 * aclocal.m4: Modify extensively for autoconf 2.
11467 * configure.in: Likewise.
11468 * Makefile.in: Likewise.
11470 * groff/pipeline.c (const): Declare as empty if __STDC__ not
11472 (xstrsignal): Check for definition of NSIG. Conditionalize
11473 on SYS_SIGLIST_DECLARED. Make return type const.
11475 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
11477 * troff/input.cc (interpolate_macro): Rephrase missing space
11480 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
11482 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11483 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11484 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11485 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11486 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11487 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11488 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11489 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11490 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11491 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11492 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11495 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
11497 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11499 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11501 (macro_iterator::macro_iterator): Add additional argument.
11503 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
11505 * troff/div.cc (vertical_size::vertical_size): In place of integer
11506 specifying line spacing use cunits specifying post vertical
11508 (macro_diversion::output, top_level_diversion::output): Likewise.
11509 * troff/div.h: Change declarations accordingly.
11510 * troff/env.cc (pending_output_line): Replace ls field by post_vs
11512 (pending_output_line::pending_output_line,
11513 pending_output_line::output, environment::output,
11514 environment::output_line, environment::output_title,
11515 environment::hyphenate_line): In place of
11516 integer specifying line spacing use cunits specifying post vertical
11518 (environment::environment): Add post_vertical_spacing and
11519 prev_post_vertical_spacing arguments.
11520 (environment::get_post_vertical_spacing): New function.
11521 (environment::total_post_vertical_spacing): New function.
11522 (environment::post_vertical_spacing): New function.
11523 (init_env_requests): Initialize pvs request and .pvs register.
11524 * troff/env.h: Change declarations.
11526 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
11528 * tmac/tmac.pspic: Immediately remove the temporary file.
11530 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
11532 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11533 height is specified.
11535 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
11537 * tbl/table.c (struct vertical rule, class table_entry): Use int
11538 not short for start_row and end_row.
11540 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
11542 * troff/input.cc (trapping_blank_line, blank_line_macro): New
11544 (diverted_space_node::reread, process_input_stack): Call
11545 trapping_blank_line() rather than blank_line().
11546 (init_input_requests): Bind "blm" to blank_line_macro().
11548 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11550 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
11552 * troff/env.cc (environment::possibly_break_line): Require that
11553 width total excluding width of final space node be greater than
11554 the target text length.
11556 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
11558 * troff/node.cc (kern_pair_node::vertical_extent): New function.
11560 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
11562 * troff/node.cc (charinfo_node): New class.
11563 (glyph_node, composite_node): Derive from charinfo_node. Change
11564 member functions accordingly.
11566 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
11568 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11570 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
11572 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11574 * devps/generate/textmap (notsubset): Add.
11576 * tmac/tmac.a4: New file.
11578 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
11580 * pic/main.cc (had_parse_error): New variable.
11581 (do_picture, do_whole_file): Set had_parse_error if yyparse()
11583 (main): Return 1 if had_parse_error is true.
11585 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
11587 * grolj4/lj4.cc (main): Avoid use of strtoul.
11589 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
11591 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11592 iso_8859_1 or $LESSCHARSET is latin1.
11594 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
11596 * hpftodit: New directory.
11597 * Makefile.in (CCPROGDIRS): Add hpftodit.
11598 * devlj4/generate: New directory.
11600 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
11602 * configure.in: Don't use AC_VFORK.
11603 * groff/pipeline.c (run_pipeline): Use fork() always.
11605 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
11607 * grops/ps.cc (main): Use %1 not %s in error message for -w.
11609 * Makefile.in (CCPROGDIRS): Add grolj4.
11610 (DEVDIRS): Add devlj4.
11611 * grolj4, devlj4: New directories.
11612 * tmac/troffrc: Handle lj4.
11613 * tmac/tmac.lj4: New file.
11615 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
11617 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11619 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
11621 * troff/input.cc (do_if_request): At end of second string, switch
11622 environments before getting next token.
11624 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
11626 * devps/psstrip.sed: Split rule that strips whitespace on either
11627 side of delimiters.
11629 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
11631 * troff/node.h (font_family::make_definition): Add return value to
11632 declaration. * troff/symbol.h (symbol::operator==,
11633 symbol::operator!=): Likewise.
11635 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
11637 * groff/groff.cc (main, help, synopsis): Handle -S.
11638 (possible_command::insert_arg): New function.
11640 * tmac/tmac.safer: New file.
11641 * tmac/msafer.man: New file.
11642 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11644 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
11646 * pic/pic.h, pic/main.cc (safer_flag): New variable.
11647 * pic/pic.y (placeless_element): Avoid unsafe operations if
11648 `safer_flag' is set.
11649 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11651 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
11653 * eqn/lex.cc (get_token): Put call to add_context() in block to
11654 work around Sun C++ 4.0 bug.
11656 * include/stringclass.h (operator +): Use ?: instead of `if' to
11657 work around Sun C++ 4.0 bug.
11659 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
11661 * tbl/main.cc (process_format): Accept - as a synonym for the _
11664 * libbib/index.cc (minus_one): Don't declare as const.
11666 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
11668 * troff/input.cc (get_char_for_escape_name): Push back a newline.
11670 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
11672 * troff/input.cc (write_macro_request): New function.
11673 (init_input_requests): Bind write_macro_request to writem.
11675 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
11677 * tmac/tmac.s (@EN): Turn filling back on even if there was no
11680 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11682 * tmac/tmac.s (@TS): Renamed from TS.
11683 (TS): Call LP then TS again.
11684 (cov*ab-init): Alias @TS to TS.
11686 * tmac/tmac.s: Allow QP or RS to initialize.
11688 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
11689 Move initializations of PS and LL here.
11690 (par@init): Don't initialize HY. Avoid changing environment 0.
11691 (par*env-init): Don't all par@reset.
11693 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
11695 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11697 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
11699 * Makefile.in (MDEFINES): Add LDFLAGS.
11700 (LDFLAGS): Add definition line.
11702 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
11704 * troff/input.cc (get_optional_char): Split off error check into...
11705 (check_missing_character): New function.
11706 * troff/token.h: Declare it.
11707 * troff/env.cc (margin_character): Don't call get_optional_char.
11708 Only call tok.next() after making the node.
11710 * include/lib.h (getopt): Make 2nd argument char *const *.
11712 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
11714 * nroff/conftest.sh: Deleted.
11716 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
11718 * pic/make-dos-dist: Deleted.
11720 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
11722 * devps/psstrip.sed: Strip comments before stripping trailing
11725 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
11727 * Version 1.09 released.
11729 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
11731 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11733 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
11735 * libgroff/font.cc (font::load_desc): Fix typo in error message.
11737 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
11739 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11740 about returning without a value.
11742 * troff/charinfo.h (charinfo::get_special_translation): Cast
11743 TRANSLATE_NONE to int.
11745 * refer/token.cc (lookup_token, store_token): Remove bogus loop
11746 test. Fix test so that it works with n unsigned.
11748 * pic/pic.y (defaults_table): Fully bracket initializer.
11749 * pic/lex.cc (lookup_keyword): Likewise.
11750 * eqn/lex.cc (token_table, def_table): Likewise.
11751 * eqn/box.cc (param_table): Likewise.
11752 * troff/input.cc (warning_table): Likewise.
11753 * libgroff/font.cc (table): Likewise.
11754 * grops/ps.cc (ps_printer::special): Likewise.
11755 * grops/psrm.cc (resource_manager::process_file): Likewise.
11756 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11757 * refer/command.cc (command_table): Likewise.
11758 * addftinfo/addftinfo.cc (param_table): Likewise.
11760 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11761 about temp's being unused.
11762 (unused): New function.
11764 * groff/pipeline.cc: Declare c_fatal.
11766 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11769 * libbib/index.cc (index_search_item::load): Prevent compiler
11770 warnings about fd_closer's being unused.
11771 (unused): New function.
11773 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
11775 * troff/input.cc (copy_mode_error): Make `prefix' static.
11778 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11780 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11781 HAVE_CC_OSFCN_H and modify accordingly.
11783 * troff/input.cc (init_charset_table): radicalex overlaps
11786 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11787 udodo!hans@relay.NL.net).
11788 * groff/configure.in: Call it.
11790 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11791 * groff/configure.in: Call it.
11792 * include/lib.h: Conditionalize declaration of pclose.
11794 * troff/div.cc (last_page_number): New global variable.
11795 (top_level_diversion::begin_page): Exit if we just printed the
11797 * troff/div.h (last_page_number): Declare it.
11798 * troff/input.cc (parse_output_page_list): Set last_page_number.
11800 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11801 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11802 tmac/tmac.X: Likewise.
11803 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11804 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11806 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
11808 * tmac/doc-ditroff (hK): Remove groff specific code which
11809 prevented page-breaks between separate manual entries. If this is
11810 the first page, don't set the page number to 1.
11812 * acgroff.m4 (GROFF_POSIX): New macro.
11813 * configure.in: Use it.
11815 * troff/node.cc (class real_output_file,
11816 real_output_file::real_output_file,
11817 real_output_file::~real_output_file): Conditionalize use of
11818 popen/pclose on POPEN_MISSING.
11819 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11820 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11821 (pipe_source): Similarily.
11823 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11825 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11826 presence of declarations by trying to compile example with
11827 conflicting declarations. (gcc only gives a warning for missing
11830 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
11832 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11833 (from Ulrich Lauther).
11835 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
11837 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11839 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
11841 * indxbib/indxbib.cc (write_hash_table): Add code for case where
11842 pointers and ints have different sizes.
11844 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
11846 * tmac/tmac.s (par*env-init): Call par@reset.
11848 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
11850 * tmac/tmac.s (@IP): Switch to a new environment when diverting
11852 (par*push-tag-env, par*pop-tag-env): New macros.
11854 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
11856 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11857 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
11859 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11860 comment. Include <time.h>.
11862 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
11864 * grops/ps.cc (is_small_h, is_small_v): Deleted.
11865 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11868 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
11870 * troff/input.cc (read_request): Only print a prompt if reading
11871 from the terminal. Also clearerr on EOF if reading from the
11872 terminal. Declare isatty.
11874 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
11876 * refer/label.y: Rename map_t to map_func and extractor_t to
11879 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
11881 * include/assert.h: Don't use volatile.
11882 * libgroff/assert.cc: Likewise.
11884 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
11886 * troff/input.cc (abort_request): Look at character in tok before
11887 calling get_copy().
11889 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
11891 * troff/troff.h (NO_RETURN): Deleted.
11892 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
11893 * troff/input.cc (exit_troff): Likewise
11895 * Makefile.in: Remove `Making ...' messages since GNU make now
11898 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11900 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
11902 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11903 to constant 1 inch.
11905 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
11907 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11909 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
11911 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11912 MARK_REG if there was no left delimiter.
11914 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
11916 * pic/troff.cc (troff_output::text): Set line thickness to
11917 relative before outputting text.
11919 * tmac/tmac.e (@k): Don't zero ?T.
11922 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
11924 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11926 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
11928 * troff/input.cc (decode_args): Warn about unquoted tabs (from
11931 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
11933 * troff/input.cc (ignoring): New variable.
11934 (ignore): Set ignoring during call to do_define_macro.
11935 (do_define_macro): Clear ignoring before interpolating terminating
11937 (copy_mode_error): New function.
11938 (get_char_for_escape_name, read_long_escape_name,
11939 interpolate_arg): Use copy_mode_error.
11940 (warning_table): Add WARN_IG.
11941 * troff/troff.h (WARN_IG): Declare.
11942 (WARN_TOTAL): Change accordingly.
11944 * groff/pipeline.c (strsignal): Rename to xstrsignal.
11945 * groff/groff.cc (strsignal): Delete declaration.
11947 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
11949 * troff/div.cc (page_offset): Use 'm' as default scaling.
11951 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
11953 * nroff/nroff.sh: Ignore -u.
11955 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
11957 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11959 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
11961 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11963 (B2): With -Tascii, leave additional vertical space before
11964 and after. Ensure that the left and right indent is restored to
11965 what it was even if the point size changes. Don't call
11966 par@finish. Change the indent, line length and title length
11967 directly. With -Tascii, make the width of the box 1n less.
11968 (B1): Remember 1n at the current point size. Don't call
11969 par@reset. Change the indent, line length and title length
11970 directly. Ensure that the temporary indent is preserved.
11971 (par*box-mark-top): Turn off no spacing mode.
11973 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
11975 * Makefile.in (dist): Use .gz suffix.
11977 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
11979 * troff/input.cc (main): Add return 0.
11980 * pic/main.cc (main): Use return instead of exit.
11981 * tbl/main.cc (main): Likewise.
11982 * eqn/main.cc (main): Likewise.
11983 * grops/ps.cc (main): Likewise.
11984 * grotty/tty.cc (main): Likewise.
11985 * groff/groff.cc (main): Likewise.
11986 * grodvi/dvi.cc (main): Likewise.
11987 * refer/refer.cc (main): Likewise.
11988 * indxbib/indxbib.cc (main): Likewise.
11989 * lkbib/lkbib.cc (main): Likewise.
11990 * soelim/soelim.cc (main): Likewise.
11991 * addftinfo/addftinfo.cc (main): Likewise.
11992 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11993 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11995 * troff/token.h (process_input_stack): Don't declare as static.
11996 * troff/input.cc: Likewise.
11998 * troff/node.c (invalidate_fontno): Make it a static member of
11999 class font_family. Change callers.
12000 * troff/node.c: Change declaration.
12002 * tbl/main.cc (struct input_entry_format): Add explicit public
12004 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12005 struct double_hline_stuff): Likewise.
12006 * tbl/table.h (struct entry_format): Likewise.
12007 * pic/object.h (struct saved_state): Likewise.
12009 * include/stringclass.h: Add forward declarations of friend
12010 functions that are later declared as inline. Don't include inline
12011 specifier in friend declaration.
12013 * libgroff/lib.h: Declare popen and pclose.
12014 * acgroff.m4 (GROFF_POPEN): New macro.
12015 * configure.in: Call it.
12017 * include/lib.h (PI): New constant. Undef first if necessary.
12018 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12019 * grops/ps.cc (degrees, radians): Likewise.
12020 * libgroff/font.cc (font::get_skew): Likewise.
12022 * grops/ps.cc (is_ascii): New function.
12023 (ps_output::put_string): Use is_ascii. Use csprint rather than
12025 (ps_printer::define_encoding): Use csspace.
12026 * libgroff/strtol.c (ISASCII): New macro.
12027 (strtol): Cast arguments to is*() and tolower() to unsigned char.
12028 Use ISASCII rather than isascii.
12029 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12030 * libgroff/cset.cc: Likewise.
12031 * libdriver/input.cc: Include cset.h.
12032 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12035 * refer/refer.cc (main): Use %ld rather than %d for longs.
12037 * libbib/index.cc (index_search_item_iterator::get_tag): Use
12040 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12042 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
12044 * troff/input.cc (hyphenation_code): Skip white space between
12047 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
12049 * tbl/table.h (table::entry_list_tailp): New member.
12050 (table::table): Initialize it.
12051 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12054 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
12056 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12057 with negative horizontal positions. Remove casts of glyph::hpos to
12059 (USHRT_MAX): Delete definition.
12060 (SHRT_MAX, SHRT_MIN): New definitions.
12061 (glyph::hpos): Change type to short.
12062 (tty_printer::end_page): Output multiple backspaces if necessary.
12063 Remove casts of glyph::hpos to int.
12065 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
12067 * tmac/tmac.s (@RT): New definition.
12069 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
12071 * refer/refer.cc (do_file): Make sure current_filename is set when
12074 * pic/common.cc (common_output::dot_line): Handle zero length
12077 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
12079 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12080 (par@init): Initialize \n[HY].
12082 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
12084 * troff/dictionary.cc (dictionary::remove): Continue when
12087 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
12089 * Makefile.com (.y.cc): Avoid ending up with two versions of
12092 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
12094 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12095 (\(,C): Likewise. Also fix typo.
12097 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
12099 * lib.h: Delete extraneous semi-colon.
12101 * Add pso request: `so' from a pipe.
12102 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12103 (file_iterator::close): New function.
12104 (file_iterator::~file_iterator, file_iterator::next_file): Use
12105 file_iterator::close.
12106 (file_iterator::backtrace): Say `process' rather than `file' when
12107 the stream is popened.
12108 (pipe_source): New function.
12109 (init_input_requests): Bind ".pso" to pipe_source.
12111 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
12113 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12115 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
12116 digits in lower case.
12118 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
12120 * Version 1.08 released.
12122 * Makefile.in (dist): Insert || true after ln -s commands that
12125 * mm: Update to mm 1.16.
12127 * acgroff.m4 (GROFF_CSH_HACK): New macro.
12128 * configure.in: Call GROFF_CSH_HACK. Substitute for
12130 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
12132 * nroff/Makefile.sub (nroff): New target.
12133 (install_data): Install nroff.
12134 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12135 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12137 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
12139 * eqn/Makefile.sub (neqn): Add chmod +x.
12141 * grog/Makefile.sub (grog): Remove spurious semi-colon.
12143 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
12145 * troff/input.cc (string_iterator::string_iterator()): Initialize
12148 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
12150 * troff/div.cc (macro_diversion::space,
12151 top_level_diversion::space): Don't set high_water_mark.
12152 (macro_diversion::output, top_level_diversion::output): Don't
12153 include post line space in high water mark.
12155 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
12157 * eqn/eqn.y: Don't define YYDEBUG.
12158 * pic/pic.y: Likewise.
12160 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
12162 * tmac/tmac.e ([3): Add space after comma following editors.
12163 Change double spaces to single spaces.
12164 ([4): Change double spaces to single spaces.
12166 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12167 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12168 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12169 after %!PS-Adobe- (for Newsprint).
12171 * troff/div.cc (top_level_diversion::begin_page): When
12172 before_first_page is 1, set page_number to 1.
12174 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
12176 * eqn/box.cc (box::top_level): Protect equation with \&.
12178 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
12180 * groff/groff.cc (possible_command::set_name): Delete old name.
12182 * groff/groff.cc (possible_command::~possible_command): Use
12185 * troff/node.cc (troff_output_file::begun_page): New member.
12186 (troff_output_file::troff_output_file): Initialize it.
12187 (troff_output_file::really_begin_page): Only output V command if a
12188 page has been begun.
12190 * pic/pic.y (placeless_element): Delete argument to PRINT after
12193 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
12195 * Make wrapman work.
12196 * troff/div.h (class top_level_diversion): Replace
12197 first_page_begun by before_first_page (with opposite sense).
12198 * Change first_page_begun to before_first_page inverting sense.
12199 * troff/div.cc (class nl_reg): New class.
12200 (init_div_requests): Use class nl_reg for \n(nl.
12201 (top_level_diversion::begin_page): Don't call
12202 output_file::begin_page if before_first_page is 2;
12203 reset before_first_page afterwards. If have_next_page_number is
12204 false, then always increment page_number.
12205 * tmac/tmac.an: Set traps within TH rather than at the top-level.
12206 Restore compatibility mode after loading, and then disable
12207 compatibility mode in TH.
12209 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
12211 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12213 * troff/node.h (output_file::trailer): Declare.
12214 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12215 * troff/node.cc (output_file::trailer): New function.
12216 (troff_output_file::~troff_output_file): Move most code into...
12217 (troff_output_file::trailer): New function.
12218 (class troff_output_file): Delete page_length member. Declare
12220 (troff_output_file::really_begin_page): Use current page length
12221 for final V command.
12223 * tbl/main.cc (struct options): New decimal_point_char member.
12224 (options::options): Initialize this.
12225 (process_options): Implement decimalpoint option.
12226 (process_data): Pass decimal_point_char option to table::table.
12227 * tbl/table.h (class table): New decimal_point_char member.
12228 (table::table): Add additional argument.
12229 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12230 second argument specifying decimal point character. Use this
12232 (table::table): Initialize decimal_point_char.
12233 (table::add_entry): Change call to find_dot.
12235 * troff/input.cc (get_copy, token::next): Implement \V.
12236 (interpolate_environment_variable): New function.
12238 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
12240 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12241 * pic/pic.y: Likewise.
12243 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12245 * refer/ref.cc (reference::insert_field, reference::delete_field):
12247 * troff/number.cc (parse_term): Likewise.
12249 * acgroff.m4 (GROFF_PROG_YACC): New macro.
12250 * configure.in: Use GROFF_PROG_YACC.
12252 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12254 * Makefile.in (OPTIMIZE): New define.
12255 (DEBUG): Empty by default.
12256 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12258 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12259 (GROFF_ARRAY_DELETE): Likewise.
12260 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12262 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12264 * devps/psstrip.sed: Use different delimiter on last line (so that
12265 it works with BSD 4.4 sed.)
12267 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
12269 * devps/psstrip.sed: Delete comments.
12271 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12272 optind, opterr, optarg.
12273 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12276 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
12278 * Makefile.in (check): Dummy target.
12280 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
12282 * Version 1.07 released.
12284 * Integrate mm 1.11.
12286 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12287 where start_col was meant.
12289 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
12291 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12293 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
12295 * troff/input.cc (token::next): Make \z\o'...' and similar things
12298 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12300 (environment): Add margin_character_flags member.
12301 * env.cc (environment::environment(symbol),
12302 environment::environment(const environment *): Initialize
12303 margin_character_flags.
12304 (margin_character): Rewrite.
12305 (environment::output_line): Add a margin character if
12306 margin_character_flags is non-zero. Turn off the
12307 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
12308 zero, use margin_character_node without copying and then set
12309 margin_character_node to 0.
12311 * devps/DESC.in: Change minimum size to 1000.
12313 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
12315 * troff/symbol.h (symbol::hash): Change return type to unsigned
12317 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12320 * test-groff: Use -r rather than -x.
12322 * grops/psfig.diff: Include in distribution again.
12324 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
12326 * Makefile.in (dist): Use gzip.
12328 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
12330 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12331 unistd.h as well as in stdlib.h.
12332 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12333 defined; otherwise include <sys/types.h> and <unistd.h> if
12334 UNISTD_H_DECLARES_GETOPT is defined.
12336 * configure.in: use builtin(include, ... rather than include(...
12337 * configure: Regenerate with autoconf 1.3.
12339 * libdriver/print.cc (printer::adjust_arc_center): Use new
12340 algorithm suggested by Andy Fyfe.
12342 * libdriver/printer.cc (printer::adjust_arc_center): New function.
12343 * include/printer.h: Declare this.
12344 * grops/ps.cc (ps_printer::draw): Use it.
12345 * grodvi/dvi.cc (dvi_printer::draw): Use it.
12347 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
12349 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12351 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
12353 * eqn/main.cc (main): Handle "eqn -".
12355 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
12357 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12359 * mm: Integrate version 1.08.
12361 * pic/troff.cc (troff_output::finish_picture): Set
12362 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12363 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12364 if it's not defined. Check whether the register is non-zero rather
12365 than whether it's not defined.
12366 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12368 * indxbib/indxbib.cc: Move all signal handling into...
12369 * indxbib/signal.c: New file.
12370 * configure.in: Call AC_RETSIGTYPE.
12372 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12373 * configure.in: Call GROFF_STRUCT_EXCEPTION.
12374 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12376 * troff/input.cc (token::token, token::operator=): Work round SGI
12378 * pic/object.cc (position::position): Likewise.
12380 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
12382 * pic/pic.h: Move declaration of hypot().
12384 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
12386 * pic/pic.h: Declare hypot().
12388 * pic/pic.h: Define M_PI if necessary.
12390 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
12392 * tmac/tmac.e (re): Add alternative version that doesn't use groff
12395 * devps/prologue.ps (RE): Handle the possibility that the old font
12396 doesn't have a FontName entry.
12398 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
12400 * tmac/tmac.e (fam): Redefine to set family in environment 2.
12401 (@C): Use @fam not fam.
12403 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
12405 * lookbib/lookbib.cc (main): Change type of start to const char *.
12406 * lkbib/lkbib.cc (main): Likewise.
12408 * eqn/lex.cc (definition::definition): Don't use member
12409 initializer syntax for members of anonymous unions.
12411 * troff/input.cc (input_stack::backtrace): Change type of to const
12414 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
12416 * include/stringclass.h (class string): Declare inline friend
12417 functions as inline in class declaration.
12418 * troff/hvunits.h (class hunits, class vunits): Likewise.
12419 * include/refid.h (class reference_id): Likewise
12420 * troff/troff.h (points_to_units(units), scale(units, double)):
12421 Delete declarations.
12422 * libdriver/input.cc (get_char): Delete declaration.
12423 * include/lib.h: Change 2nd argument of getopt from const char **
12425 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12426 char **' before assigning to a `const char **'.
12427 * tbl/table.cc: Delete extra declarations of prints().
12429 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
12431 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12432 char **' before assigning to a `const char **'.
12434 * libgroff/errarg.cc (errarg::errarg): Don't use member
12435 initializer syntax for members of anonymous unions.
12437 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
12439 * mm: Integrate version 1.07.
12441 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
12443 * troff/input.c (translate2): Rename to
12444 (translate_no_transparent).
12445 (init_input_requests): Rename tr2 to trnt.
12447 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
12449 * troff/charinfo.h (class charinfo): Add transparent_translate field.
12450 (charinfo::set_translation, charinfo::set_special_translation):
12451 Add second argument that specifies value for
12452 transparent_translate.
12453 (charinfo::get_translation, charinfo::get_special_translation):
12454 Add optional second argument that specifies whether translation is
12455 being used for transparent throughput.
12456 * troff/input.cc (charinfo::set_translation,
12457 charinfo::set_special_translation): Handle second argument.
12458 (charinfo::charinfo): Initialize transparent_translate.
12459 (translate): Split main part off into
12460 (do_translate): New function. Pass argument saying whether
12461 translation applies to transparent throughput.
12462 (translate2): New request.
12463 (init_input_requests): Bind translate2 to `tr2'.
12465 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
12467 * tbl/table.h (class table): Add `nokeep' flag.
12468 * tbl/main.cc (process_options): Handle `nokeep' option.
12469 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12470 table::do_bottom): Don't output keep/release macro definitions or
12471 calls when `nokeep' option has been specified.
12473 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
12475 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12477 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
12479 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12480 block_entry::divert, alphabetic_block_entry::divert): Add extra
12481 argument giving column separation.
12482 (table::compute_widths): Pass column separation to
12483 table_entry::divert().
12484 (block_entry::do_divert): If an entry spans multiple columns and a
12485 minimumum width has been specified for each column, then set the
12486 line length to the sum of the widths (plus possibly the column
12489 * troff/input.cc (set_escape_char): Don't set the escape_char
12490 until after calling has_arg().
12492 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
12494 * tbl/table.cc (table::do_top): Add missing \s0 for double box
12497 * tbl/table.cc (table::print_double_hline): Avoid extra new line
12498 in case where r > nrows - 1.
12500 * tbl/table.cc (BODY_HEIGHT): Deleted.
12501 (LINE_SEP): New definition.
12502 (table::print_single_hline, table::print_double_hline,
12503 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12504 table::do_row, table::do_top): Use LINE_SEP space before a line
12505 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12507 * tbl/table.cc (text_entry::print_contents): New function.
12508 (text_string_name, right_text_string_name): Deleted.
12509 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12510 (simple_text_entry::do_width, numeric_text_entry::do_width,
12511 alphabetic_text_entry::do_width): Don't store the contents of the
12513 (left_text_entry::simple_print, right_text_entry::simple_print,
12514 center_text_entry::simple_print,
12515 alphabetic_text_entry::simple_print,
12516 numeric_text_entry::simple_print): Print the entry directly
12517 instead of using the stored string.
12519 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
12521 * devps/Makefile: Strip PostScript files.
12522 * devps/prologue: Rename to...
12523 * devps/prologue.ps.
12524 * devps/psstrip.sed: New file.
12525 * devps/download: Use .pfa rather than .ps for installed versions
12528 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
12530 * troff/env.cc (input_trap): Give a warning if the argument is out
12533 * troff/env.cc (adjust): Treat negative argument as missing. Round
12534 argument > 5 down to 5.
12536 * troff/env.cc (center, right_justify): Make negative argument zero.
12538 * troff/div.cc (page_offset, vertical_position_traps): Treat
12539 invalid argument as missing.
12540 * troff/env.cc (line_spacing, line_length, title_length, indent,
12541 underline, hyphen_line_max_request, control_char,
12542 no_break_control_char, widow_control_request, adjust, input_trap,
12543 point_size): Likewise.
12544 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12545 constant_space): Likewise.
12546 * troff/input.cc (compatible, shift, warn_request,
12547 set_escape_char): Likewise.
12549 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12550 * tbl/table.cc (table::table): Likewise.
12552 * Makefile.dev (install_dev): depends on $(DEVFILES).
12554 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
12556 * devX75, devX75-12, devX100, devX100-12: New directories.
12557 * Makefile.in: Add these to DEVDIRS.
12559 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12560 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12561 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12562 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12564 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12565 (uninstall): New target.
12566 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12567 uninstall_prog, uninstall_dev): New targets.
12569 * troff/div.cc (return_request): Treat an invalid argument as
12572 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
12574 * tmac/tmac.e ((f): Set up the environment even when there's a
12575 current diversion. Transperently throughput a call to @N.
12578 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
12580 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12581 up to vertical resolution.
12583 * tbl/table.cc (table::do_row): Change row number after printing
12586 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12588 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
12590 * Rename CHANGES to NEWS.
12592 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
12594 * libgroff/new.cc (operator new): Avoid calling malloc(0).
12596 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
12598 * man.ultrix: Removed.
12600 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
12602 * Makefile.comm (extraclean): Delete files whose names begin with
12605 * pic/troff.cc (troff_output::text): Fix typo in implementation of
12608 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
12610 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12611 * troff/div.cc (page_length, need_space, space_request): Treat
12612 invalid optional argument as missing.
12613 * troff/env.cc (number_lines): If the first argument is present
12614 but not a number, turn on line numbering, don't change the next
12615 line number and parse the remaining arguments.
12617 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12619 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
12621 * eqn/box.h: Change declaration accordingly.
12622 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
12623 the specified size was bad but don't give an error. Check for
12625 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12626 * eqn/lex (do_size): Likewise.
12628 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
12630 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12631 compatible headers.
12633 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
12635 * tbl/table.cc (table::init_output): Improve error message when
12636 table won't fit on one page.
12638 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
12640 * pic/troff.cc (troff_output::start_picture): Generate line
12641 containing a horizontal motion equal to the width of the picture.
12643 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12644 using GROFF_COMMAND_PREFIX environment variable.
12646 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
12648 * mdate.sh: Use $NF rather than $(NF).
12650 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
12652 * pic/main.cc (main): Use %1 not %c in argument to warning.
12654 * eqn/main.cc (main): Output code to check that geqn was given the
12657 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
12659 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12660 `ln -s ../Makefile .; make; rm -f Makefile'.
12662 * troff/hyphen: Rename to...
12664 * troff/input.cc (main): Delete -H option. Don't call
12665 read_hyphen_file().
12666 * troff/env.cc: Include searchpath.h and macropath.h.
12667 (exception_dictionary): Deleted.
12669 (read_hyphen_file): Deleted.
12670 (hyphenation_language): New struct.
12671 (class trie, class hyphen_trie): Move declarations up.
12672 (trie_node::~trie_node): Deleted.
12673 (trie::delete_trie_node): New function.
12674 (trie::do_delete): New pure virtual function.
12675 (hyphen_trie::do_delete): New function.
12676 (trie::~trie): New function.
12677 (hyphen_trie::~hyphen_trie): New function.
12678 (trie::clear): No need to chcek that tp is not 0.
12679 (current_language, language_dictionary): New variables.
12680 (hyphen_word): Give an error if no current language. Use
12681 exceptions dictionary in current language.
12682 (hyphen_trie::read_patterns_file): Find file using macro_path.
12683 Allow comments (starting with %) in patterns file. Don't make it
12684 a fatal error if the file can't be found.
12685 (hyphenate): Return if no current language. Get the exceptions
12686 dictionary and the hyphenation patterns from the current language.
12687 (set_hyphenation_language): New variable.
12688 (hyphenation_patterns_file): New function.
12689 (hyphenation_language_reg): New class.
12690 (hyphenation_language_reg::get_string): New function.
12691 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12692 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
12694 * groff/groff.cc (main, help, synopsis): Delete -H option.
12695 * include/Makefile.sub: Don't define HYPHENFILE.
12696 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12697 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12698 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12699 hyphenation patterns.
12701 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
12703 * eqn/neqn.sh: New file.
12704 * eqn/Makefile.sub: Handle neqn.sh.
12706 * eqn/eqn.h: Declare `nroff' variable.
12707 * eqn/box.cc (param_table): Add `nroff' param.
12708 (nroff): Define it.
12709 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12711 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12713 * troff/troff.h (WARN_FONT): New warning.
12714 (WARN_TOTAL): Change accordingly.
12715 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12716 (warning_table): Add WARN_FONT.
12717 * troff/node.cc (mount_font_no_translate): Pass argument to
12718 font::load_font. If this is non-zero, give a warning.
12719 Don't give an error message when accessing a font that has already
12720 been found to be invalid.
12721 * include/font.h (font::load, font::load_font): Add additional
12722 optional argument which suppresses error message if the font is
12724 * libgroff/font.cc (font::load_font): Handle additional argument.
12725 (font::load): Add additional argument. If this is non-null, set it
12726 to 1 and don't give error message.
12728 * include/printer.h (printer::end_page): Add argument giving
12730 * libdriver/input.cc (do_file): Pass this.
12731 * grops/ps.cc (ps_printer::end_page): Add argument.
12732 * grodvi/dvi.cc (dvi_printer::end_page,
12733 draw_dvi_printer::end_page): Add argument.
12734 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12735 columns_per_page members. New member nlines.
12736 (DEFAULT_LINES_PER_PAGE): Deleted.
12737 (tty_printer::tty_printer): Don't compute lines_per_page from
12738 font::paperlength. Don't compute columns_per_page from
12740 (tty_printer::add_char): Don't check horizontal position against
12741 columns_per_page. Grow glyphs vector if neccessary.
12742 (tty_printer::end_page): Add argument giving page_length in units.
12743 Discard lines past end of page.
12745 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
12747 * tmac/tmac.tty-char: Fix definition of \(/l.
12749 * tmac/tmac.X: Define \(en.
12751 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
12753 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12754 lpq, then use lp rather than lpr.
12756 * tmac/tmac.s (par@reset): Don't call `ad'.
12757 (par*env-init): Call `ad'.
12759 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
12761 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12764 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12765 * indxbib/indxbib.cc: Likewise.
12767 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
12769 * libgroff/putenv.c: New file.
12770 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12771 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12772 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12773 stdlib.h with AC_HAVE_HEADERS.
12775 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
12777 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12780 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
12782 * eqn/box.cc (gsize): Make it an int.
12783 (set_gsize): Parse argument handling increment or decrement.
12784 (box::top_level): Convert gsize to a string.
12786 * troff/input.cc (exit_troff): Make buf unsigned char [].
12787 Call to make_temp_iterator casts buf to char*.
12789 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12791 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12792 * Makefile.cpg (depend.temp): Likewise.
12794 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12796 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12798 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
12800 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12802 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
12804 * Version 1.06 released.
12806 * Integrate mm 1.04.
12808 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
12810 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12812 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
12814 * afmtodit/afmtodit.pl: Add -n option that disables generation of
12816 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12817 afmtodit. Regenerate.
12819 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12820 @f back past the current position.
12822 * tmac/tmac.e: Change calls to @R so that comments are not part of
12825 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
12827 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12829 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12830 check that we can link a call to a function declared in <stdio.h>.
12831 (GROFF_UNISTD_H): New macro.
12832 * configure.in: Call it.
12833 * Makefile.in: Document it.
12834 * include/posix.h: New file.
12835 * troff/troff.h: Don't include <osfcn.h>
12836 * troff/input.cc: Include posix.h.
12837 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12839 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12840 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12842 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12843 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12844 * libbib/search.cc (O_RDONLY): Delete definition.
12845 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12846 Don't include <osfcn.h>.
12848 * acgroff.m4 (GROFF_TIME_T): New macro.
12849 * configure.in: Call it.
12850 * Makefile.in: Document it.
12852 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12853 * configure.in: Call it.
12854 * Makefile.in: Document -DTRADITIONAL_CPP.
12855 * include/ptable.h: Don't include generic.h.
12856 (name2): Define it.
12858 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12859 Afterwards remove [T1 and [T2.
12860 (ref*spec!0, ref*spec!2): Use T1 rather than T.
12861 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12862 (ref*add-T2): Renamed from ref*add-T.
12863 (ref*add-T1): New macro.
12865 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
12867 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12869 * libbib/index.cc: Include <fcntl.h>.
12870 (O_RDONLY): Define if necessary.
12871 (make_index_search_item, index_search_item_iterator::get_tag,
12872 index_search_item::check_files): Use O_RDONLY.
12873 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12874 (O_RDONLY): Define if necessary.
12875 (search_list::add_file): Use O_RDONLY.
12876 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12878 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12881 * libbib/index.cc (S_ISREG): Define it if necessary.
12882 (index_search_item::load): Use S_ISREG.
12884 * include/driver.h: Include <errno.h>.
12886 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
12888 * eqn/box.cc (body_height): Increase default value to 85.
12889 (body_depth): Increase default value to 35.
12891 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
12893 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12894 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12895 protected from expansion with \E.
12897 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12899 * Makefile (Makefile): New target.
12901 * Makefile.sub (configure, distfiles): New targets.
12903 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12906 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
12908 * eqn/box.cc (param_table): Add body_height and body_depth.
12910 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12912 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
12914 * psbb/Makefile.sub: Don't link with libgroff.a.
12916 * acgroff.m4 (GROFF_PUTENV): New macro.
12917 * configure.in: Call GROFF_PUTENV.
12918 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12919 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12922 * troff/env.cc (distribute_space): Rename force_forward argument
12923 to force_reverse. Reverse the list if force_reverse is true.
12925 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
12927 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12929 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12930 height or depth to be negative. Guard against SUP_RAISE quantity
12933 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
12935 * devps/generate/textmap: Add `an' (arrowhorizex).
12936 * tmac/tmac.ps: \(an overlaps horizontally.
12937 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12939 * devps/symbolchars: Add arrowverttp, arrowvertbt.
12940 * devps/textmap: Add arrowvertex.
12941 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12942 updownarrow delimiters.
12943 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12945 * tbl/table.cc (simple_entry::position_vertically,
12946 block_entry::position_vertically): For a centered entry, perform
12947 the motion in two stages.
12949 * refer/refer.cc (split_punct): Don't call lookup_token if there
12952 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
12954 * troff/input.cc (token::next): Delete token_node after copying
12957 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12960 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12962 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12964 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
12966 * grops/ps.cc (usage): -b option takes an argument.
12968 * devps/prologue (PLG): New procedure.
12969 * grops/ps.cc (main, usage): New -g option.
12970 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
12973 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
12975 * include/cset.h: Include <limits.h> if we have it.
12977 * libgroff/illegal.cc: New file.
12978 * include/lib.h (illegal_input_char): Use table.
12979 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12980 * pic/lex.cc (ARG1): Renumber to 14.
12981 * eqn/lex.cc (ARG1): Likewise.
12983 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12984 (eg 1.05.90) correctly.
12986 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
12988 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12989 Rename $r and $R registers to $v and $V.
12990 ($r, $R): Initialize to 0.
12991 (@v, @V): New macros.
12995 * troff/input.cc (main, usage): Add -R option that says not to
12997 * eqn/main.cc (main, usage): Rename -n to -R.
12999 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
13001 * devps/DESC.in: Leave font positions 5-9 blank.
13002 * devdvi/DESC.in: Likewise.
13004 * grog/grog.pl: Handle `.PS <file' correctly.
13006 * troff/input.cc (input_stack::push): Improve error message when
13007 input stack limit exceeded.
13009 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
13011 * refer/refer.cc (main): Fix typo in handling of `a' option.
13013 * refer/refer.cc (do_bib): In state START after a newline remain
13016 * groff/groff.sh: Deleted.
13017 * groff/Makefile.sub: Delete handling of groff.sh.
13019 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13020 to determine whether to use \X'ps:...'.
13021 * tmac/troffrc: Set 0p register to 0.
13022 * tmac/tmac.ps: Set 0p register to 1.
13024 * groff/groff.cc: Support -X option. Give warning for -TXps and
13025 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13026 * tmac/troffrc: Support -r.X=1.
13028 * pic/troff.cc (troff_output::dot): Don't test
13029 zero_length_line_flag.
13031 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
13033 * include/lib.h: Declare getopt() and friends unless
13034 STDLIB_H_DECLARES_GETOPT is defined.
13036 * doc/chars.tr: Delete.
13037 * man/groff_char.man: New file.
13039 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
13041 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13042 user has changed register format.
13044 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
13046 * groff/groff.cc: Get rid of device_table. Get postprocessor from
13047 `postpro' command in DESC file. Get spooler command from `print'
13048 command in DESC file. Execute spooler command with /bin/sh.
13050 * groff/groff.cc: Split Unix-specific parts into...
13051 * groff/pipeline.c: New file.
13054 * COPYING: New file.
13055 * all files: Update copyright notices.
13057 * Rearrange files. Redo Makefiles. Use autoconf.
13059 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
13061 * troff/input.c (charinfo_to_node_list): Interpret character
13062 definition with escape_char of `\'.
13064 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
13066 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13067 Define INT_DIGITS as big enough for 64-bit integer.
13068 * lib/strtol.c: Don't include lib.h.
13069 * lib/lib.h: Delete ifdef __cplusplus stuff.
13071 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
13073 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
13074 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
13075 get DESC from current directory.
13077 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
13079 * tbl/main.c (main): Always reset the line number when reading
13082 * tbl/table.c (table::print_single_hline, table::print_double_hline,
13083 table::define_bottom_macro, table::do_row, table::do_top): Round
13084 vertical spacing up to vertical resolution.
13086 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
13088 * ps/ps.h (enum resource_type): Avoid comma at end of
13090 * dvi/dvi.c (class dvi_printer): Likewise.
13091 * dvi/tfmtodit.c (gf::load): Likewise.
13092 * refer/label.y (struct expression): Likewise.
13093 * refer/refer.c (class label_processing_state): Likewise.
13094 * refer/indxbib.c (do_file): Likewise.
13095 * troff/troff.c (enum warning_type): Likewise.
13096 * tbl/main.c (process_data): Likewise.
13097 * troff/charinfo.h (class charinfo):
13099 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
13101 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
13103 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
13105 * groff.c: Move to new groff subdirectory.
13106 * groff/Makefile: New file.
13107 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13109 * man/mdate.sh: Use ls -L if supported.
13111 * Consolidate all header files produced by gendef into lib/defs.h.
13112 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13113 Don't include path.h.
13114 * lib/Makefile (path.h): Don't generate.
13115 * troff/input.c: Include defs.h. Don't include config.h.
13116 * troff/Makefile (config.h): Don't generate.
13117 * refer/index.h: Don't include suffix.h.
13118 * refer/index.c: Include defs.h.
13119 * refer/indxbib.c: Include defs.h.
13120 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13122 * refer/Makefile (suffix.h, path.h): Don't generate.
13123 * groff.c: Don't include config.h. Include defs.h.
13124 * Makefile (config.h): Don't generate.
13125 (lib/defs.h): Generate.
13126 (topclean): Remove lib/defs.h.
13128 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
13130 * lib/malloc.c, lib/getpagesize.h: Deleted.
13131 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
13133 * lib/Makefile: Delete malloc-related stuff.
13134 * lib/new.c: Workaround COOKIE_BUG if necessary.
13136 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
13137 needed header files directly.
13138 * refer/refer.h: Omit definition of DEFAULT_INDEX.
13139 * Makefile: Include definition of DEFAULT_INDEX in path.h.
13141 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
13143 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13145 * lib/font (font::load_desc, font::load): Don't split argument of
13147 (font::handle_unknown_font_command): Change type.
13148 * ps/ps.c (ps_font::handle_unknown_font_command,
13149 handle_unknown_desc_command): Change type.
13150 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13152 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
13154 * lib/font.h (font::handle_unknown_font_command): Add file and
13156 * lib/font.c (font::handle_unknown_font_command):
13157 * ps/ps.c (ps_font::handle_unknown_font_command):
13158 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13159 lineno arguments. Use _with_file_and_line functions for error
13162 * lib/fontfile.c (font::unknown_desc_command_handler): New static
13164 * lib/font.c (font::set_unknown_desc_command_handler): New
13166 (font::load_desc): For unknown commands, call
13167 unknown_desc_command_handler if not null.
13168 * lib/font.h (class font): Declare them.
13169 (FONT_COMMAND_HANDLER): New typedef.
13170 * ps/ps.c (handle_unknown_desc_command): New function.
13171 (main): Set bflag if we had a -b option. Call
13172 font::set_unknown_desc_command_handler.
13173 (broken.h): Don't include.
13174 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
13176 * ps/devps/Makefile: Add `broken' command to DESC file using
13177 BROKEN_SPOOLER_FLAGS.
13179 * macros/tmac.e ([, ]): Add as synonyms for { and }.
13181 * macros/tmac.e ($p): Only exdent if \$3 > 0.
13183 * macros/tmac.e (@R, @S): New macros.
13184 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13185 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13186 Declare $H, $[0-9], .. macros with @S.
13187 Declare |0, |1, |2, |3 strings with @S.
13189 * macros/tmac.e (@S): Rename to @U.
13191 * macros/tmac.e (@z): Define @b and bp as empty instead of
13194 * macros/tmac.e (@m): Deleted.
13195 (@h): Don't call @m.
13196 (@z): Don't set @m trap.
13198 * macros/tmac.e ($h, $f): Define |z as empty string.
13200 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13203 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13205 ()f): Likewise for * register.
13207 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13208 argument is missing, don't change $R. Call sr with three
13209 arguments when initializing.
13211 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
13213 * macros/tmac.e (sr): New macro.
13214 Initialize $r and $R using sr.
13216 * macros/tmac.e (,): Delete \*(#[.
13218 * troff/env.c (set_tabs): Read the tab type even if the position
13219 is bad. Allow the position of the first tab stop to be negative.
13221 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
13223 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13225 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13226 rather than -DPATHCONF_MISSING.
13227 * Makefile: Get rid of PATHCONF_MISSING.
13229 * refer/map.c: New file.
13230 * refer/index.c: Interface to mmap through map.c. Rename map_size
13232 * refer/Makefile: Handle map.c.
13233 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13235 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
13237 * Makefile: RANLIB should be `true' if there is no ranlib.
13238 * lib/Makefile (libgroff.a): Simplify.
13239 * driver/Makefile (libdriver.a): Simplify.
13241 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13242 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
13245 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
13247 * troff/env.c (compare_ranges): Declare as extern "C".
13249 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13251 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13253 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
13255 * pic/troff.c (troff_output::text): Merge in grops_output::text,
13256 but conditionalize use of \X based on \*(.T.
13257 (grops_output::*): Deleted.
13258 * pic/output.h: Delete declaration of make_grops_output.
13259 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
13260 by default. -n sets it to 0.
13261 (usage): Corresponding changes.
13262 * groff.c (main): Don't pass -x or -p to pic.
13263 * groff.sh: Likewise.
13265 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13268 * ps/devps/afmtodit: Change calculation of asc_boundary and
13269 desc_boundary. Make these bounds inclusive.
13270 * ps/devps: Regenerate font files.
13272 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
13274 * macros/tmac.latin1: New file.
13275 * macros/tmac.tty-char: Use tmac.latin1.
13276 (tmac.tty-tr): Deleted.
13277 * macros/Makefile: Install tmac.latin1.
13278 * macros/tmac.dvi: Use tmac.latin1.
13279 * macros/troffrc: Translate \[char160] onto no-break space here.
13280 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13282 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
13284 * macros/tmac.Xps: Use `do' request.
13286 * macros/tmac.ps: Use `do' request.
13288 * macros/tmac.e (@C): Use `do' request.
13290 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13291 * macros/Makefile: Install tmac.X*.
13293 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13294 * tty/Makefile: Don't install tmac.tty*.
13295 * macros/Makefile: Install tmac.tty*.
13297 * dvi/tmac.dvi: Move to macros.
13298 * dvi/Makefile: Don't install tmac.dvi.
13299 * macros/Makefile: Install tmac.dvi.
13301 * ps/tmac.ps*: Move to macros.
13302 * ps/Makefile: Don't install tmac.ps*.
13303 * macros/Makefile: Install tmac.ps*.
13305 * eqn/box.c: Provide draw_lines parameter corresponding to -D
13307 * macros/eqnrc: Set draw_lines parameter based on device.
13308 * groff.c: Don't pass -D flag to eqn.
13309 * groff.sh: Likewise.
13310 * eqn/main.c: Warn about use of -D.
13312 * troff/input.c (process_startup_file): New function.
13313 (main): Call process_startup_file().
13314 * macros/troffrc: New file.
13315 * macros/Makefile: Install troffrc.
13316 * groff.c (main): Don't pass extra -m option to troff. For a
13317 pseudo device pass the name of the pseudo device to troff using
13319 * groff.sh: Likewise.
13320 * groff.c (possible_command::prepend_arg): Deleted.
13322 * troff/input.c (do_request): New function.
13323 (init_input_requests): Bind "do" to do_request.
13325 * eqn/main.c (main): Instead of loading eqnchar from device directory,
13326 load eqnrc from macro directory.
13327 * macros/eqnrc: New file.
13328 * macros/Makefile: Install eqnrc.
13329 * ps/devps/eqnchar: Deleted.
13330 * ps/devps/Makefile: Don't install eqnchar.
13331 * dvi/devdvi/eqnchar: Deleted.
13332 * dvi/devdvi/Makefile: Don't install eqnchar.
13333 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13336 * lib/device.[ch]: New files.
13337 * lib/font.h (font::set_device_name, font::get_device_name):
13339 * lib/fontfile.c: Use device.h.
13340 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13341 * troff/input.c: Delete definition of `device'.
13342 (main): Don't initialize device.
13343 * troff/troff.h: Include device.h rather than declaring device.
13344 * troff/Makefile: No need to handle DEVICE.
13345 * driver/input.c: Include device.h. Don't use
13346 font::{set,get}_device_name.
13347 * groff.c, Makefile: Rename device.h to config.h.
13348 * groff.c: Use library device variable.
13349 * eqn/main.c: Use library device variable.
13350 * eqn/Makefile: No need to handle DEVICE.
13352 * lib/searchpath.[ch]: New files.
13353 * lib/Makefile: Handle searchpath.[ch].
13354 * troff/input.c (open_file, init_dirs): Deleted.
13355 (macro_dirs): Deleted.
13356 (open_mac_file, macro_source): Use class search_path.
13357 (add_string, struct string_list): Move definition.
13358 (main): Change -M option to use macro_path. Delete call to
13360 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13361 Rewrite to use class search_path.
13362 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13363 * lib/Makefile: fontfile.c depends on searchpath.h.
13364 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13366 * lib/macropath.[ch]: New files.
13367 * troff/Makefile: No need to handle MACROPATH.
13369 * troff/input.c: Delete DUMP code.
13370 * lib/fontfile.c, lib/font.h: Delete
13371 font::forget_command_line_font_dirs.
13373 * troff/input.c (push_token): New function.
13374 (handle_first_page_transition): Use push_token().
13375 (process_input_stack): Change handling of a space at the beginning
13378 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
13380 * troff/input.c (font_dirs): Delete unused variable.
13382 * eqn/lex.c (do_set): Correct error messages.
13384 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
13386 * troff/input.c (do_define_string): Allow the string name to be
13387 followed immediately by a tab.
13388 (define_character): Likewise.
13390 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
13392 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13395 * troff/input.c (input_iterator::is_file): New virtual function.
13396 (file_iterator::is_file): New function.
13397 (input_stack::end_file): New function.
13398 (input_stack::next_file): Handle the situation where there is no
13399 file on the input stack correctly. Avoid making two passes over
13401 (next_file): Make the filename optional; in this case call
13402 input_stack::end_file().
13404 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
13406 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13407 produce a real _ charater when the current font is CW and _
13410 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13411 expression to work around gcc 2.2 bug.
13413 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
13415 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13417 * troff/env.c (environment::add_padding): New function.
13418 (environment::add_char): Use add_padding().
13419 (environment::space): Likewise.
13420 (environment::wrap_up_field): Add some padding if there is none
13421 and there's no current tab.
13422 * troff/env.h: Declare environment::add_padding.
13424 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
13426 * pic/pic.y: undef fmod and rand before declaring them.
13428 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
13430 * troff/input.c (main): If the DESC file specifies a font name of
13431 0, then leave the corresponding font position empty.
13433 * nroff.sh: New file.
13434 * Makefile (install.nobin): Install nroff.sh.
13436 * tty/devlatin1/R.proto: Add ao as synonym for de.
13437 * tty/tmac.tty-char: Define ao as o.
13439 * tty/dev{ascii,latin1}/R.proto: Add aq.
13440 * tty/tmac.tty-char: Delete definition of aq.
13442 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
13444 * troff/input.c (init_charset_table): Don't translate 0240.
13445 * ps/tmac.ps: Translate char160 to space.
13446 * dvi/tmac.dvi: Likewise.
13447 * tty/tmac.tty: Likewise.
13449 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
13451 * dvi/tmac.dvi: Add support for all Latin-1 characters.
13453 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13454 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13457 * tty/tmac.tty-char: Add \(ah.
13459 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13460 No need to define \(FM and \(!/. Conditionalize all character
13463 * ps/devps/lgreekmap: Add +h, +f, +p.
13465 * ps/tmac.psnew: New file.
13466 * ps/Makefile: Install tmac.psnew.
13468 * troff/input.c (charinfo_to_node_list): Don't ever interpret
13469 character definitions in compatible mode.
13471 * troff/input.c (remove_character): New function.
13472 (init_input_requests): Bind remove_character to "rchar".
13474 * ps/tmac.psold: New file.
13475 * ps/Makefile: Install tmac.psold.
13476 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13477 characters into tmac.psold. Make these definitions unconditional.
13479 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13481 * ps/tmac.ps: Don't define \('c and \('C.
13483 * ps/devps/textmap: Move Greek characters to...
13484 * ps/devps/symbolchars:
13486 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
13488 * ps/devps/text.enc: Add quotesingle.
13489 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13490 * tty/tmac.tty-char: Likewise.
13491 * dvi/devdvi/texmi.map: Add +h, +f, +p.
13492 * dvi/devdvi/texi.map: Add Fn.
13493 * dvi/devdvi/msam.map: Add lz.
13494 * dvi/tmac.dvi: Handle Bq, bq, aq.
13496 * pic/lex.c (get_token): Recognize 'th.
13497 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13499 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
13501 * ps/devps/textmap: Move di, mu, +- to...
13502 * ps/devps/symbolchars:
13504 * macros/tmac.s (@XS): Don't call par@reset or fi.
13505 (XA): Call LP. Turn off adjustment. Reduce line length.
13507 * macros/tmac.s: Initially alias XS to LP.
13508 (XS): Rename to @XS.
13509 (cov*ab-init): Alias XS to @XS.
13511 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
13513 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13514 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13515 (token::is_size, token::changes_env): Deleted.
13516 * troff/number.c (parse_term): No need to process \s explicitly.
13517 Call tok.next() only after scale indicator has been processed.
13518 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13520 (token::next): Handle \s, \f, \S, \H immediately rather than
13521 returning them as tokens.
13522 (token::operator==, token::description, token::add_to_node_list,
13523 token::process): Remove handling of deleted tokens.
13525 * troff/env.c (environment::add_char): When adding padding
13526 indicator character, call start_line() if necessary.
13528 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
13530 * ps/devps/afmtodit: Don't output 0 kerns.
13532 * ps/devps/afmtodit: Remove directory from name of encoding in
13533 font description file.
13535 * ps/devps/afmtodit: Improve error messages.
13537 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13539 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13540 * ps/devps/FontMakefile: Deleted.
13541 * ps/devps/afmname: New file.
13543 * ps/devps/symbol.sed: New file.
13544 * ps/devps/symbol.diff: Deleted.
13545 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13546 Generate zapfdr.afm from zapfd.afm.
13548 * tty/tmac.tty (tty-char): Prefix definition with ".
13550 * macros/tmac.an (TP): Don't start a diversion if one has already
13553 * tty/tmac.tty-char: Add Latin-1 characters.
13555 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13557 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
13559 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13560 Move declaration of struct horizontal_span.
13562 * tbl/table.c (table::table): Initialize span_list.
13563 (table::~table): Delete span_list.
13565 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13567 * ps/devps/Makefile: Avoid dependency on GNU make.
13569 * ps/tmac.ps: Check that character does not already exist before
13572 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13573 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13574 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13577 * tty/tmac.tty-char: New file.
13578 * tty/Makefile: Install tmac.tty-char.
13579 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13582 * tty/tmac.tty: Fix definition of \(34.
13584 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13585 bracket-drawing characters onto |. Add *o.
13587 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13588 only if current_field.
13590 * troff/dictionary.c (dictionary::lookup): Free old_table after
13593 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
13595 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13596 whose glyphs are identical to glyphs of some Roman character.
13598 * tty/devlatin1/R.proto (bu): Deleted.
13599 * tty/devascii/R.proto (bu): Deleted.
13600 * tty/tmac.tty: Add definition of \(bu.
13602 * eqn/main.c (do_file): Pass FILE as argument.
13603 (main): Automatically load eqnchar. New options -F and -n.
13604 Pass do_file an opened FILE.
13605 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13606 No need to include font.h.
13607 * groff.sh: Likewise. Don't need to use - for standard input.
13608 Prefix files with -- if first file starts with -.
13610 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13612 * troff/env.c (environment::possibly_break_line): Don't set line
13613 to 0 across call to output_line(). Don't call output_line() until
13614 after discarding nodes after break.
13616 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
13618 * request.h (macro::empty): Declare it.
13619 * input.c (macro::empty): New method.
13620 (interpolate_macro): Don't give a WARN_SPACE if the two-character
13623 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
13625 * troff/env.c (environment::start_field): Decrement space_total
13626 when a space is frozen.
13628 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
13630 * macros/tmac.an (R): Delete macro.
13632 * troff/input.c (get_copy, token::next): Support \# (like \" but
13633 newline is ignored).
13635 * troff/input.c (token::next): Fix error message in 'Y' case.
13637 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
13639 * eqn/delim.c (define_extensible_string): Recognize any prefix of
13642 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
13644 * c++test.c: Include <osfcn.h>.
13646 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13649 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
13651 * tbl/table.c (table::divide_span): Don't count column separation
13652 if expand was specified.
13654 * tbl/main.c (process_format): Don't ignore width specs in
13655 continued format. Give warning for changing equal widths or
13656 column separation in continued format.
13657 (process_data): Set column separation, minimum width, equal
13658 columns at end of table.
13660 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
13662 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13663 node::add_discretionary_hyphen): Use soft_hyphen_char.
13664 (set_soft_hyphen_char): New function.
13665 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
13667 * Makefile (c++tested): Give more helpful message if test fails.
13669 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
13671 * troff/input.c (init_charset_table): Translate 0240 to
13672 an unbreakable space.
13674 * troff/token.h (token::hyphen_indicator): New function.
13675 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13677 * troff/input.c (translate): Allow translation to \%.
13678 * troff/node.c (node::add_char): Handle
13679 TRANSLATE_HYPHEN_INDICATOR.
13680 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13682 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13685 * tty/devlatin1/R.proto: \(hy and - should print as 055.
13687 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
13689 * groff.c (run_commands): If the last command gets a SIGPIPE send
13690 a SIGPIPE to all children than haven't yet terminated. When
13691 command terminates, set pid field to -1.
13693 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
13695 * groff.c (main): Pass an appropriate -filename option to gxditview.
13697 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
13699 * Makefile.bd (install): Remove existing program before copying.
13701 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13702 programs which have Unix counterparts to be installed with
13703 user-specified prefix.
13705 * troff/input.c (exit_troff): Don't check if exit_started.
13706 (exit_request): Don't call exit_troff if exit_started.
13708 * Makefile.bd (install.mm): Rename to install.dwbmm.
13710 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
13712 * driver/input.c (do_file): Add missing break for '#' case.
13714 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
13716 * troff/input.c (input_stack::clear): Clear past any boundaries and
13717 then add the boundaries back.
13719 * troff/input.c (exit_troff): Return immediately if already
13722 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
13724 (pg*end-page): If the text has ended and there are no more
13725 footnotes or keeps, exit.
13727 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13729 * troff/input.c (init_charset_table): Make \(rq transparent by
13732 * macros/tmac.an: Define lq and rq strings.
13734 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13736 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
13738 * troff/env.c (environment::final_break): New function.
13739 (environment::newline): Set prev_line_interrupted to 2 if
13741 * troff/env.h: Declare environment::final_break.
13742 * troff/input.c (exit_troff): Call environment::final_break()
13743 instead of environment::do_break().
13745 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13746 doesn't already exist.
13747 * macros/man.local: New file.
13748 * macros/tmac.an: Load man.local.
13749 * macros/man.ultrix: New file.
13751 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
13753 * troff/input.c (exit_groff): Rename to...
13754 (exit_troff): New function.
13756 * troff/div.c (exit_started, done_end_macro,
13757 seen_last_page_ejector): New global variables.
13758 (began_page_in_end_macro): New static variable.
13759 (exit_flag): Deleted.
13760 (top_level_diversion::top_level_diversion): Initialize
13762 (top_level_diversion): More elaborate test for whether
13763 cleanup_and_exit() should be called.
13764 Set began_page_in_end_macro if the end macro isn't yet finished.
13765 * troff/div.h (top_level_diversion::last_page_count): New data
13767 (top_level_diversion::set_last_page): New function.
13768 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13769 * troff/env.c (do_break): Zero prev_line_interrupted.
13770 * troff/input.c (exit_flag): Delete declaration.
13771 (LAST_PAGE_EJECTOR): New magic cookie.
13772 (token::next): Handle LAST_PAGE_EJECTOR.
13773 (exit_groff): Set exit_started and done_end_macro instead of
13774 exit_flag. Call top_level_diversion::set_last_page. Push a
13775 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
13776 another ejection after setting seen_last_page_ejector.
13778 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
13780 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13782 * macros/tmac.e (TH): Make sure there's room for the initial
13785 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13786 Set FVS in points rather than units.
13788 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
13790 * troff/div.c (top_level_diversion::add_trap): Don't consider the
13791 position of empty slots.
13793 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
13795 * ps/devps/S: Fix height and depth of parenrightex.
13796 * ps/devps/symbol.diff: Regenerate.
13798 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
13800 * tmac.e (u): Do underlining as in -mgs.
13802 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
13804 * tty/tty.c (tty_printer::end_page): If overstriking is
13805 suppressed, still turn overstruck horizontal and vertical lines
13808 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13811 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13813 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
13815 * Version 1.05 released.
13817 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
13819 * tty/tty.c: Instead of keeping an array of glyphs and then
13820 sorting it, keep a ordered linked list of glyphs for each line.
13822 * driver/driver.h: Include stddef.h.
13824 * tty/tty.c (compare_glyph):
13825 * refer/refer.c (rcompare):
13826 * troff/env.c (compare_ranges): Arguments of qsort comparison
13827 function should be const void *.
13829 * troff/number.c (parse_term):
13830 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13833 * refer/label.y (consider_authors): Don't access variables
13834 constructed under a condition outside that condition: put braces
13835 round for statement containing declaration; redeclare use of same
13838 * pic/pic.y (text_expr): Delete production that allows
13839 parenthesised text_expr.
13840 (expr): Allow a conditional_expr to appear in parentheses.
13841 (conditional_expr): Rename to any_expr.
13843 * mm: Install new version 1.01 from jh.
13845 * lib/font.c (font::get_width): Cache scaled widths.
13846 (font::font): Initialize widths_cache.
13847 (font::~font): Destroy widths_cache.
13848 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13850 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
13852 * c++test.c, c++test.ref: New files.
13853 * Makefile: Check that the C++ compiler works.
13855 * ps/tmac.pspic (PSPIC): Do a break.
13857 * ps/tmac.ps: Move definition of PSPIC into...
13858 * ps/tmac.pspic: New file.
13859 (PSPIC): Draw box around picture, but make it invisible to grops.
13860 * ps/tmac.ps: Load tmac.pspic.
13861 * ps/Makefile: Install tmac.pspic.
13863 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
13865 * lib/font.c (scale_round): If n is negative,
13866 subtract .5 before truncating floating point result.
13868 * lib/fontfile.c: Include <errno.h>.
13870 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
13872 * driver/input.c (get_char): Inline. Don't update current_lineno.
13873 Change callers to up date current_lineno if necessary.
13874 Use get_char() instead of getc(current_file).
13876 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
13878 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13880 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
13882 * tty/tty.c (tmac.tty): Define \(rg as (R).
13884 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
13886 * lib/lib.h: New define a_delete.
13887 * Use a_delete instead of delete when deleting an array of objects
13888 without destructors.
13890 * lib/lib.h: Rename adelete to ad_delete.
13891 * Change uses of adelete.
13893 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
13895 * eqn/eqn.y: Include lib.h.
13897 * troff/node.c (grow_font_table): Delete old_font_table.
13899 * mm: Install new version from jh.
13901 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
13903 * tbl/table.h (format_type): Make global instead of local to class
13904 entry_format. Prefix enumerators with FORMAT_.
13905 * tbl/table.c, tbl/main.c: Corresponding changes.
13906 * refer/token.h (token_type): Make global. Prefix enumerators
13908 * refer/token.[ch]: Corresponding changes.
13909 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13911 * troff/div.c (node::set_vertical_size): Don't name argument.
13913 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
13915 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13916 * lib/lib.h: Define adelete accordingly.
13917 * pic/object.c (graphic_object::graphic_object):
13918 * tbl/main.c (format::~format):
13919 * tbl/table.c (table::~table):
13920 * refer/ref.c (reference::~reference, reference::merge,
13921 reference::insert_field, reference::delete_field): Use adelete.
13923 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13925 * tbl/table.h: Corresponding changes.
13927 * common.c (common_output::dashed_arc, common_output::dotted_arc):
13928 Ensure total_angle is positive.
13930 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
13932 * refer/ref.c (reference::merge, reference::insert_field,
13933 reference::delete_field): Avoid delete[0].
13935 * refer/token.c (init_special_chars): Move calls to cmupper
13936 outside calls to init_two_char_letter to work around bug in gcc
13939 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
13941 * lib/new.c (operator new): Use __builtin_new for g++.
13943 * pic/object.c (graphic_object::~graphic_object): Don't use
13946 * pic/object.c (output::compute_scale): Initialize max_width and
13949 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
13951 * troff/input.c (write_request): Call fflush.
13953 * troff/node.h (class composite_node): Move declaration to node.c
13954 * troff/input.c (charinfo_to_node): Rename to ...
13955 (charinfo_to_node_list): Return node list rather than composite
13957 * troff/node.c (make_composite_node): New function.
13958 (make_node, add_char): Call make_composite_node instead of
13960 (class composite_node): Add a tfont * member. Delete font_size
13962 (composite_node::composite_node, composite_node::copy,
13963 composite_node::size): Corresponding changes.
13964 (composite_node::tprint): Provide constant spacing, emboldening
13965 and track kerning as specified in tfont.
13966 (composite_node::width): Change width calculation accordingly.
13967 * troff/env.h (environment::composite): New member.
13968 (environment::is_composite, environment::set_composite): New
13970 * troff/env.c (environment::environment): Initialize composite.
13971 * troff/input.c (charinfo_to_node): Call
13972 environment::set_composite.
13973 * troff/node.c (make_composite_node, make_glyph_node): Use the
13974 plain version of the tfont if the environment is composite.
13976 * troff/node.c (font_info::get_space_width): Additional argument
13977 giving space_size. Handle constant space correctly. Scale by
13978 space_size unless constant spaced.
13979 (env_sentence_space_width): New function.
13980 * troff/node.h: Declare it.
13981 * troff/env.h (environment::get_space_size,
13982 environment::get_sentence_space_size,
13983 environment::get_narrow_space_width,
13984 environment::get_half_narrow_space_width): Make inline.
13985 (environment::get_space_width): Make inline. Just call
13987 * troff/env.c: Delete definitions for funtions made inline.
13988 (environment::space_newline, environment::space): Use
13989 env_sentence_space_width(). Don't scale by space_size.
13990 * troff/node.h: Move declarations of env*space_width() functions
13993 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
13995 * macros/tmac.s (PS): Don't try to set negative indent.
13997 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
13999 * pic/pic.y: Fix min function.
14001 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
14003 * man/mdate.sh: Clear LANGUAGE.
14005 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
14007 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14008 * pic/lex.c: New COMMAND keyword.
14009 * pic/pic.y (print_args, print_arg): New rules.
14010 (placeless_element): Use print_args for PRINT.
14011 New COMMAND element.
14013 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
14015 * troff/input.c (terminal): Handle missing argument correctly.
14017 * pic/pic.y (text_expr): New rule.
14019 * pic/pic.y: Implement := operator.
14021 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
14023 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14026 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
14028 * ps/devps/dingbatsrmap: Include this in the distribution.
14030 * macros/tmac.doc: Replace with new version from 2nd Networking
14031 Release. Fix loading of doc-* files.
14032 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14033 * macros/tmac.doc.old: New file. Apply fixes that had been
14034 applied to old tmac.doc.
14035 * macros/tmac.andoc: Check that we're running under groff.
14036 * macros/Makefile: Rework.
14038 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
14040 * tbl/table.h (format_type):
14041 * refer/token.h (token_type): If NESTED_TYPES is defined, use
14042 typedef to make these types visible at file scope.
14043 * Makefile: Add NESTED_TYPES configuration option.
14045 * troff/div.c (mark): At the top level use the value of
14046 nl_reg_contents rather than the current vertical position.
14048 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
14050 * tty/tty.c: Implement \D for horizontal or vertical lines.
14051 (tty_printer::set_char): Use vec_used+2 as serial number.
14052 Don't allow size of vector to exceed USHRT_MAX-2.
14053 Split off part into...
14054 (tty_printer::add_char): New function.
14055 (tty_printer::draw): New function.
14056 (compare_glyph): Handle equal serial numbers.
14057 (tty_printer::end_page): Handle overstruck characters from \D.
14058 (main, usage): Implement -d option.
14060 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
14062 * tbl/main.c (process_format):
14063 * eqn/text.c (split_text):
14064 * troff/input.c (token::next): Use inner block for declarations
14065 with initializers in switch statement.
14067 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
14069 * pic/common.c (common_output::dash_line): Cope with zero-length
14072 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
14074 * Version 1.04 released.
14076 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
14078 * macros/tmac.an (TH): Define a macro an-init to define variables
14079 based on command line arguments.
14080 (an-header): Call it.
14082 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
14084 * Makefile (install.mm): Rename to install.dwbmm.
14086 * Makefile: Integrate mm.
14087 * mm: New directory.
14089 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
14091 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14094 * pic/troff.c (troff_output::simple_spline,
14095 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14096 shadowing parameter.
14098 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14100 * lib/ptable.h: Add explicit casts when converting from unsigned
14103 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14104 * dvi/devdvi/Makefile: Install SA, SB.
14106 * refer/indxbib.c: Add declaration of mktemp.
14108 * refer/lookbib.c: Add declaration of isatty.
14110 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
14112 * pic/lex.c (interpolate_macro_with_args): While collecting
14113 arguments, keep track of whether we're in a string.
14115 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
14117 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14118 down with \v, so as to avoid problems with top of page trap
14119 setting no space mode.
14121 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
14123 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14125 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
14127 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14128 Improve error message.
14130 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
14132 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14135 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
14137 * groff.c (possible_command::execp): Always use _exit() after a
14140 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14141 NO_SYS_WAIT_H configuration options.
14142 * groff.c: Use these options. Use POSIX-style macros to extract
14143 fields from the status returned by wait().
14145 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
14147 * tbl/table.c (table::compute_separation_factor): Allow the
14148 separation factor to drop to 0.
14150 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
14152 * refer/search.c: Include <errno.h>.
14154 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
14156 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14158 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14161 * pic/lex.c (input_stack::bol): Move definition out of class body.
14163 * pic/main.c: On MSDOS munge argv[0].
14165 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14167 * lib/ptable.c (hash_string): Use unsigned long rather than
14169 (next_ptable_size): Use unsigned rather than int. Give an error
14170 message if we've hit the largest table size.
14171 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
14174 * pic/object.h (object_spec): Make flags unsigned long. Declare
14175 flags as const unisgned long rather than as enums.
14177 * pic/output.c: Deleted.
14179 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14181 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14182 Add additional argument.
14183 (line_entry::note_double_vrule_on_{left,right}): Set value of
14184 douvle_vrule_on_{right,left} flag according to argument.
14185 (simple_line_entry::simple_print,
14186 simple_line_entry::double_line_print): If adjacent to double vrule
14187 on a corner extend rather than shorten the rule by half the double
14190 * troff/number.c (parse_term): In checking for overflow, handle the
14191 case where the current horizontal position is negative.
14193 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
14195 * pic/object.c (draw_arrow): Check for object having zero length.
14197 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
14199 * eqn/main.c (do_file): Split off inline equation handling into...
14200 (inline_equation): New function. Search for starting delimiter
14202 (delim_search): New function. Don't recognize a delimiter that
14203 occurs in the name of an escape sequence, number register, string
14206 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
14208 * eqn/delim.c (delim_box::compute_metrics): Don't call
14209 define_extensible_string if left is 0.
14210 (delim_box::output): Don't print the left delimiter if left is 0.
14211 (delim_box::debug_print): Check for left == 0 before calling printf.
14213 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
14215 * troff/Makefile (majorminor.c): Include only digits in
14218 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
14220 * refer/dirnamemax.c: new file.
14221 * refer/genlimits.c: Deleted.
14222 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14223 Don't check path length.
14224 * refer/Makefile: Add dir_name_max.o; delete genlimits.
14225 * Makefile: Add PATHCONF_MISSING option.
14227 * refer/indxbib.c (get_cwd): New function.
14228 (main): Use get_cwd().
14229 * lib/getcwd.c: New file.
14230 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14231 GETCWD in SUBFLAGS.
14232 * lib/Makefile: Compile getcwd.o.
14234 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14237 * refer/indxbib.c (main): Check success of mktemp.
14239 * lib/tmpfile.c: New file.
14240 * lib/Makefile: Add tmpfile.c.
14241 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14242 * ps/ps.h: Delete declaration of mktemp().
14243 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14244 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14245 * driver/driver.h: No need now to include errno.h.
14247 * everywhere: Set errno to 0 before calling fopen().
14249 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14250 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14251 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14253 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
14255 * troff/env.h (translate_space_to_dummy): Declare it.
14256 * troff/env.c (environment::space_newline, environment::space):
14257 If translate_space_to_dummy is set then make the width of spaces 0.
14258 * troff/input.c (translate): If the second character of a
14259 translation is a space, translate to unbreakable space. If the
14260 first character is a space, set or clear translate_space_to_dummy
14261 according to whether the second character is \&. Weird!
14263 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
14265 * groff.c (run_commands): Don't use non-zero exit code because a
14266 command gets SIGPIPE.
14268 * groff.c, groff.sh: Use -mXps with -TXps.
14270 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14271 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14272 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14273 (ps_printer::special): New specials invis and endinvis.
14274 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14275 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
14276 (ps_printer::end_page): Check that invis_count == 0.
14277 (ps_printer::invis_count): New member.
14278 (ps_printer::ps_printer): Initialize invis_count to 0.
14280 * troff/env.c (environment::hyphenate_line): Hyphenation
14281 indicator at beginning of word inhibits splitting after -, \(em
14284 * pic/pic.y (element): Allow another element to follow } without
14285 any intervening separator.
14287 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
14289 * pic/lex.c (get_delimited): Allow tabs before delimiter.
14291 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
14293 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
14294 declaration of wait() in header files.
14295 * Makefile: Get rid of -DHAVE_UNION_WAIT.
14297 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14299 * lib/lib.h: Declare return type of strerror as char *.
14301 * man/Makefile: Add g flag to sed substitutions.
14302 * Makefile (shgroff, bindist): Likewise.
14304 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
14306 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14307 * ps/devps/prologue (PBEGIN): Define showpage after pushing
14310 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
14312 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14315 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
14317 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14320 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
14322 * troff/input.c (define_number_reg): If currently undefined,
14323 don't define it if the argument is an invalid expression.
14325 * Makefile: Ignore return value of `if' commands without `else'
14328 * Makefile: Split up CPPDEFINES into a series of separate
14329 configuration options.
14331 * troff/input.c (init_registers): Use time_t instead of long
14332 unless LONG_FOR_TIME_T is defined. Use returned result rather
14333 than passing pointer.
14334 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14336 * lib/Makefile (fontpath.h): Use gendef.
14338 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
14340 * troff/input.c (input_iterator::shift): Delete argument name.
14341 * troff/node.c (suppress_output_file::really_begin_page,
14342 suppress_output_file::really_transparent_char, node::ascii_print,
14343 node::tprint): Delete names of unused arguments.
14345 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
14347 * refer/label.y (string): Pass $4 to command_error.
14349 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
14351 * Version 1.03 released.
14353 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
14355 * Makefile: Pass definition of SHELL in SUBFLAGS.
14357 * gendef: New file.
14358 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14359 ps/Makefile: Use gendef to construct header files that are
14360 constructed from the Makefile.
14362 * macros/Makefile: make all should build stripped version of tmac.e.
14364 * refer/Makefile (clean): Remove y.output.
14366 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
14368 * ps/pfbtops.c (main): Add -v option which prints out a version
14370 * ps/Makefile (pfbtops): Link with libgroff.a.
14372 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
14374 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14375 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14377 * refer/lkbib.c (main): Always terminate reference with blank
14379 * refer/lookbib.c (main): Likewise.
14381 * refer/linear.c (file_buffer::load): Check that the file is not a
14384 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14385 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14386 Delete second inclusion of <sys/param.h>.
14388 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
14390 * troff/token.h (token::special): Deleted.
14392 * tbl/main.c (process_format): Rework so that opt->tab_char is
14393 recognized only when appropriate.
14395 * ps/Makefile (clean): Remove pfbtops.
14397 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
14399 * lib/font.c (text_file::next): Don't return if we have got a
14402 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
14404 * refer/refer.c (store_reference): Get hash code from old_table[i]
14405 when rehashing the table.
14407 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
14409 * eqn/box.c (box::top_level): Save size and prev size using \R and
14410 restore it afterwards. Set the size to the size at the beginning
14412 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14413 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14415 * refer/Makefile (limits.h): Use ./genlimits.
14417 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
14419 * refer/index.c: Delete declarations of stat() and fstat().
14421 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
14423 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14425 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
14427 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14429 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
14431 * troff/input.c (token::get_char): Handle \e.
14433 * refer/linear.c: Delete declarations of fstat() and stat().
14435 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
14437 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14438 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14440 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
14442 * troff/input.c (do_define_macro): Improve error handling for end
14443 of file while defining macro.
14445 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
14447 * eqn/box.h: Fix declaration of set_gsize.
14448 * eqn/box.c (set_gsize): Make argument const char *.
14449 (gsize): Declare as char *.
14450 * eqn/main.c (main): Don't convert gsize to int.
14451 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14453 * Version 1.02 released.
14455 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
14457 * macros/tmac.andoc: New file.
14458 * macros/Makefile: Install tmac.andoc.
14460 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14461 operator new and delete on OP_DELETE_BROKEN not being defined.
14462 * Makefile: Mention OP_DELETE_BROKEN.
14464 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
14466 * Makefile (bindist): Pass SUBFLAGS.
14468 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
14470 * Makefile, groff.c: Pass definitions to groff.c via device.h.
14472 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14475 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14477 * ps/ps.h, ps/psrm.c: Make comment_table and
14478 header_comment_table local to resource_manager::process_file.
14480 * groff.sh: With -TXps pass -printCommand option to gxditview.
14482 * groff.c (possible_command::print): Implement using
14483 append_arg_to_string.
14485 * xditview: Merge in new implementation with own ChangeLog.
14487 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
14489 * groff.c (main): Implement PRINT_OPTION.
14490 (append_arg_to_string): New command.
14491 (device_table): Set PRINT_OPTION flag for Xps.
14493 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
14495 * troff/groff.h: Rename to troff.h.
14497 * pic/lex.c (lookup_keyword, docmp): New functions.
14498 (get_token): Use new lookup_keyword.
14499 Don't include key.h.
14500 * pic/key.[ch], pic/pic.gperf: Deleted.
14501 * pic/Makefile: Remove gperf stuff.
14503 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14505 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14507 * troff/Makefile, troff/node.c: Move definition of
14508 STORE_WIDTH into node.c.
14510 * etc/grog.pl, etc/grog.sh: Support -mdoc.
14512 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
14514 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14515 dvi/devdvi/texb.map: Add lq and rq.
14516 dvi/devdvi: Regenerate fonts.
14517 * ps/devps/textmap: Add lq and rq.
14518 * ps/devps: Regenerate fonts.
14519 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14520 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14522 * pic/object.c (position_rectangle): When checking radius
14523 cope with possiblity that width or height is negative.
14524 (box_object::box_object): Have separate xrad and yrad with
14525 signs matching signs of dim components.
14526 (box_object::{north,south}_{east,west}): Use xrad and yrad.
14527 (box_object::print): With rounded boxes use absolute values
14528 for dim and rad arguments.
14530 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14533 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14535 * various files: Add explicit destructors to keep Saber CC +d
14538 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
14540 * eqn/box.c (box::top_level): Restore fonts correctly after
14541 font changes in line containing inline equation. Also
14542 restore previous font as well as current font.
14543 * eqn/pbox.h: Define necessary string and register names.
14545 * troff/input.c (token::next): Case 'R' calls do_register.
14546 (do_register): New function.
14548 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
14550 * groff.c, groff.sh: Support Xps device. Allow each device
14551 to have a pseudo_name and a real_name.
14553 * groff.c (run_commands): Don't print `Broken pipe' messages.
14555 * ps/pfbtops.c: New file.
14556 * ps/Makefile: Add pfbtops.
14558 * troff/number.c (parse_term): Improved error message.
14560 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
14562 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14564 * Makefile: Integrate refer.
14565 * refer: New directory.
14566 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14567 man/lkbib.man: New files.
14568 * man/Makefile: Support refer man pages.
14570 * lib/lib.h: Declare is_prime.
14571 * lib/prime.c: New file.
14573 * troff/input.c (macro_source): New function.
14574 (init_input_requests): Bind "mso" to macro_source.
14576 * troff/env.c (environment::possibly_break_line): Maintain
14577 pointer to pointer to node to be split in ndp so as to avoid
14578 using address of freed node.
14580 * troff/env.c (environment::hyphenate_line): Maintain pointer to
14581 pointer to first node to be hyphenated in startp so as to
14582 avoid using address of freed node.
14584 * troff/env.c (class trie, class hyphen_trie): Make the
14585 elements of the trie be of type char not unsigned char.
14586 Declare arguments to be const char* instead of unsigned char *.
14588 * troff/env.c (hyphenate): Initialize hbuf[0].
14590 * troff/input.c (set_string): Declare p to be char * and cast
14591 *p to unsigned char when necessary.
14593 * troff/input.c (do_define_macro): Declare s to be const
14594 char*. Cast element to unisgned char when necessary, Declare
14595 d to be an int. Handle EOF better.
14597 * troff/Makefile, troff/input.c: Different scheme for passing
14598 definitions of MACROPATH, HYPHENFILE and DEVICE.
14600 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
14602 * tty/devascii/R.proto: Delete entry for em.
14603 * tty/devlatin1/R.proto: Likewise.
14605 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
14607 * troff/input.c (translate): Stop when we get a space. Treat eof
14610 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14612 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
14614 * tbl/main.c (process_format): A font name following a `f'
14615 modifier that starts with a digit can be only one character long.
14616 Also deal with EOF on the second character of the font name.
14618 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
14620 * troff/input.c (token::next): Turn \~ into an
14621 unbreakable_space_node.
14622 * troff/node.c (unbreakable_space_node): New class.
14623 * troff/node.h: Declare it.
14625 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
14627 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
14628 it's >= 0, before outputting it as a single byte.
14630 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
14632 * lib/font.c: Make font_char_metric::code an int.
14633 (font::get_code): Change return type to int.
14634 (font::load): Allow code to be arbitrary integer.
14635 * lib/font.h (font::get_code): Change return type to int.
14636 (font::number_to_index): Change argument type to int.
14637 * troff/input.c (token::next): In case 'N', allow any value.
14638 Store value in token::val.
14639 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14640 (token::get_char, token::add_to_node_list, token::process): Get
14642 (charinfo::set_number): Change argument to int.
14643 (charinfo::get_number): Require that NUMBERED flag be set.
14644 (get_charinfo_by_number): Store numbered characters not between 0
14645 and 255 in a dictionary.
14646 * troff/charinfo.h (get_charinfo_by_number): Change argument type
14648 (charinfo::number): Change type to int.
14649 (charinfo::set_number): Change type of set_number to int.
14650 * troff/node.c (troff_output_file::put_char_width,
14651 troff_output_file::put_char): Test whether character is numbered
14652 using charinfo::numbered().
14653 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14655 * lib/nametoindex.c: New implementation to cope with arbitrary
14658 * troff/input.c (token::operator==): Test val for
14659 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14662 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14663 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
14665 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
14667 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
14670 * all Makefiles: rm targets of cp and >.
14672 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14675 * eqn/lex.c (def_table): Add dollar.
14677 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
14679 * troff/input.c (do_width): Push back newline before closing delim
14682 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
14684 * groff.c (possible_command::prepend_arg): New function.
14685 (main): Prepend device -m option.
14686 * groff.sh: Put device -m options before command-line options.
14688 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
14690 * macros/tmac.an (IP): Quote argument to TP.
14692 * ps/ps.c (main): New option -b, which sets...
14693 (broken_flags): New variable.
14694 (ps_printer::~ps_printer): Incorporate the setup section in the
14695 prolog if (broken_flags & NO_SETUP_SECTION).
14696 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14697 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14698 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14699 ps_printer::print_needed_font_comment,
14700 ps_printer::print_supplied_font_comment,
14701 ps_printer::print_include_font_comments,
14702 ps_printer::lookup_doc_font, ps_printer::download_fonts,
14703 ps_printer::read_download_file, read_document_fonts, add_font,
14704 skip_line, parse_fonts_arg, document_font::document_font,
14705 document_font::~document_font, document_font::download,
14706 ps_output::include_file): Deleted.
14707 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14708 rather than %!PS-Adobe-2.0. Make calls to
14709 resource_manager::need_font for each font that we used. Replace
14710 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14711 print_supplied_font_comment, print_needed_font_comment by call to
14712 resource_manager::print_header_comments. Output %%Orientation
14713 comment. Output %%Requirements: numcopies comment if ncopies > 1.
14714 Don't output the prolog directly. Instead call
14715 resource_manager::output_prolog. Only define #copies when ncopies
14716 > 1. Delete calls to print_include_font_comments and
14717 download_fonts. Add call to resource_manager::document_setup.
14718 (ps_printer::do_file): Call resource_manager::import_file instead
14719 of including it ourselves.
14720 (ps_printer::do_import): Likewise. Also don't call
14721 merge_import_fonts. Push userdict on the dictionary stack before
14722 and pop it afterwards.
14723 Move declaration of ps_output into ps.h.
14724 * ps/psrm.c: New file implementing resource_manager class.
14725 * ps/ps.h: New file declaring ps_output and resource_manager
14727 * ps/devps/zapfdr.ps:
14728 * ps/devps/symbolsl.ps:
14729 * ps/devps/prologue: Use 3.0 conventions.
14730 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14731 Add default definition of BROKEN_SPOOLER_FLAGS.
14732 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
14733 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14735 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
14737 * etc/grog.pl: New file.
14738 * Makefile (GROG): New variable.
14739 Add GROG to SUBFLAGS.
14740 * etc/Makefile (GROG): New variable.
14741 (install.nobin): Install $(GROG) rather than grog.sh.
14743 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
14745 * eqn/special.c (special_box::compute_metrics): Make the input and
14746 output strings the same. Get the new height and depth from the
14747 predefined height and depth registers. Also make subscript kern
14748 and skew available.
14749 (special_box::compute_subscript_kern, special_box::compute_skew):
14752 * eqn/box.c (pointer_box::compute_skew,
14753 simple_box::compute_metrics, box::top_level)
14754 * eqn/text.c (prime_box::compute_metrics,
14755 prime_box::comput_subscript_kern)
14756 * eqn/limit.c (limit_box::compute_metrics):
14757 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14758 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14759 negative numbers in `nr' requests with a leading 0.
14761 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
14763 * eqn/special.c: New file.
14764 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
14765 Add new rule for simple.
14766 * eqn/lex.c (token_table): Add SPECIAL.
14767 * eqn/box.h: Declare make_special_box.
14768 * eqn/Makefile: Add special.[co].
14770 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
14772 * ps/devps/prologue: Possibly set packing to true while defining.
14773 Create grops dictionary here. Initialize local variables before
14774 defining procedures.
14775 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14776 the dictionary stack. Set strokeadjust and overprint to false if
14777 the relevant operators are defined.
14778 (PEND): New procedure.
14779 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14780 prologue. Do everything else in the setup section.
14781 (ps_printer::do_import): Just call PBEGIN and PEND around the
14782 picture. Also push userdict before, and pop it afterwards.
14784 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
14786 * troff/node.c (bracket_node::tprint): Brackets were being printed
14789 * macros/tmac.an (SH, SS): Set fill mode.
14791 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
14793 * troff/div.c (top_level_diversion::begin_page): Set
14794 high_water_mark to 0.
14796 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
14798 * man/mdate.sh: New file.
14799 * man/mdate.c: Deleted.
14800 * man/Makefile: Use mdate.sh instead of mdate.
14803 * eqn/lex.c (do_gsize): Supply missing argument to error message.
14805 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
14807 * man/mdate.c: New file.
14808 * man/*.man: Replace modification date by @MDATE@.
14809 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14810 (mdate): New target.
14812 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14813 Remove illegal input characters.
14815 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
14817 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14819 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
14821 * troff/div.c (begin_page): Change behaviour when
14822 !first_page_begun and !break_flag.
14824 * troff/input.c (do_name_test): Return 0 if argument is empty.
14826 * troff/input.c (read_long_escape_name): Require closing ] to be
14827 at same input level as opening [.
14829 * troff/input.c (read_increment_and_escape_name): New function.
14830 (get_copy, process_input_stack): Use this for \n.
14832 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
14834 * troff/div.c (top_level_diversion::begin_page): Ignore the
14835 current value of page_number if !first_page_begun.
14837 * groff.c (main): Fix declaration of buf.
14839 * troff/input.c (do_name_test): New function.
14840 (token::next): Implement \A.
14841 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14842 (token::description, token::add_to_node_list, token::process):
14843 Handle TOKEN_ESCAPE.
14844 * troff/token.h: New token TOKEN_ESCAPE.
14846 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
14848 * pic/main.c (do_picture): Allow space before and after filename
14849 following `<'. Check that the filename is not empty.
14851 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
14853 * Version 1.01 released.
14855 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14857 * dvi/tmac.dvi: ftr HR to H.
14859 * macros/tmac.e: Round up computation of $r.
14861 * xditview/tmac.X: Don't give up completely in compatibility mode.
14862 Use \n(.s instead of \n[.s].
14864 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14865 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14866 Add u to factors inside \s[...]. Rename frac to dvi-frac.
14867 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14868 short names in the char definitions.
14870 * ps/tmac.ps: Don't give up completely in compatibility mode.
14871 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14872 quote in front of \n(.s. Add u to factors inside \s[...].
14874 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
14876 * tty/tmac.tty: Call the nroff request.
14878 * macros/tmac.e ((x, )x): Better definitions that work properly
14880 (@0, @1): Helper macros for (x.
14882 * macros/tmac.e ($s, hl): Use \l rather than \D.
14884 * tty/tmac.tty: Make it work better in compatibility mode.
14885 (pchar): Rename to tty-char.
14887 * macros/tmac.e (@E): New macro.
14888 (r, i, b, rb, bi): Use @E.
14890 * macros/tmac.e (@F): Don't use (;...) syntax.
14892 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
14893 it was modified for groff.
14895 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14897 * macros/tmac.e (<., .>): Removed.
14898 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14900 * macros/tmac.e: Remove check that groff is being used.
14902 * macros/tmac.e (@C): Change families only if using groff; turn
14903 compatibility mode off while changing familes. Save compatibility
14904 mode before changing families and restore it afterwards.
14906 * macros/tmac.e (@h): Remove test for offset + line length.
14908 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
14909 (lo, th, ac): Define to call @S instead of using als.
14911 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14912 the ratio of the vertical spacing to the point size in units
14913 expressed as a percentage. Use these instead of $10r and $10R,
14914 Delete $10r and $10R.
14916 * lib/font.c (font::load): In default computation of space_width,
14917 divide by sizescale. Use scale_round.
14919 * macros/tmac.an (TP): Don't call `nf'.
14920 (an-do-tag): Don't call `fi'.
14922 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
14924 * troff/input.c (process_input_stack): Handle the case where
14925 spaces at the beginning of an input line are followed by a
14928 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
14930 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14931 * groff.sh: Use pic -x with the dvi device.
14933 * dvi/devdvi/FontMakefile (H): Don't use -s.
14935 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14936 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14937 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14940 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
14942 * ps/psfig.diff: New file.
14943 * ps/tmac.psfig: New file.
14945 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
14947 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14948 (]-): Don't call ref*do-tl.
14950 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14952 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14953 (fn@do-FS): Rename to fn*do-FS.
14955 * troff/input.c (transparent_translate): New function.
14956 (process_input_stack): Apply transparent_translate before calling
14957 diversion::transparent_output(unsigned char).
14959 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
14961 * troff/input.c (do_define_macro): Define the macro before calling
14964 * xditview/Makefile: Add DEVICES variable. Change install target
14967 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
14969 * groff.c (run_commands): Handle the possibility that there are
14970 child processes other than those forked by us.
14972 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
14974 * lib/string.c (string::append): New function.
14975 * lib/stringclass.h: Declare it.
14977 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
14979 * eqn/main.c (main): New option -N which sets
14980 no_newline_in_delim_flag.
14981 (do_file): If no_newline_in_delim_flag is set don't allow newlines
14983 * groff.c (main): Pass -N on to eqn.
14984 (help, synopsis): Mention -N.
14985 * groff.sh: Implement -N.
14987 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
14989 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14990 (]-): Call ref*do-tl if ref*need-tl is non-zero.
14991 (XP): Allow as initializer.
14993 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
14995 * troff/env.c (environment::wrap_up_field): If field_spaces are
14996 non-zero and we have a current_tab, subtract padding from
14997 tab_distance. If this makes tab_distance <= 0, use the next tab
14998 stop instead. If there isn't any next tab or it's a left tab,
14999 wrap up the current tab.
15000 (environment::start_field): Initialize tab_precedes_field.
15001 (environment::wrap_up_tab): If there's a current field, update
15002 pre_field_width, field_distance and tab_precedes_field.
15003 * troff/env.h (environment::tab_precedes_field): New member.
15005 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
15007 * ps/ps.c (ps_printer::do_file): New function.
15008 (ps_printer::special): Bind to `file' special.
15009 (ps_printer::do_exec): Set ndefined_styles to 0.
15011 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
15013 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15014 Avoid stripping first character from the start of unrecognized
15015 escapes. Use lex_error instead of error to report errors.
15016 * eqn/lex.c (get_token): Rework handling of escapes.
15017 (lex_error): Move declaration into...
15020 * xditview/xditview.c (main): Make -page option work.
15022 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15024 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
15026 * macros/tmac.s (B2): Correct size of box.
15028 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
15030 * macros/tmac.s (B2): Postpone drawing the box until in the
15031 top-level diversion.
15033 * tty/tmac.tty: Add font translations for C, CR, CW.
15035 * groff.c (synopsis, help): Document -i.
15036 * groff.sh: Implement -i.
15038 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15039 Simplify the construction of SN.
15041 * troff/number.c (parse_term): Give `|' a higher precedence.
15042 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15045 * macros/tmac.s (B2): Use par@finish instead of par@reset.
15047 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
15049 * lib/string.c (string::move): New function.
15050 * lib/stringclass.h: Declare it.
15052 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
15054 * troff/env.c (distribute_space): Add optional argument
15056 (environment::wrap_up_field): Call distribute_space with
15057 `force_forward' argument of 1.
15059 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
15061 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15062 Inline it. Move reallocation into...
15063 (string::grow1): New function.
15064 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15065 dependencies to include library header files.
15066 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15068 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
15070 * macros/tmac.s (@NH): Use the same number registers than -ms does
15071 for the heading level counters. Use the same string that -ms does
15072 for the number for this heading.
15074 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
15076 * lib/new.c (operator new): Cast result of malloc to char *.
15078 * troff/input.c (spring_trap, lookup_request): Add assert that nm
15081 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
15083 * groff.c (main): Support -i.
15085 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
15087 * pic/pic.h: Include <osfcn.h>.
15089 * ps/ps.c: Add declaration of mktemp.
15091 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15092 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15093 argument as union wait *.
15094 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15095 argument to union wait *.
15097 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
15099 * tty/tmac.tty: Add definition of \(co.
15101 * pic/object.c (make_arc): Only increase radius when radius
15102 strictly less than d.
15103 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15106 * troff/env.c (environment::environment(symbol),
15107 environment::environment(const environment *)): Initialize
15110 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
15112 * tbl/main.c (main): Add exit(0).
15114 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15116 * pic/main.c (main):
15117 * eqn/main.c (main):
15118 * tbl/main.c (main):
15119 * etc/soelim.c (main):
15120 * driver/printer.c (printer::~printer):
15121 * troff/node.c (real_output_file::~real_output_file,
15122 real_output_file::flush): Check for errors on stdout.
15124 * most files: Add 1991 to copyright notice.
15126 * macros/tmac.s: Don't test \n(.x and \n(.y.
15128 * troff/input.c (token::next): Rename `escape_char' label to
15129 `handle_escape_char' and `normal_char' label to
15130 `handle_normal_char'.
15132 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
15134 * groff.c (main, synopsis, help): Support -a option.
15135 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
15136 to trflags while parsing options.
15138 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
15140 * troff/number.c (parse_term): With `m', `M' and `n' scale
15141 indicators, convert scale factor to hunits before scaling.
15143 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
15145 * lib/font.c (scale_round): Better test for overflow when n is
15148 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
15150 * tbl/main.c (process_format): Add second argument of type
15151 options*. Change callers. Allow opt->tab_char as well as '\t'
15152 between format items.
15154 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
15156 * macros/tmac.an (PD): With no arguments, make sure register PD is
15158 (TH): Call PD with no argument, instead of setting register PD
15161 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
15163 * Version 1.00 released.
15165 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
15167 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15169 * dvi/devdvi/DESC: Mount CW instead of CR.
15171 * dvi/tmac.dvi: Add definition of \(tm.
15173 * dvi/devdvi/texsy.map: Add lh, and rh.
15174 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15175 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15177 * dvi/devdvi/FontMakefile: Generate H from cmss10.
15178 * dvi/devdvi/Makefile: Install H.
15179 * dvi/devdvi/H: New file.
15181 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
15183 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15186 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
15188 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15190 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15192 * macros/tmac.s (@EN): Handle the case where the equation is empty
15193 but the label is not.
15195 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
15197 * troff/groff.h: New warning category WARN_SPACE.
15198 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15199 WARN_SPACE to warning_table.
15200 (interpolate_macro): Give a warning of type WARN_SPACE if the name
15201 is longer than two characters and is not defined, but the first
15202 two characters do make a defined name.
15204 * PROBLEMS: New file.
15206 * CHANGES: New file.
15207 * README-0.6, README-1.00: Deleted.
15209 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15210 * xditview/devX75/Makefile: Make devX75-12.
15211 * xditview/devX100/Makefile: Make devX100-12.
15213 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15214 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15216 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
15218 * README-0.7: Rename to README-1.00.
15220 * macros/tmac.pic: New file.
15221 * macros/Makefile (install.nobin): Install tmac.pic.
15223 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
15225 * troff/env.c (hyphen_word): Correct the test for whether the
15226 token is a hyphen. Reset npos to 0.
15228 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15230 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
15232 * macros/tmac.s (ds*common-end): Call par*reset.
15234 (par@reset-indent): Deleted.
15236 * macros/tmac.s (@IP): Divert the label.
15238 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
15240 * xditview/draw.c (setGC): Use a line width of .1m rather than
15241 .04m by default; round rather than truncate value.
15243 * tbl/table.c (class empty_entry): New class.
15244 (empty_entry::empty_entry, empty_entry::line_type): New functions.
15245 (table::add_entry): Represent empty entries by objects of type
15247 (table_entry::line_type): Return -1.
15248 (table::determine_row_type): Ignore entries with line_type 0.
15249 Treat type -1 as non-lines.
15251 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
15253 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15254 macros/tmac.s: Rename \(-d to \(Sd.
15256 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
15258 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15259 * xditview/libXdvi/DviChar.c: Likewise.
15260 * dvi/devdvi/texsy.map: Add `<<', `>>'.
15262 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
15264 * troff/div.c (top_level_diversion::begin_page): Call
15265 init_output() if the_output is 0.
15267 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
15269 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15271 (get_copy): Turn \E into ESCAPE_E.
15272 (token::process, asciify): Handle ESCAPE_E.
15274 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15276 (DS): Implement `.DS R'.
15278 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
15280 * macros/tmac.s (FS): New macro.
15282 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15284 * macros/tmac.s (cov*tl-init): Remove after first execution
15285 instead of aliasing to @nop. Call top of page macro explicitly
15286 instead of setting trap; call @init first. Set pg@top as top of
15288 (cov*auto-init): Deleted. Set cov*tl-init instead of
15289 cov*auto-init as top of page trap.
15290 (TL, LP): Do a break instead of calling cov*tl-init.
15291 (cov*print): With RP format but no TL, alias FS and FE to @FS and
15292 @FE; in this case also give a warning and always start another
15293 page. No need to set pg@top here.
15294 (cov*tl-init): Rename to cov*first-page-init.
15296 * macros/tmac.s (RP): Do `.pn 0'.
15297 (cov*tl-init): With RP format don't do `.pn 0'.
15299 * macros/tmac.s (pg@cs-top): Set no space mode.
15301 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15302 (cov*ab-init): Alias TL, AU and AI to these.
15304 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
15306 * macros/tmac.s (@EQ): Move the space before the equation into @EN
15307 (@EN): Do nothing unless \n[dl] is > 0.
15309 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
15311 * pic/object.c (ellipse_object::radius): New function.
15313 * VERSION: Change version to 0.7.
15315 * tbl/table.c (block_entry::do_divert): Declare return type as
15317 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15319 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
15321 * troff/column.c: New file.
15322 * troff/Makefile: Corresponding changes.
15324 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
15327 * troff/div.c (top_level_diversion::space): If the space causes
15328 the first-page transition and springs a trap, truncate the space
15331 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
15333 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15336 * pic/troff.c (troff_output::line_thickness,
15337 troff_output::set_fill): Do a horizontal motion to compensate for
15338 the width of the \D escape sequence.
15340 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
15342 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15345 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
15348 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15349 Supply empty definition.
15350 (text_entry::simple_print, simple_text_entry::simple_print):
15351 Delete declarations.
15352 (table::add_entry): Represent empty entries by objects of type
15355 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
15357 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15359 * tbl/table.c (left_text_entry::add_tab): New function.
15361 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
15362 initialize like LP.
15364 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
15366 * troff/env.c (environment::start_field): Give an error message if
15367 there is no next tab.
15369 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
15371 * troff/env.c (hyphenate): Skip initial elements with zero
15374 * macros/tmac.s (par@init): Keep VS in points rather than units.
15376 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
15378 * pic/main.c (main): Implement `-c' option.
15379 * pic/output.h: Declare make_tpic_output().
15380 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15382 (tpic_output): New class.
15383 (tpic_output::tpic_output, tpic_output::set_pen_size,
15384 tpic_output::command, make_tpic_output): New functions.
15386 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
15388 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
15389 if they're not already defined.
15390 * tbl/table.c (init_output): Don't test \n(.g.
15392 * troff/input.c (do_if_request): Delete `g' condition. Recognize
15393 `d', `r' and `c' conditions even in compatibility mode.
15395 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
15397 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15400 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
15402 * troff/env.h (environment::prev_line_interrupted): New member.
15403 (environment::get_prev_line_interrupted): New function.
15404 * troff/env.c (environment::newline): Set prev_line_interrupted.
15405 (environment::environment(const environment *),
15406 environment::environment(symbol)): Initialize
15407 prev_line_interrupted.
15408 * troff/input.c (process_input_stack): Don't give special
15409 treatment to space and newline at the beginning of the line if the
15410 previous line was interrupted.
15412 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
15414 * eqn/eqn.y: Disallow PRIME by itself.
15415 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15417 (def_table): Remove definition of '. Define prime to be `.
15419 * eqn/eqn.y: Split off part of rule `script' into a new rule
15422 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
15424 * macros/tmac.s ({, }): New string aliases.
15426 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
15428 * README-0.7: New file.
15430 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
15432 * macros/tmac.s: New file.
15433 * man/groff_ms.man: New file.
15434 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15435 * Makefile.bd: Similarily.
15436 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15437 definition of TMAC_S.
15438 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15439 * macros/TODO: New file.
15441 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
15443 * troff/env.c (right_justify): New function.
15444 (init_env_requests): Bind this to request "rj".
15445 (center_lines): Set right_justify_lines to 0. If we get a bad
15446 integer, center 1 line.
15447 (environment::environment(symbol), environment::environment(const
15448 environment *)): Initialize right_justify_lines.
15449 (environment::get_right_justify_lines): New function.
15450 (init_env_requests): Bind this to number_register ".rj".
15452 * troff/env.c (environment::choose_breakpoint): Implement
15453 hyphenation_margin and hyphenation_space.
15454 (environment::get_hyphenation_space,
15455 environment::get_hyphenation_margin): New functions.
15456 (init_env_requests): Bind these to .hys and .hym.
15457 (hyphenation_space_request, hyphenation_margin_request): New
15459 (init_env_requests): Bind these to hys and hym.
15460 (environment::environment(symbol), environment::environment(const
15461 environment *)): Initialize hyphenation_margin and
15463 * troff/env.h: Corresponding changes to class environment.
15465 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
15467 * troff/div.c (blank_line): Always do a break.
15469 * eqn/box.c (do_text): Turn off escapes while appending text to
15472 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
15474 * troff/input.c (while_break_request, while_continue_request): New
15476 (init_input_requests): Bind these to "break" and "continue".
15477 (while_depth, while_break_flag): New variables.
15478 (while_request): Update while_depth. Break out of loop if
15479 while_break_flag is set.
15481 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
15483 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15486 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
15488 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
15490 * stringify: New file.
15491 * Makefile (groff.o): Use stringify.
15493 * xditview/tmac.X: Remove definition of \(rn.
15494 * xditview/libXdvi/DviChar.c: Remove radicalex from
15497 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
15499 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15500 (alphabetic_block_entry::alphabetic_block_entry,
15501 alphabetic_block_entry::divert, alphabetic_block_entry::print):
15503 (block_entry::divert): Split off body into ...
15504 (block_entry::do_divert): If the block is alphabetic, subtract 2n
15505 from the line length; also update the span width to dl+2n, and the
15506 alphabetic span width to dl.
15508 * driver/input.c (do_file): While reading argument to D command,
15509 when expanding buffer, multiply szp by sizeof(int) rather than 2
15510 in the argument to memcpy.
15512 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15513 width of alphabetic columns.
15515 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
15517 * troff/node.c (lookup_family): Supply second argument to lookup.
15519 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15520 search, return immediately if v is 0.
15522 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15523 (troff_output::start_picture): Set this reg.
15524 (troff_output::end_picture): Remove this reg
15525 * eqn/box.c (box::extra_space): Don't produce `\x's if
15526 EQN_NO_EXTRA_SPACE_REG is defined.
15528 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15529 * eqn/text.c (split_text): Map ' to \(fm when it's the first
15532 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
15534 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15537 * troff/div.c (top_level_diversion::top_level_diversion):
15538 Initialize page_number to 0.
15540 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
15542 * groff/troff (environment::environment(const environment *)):
15543 Initialize name to e->name, rather than "anonymous".
15545 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
15547 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15548 requested_page. Split middle part into ...
15549 (FindPage): New function.
15550 (SetValues): If we don't yet know the last page, and the requested
15551 page is greater than the current page, call FindPage.
15552 Update the font_map_string before doing this.
15554 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15555 Translate \(lh and \(rh into left and right double arrows.
15557 * troff/node.c (class hyphen_inhibitor_node): New class.
15558 (hyphen_inhibitor_node::hyphen_inhibitor_node,
15559 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15560 hyphen_inhibitor_node::type,
15561 hyphen_inhibitor_node::get_hyphenation_type): New functions.
15562 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15563 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15566 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
15568 * troff/node.h (dummy_node::get_hyphenation_type,
15569 transparent_dummy_node::get_hyphenation_type): Declare them.
15570 * troff/node.c: (dummy_node::get_hyphenation_type,
15571 transparent_dummy_node::get_hyphenation_type): New functions.
15573 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
15575 * xditview/libXdvi/draw.c: If M_PI not defined after including
15576 math.h, then define it.
15578 * xditview/Makefile: Add definition of AR. Pass it to the submake
15580 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15582 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
15584 * troff/dictionary.h (object_dictionary::alias): Declare return
15586 * troff/dictionary.c (object_dictionary::alias): Return non-zero
15587 if the old name was defined.
15588 * troff/input.c (alias_macro): Give a warning if the old name was
15590 * troff/reg.c (alias_reg): Likewise.
15592 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
15594 * troff/input.c (token::next): Delete implementation of \R.
15596 * macros/Makefile: Strip comments from tmac.e while installing it.
15598 * troff/input.c: New variable `nroff_mode'.
15599 (troff_request, nroff_request): New functions.
15600 (init_input_requests): Bind `troff' and `nroff' to troff_request
15602 (do_if_request): Compute results of t and n conditions from
15605 * text/text.c (split_text): Fix typo in >=.
15607 * eqn/lex.c: Add definition of `==' to def_table.
15609 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
15611 * pic/tex.c (tex_output::start_picture): Change the definitions of
15612 \graph and \graphtemp so that they work properly with Plain TeX.
15614 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15615 argument to `ar' is not less than the first.
15617 * pic/pic.y: Allow a comma between elements of the variable list
15618 in the argument to `reset'.
15620 * pic/object.c (arc_object::arc_object): Fix computation of
15623 * eqn/main.c (main): Add exit(0).
15625 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
15627 * troff/div.c (begin_page): Test no_space_mode after doing the
15628 break, but still push the page ejector cookie before doing the
15629 break. Also set the next page number after doing the break.
15631 * xditview/xditview.c (NewFile): Don't set the title and icon name
15632 if this is the first file and its name is `-'.
15633 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
15634 the X75 and X100 devices.
15635 (main): If a device has the XT_OPTION flag set and there's exactly
15636 one file argument, pass the driver -xrm and -title options to set
15637 the icon name and window title to the name of the file.
15639 * troff/env.c (environment_switch): If there was an argument but
15640 it wasn't a valid number or name, then pop an environment but
15641 don't give an error message on underflow.
15643 * troff/number.c (start_number): Correct spelling in error message.
15645 * troff/input.c (token::delimiter): Don't print an error message
15648 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15649 ParseDrawFunction if dw->display_enable is true.
15651 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
15653 * pic/pic.y: Parse text positioning like normal attributes, so as
15654 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
15655 positioning attribute.
15657 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
15659 * tbl/main.c (process_data): When in state START while reading a
15660 text block, don't change to state MIDDLE if c is a newline.
15662 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
15664 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15665 so as to avoid shadowing parameter.
15667 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
15669 * tbl/table.c (trim_space): Deleted.
15670 (table::add_entry): Don't call trim_space.
15672 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
15674 * VERSION: Change version to 0.6.
15676 * troff/number.c (parse_expr): Make == work.
15678 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
15680 * man/grog.man: New file.
15681 * man/Makefile: Add grog.n to MAN1PAGES.
15682 * etc/grog.sh: New file.
15683 * etc/Makefile: Install grog.sh as grog.
15685 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
15687 * troff/input.c (token::next): Implement \E.
15689 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
15691 * xditview/tmac.X: Change font translations to match tmac.ps.
15693 * troff/input.c (non_empty_name_warning): Don't give a warning if
15694 `\{' terminates the name.
15696 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
15698 * ps/devps/symbol.diff: New file.
15699 * ps/devps/FontMakefile: Mention symbol.diff.
15701 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
15703 * troff/node.c (font_position): Use get_long_name to read the
15706 * troff/env.c (environment_switch): If we get a number that's < 0
15707 or >= NENVIRONMENTS, treat it like a name.
15708 Change NENVIRONMENTS to 10.
15710 * troff/groff.h: Remove definition of FONTS_MAX.
15711 * troff/node.h (class font_family): Make map a pointer instead of
15712 an array. Add a map_size member. Make it a class. Make nm const
15713 and public. Make invalidate_fontno a friend.
15714 * troff/node.c: Define font_table_size. Make font_info a pointer
15715 rather than an array.
15716 (class troff_output_file): Allocate font_position dynamically. Add
15717 nfont_positions member.
15718 (troff_output_file::set_font): Grow font_position if necessary.
15719 (troff_output_file::~troff_output_file): Delete font_position.
15720 (troff_output_file::troff_output_file): Allocate font_position.
15721 (grow_font_table): New function.
15722 (troff_output_file::really_begin_page,
15723 troff_output_file:really_copy_page): Use nfont_positions rather
15725 (mount_font_no_translate, mount_style): Call grow_font_table if
15727 (font_family::font_family): Allocate map.
15728 (font_family::make_definite): Grow map if necessary. Use
15729 font_table_size instead of FONTS_MAX.
15730 (font_family::~font_family): New function.
15731 (invalidate_fontno): Use font_family::map_size.
15732 (get_fontno, env_space_width, env_half_narrow_space_width,
15733 env_narrow_space_width, symbol_fotno, is_good_fontno,
15734 get_bold_fontno, make_glyph_node): Use font_table_size rather than
15736 (next_available_font_position): Never return 0.
15738 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
15740 * ps/tmac.ps: Add font translations for compatibility with dpost.
15742 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
15744 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15745 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15746 Move definitions baseline_sep, shift_down, column_sep,
15747 matrix_side_sep into...
15748 * eqn/box.c: Add them to param_table.
15749 * eqn/pbox.h: Add declarations to pbox.h.
15751 * troff/input.c (set_string): Cast value to unsigned char *.
15753 * troff/token.h (process_input_stack): Declare it static before
15754 declaring it a friend.
15756 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
15758 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15760 * dvi/devdvi/EX: Regenerate.
15762 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15765 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
15767 * eqn/lex.c: In defaults_table, make definition of `dot' call
15768 `dot_def'. Don't explicitly make it roman. Similarily for other
15771 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15773 (for_input::get, for_input::peek): Use this.
15774 (do_for): Add by_is_multiplicative argument.
15775 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15776 Change semantic value of optional_by to be a double plus a flag
15777 saying whethet the by clause is multiplicative.
15779 * eqn/lex.c (get_delimited_text): Remember location of start of
15780 definition. Improve error handling when EOF is encountered.
15782 * lib/font.h: Rename handle_x_command to
15783 handle_unknown_font_command.
15784 * lib/font.c (font::load): Call handle_unknown_font_command for
15785 any unknown command in the font description file. Don't call
15786 handle_x_command. Include the name of the command in the argv.
15787 Improve message for unknown command after kernpairs or charset
15789 * ps/ps.c (ps_font::handle_x_command): Rename to
15790 handle_unknown_font_command. Remove message about `x download'
15791 command. Give error message for wrong number of arguments.
15792 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15793 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15794 handle_unknown_font_command. Give an error message for wrong
15795 number of arguments. Rename design_size to designsize.
15796 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15797 checksum', `designsize' instead of `design_size'.
15799 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
15801 * eqn/*.[chy]: Change underaccent to uaccent.
15803 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
15804 give it the same precedence as ACCENT.
15805 * eqn/other.c (make_underaccent_box): New function.
15806 * eqn/box.h: Declare it.
15807 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15810 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
15812 * pic/pic.y (reset_all): New function. Called in rule for RESET.
15813 (parse_init): Call reset_all.
15814 (define_variable): When defining scale reset only those
15815 pre-defined variables that are scaled.
15816 (defaults_table): Add `scale' as non-scaled value.
15818 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15819 together with the text; allow any number of positioning words;
15820 allow center as a positioning word.
15822 * pic/object.c (output::compute_scale): Get picture maximum height
15823 and width from variables called maxpswid and maxpsht.
15824 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15826 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
15828 * pic/object.c (object_spec::make_text): Multiply textht by number
15831 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15833 (do_sprintf): New function.
15834 (pic.gperf): Add sprintf token.
15835 (text, sprintf): New rules.
15837 * pic/pic.y: `rand()' with no arguments returns a random number
15838 in the range [0,1).
15840 * pic/pic.y: Allow a bare expression to be an attribute: change
15841 precedences to support this. Change optional_ordinal rule to
15842 optional_ordinal_last to avoid reduce/reduce conflict.
15843 * pic/object.c (object_spec::object_spec): Initialize direction.
15845 * pic/pic.y: Implement ^ operator meaning exponentiation.
15847 * troff/node.h: Add default argument to mount_font.
15848 * troff/node.c (font_position): Read an optional third argument
15849 giving the external_name.
15850 (mount_font): Add optional argument giving the external_name.
15851 (mount_font_not_translate): Have additional argument giving
15852 external name. Use this name to load the font. Pass both names
15853 to font_info::font_info.
15854 (font_info::font_info): Have additional argument giving
15856 (class tfont): New member external_name.
15857 (font_info::get_tfont): Use external name to construct tfont_spec.
15859 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
15861 * eqn/lex.c (init_table): Add argument giving device. Define
15862 name of device to be "1".
15863 (do_ifdef): Counts as true if the argument has been defined with
15865 * eqn/main.c (main): Call init_table with device argument. Make
15866 device local to main.
15867 * eqn/eqn.h: Change declaration of init_table. Remove declaration
15870 * pic/lex.c (get_delimited): Allow text to be delimited by
15871 matching {}s. Don't recognize ending delimiter within a string.
15873 * troff/input.c (get_delim_name): New function.
15874 (token::next): Implement \C.
15876 * lib/font.c (font::load): Grok ---. Add an alias for each
15877 character based on its code.
15878 (font::get_code_width): Deleted.
15879 * lib/font.h (class font): Declare font::number_to_index().
15880 Remove declaration of font::get_code_width.
15881 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15882 to indices of named characters.
15883 (font::number_to_index): New function.
15884 * troff/input.c (font::number_to_index): New function.
15885 (get_charinfo_by_number, charinfo::get_number,
15886 charinfo::set_number): New functions.
15887 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15888 (token::process, token::description, token::get_char,
15889 token::add_to_node_list, token::operator==): Handle
15890 TOKEN_NUMBERED_CHAR.
15891 * troff/charinfo.h: Declare get_charinfo_by_number,
15892 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
15894 (charinfo::numbered): New function.
15895 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15896 * troff/env.h (class environment): Remove declaration of ...
15897 * troff/env.c (environment::make_numbered_char_node): Deleted.
15898 * troff/node.c (make_numbered_node): Deleted.
15899 (class numbered_glyph_node): Remove.
15900 (troff_output_file::put_char_width, troff_output_file::put_char):
15901 Handle numbered chars.
15902 (troff_output_file::numbered_char): Removed.
15903 (tfont::get_code_width): Removed.
15904 (make_glyph_node): Don't search special fonts for numbered
15906 * troff/node.h: Remove declaration of make_numbered_node.
15907 * driver/input.c (do_file): Handle N command.
15908 * driver/printer.h: Add declaration of ...
15909 * driver/printer.c (printer::set_numbered_char): New function.
15910 * dvi/tfmtodit.c (main): Generate unnamed entries.
15911 * ps/devps/afmtodit: Likewise.
15912 * xditview/xtotroff.c (MapFont): Likewise.
15913 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15915 * tbl/main.c (process_format): If multiple widths are specified
15916 for a column but all the widths are the same, don't give an error
15919 * tbl/table.c (table::do_row): If the current row is all lines and
15920 the stuff doesn't contains a line, mark the top of the row after
15921 printing stuff before the row. If the current row is not all
15922 lines and the stuff doesn't contain a line, don't unnecessarily
15923 mark the top of the row before printing the stuff.
15925 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
15927 * troff/groff.h: Remove MAX_PATH.
15928 * troff/input.c (open_file): Dynamically allocate space for the
15930 (open_mac_file, process_macro_file): Corresponding changes.
15932 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
15934 * troff/node.h (class output_file): Make copy_file pure. Add
15935 vspace method ifdef COLUMN. Add is_printing method.
15936 * troff/node.c: Add class printing_reg. Add class
15937 real_output_file. Derive other output_file classes from
15938 real_output_file; in these classes rename begin_page to
15939 really_begin_page, print_line to really_print_line, copy_file to
15940 really_copy_file, transparent_char to really_transparent_char.
15941 Move output_file::flush to real_output_file. Add printing member
15942 to class output_file.
15943 * troff/div.h: Remove printing member from top_level_diversion.
15944 Add vspace member function to class diversion ifdef COLUMN. Add
15945 some declarations ifdef COLUMN.
15946 * troff/div.c (top_level_diversion::copy_file,
15947 top_level_diversion::transparent_output,
15948 top_level_diversion::output): Don't test printing member before
15950 * troff/input.c: Handle initial variable_space_request ifdef
15952 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15953 but comment it out.
15955 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
15957 * troff/div.c (diversion::need): Make any space forced. If we
15958 sprung a trap, set truncated_space to minus the distance to the
15959 trap and set needed_space to the amount that was needed.
15960 (top_level_diversion::space): A forced space turns no_space_mode
15962 (class constant_vunits_reg): New class.
15963 (init_div_requests): Implement number registers .trunc and .ne
15964 using constant_vunits_reg.
15965 (class truncated_space_reg): Deleted.
15967 * troff/div.h: Don't have a no_space_mode member in diversion.
15968 Instead have it in top_level_diversion.
15969 * troff/div.c (diversion::diversion): Don't initialize
15971 (top_level_diversion::top_level_diversion): Initialize
15973 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15974 (macro_diversion::output): Don't clear no_space_mode.
15976 * troff/input.c (diverted_space_node::reread): Don't call
15977 environment::do_break. In fill mode, act like a blank line.
15978 (diverted_copy_file_node::reread): Don't call
15979 environment::do_break.
15981 * troff/div.c (blank_line): New function.
15982 * troff/div.h: Declare it.
15983 * troff/input.c (process_input_stack): Call it.
15985 * troff/div.c (truncated_space_reg::get_string): New function.
15986 (init_div_requests): Bind to .trunc.
15987 (space_request, top_level_diversion::space,
15988 top_level_diversion::output, macro_diversion::space,
15989 macro_diversion::output): Update truncated_space.
15990 (macro_diversion::output): Redo calculations when trap sprung.
15991 (macro_diversion::output, macro_diversion::space): No need for
15994 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15995 after truncating post line spacing.
15997 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
15999 * ps/devps/prologue (MF, SF): Make them work even if setfont is
16000 defined as a procedure rather than as an operator.
16002 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
16004 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16006 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
16008 * troff/div.c (top_level_diversion::output): Merge
16009 output_file::print_line and output_file::end_of_line member
16011 * troff/div.h (class output_file):
16012 * troff/node.c (troff_output_file::print_line,
16013 troff_output_file::end_of_line, output_file::end_of_line,
16014 ascii_output_file::print_line, suppress_output_file::print_line):
16015 Corresponding changes.
16017 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
16019 * troff/input.c (token::next): Don't give a warning for `\.'.
16021 * troff/env.c (environment::get_center_lines): New function.
16022 (init_env_requests): Bind number register .ce to it.
16023 * troff/env.h: Declare it.
16024 * tbl/table.c (table::init_output): Define reset macro to restore
16025 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
16027 (table::print): If center option not given, then imply center
16028 option if SAVED_CENTER_REG > 0.
16030 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
16032 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16033 Troff.ps from DOWNLOAD.
16035 * troff/Makefile: Change comment in DEFINES to avoid confusing
16038 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16039 code. Don't try to catch errors with stopped.
16040 (check_line_lengths): New function.
16041 * ps/devps/prologue (EXEC): Deleted.
16042 (EBEGIN, EEND): New procedures.
16044 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
16046 * troff/input.c: Include request.h before node.h.
16047 * troff/node.c: Likewise.
16048 * troff/env.c: Likewise.
16049 * troff/div.c: Likewise.
16050 * troff/node.h (class special_node): Store argument as a macro
16051 rather than a char *.
16052 * troff/node.c (special_node::special_node, special_node::copy):
16054 (special_node::~special_node): Deleted.
16055 (special_node::tprint): Deleted.
16056 (special_node::tprint_start, special_node::tprint_end,
16057 special_node::tprint_char): New functions.
16058 (troff_output_file::special): Deleted.
16059 (troff_output_file::start_special, troff_output_file::end_special,
16060 troff_output_file::special_char): New functions.
16061 * troff/input.c (special_node::tprint): New function.
16062 (do_special): Use macro not char *.
16063 (do_transparent_macro): Deleted.
16064 (token::next): Don't call do_transparent_macro.
16066 * troff/input.c (token::next): Add 'Y' case.
16067 (do_transparent_macro): New function.
16068 * troff/node.c (troff_output_file::special): Handle newlines with
16069 argument using new continuation convention.
16070 * driver/input.c (get_string): Cope with continuation convention.
16071 (do_file): Don't call skip_line after calling get_string(1).
16072 * ps/ps.c (ps_printer::special, ps_printer::do_import,
16073 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16075 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16078 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
16080 * troff/input.c (asciify): By default, illegal input characters
16081 should return empty string.
16083 * troff/input.c (copy_file): Handle first page transition like title.
16084 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16086 * troff/input.c (token::next): Improve error message for EOF after
16088 (input_char_description): New function.
16089 (get_char_for_escape_name): Use input_char_description.
16090 (token::next): Warn about unrecognized escape sequences.
16091 (warning_table): Add WARN_ESCAPE.
16092 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16095 * troff/token.h: Remove declaration of process_input_stack.
16097 * troff/input.c: Remove declaration of init_hyphen_requests.
16098 * troff/request.h: Correct spelling in declaration of same.
16100 * troff/input.c (token::next): Check whether escape_char is 0.
16102 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
16104 * groff.c (main, usage, help): Implement -P and -L options.
16105 * groff.sh: Likewise.
16107 * troff/input.c (token::next): Use some gotos to avoid code
16110 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16111 Avoid calling symbol::symbol if name empty.
16113 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
16115 * troff/input.c (init_input_requests): Make \n(.x return the major
16116 version number and \n(.y return the minor version number.
16117 * troff/Makefile: Construct file majorminor.c defining
16118 major_version and minor_version automatically from ../VERSION.
16120 * troff/node.c (class glyph_node): Make operator new and operator
16122 (class ligature_node): Similarily.
16124 * troff/input.c (operator==(const macro &, const macro &)): New
16126 (non_interpreted_node::same): Use this.
16127 (string_iterator::string_iterator): Make macro& argument const.
16129 * troff/input.c (input_iterator::get): New function. Don't make
16130 asciify_macro or class non_interpreted_node friends of class
16132 (non_interpreted_node::interpret): Use input_iterator::get.
16133 (asciify_macro): Likewise.
16135 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16136 ~non_interpreted_node): Deleted.
16137 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16140 * troff/symbol.h: Make all symbol member functions const.
16142 * lib/strtol.c: New file.
16143 * lib/Makefile: Add strtol.c.
16144 * Makefile: Define STRTOL as strtol.o to include strtol in
16147 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
16149 * pic/troff.c (troff_output::simple_circle): Divide by scale.
16151 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
16153 * troff/input.c (do_special): Use input_level.
16155 * troff/token.h (TOKEN_BACKSPACE): New token.
16156 (token::backspace): New function.
16157 * troff/input.c (token::description, token::next, token::process):
16158 Grok TOKEN_BACKSPACE.
16159 (do_special): Turn TOKEN_BACKSPACE back into \b.
16161 * troff/token.h (token::leader): New function.
16162 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16164 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16166 * troff/input.c (do_special): Use token::description in error
16169 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
16171 * troff/input.c (decode_args): Combine quoted and
16172 quote_input_level variables. Make it a for (;;) loop.
16174 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16176 * troff/input.c (read_long_escape_name): The test for whether to
16177 expand buffer was off by 1.
16178 (read_string): Similarily.
16180 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
16182 * troff/input.c: Use `const int' rather than `static const int'.
16184 * troff/div.h (diversion::copy_file): Declare as pure virtual.
16185 (macro_diversion::copy_file): New function.
16186 * troff/node.h: New class diverted_copy_file_node.
16187 * troff/node.c: Implement it.
16188 * troff/input.c (copy_file): Use diversion::copy_file. Handle
16189 first page transition by pushing a diverted_copy_file_node.
16190 * troff/input.c (token::next, process_input_stack): Don't handle
16193 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
16195 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16196 whether space widths need adjusting.
16198 * troff/charinfo.h: Generalize translated_to_space to
16199 special_translation so as to allow translation to \&.
16200 * troff/input.c (translate): Allow translation to \&.
16201 (charinfo::*): Corresponding changes.
16202 * troff/node.c (make_node, node::add_char): Corresponding changes.
16203 * troff/node.h (dummy_node::dummy_node): Allow optional first
16206 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16207 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16209 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16210 TOKEN_REQUEST with an argument of TITLE_REQUEST.
16211 (token::process): Grok that.
16212 * troff/input.c (copy_file): Handle first page transition like
16213 title by pushing a COPY_FILE_REQUEST cookie.
16214 (token::next, process_input_stack): Grok that.
16215 * troff/node.h (output_file::copy_file): Add x and y arguments.
16217 * troff/div.c (top_level_diversion::copy_file): Supply them.
16218 * troff/node.c (troff_output_file::copy_file): Add x and y
16219 arguments; moveto specified position. Invalidate font_position
16220 array after copying file.
16221 (output_file::copy_file): New function.
16222 (suppressed_output_file::copy_file, ascii_output::copy_file):
16224 * troff/input.c (transparent_file): New function.
16225 (init_input_requests): Bind to "trf".
16226 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16227 (process_input_stack): Likewise.
16229 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16231 * troff/node.c (init_node_requests): New number registers .kern
16232 pointing to global_kern_mode, and .lg pointing to
16233 global_ligature_mode.
16235 * troff/node.c (ligature): Don't change it if we get a bad
16238 * troff/input.c (do_define_string): Don't strip tabs.
16240 * troff/input.c (asciify_macro): Make the string_iterator auto.
16242 * troff/node.c (init_font_requests): Rename to...
16243 (init_node_requests):
16244 * troff/node.h: Change declaration.
16245 * troff/input.c (main): Change call.
16247 * troff/input.c (node::reread, diverted_space_node::reread): New
16249 (process_input_stack): Call reread rather than
16250 get_diverted_space_node.
16251 * troff/node.c (node::get_diverted_space_node,
16252 diverted_space_node::get_diverted_space_node): Removed.
16253 * troff/node.h: Declare reread methods instead of
16254 get_diverted_space_node methods. Make `n' member private.
16255 * troff/input.c: (token::diverted_space): Removed.
16256 * troff/token.h: Removed declaration.
16259 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
16261 * eqn/script.c (script_box::compute_metrics): Don't let
16262 SUP_RAISE_FORMAT become negative.
16264 * tbl/table.c (table::do_row): Entries that don't end in the
16265 this row shouldn't make the row non-blank.
16267 * tbl/table.c (table::make_columns_equal): Only set the width of
16268 columns which are marked as equal.
16270 * tbl/main.c (process_data): Before issuing excess data error,
16271 if last character was a newline unget it; then get it again after
16272 the error. Also include the contents of the entry in the message.
16274 * groff.c: New file.
16275 * Makefile: Build groff from groff.c. Make it possible to use
16276 either groff.sh or groff.c as groff.
16277 * Makefile.bd: Similarily.
16279 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
16281 * groff.sh: Don't delay expansion of $@ in assignment to files.
16282 Remove occurrences of \".
16284 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
16286 * all Makefiles: Simplify and rearrange.
16288 * Makefile: Handle fmod like malloc.
16289 * lib/Makefile: Similarily.
16290 * lib/fmod.c: Remove #ifdef NEED_FMOD.
16292 * Makefile: Rename OPTIMISE to OPTIMIZE.
16294 * groff.sh: Remove assignment to PATH.
16295 * Makefile: Remove SHPATH variable.
16296 * Makefile.bd: Similarily.
16298 * groff.sh: Add -V option to print the pipeline instead of
16301 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
16303 * lib/font.c: Split off file searching into ...
16304 * lib/fontfile.c: New file.
16306 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16308 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
16310 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16311 Also change misleading comment.
16312 (table::do_vspan): Change similarily misleading comment.
16313 * tbl/main.c (process_data): A format row with an explicit `s'
16314 uses up a data line, even if all the other columns are `_' or `='.
16316 * troff/input.c (token::description): Fix description of
16317 TOKEN_DUMMY and TOKEN_EMPTY.
16319 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
16321 * groff.sh: Fix description of -Z in help message.
16323 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
16325 * pic/object.c (object_spec::make_object): Allow negative and zero
16327 * pic/pic.y: Give linethick default value of -1.0.
16328 * pic/troff.c (troff_output::troff_output): Initialize
16329 last_line_thickness to BAD_THICKNESS.
16330 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16331 (troff_output::line_thickness): Canonicalize negative thicknesses
16332 to RELATIVE_THICKNESS.
16333 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16334 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16336 (tex_output::start_picture): Set pen_size to -2.0.
16338 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16339 0, then use 0 linewidth.
16340 (ps_printer::ps_printer): Initialize line_thickness to -1.
16342 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16344 * ps/devps/symbolchars: Remove `or'.
16345 * ps/tmac.ps: Implement \(or with .char.
16347 * ps/devps/symbolchars: Move most characters into textmap.
16348 * ps/devps/textmap: Add names for troff bracket characters. Remove
16351 * ps/devps/TSymbol.ps: Removed.
16352 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16353 * ps/tmac.ps: Do with .char what TSymbol did.
16354 * ps/devps/download: Remove TSymbol.
16356 * ps/devps/T: Removed.
16357 * ps/devps/Troff.ps: Removed.
16358 * ps/devps/Troff.afm: Removed.
16359 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16360 * ps/devps/download: Remove Troff.
16361 * ps/devps/FontMakefile: Remove T target.
16362 * ps/devps/DESC-A4: Remove T from font list.
16363 * ps/devps/DESC-letter: Likewise.
16365 * troff/input.c (macro_to_node): Rename to ...
16366 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
16367 character's definition while processing it.
16368 * troff/node.c (node::add_char, make_node): Change calls to
16369 macro_to_node accordingly.
16371 * troff/input.c (token::next): Translate \_ to \(ul.
16373 * tty/devascii/R.proto: Add `|'.
16374 * tty/devlatin1/R.proto: Likewise.
16376 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
16378 * man: Put the version number in all the man pages.
16380 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
16382 * Makefile.bd: New file.
16383 * README.bd: New file.
16385 * VERSION: New file.
16386 * lib/version.c: Removed.
16387 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16390 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16391 environment variable.
16393 * all Makefiles: Split install target into install.bin for
16394 binaries, and install.nobin for everything else.
16395 * Makefile: Add bindist target.
16397 * man/afmtodit.man: New file.
16398 * man/Makefile: Add afmtodit.n to MAN1PAGES.
16399 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16401 * ps/Makefile: Pass BINDIR to make install in devps.
16403 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16404 the space character.
16406 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16408 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
16410 * ps/ps.c: Redo font downloading.
16411 * ps/devps/download: New file.
16412 * ps/devps/Makefile: Add download to DEVICEFILES.
16413 * ps/devps/afmtodit: Remove -d option.
16414 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16415 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16416 * ps/devps/zapfdr.ps: Likewise.
16417 * ps/devps/TSymbol.ps: Likewise.
16419 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
16421 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16423 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
16425 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16426 then strip the first line if it starts with %.
16427 * Makefile: Add a comment about this.
16429 * man/tfmtodit.man: New file.
16430 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16431 * dvi/Makefile: Install tfmtodit in BINDIR.
16433 * dvi/tfmtodit.c (usage): Mention -v option.
16435 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
16437 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16438 * troff/node.c (troff_output_file::transparent_char): Don't call
16441 * eqn: Add check_tabs method to most box classes.
16442 * eqn/box.c (box::top_level): Call check_tabs.
16444 * eqn/script.c (script_box::output): Use \Z.
16445 * eqn/limit.c (limit_box::output): Use \Z.
16447 * eqn/box.c (box::top_level): Use itoa.
16449 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
16451 * dvi/tmac.dvi: Add font translations for CR, C, TT.
16452 * dvi/devdvi/Makefile: Don't make links to CW.
16454 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16456 * xditview/tmac.X: Likewise.
16458 * troff/node.c: Add font translation feature.
16459 (get_font_translation): New function.
16460 (symbol_fontno): Translate the font name.
16461 (mount_font_no_translate): Rename to mount_font to this.
16462 (mount_font): New function.
16463 (font_family::make_definite): Call mount_font_no_translate instead
16465 (mount_style): Translate the font name.
16466 (font_translate): New function.
16467 (init_font_requests): Bind "ftr" to font_translate.
16469 * ps/devps/prologue (SN): New procedure that rounds a position to
16470 the nearest (pixel + (.25,.25)).
16471 (DL): Use SN to round endpoints.
16473 * lib/version.c: Changed version to 0.5.
16475 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
16477 * Makefile: Move definition of PAGE to the very beginning, so that
16478 people are less likely to miss it.
16480 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
16482 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16484 * troff/env.c (environment::choose_breakpoint): Make `can't find
16485 breakpoint' error a warning of type WARN_BREAK. Change message to
16486 `can't break line'.
16487 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16489 * troff/input.c: Add WARN_BREAK to warning_table. Include
16490 WARN_BREAK in DEFAULT_WARNING_MASK.
16492 * tty/tmac.tty: Add definition of \(+-.
16494 * groff.sh: Remove `--' option to set command.
16496 * dvi/devdvi/texsy.map: Remove duplicate md entry.
16498 * ps/devps/eqnchar: Better definition of cdot using md.
16499 * dvi/devdvi/eqnchar: Likewise.
16500 * xditview/devX100/eqnchar: Likewise.
16501 * xditview/devX75/eqnchar: Likewise.
16502 * eqn/lex.c: Add definition of cdot.
16504 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
16506 * troff/input.c (get_optional_char): New function.
16507 * troff/input.c (set_page_character): Use get_optional_char(),
16508 rather than has_arg() and tok.get_char(1).
16509 * troff/env.c (tab_character, leader_character, hyphen_char,
16510 field_characters): Likewise.
16511 (margin_character): Likewise. Also always delete the
16512 margin_character_node.
16514 * troff/input.c (token::get_char): Use token::description.
16516 * troff/input.c (has_arg): Don't skip over tab and \}.
16517 * troff/number.c (start_number): Give a warning if the number
16518 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16520 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
16522 * troff/input.c (empty_name_warning, non_empty_name_warning): New
16524 (get_name, get_long_name): Use these. Rename `warn' argument to
16527 * troff/node.c (get_fontno): Test that the symbol is not null.
16529 * troff/input.c (token::description): New function.
16530 * troff/number.c (parse_term): Use token::description in `numeric
16531 expression expected' message.
16532 * troff/groff.h: Add WARN_MISSING.
16533 * troff/number.c (start_number): New function.
16534 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16535 get_incr_number): Use start_number().
16536 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16538 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16539 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16541 * troff/input.c (token::get_char): Use WARN_MISSING.
16542 * troff/input.c (token::delimiter): Use token::description.
16543 * troff/env.c (environment_switch): Back out Aug 3 change.
16544 * troff/input.c (has_arg): Skip over \}s and tabs but give a
16546 * troff/token.h (token::tab): New function.
16547 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16548 * troff/reg.c (alter_format): Likewise.
16549 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16551 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
16553 * troff (most files): Redo warnings. Divide warnings into various
16554 categories; warning() has an additional first argument indicating
16555 the category it falls into.
16556 * troff/input.c (main): -w now takes an argument. New option -W.
16557 (enable_warning, disable_warning): New functions.
16559 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16560 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16562 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
16564 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16565 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16566 * xditview/devX75/eqnchar: Likewise.
16567 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16569 * eqn/other.c: When bar or over applies to a single character
16570 don't produce an overline_box or an underline_box. Instead produce
16571 an accent_box or an underaccent_box, with the accent a line
16572 whose width is accent_width. New classes underaccent_box,
16573 overline_char_box and underline_char_box.
16574 * eqn/box.h: Move overline_box, underline_box, accent_box class
16575 declarations into eqn/other.c. Add declarations of
16576 make_underline_box, make_overline_box, make_accent_box.
16577 * eqn/eqn.y: Call make_overline_box, make_underline_box
16578 make_accent_box instead of constructors.
16579 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16581 * eqn/other.c: Add accent_box::~accent_box.
16582 * eqn/box.h: Declare it.
16584 * groff.sh: With -Tps, use eqn -D.
16586 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16588 (underline_box::output): Similarily.
16589 (accent_box::output): Use \Z.
16591 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16594 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
16596 * troff/div.c (top_level_diversion::transparent_output(unsigned
16597 char)): Use asciify.
16598 * troff/input.c (asciify): Don't make it static.
16599 * troff/token.h (asciify): Declare it.
16601 * troff/input.c (get_name, get_long_name, token::get_char,
16602 token::delimiter): Add an extra default argument which says
16603 whether a warning should be printed.
16604 * troff: Pass a non-zero argument to one of these rather than
16605 printing a warning directly.
16607 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
16609 * troff: Consistently use symbol::is_null.
16611 * troff/dictionary.h: Move some inline functions into
16614 * troff/request.h: Move inline functions into input.c.
16615 (request_or_macro::invoke): Make it pure.
16617 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16618 * troff/input.c (init_input_requests): Use class constant_int_reg.
16619 (class compatible_reg): Deleted.
16620 * troff/div.c (init_div_requests): Use class constant_int_reg.
16621 (class last_post_line_extra_space_reg): Deleted.
16623 * troff/env.c (tab_character): Don't change the tab character if
16624 we get an invalid argument.
16625 (hyphen_char): Similarily.
16627 * troff/reg.c (alter_format): Check that nm is not null.
16629 * Makefile, groff.sh: Make it possible to customize the commands
16630 used for printing PostScript and dvi files. Also make it possible
16631 to customize the path used by groff.sh.
16633 * eqn/eqn.y: Make `left' right associative.
16635 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
16637 * pic/pic.h: Added definition of M_SQRT2 for those systems that
16640 * pic/pic.h: Removed definition of INT_MAX.
16642 * troff/node.c (italic_corrected_node::vertical_extent): Omit
16645 * troff/input.c (token::next): Handle \R like \n.
16647 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
16649 * ps/tmac.pc (PSPIC): Simplify.
16651 * troff/env.c (tab_stops::to_string):
16652 * pic/pic.y (object_type_name):
16653 * pic/troff.c (simple_output::line):
16654 * pic/tex.c (tex_output::spline):
16655 * pic/object.c (object_spec::make_object):
16656 * tbl/main.c (process_data): Add cases to switch statements to
16657 avoid cfront warnings. (Some of these are spurious, since the
16658 switch already has a default case.)
16660 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
16661 `ps-'. Don't test systat; instead check number of arguments to
16664 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
16666 * macros/tmac.e: Do not decrease the page offset by 0.5i.
16668 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16669 Unlink the file as soon as we have opened it, so that we don't
16670 have to bother with signal handlers.
16671 (handler): Deleted.
16672 (fatal_error_exit): Deleted.
16673 (main): Don't call signal.
16675 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16677 * dvi/devdvi/Makefile: Use the -k option with S and MI.
16679 * pic/pic.y: If there is a label, or an nth construction before
16680 the first `.' in the argument to `with', ignore it and generate a
16682 * pic/lex.c (lex_warning): New function.
16684 * tbl/table.c (table::init_output): In section keep and release
16685 macro, use 0 indent when diverting and the correct indent when
16688 * troff/input.c (interpolate_number_format): Do not interpolate
16689 anything if the number register is not defined.
16691 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16693 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
16695 * ps/devps/prologue (PICTURE): Set components of graphics state to
16696 their default values.
16698 * ps/devps/text.enc: Add trademark
16699 * ps/devps/textmap: Add names for club, spade, heart, diamond,
16700 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16701 * ps/devps/symbolchars: Add names for summation and product.
16703 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16704 suchthat. Add pp. Add upper-case letters.
16706 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16707 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16710 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16711 rA (right angle bracket) to ra. Introduce names for double-headed
16712 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16713 * ps/devps/textmap: Likewise for ps device.
16714 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16715 * tty/devascii/R.proto: Rename lA to la and rA to ra.
16716 * tty/devascii/R.proto: Likewise.
16717 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16719 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16721 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16723 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16726 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
16728 * troff/div.c (when_request): Use symbol::is_null rather than
16729 has_arg to determine whether we have an argument.
16730 (change_trap): Remove the trap if we get an invalid number. Give
16731 an error if we don't get at least the macro name.
16732 (diversion_trap): Remove trap if we get an invalid name or number.
16734 * troff/env.c (environment_switch): Pop if we get an invalid
16735 symbol or numeric expression.
16737 * troff/input.c (do_define_macro): If EOF is encoutered while
16738 defining the macro, do tok.next() before returning.
16740 * troff/token.h (has_arg): Move definition from here, to ...
16741 * troff/input.c (has_arg): ... here
16743 * troff/env.c (space_size): Do nothing if we get an invalid argument.
16744 * troff/input.c (shift): Likewise.
16746 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
16749 * pic/troff.c (troff_output::start_picture): Comment out calls to
16752 * eqn/main.c (do_file): Subtract 1 from current_lineno if
16753 interpret_lf_args succeeds.
16755 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16756 \\. This avoids problems with \$N.
16758 * groff.sh: Pass -C to preprocessors.
16760 * lib/lf.c (interpret_lf_args): Be more flexible.
16762 * tbl/main.c (main): Add -C option.
16763 (table_input::get): Do not recognize TE if followed by character
16764 other than a space or newline unless -C option given.
16765 (process_input_file): Likewise for lf, TS.
16766 (process_data): Likewise for lf in text blocks.
16768 * eqn/main.c (main): Add -C option.
16769 (do_file): Don't recognize EQ, EN or lf if followed by character
16770 other than space or newline unless -C option given.
16771 * eqn/lex.c (file_input::read_line): Similarily.
16772 * eqn/eqn.h: Declare compatible_flag.
16774 * etc/soelim.c (main): Add -C option.
16775 (interpret_lf_args): Use version in libgroff.
16778 * pic/main.c (main): Add -C option, which sets compatible_flag.
16779 (top_input::get), (top_input::peek): If -C option not given,
16780 do not recognize .PS/.PE/.PF/.lf if followed by a character
16781 other than space or newline.
16782 * pic/lex.c (file_input::read_line): Similarily.
16783 * pic/pic.h: Add declaration of compatible_flag.
16785 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
16787 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16789 * troff/node.c, troff/node.h: Add `asciify' methods to classes
16790 derived from node. New class space_char_hmotion_node.
16791 * troff/input.c (asciify_macro): New function.
16792 * troff/input.c (init_input_requests): New request `asciify' bound
16794 * macros/mm.diff: New file.
16795 * Makefile: In install.mm target use `patch' to apply
16798 * troff/input.c (macro::print_size): Just print the size in bytes.
16800 * troff/div.c (return_request): Correct the argument
16803 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
16805 * troff/node.h (class composite_node): Add sz member.
16806 * troff/node.c (composite_node::size): Return sz.
16807 * troff/input.c (macro_to_node): Use the initial size in the
16808 environment as the size of the composite_node.
16810 * troff/node.c (node::zero_width_tprint): Provide a reasonable
16813 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
16815 * troff/div.c (change_trap): If we get a bad number expression,
16818 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
16820 * lib/matherr.c (matherr): Define this only if math.h defines
16823 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
16825 * troff/div.c (macro_diversion::distance_to_next_trap): If there
16826 no diversion trap return vunits(INT_MAX - vresolution).
16828 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
16830 * troff/input.c (do_zero_width): New implementation that doesn't
16831 use a temporary environment. Use instead:
16832 (token::add_to_node_list): New function.
16833 * troff/env.c (environment::get_prev_char_height),
16834 (environment::get_prev_char_height),
16835 (environment::get_prev_char_skew): New functions.
16836 (environment::get_prev_char): New function.
16837 (environment::get_prev_char_width): Change to use get_prev_char.
16838 (init_env_request): Implement new registers .cht, .cdp, .csk.
16839 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16840 \Z being processed in a separate environment.
16842 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
16844 * tbl/table.c: Removed TABLE_BOTTOM_REG.
16846 * tbl/table.c (table::init_output): In the section release macro,
16847 give a warning message if the section won't fit on one page.
16849 * tbl/table.c (table::do_top): Emit table keep only if table is
16851 (table::do_bottom): Likewise for table release.
16852 (table::table), (table::add_vertical_rule): Remove reference to
16854 * tbl/table.h: Remove keep member.
16856 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16857 SECTION_RELEASE_MACRO, if there's not enough space before the next
16858 trap to output the diversion, call T# ourselves, set
16859 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16860 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
16861 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
16862 vertical position and return to it before turning traps on again.
16864 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
16866 * troff/node.c, troff/node.h: In classes derived from node,
16867 replace prev_char_width method by last_char_node method.
16868 * troff/env.c (environment::get_prev_char_width): Use
16869 node::last_char_node rather than node::get_prev_char_width.
16871 * Makefile: Added comment about -fno-inline on 68030-based
16874 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16875 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16876 expressions using sizeof to int.
16877 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16879 * macros/tmac.e (TS): Don't move @f back past the current
16882 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
16884 * ps/ps.c (main): Buffer stderr.
16885 * dvi/dvi.c (main): Likewise.
16886 * tty/tty.c (main): Likewise.
16888 * ps/ps.c (ps_printer::do_import): Improve error handling.
16890 * troff/input.c (abort_request): Use asciify.
16892 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16893 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16894 type of first argument int rather than char. This works around a
16895 bug on the 68030 based Apollo using g++ 1.37.1.
16897 * tbl/table.h (class table): Add `keep' member.
16898 * tbl/table.c (table::table): Initialize `keep'.
16899 (table::add_vertical_rule): Set `keep' to 1.
16900 (table::do_top): Only emit table keep macro is `keep' is non-zero.
16901 (table::do_bottom): Likewise for table release macro.
16902 (table::do_row): Emit section keep macro even if the row is 0.
16904 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
16906 * macros/tmac.e (@C): Preserve the font family across the change
16909 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
16911 * lib/font.c: Initialize font::hor and font::vert to 1.
16912 (font::load_desc): Check the values of font::hor and font::vert.
16914 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16915 be included in a C compilation.
16916 (iftoa): Use INT_DIGITS. Include lib.h.
16918 (as_string): Likewise.
16919 * tbl/table.c: Removed definition of INT_DIGITS.
16920 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16921 * troff/input.c (input_input_requests): Likewise.
16922 * ps/ps.c (make_encoding_name): Likewise.
16923 (ps_printer::set_style): Likewise.
16924 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16926 * tty/devascii/R.proto: Map fm onto '.
16927 * tty/devlatin1/R.proto: Likewise.
16929 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
16931 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16932 argument to \w is at a different input level.
16934 * tbl/table.c (table::init_output): Define a new macro
16935 REPEATED_VPT_MACRO, like vpt but if in a diversion also
16936 transparently outputs itself.
16937 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16939 (table::do_row): Likewise.
16941 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16942 TRANSPARENT_STRING_NAME.
16944 * tbl/table.c (table::init_output): In the table release macro
16945 print an error message and don't produce any output if after
16946 issuing the need request the table still will not fit. Also
16947 remove the diversion after bringing it back.
16949 * tbl/table.c (table::init_output): Define a new macro
16950 REPEATED_MARK_MACRO, like mk but if in a diversion also
16951 transparently outputs itself.
16952 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16953 is necessary because .TH might not call .T#.
16954 (table::do_top): Likewise TOP_REG.
16955 (table::define_bottom_macro): If TOP_REG is no longer valid, use
16956 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16957 table header might contain just the two top rules.
16959 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
16961 * troff/div.c: Implement new request `ptr' to print all traps.
16963 * troff/env.c (init_env_requests): Implement `.tabs' reg with
16964 init_string_env_reg.
16965 * troff/env.c (class tab_reg): Deleted.
16967 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
16969 * troff/div.c: New number register .pn returns the number of the
16970 next page as set by the pn request.
16972 * macros/tmac.an: Redid headers and footers. Number each manual
16973 entry starting from 1 unless \nC is > 0, like Sun. Added an
16974 optional 5th argument to .TH which specifies the manual name and
16975 appears in the center of the header. Understand the X, P and D
16976 registers like Sun.
16978 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
16980 * troff/env.c (init_env_requests): New number register `.lt' to
16981 return the title length.
16983 * troff/node.h (class transparent_dummy_node): New class.
16984 * troff/node.c (class transparent_dummy_node): Provide member
16986 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16989 * troff/input.c (token::next): New escape sequence \).
16990 * troff/input.c (get_copy): Recognize \) in copy mode.
16992 * troff/input.c (input_stack::clear): New function.
16993 * troff/input.c (exit_request): Use input_stack::clear.
16995 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16996 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16998 * troff/env.c: Move set_page_character to input.c. Move
16999 page_character to input.c also.
17000 * troff/env.c (title): Split off the reading of the parts of the
17001 title into read_title_parts.
17002 * troff/input.c (read_title_parts): New function. Check the
17003 input_level when testing whether a token matches the delimiter.
17005 * troff/input.c (exit_request): New function.
17006 * troff/input.c (init_input_requests): Bind ex request to
17007 exit_request rather than exit_groff.
17009 * troff/input.c (exit_groff): Call tok.next() before
17010 process_input_stack().
17012 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
17014 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17015 * troff/env.h: ditto.
17016 * troff/input.c: ditto.
17018 * troff/env.c (environment::is_empty): Test pending_lines.
17020 * troff/env.c (environment::have_pending_lines): Removed.
17022 * troff/input.c: Add request to flush pending lines from the
17025 * troff/env.c, troff/env.h: Add automatic widow control feature.
17027 * troff/input.c (exit_groff): Do process_input_stack() after
17028 do_break() but before setting exit_flag to 2.
17030 * troff/input.c: Remove FLUSH_PENDING_LINES and
17031 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17032 environment after END_TRAP token seen, but only if there aren't
17033 any more traps still unfinished.
17034 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17036 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
17038 * troff/env.c: Rename the `retain_size' member of class
17039 pending_output_line to `no_fill'.
17041 * troff/env.c (title): When the line is output, make the
17042 retain_size argument !fill.
17044 * troff/node.h: Add `hyphenated' member to struct breakpoint.
17045 * troff/node.c (space_node::get_breakpoints),
17046 (dbreak_node::get_breakpoints): Fill this in.
17047 * troff/env.c: Allow specification of maximum number of
17048 consecutive hyphenated lines.
17050 * troff/env.c (environment::is_empty): Add test for !current_tab.
17052 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
17054 * troff/env.c (environment::hyphenate_line): Don't completely give
17055 up if the word is not to be hyphenated; continue so that breaks
17056 can be made at break_char_node's.
17058 * lib/lib.h: Only define INT_MAX if it's not already defined;
17059 undef INT_MIN if it's already defined.
17061 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17063 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17064 This works around a bug in AT&T C++ 2.0 used with an ANSI C
17067 * macros/tmac.an (an-header): Set no-space mode.
17069 * macros/tmac.an (TH): Start a new page if necessary.
17071 * Started using ChangeLog at version 0.4.
17074 version-control: never