1 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3 * tmac/groff_www.man: Update documentation of .MPIMG.
5 2004-07-03 Werner LEMBERG <wl@gnu.org>
7 * tmac/an-old.tmac (RI): Always start with font `R'.
8 (RI, IR): Properly end with font `R'.
10 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
12 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
13 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
14 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
15 Don't pass more than six arguments to .R, .I, .B, etc., for
16 compatibility with traditional troff macros.
18 2004-07-02 Werner LEMBERG <wl@gnu.org>
20 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
21 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
23 (PUSH_COMP_MODE): New internal character constant.
26 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
27 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
28 (token::next, macro::append): Handle PUSH_COMP_MODE.
29 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
30 POP_GROFFCOMP after each of the decoded arguments to make them
31 independent from the compatibility mode status.
32 (comp_mode): Add `COMP_ENABLE'.
33 (do_define_string, do_define_macro): Handle COMP_ENABLE.
34 (define_string, append_string, define_macro, define_indirect_macro,
35 append_macro, append_indirect_macro): Handle `compatible_flag'.
36 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
38 * man/groff_diff.man, doc/groff.texinfo: Updated.
40 2004-07-01 Werner LEMBERG <wl@gnu.org>
42 * doc/groff.texinfo: Improve documentation of `hcode'.
43 Use @documentencoding and convert document to latin-1; to do that
44 make latin characters active and assign proper macros (within a
45 @tex...@end tex environment).
46 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
47 * doc/Makefile.sub (groff): Ditto.
49 2004-06-29 Werner LEMBERG <wl@gnu.org>
51 Implement two new conditional operators `F <name>' and `S <name>'
52 which check whether <name> is a valid font or style, respectively.
54 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
55 (text_file::text_file): Updated.
56 (text_file::error): Don't emit message if `silent' is set.
57 (font::load_font): Add optional third argument (which is directly
59 (font::load): Add optional second argument to check the header of
60 a font only, without emitting warning or error messages.
61 * src/include/font.h (font): Updated.
63 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
65 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
66 fourth argument to check a font without mounting.
67 (check_font, check_style): New functions.
68 * src/roff/troff/node.h: Updated.
70 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
73 2004-06-27 Werner LEMBERG <wl@gnu.org>
75 Implement new string-valued register `.sty' to return the current
78 * env.cpp (environment::get_style_name_string): New function.
79 (init_env_requests): Add `.sty' register.
80 * env.h (environment): Updated.
81 * node.cpp (font_info): Make `get_style_name' a friend.
82 (get_style_name): New function.
85 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
88 2004-06-15 Werner LEMBERG <wl@gnu.org>
90 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
93 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
95 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
96 and \n[mo] to avoid dependency on current date.
98 2004-06-08 Werner LEMBERG <wl@gnu.org>
100 * Makefile.sub (install_data): New target.
102 2004-06-04 Werner LEMBERG <wl@gnu.org>
104 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
106 2004-06-03 Werner LEMBERG <wl@gnu.org>
108 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
110 (install_data): Add $(srcdir).
112 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
115 2004-06-02 Werner LEMBERG <wl@gnu.org>
117 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
118 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
119 Add test for Xmu library.
120 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
121 GROFF_APPRESDIR_DEFAULT): New macros.
123 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
124 and GROFF_APPRESDIR_DEFAULT.
126 * configure: Regenerated.
128 * Makefile.in (appresdir): New variable.
129 (MDEFINES): Add appresdir.
131 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
133 (install_data, uninstall_sub): New targets to handle GXditview.ad.
135 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
136 `$(srcdir)/eign', not `eign'.
138 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
140 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
141 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
142 Protect (g)xditview with `\%' to avoid hyphenation.
143 Other minor formatting.
145 2004-06-01 Werner LEMBERG <wl@gnu.org>
147 Integrate gxditview into groff's standard directory hierarchy.
149 * src/xditview/*: Moved to ...
150 * src/devices/xditview/*: Here.
151 Moved DviChar.h and XFontName.h to src/include.
152 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
153 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
154 Moved xtotroff.c to new directory src/utils/xtotroff.
155 Provide proper Makefile.sub files (reusing the stuff from
157 DESC renamed to DESC.in.
158 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
159 Converted everything from K&R to ANSI C.
160 Decorated with const where appropriate.
161 Cast string constants with `String' and `char *' where appropriate.
162 Made it compile with C++ (used as a C compiler).
163 Removed other minor compiler warnings.
165 * src/devices/xditview/device.c: Include config.h, string.h, and
167 Don't declare `exit', `strtok', `strchr', and `getenv'.
170 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
173 * src/devices/xditview/xditview.c: Include config.h.
174 Include stdio.h earlier.
175 Protect declaration of `popen' and `pclose' with
176 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
177 Replace `caddr_t' with `XtPointer'.
178 (MakePromptFunc): New typedef.
179 (DoPrint): Use RETSIGTYPE.
180 (promptfunction): Change type to MakePromptFunc.
181 (MakePrompt): Use MakePromptFunc for third argument.
184 * src/devices/xditview/ad2c: Add casts to `String'.
186 * src/include/XFontName.h (XFontNameString): Don't use array
188 Add prototypes for `XParseFontName', `XFormatFontName',
189 `XCompareFontName', and `XCopyFontName'.
191 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
194 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
195 Don't declare `XParseFontName' and `XFormatFontName'.
197 (main): Remove `optind' and `optarg'.
199 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
200 (to select programs which need X).
201 Make XDEVIDIRS depend on `FORCE'.
202 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
205 (LIBDIRS): Use XLIBDIRS.
206 (CPROGDIRS): Use XPROGDIRS.
207 (DEVDIRS): Remove font directories for gxditview.
208 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
209 (EXTRADIRS): Remove src/xditview.
211 * Makefile.sub (DISCLEANFILES): Updated.
213 * Makefile.comm (LIBXUTIL): New variable.
214 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
215 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
217 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
219 * aclocal.m4 (GROFF_X11): New function.
221 * configure.ac: Call GROFF_X11.
222 Don't create src/xditview/Imakefile.
223 Don't emit notice how to build gxditview.
225 * configure: Regenerated.
227 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
229 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
231 * Makefile.in (CPPFLAGS): Define.
232 (MDEFINES): Add CPPFLAGS.
234 2004-05-27 Werner LEMBERG <wl@gnu.org>
236 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
238 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
240 Fix problems with `friend name injections'.
242 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
243 make_script_box), src/roff/troff/div.h (end_diversions),
244 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
247 2004-05-25 Bernd Warken <bwarken@mayn.de>
249 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
251 2004-05-25 Werner LEMBERG <wl@gnu.org>
253 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
254 src/libs/libgroff/color.cpp: Include lib.h.
256 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
258 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
259 through Forte 6u1, and for how to get GNU make on Solaris.
261 2004-05-24 Werner LEMBERG <wl@gnu.org>
263 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
266 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
268 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
271 2005-05-14 Werner LEMBERG <wl@gnu.org>
273 * REVISION: Set to 2.
275 * aclocal.m4 (GROFF_STDINT_H): Removed.
276 (GROFF_INTTYPES_H): Define HACE_CC_INTTYPES_H.
278 * configure.ac: Updated.
279 * configure, src/include/config.hin: Regenerated.
281 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
282 inttypes.h conditionally.
284 2003-05-13 Werner LEMBERG <wl@gnu.org>
286 Version 1.19.1 released
287 =======================
289 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
291 * src/preproc/refer/label.y (same_author_last_name,
292 same_author_name): Handle empty sort keys.
294 2004-05-10 Werner LEMBERG <wl@gnu.org>
296 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
299 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
300 doc-str-Lb-librt): Reset font.
301 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
302 Provide `doc-str-Lb' to reset font.
303 * tmac/groff_mdoc.man: Updated.
305 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
307 * src/preproc/html/pre-html.cpp (make_message): Make it work for
308 snprintf versions which don't conform to ANSI C 99 (this is,
309 counting the string's trailing null byte in the return value).
311 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
313 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
314 that all implementations of sprintf handle null pointers correctly.
316 2004-05-04 Werner LEMBERG <wl@gnu.org>
318 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
319 Document `.U' register.
321 * src/roff/troff/env.cpp (environment::mark_last_line)
322 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
324 2004-05-04 Larry Kollar <kollar@alltel.net>
326 New read-only register `.U'; it returns 1 in safer mode and 0
329 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
332 2004-05-03 Werner LEMBERG <wl@gnu.org>
334 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
336 2004-04-17 Werner LEMBERG <wl@gnu.org>
338 * src/include/font.h (font): Use `int' for ch_index.
339 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
340 font::compact): Updated.
342 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
345 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
346 (hyphen_word): Fix compiler warnings.
347 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
350 (get_delim_number, get_line_arg): Change second argument type to
352 (macro_header::copy, token::next, do_define_string,
353 do_define_character, substring_request, asciify_macro,
354 unformat_macro, read_size, non_interpreted_node::interpret,
355 while_request, main: Fix compiler warnings.
356 (read_color_draw_node): Initialize `col'.
358 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
359 `start_col' and `end_col' of type `int'.
360 (vertical_rule): Make `col' of type `int'.
362 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
365 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
367 (format_serial): Use them to remove dependency on ASCII.
369 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
371 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
374 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
376 (glyph): Change type of `hpos' to `int'.
378 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
379 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
381 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
383 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
385 2004-04-16 Werner LEMBERG <wl@gnu.org>
387 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
388 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
389 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
390 `double' instead of `float' everywhere.
391 * src/preproc/grn/main.cpp: Use `double' instead of `float'
393 (main): Add return value.
394 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
396 Update all user functions.
398 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
399 src/preproc/eqn/box.h, src/preproc/pic/object.h,
400 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
401 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
402 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
403 src/roff/troff/input.cpp, src/roff/troff/request.h,
404 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
407 * src/utils/indxbib/signal.c: Include stdlib.h.
409 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
411 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
412 before the first page.
414 2004-04-14 Thomas Klausner <wiz@netbsd.org>
416 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
417 (doc-operating-system-*): Updated.
418 * tmac/doc-syms (doc-str-St-*): Various small fixes.
419 (doc-str-Lb-*): Add more library names.
421 2004-04-10 Art Haas <ahaas@airmail.net>
423 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
426 2004-04-09 Art Haas <ahaas@airmail.net>
428 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
430 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
432 * arch/misc/shdeps.sh: Generate better comment for sed script.
434 2004-04-08 Art Haas <ahaas@airmail.net>
436 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
437 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
438 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
439 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
440 (polyfill), src/preproc/grn/main.cpp (polyfill),
441 src/preproc/refer/command.cpp (command_table),
442 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
443 gcc 3.5 doesn't like).
445 2004-04-08 Werner Lemberg <wl@gnu.org>
447 Removing many compiler warnings. groff should now compile with
448 a C++ compiler used for C files also. [Simple variable renamings
449 to avoid shadowing aren't logged in detail.]
451 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
452 (draw_dvi_printer::draw) ['c']: Enclose in block.
454 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
455 (page::add_line): Fix typos.
456 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
458 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
459 Some local variable renamings.
460 * src/devices/grolbp/lbp.h: Some local variable renamings.
462 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
465 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
466 Remove redundant local variable declaration.
467 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
468 Don't use `caddr_t' but `void *'.
469 Enclose functions with `extern "C"' for C++.
471 * src/libs/libdriver/input.cpp (remember_filename,
472 remember_source_filename): Use cast for string constant.
474 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
475 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
476 src/libs/libgroff/geometry.cpp: Some local variable renamings.
477 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
479 Enclose functions with `extern "C"' for C++.
480 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
481 (needs_quoting): Return `int'.
482 (quote_arg): Add proper casts to malloc and realloc.
483 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
484 various MS Windows environments.
485 (spawnvp_wrapper): Add proper cast to malloc.
487 * src/preproc/eqn/box.h: Remove redundant declarations of
488 `make_script_box', `make_mark_box' and `make_lineup_box'.
489 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
490 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
493 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
494 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
495 (dx, dy): Renamed functions to...
496 (deltax, deltay): This.
497 * src/preproc/grn/main.cpp: Some local variable renamings.
498 (deffont): Add `const'.
499 (initpic, conv): Use cast for string constant.
501 * src/preproc/html/pre-html.cpp: Some local variable renamings.
502 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
503 (char_buffer::run_output_filter): Second argument is unused.
504 * src/preproc/html/pushback.cpp: Some local variable renamings.
506 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
507 * src/preproc/pic/object.cpp: Some local variable renamings.
509 * src/preproc/refer/label.y (lookup_label): Remove redundant
510 declaration of local variable.
512 * src/preproc/soelim.cpp: Remove redundant declaration of
515 * src/preproc/tbl/main.cpp: Some local variable renamings.
517 * src/roff/groff/groff.cpp (main): Use cast for string constant.
518 * src/roff/groff/pipeline.c: Enclose declarations of `error',
519 `c_fatal', and `i_to_a' with `extern "C"' for C++.
520 Don't use C++-style comments.
522 * src/roff/troff/env.h: Remove redundant declaration of `title'.
523 * src/roff/troff/node.h, src/roff/troff/env.cpp,
524 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
526 * src/roff/troff/div.h: Remove redundant declaration of
528 * src/roff/troff/troff.h: Remove redundant declaration of
530 * src/roff/troff/input.cpp: Remove redundant declaration of
531 `handle_first_page_transition' and `process_input_stack'.
533 * src/utils/hpftodit.cpp: Some local variable renamings.
535 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
537 Don't define RETSIGTYPE.
538 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
540 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
541 (error): Use `const' in argument.
542 (main): Remove redundant declaration of `optind'.
543 Move declaration of `Version_string' to top-level.
545 * PROBLEMS: Document difficulties compiling signal.c if a C++
546 compiler is used for C.
548 2004-04-07 Werner Lemberg <wl@gnu.org>
550 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
552 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
554 Make scripts like nroff.sh and neqn.sh portable across various
555 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
556 non-POSIX path separators. The idea is to extend those scripts to
557 decide at run-time (of the script) which path separator to use.
559 * arch/misc/Makefile.sub: New file.
560 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
561 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
562 a proper definition of the variable `GROFF_RUNTIME'.
564 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
565 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
566 (PROGDEPDIRS): New variable.
568 (PROGDIRS): Add PROGDEPDIRS.
570 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
571 Don't substitute @SEP@ and @BINDIR@.
572 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
573 (PATH): Use GROFF_RUNTIME.
575 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
576 Don't substitute @SEP@ and @BINDIR@.
577 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
578 (PATH): Use GROFF_RUNTIME.
580 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
582 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
583 Cygwin which doesn't handle stderr correctly.
585 2004-03-08 Werner LEMBERG <wl@gnu.org>
587 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
588 against empty argument. Problem reported by <cgd@broadcom.com>.
590 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
592 * Makefile.in (SEP): Replaced with...
593 (RT_SEP, SH_SEP): Separators for the target platform's native path
594 separator and the build environment, respectively.
595 (fontpath, tmacpath): Use RT_SEP.
598 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
599 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
600 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
601 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
603 2004-03-05 Werner LEMBERG <wl@gnu.org>
605 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
606 reduce alignment problems with newer printers which use built-in
607 TrueType fonts (instead of the older Intellifonts). The ideal
608 solution is to provide a second set of groff metric files, but this
609 is extremely time-consuming to produce, given that HP's metric
610 files are very rudimentary.
612 2004-03-01 Werner LEMBERG <wl@gnu.org>
614 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
615 s/operand/argument/ in error message.
617 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
619 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
622 2004-03-01 Antti Kantee <pooka@netbsd.org>
624 * tmac/s.tmac (XE): Fix error message.
626 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
628 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
631 * src/roff/groff/pipeline.c: Declare strcasecmp.
632 (run_pipeline) [_WIN32]: Use function name variants which don't
636 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
638 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
639 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
640 for platforms which use the native Win32 runtime libraries.
641 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
643 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
644 QUOTE_ARG_REALLOC_ERROR): Fix string.
646 * src/preproc/html/pre-html.cpp: Remove declaration of
648 Don't use __MINGW32__.
649 s/DEBUG_FILE/DEBUG_FILE_DIR/.
650 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
651 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
652 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
653 calls to `set_redirection' and `WAIT'.
654 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
655 Fix calls to `set_redirection' and `save_and_redirect'.
656 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
657 to `set_redirection' and `save_and_redirect'.
658 (usage): Fix message.
659 (makeTempFiles, main): Use `DEBUG_FILE'.
661 2004-02-21 Werner LEMBERG <wl@gnu.org>
663 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
665 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
667 * src/libs/libgroff/quotearg.c: New file, providing proper argument
668 quoting for MSVC's spawn* and exec* functions.
669 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
670 spawnvp with proper quoting for MSVC.
672 * src/libs/libgroff/assert.cpp (program_name),
673 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
674 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
676 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
678 * src/include/error.h (program_name): Declare as `extern "C"'.
679 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
681 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
683 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
685 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
687 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
689 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
691 (sbasename) [__MSDOS__ || ...]: New function.
692 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
694 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
695 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
697 Use STDOUT_FILENO instead of hardcoded file handle.
698 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
700 2004-02-19 Werner LEMBERG <wl@gnu.org>
702 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
703 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
705 2004-02-18 Werner LEMBERG <wl@gnu.org>
707 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
708 new font and mapping files.
710 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
711 Keith Marshall <keith.d.marshall@ntlworld.com>
713 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
714 an input pipe. This is needed for the MSVC compiler to make troff's
717 * src/roff/troff/div.cpp: Include nonposix.h.
718 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
720 2004-02-17 Werner LEMBERG <wl@gnu.org>
722 * font/devlj4/generate/special.awk: New script.
723 * font/devlj4/generate/Makefile (S): Use special.awk.
724 * font/devlj4/*: Regenerated, including the following new files:
725 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
726 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
727 * NEWS: Document new lj4 fonts and revised hpftodit.
729 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
731 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
733 2004-01-25 Werner LEMBERG <wl@gnu.org>
735 * src/libs/libgroff/progname.cpp: Replaced with...
736 * src/libs/libgroff/progname.c: New file.
737 * src/libs/libgroff/Makefile.sub: Updated accordingly.
739 2004-01-17 Werner LEMBERG <wl@gnu.org>
741 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
743 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
745 * font/devlj4/generate/wingdings.map,
746 font/devlj4/generate/symbol.map: Include unnamed glyphs.
747 Use groff glyph names where possible.
748 * src/devices/grolj4/lj4_font.man: Minor updates.
750 2004-01-13 Werner LEMBERG <wl@gnu.org>
752 * tmac/www.tmac (DC): Handle TTY devices.
754 * doc/webpage.ms: Document viewCVS from ffii.org.
755 * NEWS, README: Updated.
757 * src/roff/groff/groff.man: Mention lj4_font man page.
759 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
761 (FONTS): Add SYMBOL and WINGDINGS.
762 (SYMBOL, WINGDINGS): New targets.
764 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
766 * src/devices/grolj4/lj4_font.man: New man page.
767 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
768 * src/devices/grolj4.man: Mention lj4_font man page.
770 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
771 * src/utils/hpftodit/hpftodit.man: Document it.
773 Remove details about fonts (which are now in lj4_font.man).
775 * font/devlj4/generate/symbol.map,
776 font/devlj4/generate/wingdings.map: New files.
778 2004-01-12 Werner LEMBERG <wl@gnu.org>
780 * README: Mention ffii's viewcvs access.
782 2004-01-09 Werner LEMBERG <wl@gnu.org>
784 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
786 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
788 Revert most of the change from 2004-01-03 to better control used
791 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
792 (text_symbol_sets, special_symbol_sets): New arrays.
793 (symbol_set_table): New global variable.
794 (read_symbol_sets): Use search order given in the text_symbol_sets
795 and special_symbol_sets arrays. If command line flag -a is not
796 given, search both arrays.
797 (output_charset): Require x_height_tag only for command line flag -i.
799 2004-01-06 Werner LEMBERG <wl@gnu.org>
801 Implement string-valued registers \n[.m] and \n[.M] to return the
802 name of the current drawing and background color, respectively.
804 * src/roff/troff/symbol.h: Moved to...
805 * src/include/symbol.h: Here.
806 Small fixes to make it work outside of the `troff' directory.
807 * src/roff/troff/symbol.cpp: Moved to...
808 * src/libs/libgroff/symbol.cpp: Here.
809 Small fixes to make it work outside of the `troff' directory.
811 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
812 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
815 * src/include/color.h: Include symbol.h.
816 (color): Add new field `nm'.
817 * src/libs/libgroff/color.cpp (color::color): Updated.
819 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
820 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
821 src/roff/troff/reg.cpp: Don't include symbol.h.
823 * src/roff/troff/env.cpp: Don't include symbol.h.
824 (environment::get_glyph_color_string,
825 environment_get_fill_color_string): New member functions.
826 (init_env_requests): Handle `.m' and `.M' registers.
827 * src/roff/troff/input.cpp: Don't include symbol.h.
828 (default_symbol): Moved to symbol.cpp/symbol.h.
829 (do_glyph_color, do_fill_color, define_color): Pass symbol name
830 to color constructor.
831 * src/roff/troff/env.h: Updated.
833 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
834 Document new registers.
836 2004-01-05 Werner LEMBERG <wl@gnu.org>
838 * src/roff/troff/node.cpp (space_node::get_breakpoints,
839 space_node::nbreaks): Protect against zero `next' field.
841 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
843 In hpftodit, use the symbol sets offered in the TFM.
845 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
846 (symbol_set, text_symbol_sets, special_symbol_sets,
847 symbol_set_table): Removed.
848 (get_printcode): Removed.
849 (read_symbol_sets): Initialize `symbol_set' field with
851 Simplify code to just use the `kind' value.
852 (output_charset): Improve output formatting.
853 (dump_symbols): Simplified.
855 2004-01-02 Werner LEMBERG <wl@gnu.org>
857 * font/devlj4/generate/text.map: Add more MSL numbers.
859 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
861 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
862 (text_symbol_sets): Add more symbol sets.
863 (debug_flag): New static variable (moved from `main').
864 (get_printcode, show_symset): New functions.
865 (main): Remove `debug_flag'.
866 (output_charset): Use `show_symset'.
867 (dump_symbols): Use `show_symset'.
868 Print symsets for all glyphs.
869 (read_map): Actually call `unicode_to_ucode_make' but this time
872 2004-01-01 Werner LEMBERG <wl@gnu.org>
874 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
875 Fix placement of comments.
877 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
879 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
880 option `-d' is given.
881 (output_charset): Improve warning messages to give more information.
882 (dump_symbols): Make information more precise.
884 (read_map): Don't call unicode_to_ucode_name; the glyph names must
885 appear as-is and shouldn't be decomposed.
887 2003-12-31 Werner LEMBERG <wl@gnu.org>
889 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
890 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
891 (FONTS): Add TrueType font families Arial and Times New Roman.
892 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
893 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
896 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
898 * test-groff.in (SEP): Quote value.
899 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
900 `tem' to `char*' to avoid deallocation of a pointer to a constant
901 object which some compilers don't like.
903 2003-12-31 Werner LEMBERG <wl@gnu.org>
905 * font/devlj4/generate (text.map, special.map): Rewritten to work
906 with the new hpftodit version.
908 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
910 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
911 set and 8bit character code for all glyphs also.
913 2003-12-30 Werner LEMBERG <wl@gnu.org>
915 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
917 2003-12-29 Werner LEMBERG <wl@gnu.org>
919 More fixes for MSVC compiler.
921 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
924 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
925 STDERR_FILENO) [_MSC_VER]: Define conditionally.
926 (getpid) [_MSC_VER]: Remove.
927 Include direct.h and process.h conditionally.
929 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
930 parentheses for a_delete.
932 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
934 * test-groff: Replaced with...
935 * test-groff.in: This new template to handle path separator
938 * configure.ac: Check for direct.h and process.h.
939 Generate test-groff script.
940 * configure, src/include/config.hin: Regenerated.
942 2003-12-28 Werner LEMBERG <wl@gnu.org>
944 Add integral extension glyph.
945 Add new option `-x' to afmtodit to suppress use of built-in AGL.
947 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
949 * font/devps/generate/textmap: Provide entry for `integralex' to
950 override (old) PUA value of the AGL.
951 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
952 * font/devps/*: Regenerated.
954 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
955 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
957 2003-12-27 Werner LEMBERG <wl@gnu.org>
959 Add forgotten `coproduct' symbol (already available for DVI).
961 * font/devhtml/R.proto, font/devps/generate/textmap,
962 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
963 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
964 U+2210 (\[coproduct]).
966 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
968 hpftodit has been extended to handle TrueType metric files and
969 more glyphs. See hpftodit.man for more details.
971 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
972 ctype.h, and unicode.h.
973 s/msl/charcode/ everywhere since we now handle Unicode values also.
974 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
975 Use it where appropriate.
976 (MULTIPLIER): Replaced with...
977 (multiplier): New global static variable.
979 (tag_type): Add more TFM tags.
980 (tag_name): New array.
981 (ENUM_TYPE, FLOAT_TYPE): Removed.
982 (BYTE_TYPE): New value assigned.
983 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
984 (text_symbol_sets, special_symbol_sets): Extended to cover more
986 (check_type): Add return value.
987 (check_units): Add parameters to get ppi and upem values.
988 Handle TrueType TFM data.
989 (output_font_name): New function.
990 (output_charset): Add parameter to handle TFM type.
991 Handle TrueType TFMs also.
992 (em_fract): New macro.
993 (dump_tags): Be much more verbose and handle more tags.
994 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
995 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
997 (read_map): Add parameter to handle TFM type.
998 Handle both MSL and Unicode mappings.
999 (main): Add two new command line options `-a' and `-q'.
1000 Updated to make use of new functions.
1003 * src/utils/hpftodit/hpuni.cpp: New file.
1005 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1008 2003-12-25 Werner LEMBERG <wl@gnu.org>
1010 * src/include/nonposix.h (read) [_MSC_VER]: Define.
1012 2003-12-24 Werner LEMBERG <wl@gnu.org>
1014 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1015 by Michail Vidiassov <master@iaas.msu.ru>.
1017 2003-12-20 Werner LEMBERG <wl@gnu.org>
1019 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1021 Add missing latin-2 glyphs.
1022 * font/devutf8/R.proto: Add missing latin-2 glyphs.
1024 * tmac/troffrc: Load `composite.tmac' earlier.
1026 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1027 u00{53,73}_0327, and u0049_0307.
1028 * tmac/X.tmac: Add u00{47,67}_0306.
1029 * tmac/tty-char.tmac: Use composite glyph names for readability.
1033 * src/include/unicode.h: Remove `extern' keywords.
1035 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
1037 * tmac/latin5.tmac: New file.
1039 2003-12-19 Werner LEMBERG <wl@gnu.org>
1041 Add some glyphs needed for Turkish.
1043 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1046 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
1047 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1048 u00{53,73}_0327, and u0049_0307.
1050 2003-12-18 Werner LEMBERG <wl@gnu.org>
1052 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1054 Remove trailing zeros.
1056 2003-12-17 Werner LEMBERG <wl@gnu.org>
1058 Make \? transparent to end-of-sentence recognition.
1060 * src/roff/troff/input.cc (non_interpreted_node): Add
1061 `ends_sentence' member function.
1063 2003-12-16 Werner LEMBERG <wl@gnu.org>
1065 * doc/groff.texinfo: Document `dt' request correctly.
1066 Other minor typographical improvements.
1068 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
1070 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1072 2003-12-10 Richard Stallman <rms@gnu.org>
1074 * LICENSE: Better wording.
1076 2003-12-09 Werner LEMBERG <wl@gnu.org>
1078 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1079 * configure, NEWS: Updated.
1081 2003-12-08 Werner LEMBERG <wl@gnu.org>
1083 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1085 2003-12-07 Bernd Warken <bwarken@mayn.de>
1089 2003-12-07 Werner LEMBERG <wl@gnu.org>
1091 * INSTALL: Improved.
1093 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1095 Use path separator character of target platform for compiled-in
1098 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1099 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1100 * configure: Regenerated.
1101 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1103 2003-12-05 Werner LEMBERG <wl@gnu.org>
1105 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1106 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1108 2003-12-04 Bernd Warken <bwarken@mayn.de>
1110 * LICENSE: New file.
1112 2003-12-03 Werner LEMBERG <wl@gnu.org>
1114 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1115 ligatures present in AFM files since groff currently only
1116 understands some standard ligatures and nothing else.
1118 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
1120 * src/roff/groff/groff.cpp (main): Don't run the spooler if
1123 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1126 Don't use Unix wait flags.
1128 2003-12-02 Werner LEMBERG <wl@gnu.org>
1130 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1131 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1132 src/roff/troff/uniuni.cpp: Moved to...
1133 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1134 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1135 src/libs/libgroff/uniuni.cpp: Here.
1137 * src/include/Makefile.sub.old (HDRS),
1138 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1139 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1141 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1143 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1147 2003-12-01 Werner LEMBERG <wl@gnu.org>
1149 * groff.texinfo: Document special behaviour of `.vs 0'.
1150 Improve documentation of `cflags' request.
1153 2003-11-29 Werner LEMBERG <wl@gnu.org>
1155 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1156 * font/devlj4/CORONET: Regenerated.
1158 2003-11-24 Werner LEMBERG <wl@gnu.org>
1160 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1161 if processing hyphenation patterns in traditional mode.
1162 Improve error messages.
1164 2003-11-20 Werner LEMBERG <wl@gnu.org>
1166 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1167 troff_output_file::put_char): Fix type of local variable `c'.
1169 2003-11-19 Werner LEMBERG <wl@gnu.org>
1171 * src/roff/groff/pipeline.c (P): Removed. Updated all function
1173 (i_to_a): Removed. libgroff already provides this function.
1174 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1176 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1178 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1181 2003-11-17 Werner LEMBERG <wl@gnu.org>
1183 * COPYING: Use correct version.
1185 2003-11-11 Werner LEMBERG <wl@gnu.org>
1187 LynxOS 4.0.0 doesn't declare vfprintf.
1189 * configure.ac: Check for vfprintf.
1190 * configure: Regenerated.
1191 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1192 * src/include/config.hin: Regenerated.
1194 2003-11-10 Werner LEMBERG <wl@gnu.org>
1196 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1198 * configure.ac: Check for vsnprintf.
1199 * configure: Regenerated.
1200 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1202 * src/include/config.hin: Regenerated.
1204 2003-11-09 Werner LEMBERG <wl@gnu.org>
1206 * aclocal.m4: Updated syntax to autoconf 2.59.
1207 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1208 Don't check for gsos2.
1209 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
1210 working abs_top_srcdir and abs_top_builddir.
1212 * configure.ac: Updated syntax to autoconf 2.59.
1213 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1214 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1215 * configure: Regenerated.
1217 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1218 s/@groff_top_builddir@/@abs_top_builddir@/.
1220 * src/roff/groff/pipeline.c (xstrsignal):
1221 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1223 2003-11-07 Werner LEMBERG <wl@gnu.org>
1225 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1226 make start angle smaller than end angle to circumvent a bug in tpic
1227 handling of some versions of dvipdfm (and dvipdfmx).
1229 2003-10-30 Werner LEMBERG <wl@gnu.org>
1231 * src/devices/grops/grops.man: Improve section on creating EPS.
1233 2003-10-29 Werner LEMBERG <wl@gnu.org>
1235 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1238 2003-10-28 Werner LEMBERG <wl@gnu.org>
1240 * doc/groff.texinfo: Fix documentation of `.if'.
1242 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
1244 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1245 the form `uniXXXX' also.
1247 2003-10-27 Werner LEMBERG <wl@gnu.org>
1249 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1250 contrib/pic2graph/pic2graph.sh: Implement secure management of
1252 Pass `-P-pletter' to groff to avoid data outside of the converted
1253 area -- some versions of `convert' (for example 5.3.8) don't check
1254 the bounding box of the image but always use a fixed image size
1255 (letter paper format).
1256 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1257 contrib/pic2graph/pic2graph.man: Updated.
1259 * src/roff/groff/groff.man: Document $TMP and $TEMP.
1261 2003-10-26 Werner LEMBERG <wl@gnu.org>
1263 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1264 troff_output::simple_ellipse, troff_output::simple_arc,
1265 troff_output::simple_line, troff_output::simple_spline,
1266 troff_output::simple_polygon): Insert a space before arguments.
1267 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1268 latter doesn't produce a node, so the following `.sp -1' would do
1270 Don't emit `.sp -1' after \M. This also doesn't produce a token
1271 (and we don't have to care about compatibility mode).
1272 (troff_output::set_color, troff_output::reset_color): Don't emit
1273 `.sp -1' after \M and \m.
1275 * src/roff/troff/input.cpp (old_have_input): New global variable.
1276 (input_stack::get): Handle `old_have_input'.
1277 (process_input_stack) <token::TOKEN_NEWLINE>: Call
1278 `trapping_blank_line' depending on `old_have_input', not
1281 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
1283 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1284 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1285 default directory names for temporary files.
1286 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1288 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1289 [__MSDOS__] (run_pipeline): Honour environment variables.
1290 Don't use `tmpnam' but `tempnam' to work around messy
1293 * README.MinGW: New file.
1295 2003-10-16 Werner LEMBERG <wl@gnu.org>
1297 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1298 `(*t)->next' without testing validity of `*t'.
1299 (usage): Make it more readable.
1301 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
1303 Make html device run under both MS-DOS and Win32.
1305 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1306 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1307 spawn or fork+exec has to be used, and whether parent must sleep
1308 until the child process terminates. Used in
1309 `char_buffer::run_output_filter'.
1310 (copyofstdoutfd): Removed.
1311 (char_buffer): Replace `write_file_html' and `write_file_troff'
1312 member functions with `emit_troff_output' and `run_output_filter'.
1313 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1315 (replaceFd): Replaced with...
1316 (set_redirection): New auxiliary function.
1317 (waitForChild): Replaced with...
1318 (save_and_redirect): New auxiliary function for.
1320 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1323 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1325 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1326 (GROFF_LIBC): New function.
1327 * configure.ac: Call GROFF_LIBC.
1329 * configure: Regenerated.
1331 * src/include/lib.h: Handle __MINGW32__.
1332 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1333 Add macro for `pipe'.
1336 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1339 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1342 2003-10-13 Werner LEMBERG <wl@gnu.org>
1344 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1347 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1350 2003-10-12 Werner LEMBERG <wl@gnu.org>
1352 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1353 src/roff/troff/input.cc (usage): Updated.
1355 * NEWS, doc/groff.texinfo: Updated.
1357 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
1359 * src/libs/libgroff/searchpath.cpp
1360 (search_path::open_file_cautious): New function which also handles
1361 `-' as stdin and stdout depending on the access mode.
1362 * src/include/searchpath.h (search_path): Updated.
1364 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1365 * src/devices/grops/ps.h: Include `searchpath.h'.
1366 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1367 Open resource file with `include_search_path.open_file_cautious'.
1368 * src/devices/grops/grops.man: Document new `-I' switch.
1370 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1371 (main), src/devices/grolj4/lj4.cpp (main),
1372 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1374 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1376 (include_search_path): New global variable.
1377 (include_path_append): Removed.
1378 (main): Use `include_search_path.command_line_dir' to handle `-I'.
1379 (do_file): Simplify, using new
1380 `include_search_path.open_file_cautious'.
1382 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1384 (main): Pass arguments to `-I' to both troff and devices.
1385 Improve handling of `-V'.
1386 * src/roff/groff/groff.man: Document changes to -I and -V.
1388 * src/roff/troff/input.cpp (include_search_path): New global
1390 (next_file, source, ps_bbox_request, transparent_file,
1391 process_input_file): Use new
1392 `include_search_path.open_file_cautious'.
1393 (main) Handle `-I' switch.
1394 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1395 Use new `include_search_path.open_file_cautious'.
1396 * src/roff/troff/node.h: New extern symbol `include_search_path'.
1397 * src/roff/troff/troff.man: Document new `-I' switch.
1399 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
1401 Support multiple calls of .Lb in LIBRARY section.
1403 * tmac/doc-common (doc-in-library-section): New register.
1404 (doc-section-library): New string.
1405 (Sh): Set `doc-in-library-section'.
1407 * tmac/doc-syms (Lb): Insert breaks before and after arguments
1408 if in LIBRARY section.
1409 * tmac/doc.tmac (doc-save-global-vars): Updated.
1410 * NEWS, tmac/groff_mdoc.man: Updated.
1412 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
1414 * tmac/doc-common (doc-default-operating-system): New variable.
1417 2003-09-08 Werner LEMBERG <wl@gnu.org>
1419 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1421 2003-08-31 Werner LEMBERG <wl@gnu.org>
1423 * contrib/mom/Makefile.sub: Fix last change to make it really work.
1424 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1425 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1426 $(DEVFILES) are not empty.
1427 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1429 2003-08-26 Chuck Silvers <chuq@chuq.com>
1431 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1432 with parallel runs of `make'.
1434 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
1436 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1437 insert SORT_SEP. With certain combinations of sort specifications,
1438 refer sorted entries in the wrong order. In particular, entries
1439 with a missing field should be be sorted before all entries that
1440 have that field, before refer looks to the next field.
1442 2003-08-23 Werner LEMBERG <wl@gnu.org>
1444 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1445 g++ linker is used. Reported by Mark J. Reed
1446 <mark.reed@turner.com>.
1448 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1450 Add key character `x' to tbl which makes tbl call a user-defined
1451 macro on a table cell.
1453 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1454 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1455 `set_modifier' after printing the compatibility request.
1456 (set_modifier): Print call to `m->macro' if not empty.
1457 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1459 (process_format): Implement cases `x' and `X'.
1460 * src/preproc/tbl/tbl.man, NEWS: Updated.
1462 2003-08-15 Werner LEMBERG <wl@gnu.org>
1464 * doc/groff.texinfo: Minor fixes.
1466 2003-08-09 Werner LEMBERG <wl@gnu.org>
1468 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1470 2003-08-07 Werner LEMBERG <wl@gnu.org>
1472 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1473 argument list to nothing if there is no file to match. Use `ls' as
1474 a protection, similar to autoconf.
1476 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1477 empty argument lists.
1479 * doc/groff.texinfo: Improve documentation how vertical spacing
1480 and line breaks interact.
1483 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1485 2003-08-03 Werner LEMBERG <wl@gnu.org>
1487 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1488 EPS (using eps2eps or similar programs to compute the bounding box).
1490 2003-07-24 Werner LEMBERG <wl@gnu.org>
1492 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1493 * doc/texinfo.tex: Updated from texinfo 4.6.
1494 * README.CVS: From now on we need texinfo 4.6.
1496 2003-07-23 Werner LEMBERG <wl@gnu.org>
1498 Add requests `dei1' and `ami1' for completeness.
1500 * src/roff/troff/input.cc (calling_mode): Remove
1501 CALLING_DISABLE_COMP.
1502 (comp_mode): New enumeration.
1503 (do_define_string, define_string, define_nocomp_string,
1504 append_string, append_nocomp_string): Updated.
1505 (do_define_macro): Add third parameter.
1506 (define_macro, define_nocomp_macro, define_indirect_macro,
1507 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1508 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1511 (init_input_requests): Add `dei1' and `ami1'.
1513 * tmac/trace.tmac: Handle de1 and am1.
1514 (de): Improve tracing message.
1515 (am): Add missing `do'.
1518 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1519 Document new requests.
1521 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1523 Add option -G to .MPIMG to insert a gap between text and the image.
1525 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1526 www-finish-left-ll): Updated.
1527 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1528 (MPIMG): Make option -L and -R optional.
1529 Implement option -G.
1531 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
1533 * src/devices/grohtml/post-html.cpp
1534 (html_printer::do_file_components): Don't use `stdout' as lvalue
1535 since it can be a macro.
1537 2003-07-22 Werner LEMBERG <wl@gnu.org>
1539 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1540 the corresponding test in aclocal.m4.
1542 2003-07-21 Werner LEMBERG <wl@gnu.org>
1544 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1545 names but RGB values directly. Otherwise pnmtopng depends on
1546 an external file `rgb.txt' which maps colour names to values.
1548 2003-07-20 Werner LEMBERG <wl@gnu.org>
1550 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1551 * configure, src/include/config.hin: Regenerated.
1553 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1555 2003-07-19 Werner LEMBERG <wl@gnu.org>
1557 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1559 2003-07-18 Werner LEMBERG <wl@gnu.org>
1561 * *.man: Switch to non-compatibility mode temporarily if GNU
1562 syntax extensions are used in the particular man page.
1564 * PROBLEMS: Add solutions for SGR problems.
1566 2003-07-17 Werner LEMBERG <wl@gnu.org>
1568 Don't ignore grotty's command line options if \X'tty: sgr ...' is
1569 used to change the drawing scheme.
1571 * src/devives/grotty/tty.cpp (bold_flag_option,
1572 underline_flag_option, italic_flag_option, reverse_flag_option,
1573 bold_underline_mode_option): New global variables.
1574 (update_options): New function.
1575 (tty_printer::special): Call update_options.
1576 (main): Don't set xxx_flag but xxx_flag_option, then call
1579 2003-07-14 Werner LEMBERG <wl@gnu.org>
1581 Make grotty emit proper Unicode box drawing characters for -Tutf8.
1583 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1585 (hline_char, vline_char): New global variables.
1586 (tty_printer::tty_printer): Initialize them.
1587 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1588 horizontal and vertical lines.
1589 (crossings): New global array.
1590 (tty_printer::end_page): Use it to determine the proper crossing
1591 character for -Tutf8.
1593 2003-07-12 Werner LEMBERG <wl@gnu.org>
1595 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1596 (HTMLDOCFILES): Revert to `pic.html'.
1597 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1599 2003-07-11 Werner LEMBERG <wl@gnu.org>
1601 * doc/pic.ms: Improve documentation of absolute coordinates.
1602 Document absolute positioning of pictures.
1604 * NEWS: Add new pic capability.
1606 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
1608 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1611 2003-07-07 Werner LEMBERG <wl@gnu.org>
1613 Implement support for dashed and dotted ellipses in pic. Based on
1614 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1616 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1617 common_output::dashed_ellipse, common_output::dotted_ellipse): New
1618 functions. Ellipse arcs are approximated with circle arcs.
1619 * src/preproc/pic/common.h (common_output): Updated.
1620 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1622 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1624 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1626 2003-07-06 Werner LEMBERG <wl@gnu.org>
1628 Make grotty work on platforms which have unsigned char as the
1629 default for char. Based on a patch by Thomas Klausner
1632 * src/devices/grotty/tty.cpp (schar): New typedef.
1633 Updated calls to declare_ptable and implement_ptable.
1634 (glyph): Use schar for back_color_idx and fore_color_idx.
1635 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1636 (tty_printer::tty_color, tty_printer::tty_printer,
1637 tty_printer::color_to_idx, tty_printer::put_color): Updated.
1639 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
1641 * src/roff/nroff/nroff.sh: Add option -d for completeness.
1642 * src/roff/nroff/nroff.man: Updated.
1644 2003-07-05 Werner LEMBERG <wl@gnu.org>
1646 * NEWS, tmac/groff_www.man: Updated.
1647 * doc/Makefile.sub: Updated.
1649 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
1651 Implement support for multiple HTML output files.
1653 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1654 -j command line option.
1656 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1658 (file): New fields `new_output_file', `require_links',
1660 (file::file): Updated.
1661 (files::set_file_name, files::set_links_required,
1662 files::are_links_required, files::is_new_output_file,
1663 files::file_name, files::next_file_name): New functions.
1664 (header_desc): New fields `no_of_level_one_headings',
1666 (header_desc::header_desc): Updated.
1667 (header_desc::write_headings): Handle multiple files.
1668 (html_printer::write_header): Save file name in which header occurs.
1669 (html_printer::determine_header_level): Possibly split files on
1671 (html_printer::do_links, html_printer::troff_tag): Updated.
1672 (html_printer::insert_split_file, html_printer::do_job_name,
1673 html_printer::emit_link, html_printer::write_navigation,
1674 html_printer::do_file_components): New functions.
1675 (html_printer::~html_printer): Handle multiple files.
1676 (main): Handle command line option `-j'.
1678 * src/devices/grohtml/grohtml.man: Updated.
1680 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1683 * tmac/www.tmac (JOBNAME): New macro.
1684 * tmac/s.tmac (SH-NO-TAG): New macro.
1685 (@SH): Call SH-NO-TAG.
1688 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
1690 * tmac/groff_mdoc.man: Improve documentation of punctuation
1693 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
1695 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1697 2003-07-03 Werner LEMBERG <wl@gnu.org>
1699 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1701 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
1703 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1704 after `/*' and `*/'.
1706 (Fn, Fo): Reduce indentation in synopsis.
1708 * tmac/doc-common (doc-check-depth): New macro.
1709 (doc-end-macro, Sh, Ss): Use it.
1710 (Cd): Fix behaviour in synopsis.
1711 (In): Make it parsed and callable.
1712 If not in the synopsis, represent the C header file enclosed in
1714 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1715 Use minus, not hyphen.
1717 * tmc/groff_mdoc.man: Updated.
1719 2003-07-01 Werner LEMBERG <wl@gnu.org>
1721 Integrated grap2graph, contributed by Eric S. Raymond.
1723 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1725 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1726 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1728 2003-07-01 Colin Watson <cjwatson@debian.org>
1730 * src/xditview/*.c: Add prototypes, fix return types, add includes.
1731 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1733 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
1735 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1737 2003-06-31 Werner LEMBERG <wl@gnu.org>
1739 * doc/Makefile.sub (CLEANADD): Remove all files created by
1740 running `make groff.{pdf,dvi}'.
1742 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1745 2003-06-30 Werner LEMBERG <wl@gnu.org>
1747 * Makefile.in (SHELL): Define as @SHELL@.
1748 (mkinstalldirs): Use $(SHELL).
1749 (MDEFINES): Add $(SHELL).
1750 * Makefile.comm (SHELL): Removed.
1752 2003-06-29 Werner LEMBERG <wl@gnu.org>
1754 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1755 The X11 documentation files use them.
1756 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1758 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
1760 * tmac/e.tmac (@C): Handle .ad also.
1762 2003-06-12 Werner LEMBERG <wl@gnu.org>
1764 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1766 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1767 Assign `n' even here. It is possible to construct a node
1768 immediately following an escape character:
1776 2003-06-10 Werner LEMBERG <wl@gnu.org>
1778 * README.WIN32: Removed.
1779 * MANIFEST: Updated.
1781 2003-06-07 Werner LEMBERG <wl@gnu.org>
1783 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1785 2003-06-05 Werner LEMBERG <wl@gnu.org>
1787 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1788 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1790 2003-06-03 Werner LEMBERG <wl@gnu.org>
1792 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1793 is done by the calling function.
1795 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
1797 * tmac/X.tmac: Fix definition of `em'.
1799 2003-05-22 Werner LEMBERG <wl@gnu.org>
1801 * src/roff/troff/input.cc (return_macro_request): Fix detection of
1804 2003-05-18 Werner LEMBERG <wl@gnu.org>
1806 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1807 to make items work which consist only of a tag.
1809 2003-05-17 Werner LEMBERG <wl@gnu.org>
1811 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1812 aren't stretched in a tag (this can fail with unformatted boxes).
1813 Instead, insert a break and go back one line.
1815 2003-05-16 Werner LEMBERG <wl@gnu.org>
1817 * src/roff/troff/input.cc (return_macro_request): If called with
1818 argument pop macro twice. We need this to trace `return'.
1820 * tmac/trace.tmac: Handle `return'.
1823 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1826 2003-05-15 Larry Kollar <kollar@alltel.net>
1828 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1829 registers `FPS', `FVS', and `FPD'.
1831 2003-05-15 Werner LEMBERG <wl@gnu.org>
1833 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1836 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
1838 * tmac/groff_mdoc.man: Slight improvements.
1840 2003-05-03 Werner LEMBERG <wl@gnu.org>
1842 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1843 `doc-header-space' after header line if register `cR' is set.
1845 2003-05-02 Werner LEMBERG <wl@gnu.org>
1849 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
1851 * tmac/doc-common (Nd): Use \[em].
1853 2003-05-01 Werner LEMBERG <wl@gnu.org>
1855 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1856 doc-footer-space): Initialize to 0.5i.
1857 (doc-setup-page-layout): Don't set doc-header-space and
1860 2003-04-30 Werner LEMBERG <wl@gnu.org>
1862 * REVISION: Set to 1.
1864 * doc/pic.ms: Document possible problems with `figname'.
1866 2003-04-29 Werner LEMBERG <wl@gnu.org>
1868 Version 1.19 released
1869 =====================
1871 * VERSION: Set to 1.19.
1872 * REVISION: Set to 0.
1873 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1875 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1876 Define charset as `US-ASCII' in html output.
1878 * tmac/www.tmac (ULE): Add missing scaling indicator.
1880 * win32-diffs: Removed.
1882 2003-04-28 Werner LEMBERG <wl@gnu.org>
1884 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1886 Document how to insert discardable whitespace with `.ss'.
1888 2003-04-27 Werner LEMBERG <wl@gnu.org>
1890 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1891 work with plain TeX also.
1893 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1895 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
1897 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1900 2003-04-24 Werner LEMBERG <wl@gnu.org>
1902 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1903 vbox with positive height and zero depth if in TeX mode.
1905 * NEWS: Document glyph name changes for grodvi and grolj4.
1907 2003-04-23 Werner LEMBERG <wl@gnu.org>
1909 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1910 * doc/pic.ms: Fixed.
1912 2003-04-21 Werner LEMBERG <wl@gnu.org>
1914 HP-UX 10.20 has `snprintf' but it isn't declared.
1916 * configure.ac: Add declaration test for snprintf.
1917 * configure: Regenerated.
1918 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1919 * src/include/config.hin: Regenerated.
1921 2003-04-19 Werner LEMBERG <wl@gnu.org>
1923 Add keyword `figname' to pic, specifying the name of the picture
1924 box in TeX mode. Based on a patch from William J Poser
1925 <wjposer@unagi.cis.upenn.edu>.
1927 * src/preproc/pic/pic.y: New token `FIGNAME'.
1928 (macro_name): New rule of type <str>.
1929 (placeless_element): Handle `FIGNAME'.
1930 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1931 * src/preproc/pic/main.cpp (graphname): New global variable.
1932 (do_picture): Initialize `graphname'.
1933 * src/preproc/pic/pic.h: Updated.
1934 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1937 (tex_output::text): Beautify output.
1938 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1939 `shaded' and `outlined' unconditionally.
1940 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1943 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1944 greater is necessary.
1946 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
1948 Add option -r to soelim to avoid emission of `.lf' lines.
1949 Add option -t to produces TeX comment lines instead of `.lf' lines.
1951 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1954 (main): Handle `-r' and `-t'.
1955 (set_location): Handle `raw_flag' and `tex_flag'.
1956 * src/preproc/soelim/soelim.man, NEWS: Updated.
1958 2003-04-17 Werner LEMBERG <wl@gnu.org>
1960 * tmac/hyphenex.sh: Replaced with...
1961 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1964 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1965 if --quiet is used for the configure script.
1966 * configure: Regenerated.
1968 2003-04-16 Werner LEMBERG <wl@gnu.org>
1970 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1971 Add `const' to second argument.
1972 (html_printer::add_table_end): Add `const' to argument.
1973 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1974 `const' to arguments.
1975 * src/devices/grohtml/html-text.h: Updated.
1977 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1978 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1981 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1982 cast for integer constant.
1984 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1985 (writeNbytes): Add `const' to first argument.
1986 (writeString): Add `const' to argument.
1987 (char_buffer::can_see): Add `const' to third argument.
1988 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1989 `const' to argument.
1990 * src/preproc/html/pushback.h: Updated.
1992 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1993 (include_path_append): Add `const' to argument.
1996 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1998 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1999 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2001 (unicode_decompose_init::unicode_decompose_init): Updated.
2002 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2004 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2005 * src/roff/troff/input.cc (process_startup_file): Add `const' to
2008 * tmac/hyphenex.sh: Make script more portable by using a here
2011 2003-04-15 Werner LEMBERG <wl@gnu.org>
2013 Renamed all `*.cc' files to `*.cpp'.
2014 Updated all configuration files, makefiles, and documentation.
2016 2003-04-14 Werner LEMBERG <wl@gnu.org>
2018 * tmac/hyphenex.sh: Slight improvements.
2020 2003-04-13 Werner LEMBERG <wl@gnu.org>
2022 * font/devascii/R.proto, font/devcp1037/R.proto,
2023 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2024 character slots with unnamed glyphs.
2026 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2027 (an-first): New global variable.
2028 (an-header): Emit vertical space between multiple man pages.
2030 2003-04-11 Werner LEMBERG <wl@gnu.org>
2032 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2035 2003-04-10 Werner LEMBERG <wl@gnu.org>
2037 * PROBLEMS: Revised.
2039 2003-04-10 Bernd Warken <bwarken@mayn.de>
2041 * doc/webpage.ms: Improved.
2043 2003-04-09 Werner LEMBERG <wl@gnu.org>
2045 Add register \n[.height] which returns the value of \H.
2046 Add register \n[.slant] which returns the value of \S.
2048 * src/roff/troff/env.cc (init_env_requests): Implement.
2049 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2052 2003-04-08 Werner LEMBERG <wl@gnu.org>
2054 * tmac/html.tmac: Move some of the data into html-end.tmac.
2055 Remove most of the character translations for eqn since html fonts
2056 now cover those characters.
2058 * tmac/html-end.tmac: New file.
2059 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2060 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2061 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2063 2003-04-07 Werner LEMBERG <wl@gnu.org>
2065 * man/groff_out.man: Document negative values of `N' if -Thtml is
2068 2003-04-06 Werner LEMBERG <wl@gnu.org>
2070 * Makefile.comm (depend.temp): Check location of YTABC.
2072 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2074 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2076 (groff_bin_path): Rename to GROFF_BIN_PATH.
2077 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2078 * doc/Makefile.in (TROFFBIN): New variable for troff
2080 (GROFFBIN): New variable for groff binary path.
2081 (groff_bin_path): Rename to GROFF_BIN_PATH.
2082 (TROFF): Use TROFFBIN.
2083 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2084 * doc/Makefile.sub (GROFFBIN): New variable for groff
2086 (groff_bin_path): Rename to GROFF_BIN_PATH.
2087 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2089 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2090 with INSTALL_SCRIPT.
2091 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2092 * Makefile.dev (all): Depend on DEVSCRIPTS.
2093 (install_dev): Likewise.
2094 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2096 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2097 (DEVGENSCRIPTS): New variable to hold generated scripts.
2099 2003-04-05 Werner LEMBERG <wl@gnu.org>
2101 * src/libs/libdriver/input.cc (IntArray::operator[],
2102 IntArray::get_data): Remove meaningless `const' in return value.
2104 * README.CVS: New file.
2106 2003-04-04 Werner LEMBERG <wl@gnu.org>
2108 Check for stdint.h in C++, not in C.
2110 * aclocal.m4 (GROFF_STDINT_H): New function,
2111 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2113 * configure, src/include/config.hin: Regenerated.
2114 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2117 Fix handling of in grohtml. To do this, troff emits `N'
2118 with a negative value, representing the width of the unbreakable
2119 space (only for -Thtml). grohtml then converts this back to
2120 and uses the value of N as its width.
2122 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2123 unbreakable_space_node::tprint): Emit `N-<width>'.
2124 * src/include/printer.h (printer::set_numbered_char): Make it
2126 Make members `font_table' and `nfonts' protected instead of private.
2127 * src/devices/grohtml/post-html.cc
2128 (html_printer::set_numbered_char): New member function.
2131 * src/libs/libgroff/maxfilename.cc:
2132 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2134 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2137 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
2139 * man/roff.man: Small fixes.
2141 2003-04-03 Werner LEMBERG <wl@gnu.org>
2143 Make groff independent from locale's numeric settings.
2145 * configure.ac: Check for `setlocale'.
2146 * configure, src/include/config.hin: Regenerated.
2148 * src/include/lib.h: Handle HAVE_SETLOCALE.
2150 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2151 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2152 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2155 * doc/groff.texinfo: Change dir category to `Typesetting'.
2156 (Man font macros): Mention that there is no space between arguments
2159 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2160 (*printer::change_color, *printer::change_fill_color): Add missing
2163 2003-04-02 Werner LEMBERG <wl@gnu.org>
2165 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2166 html_table::is_gap): Compute table widths after converting border
2167 positions to avoid rounding errors.
2169 2003-04-01 Werner LEMBERG <wl@gnu.org>
2171 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2172 `space_emitted' properly.
2174 2003-03-31 Werner LEMBERG <wl@gnu.org>
2176 * src/devices/grohtml/html-table.cc: Fix column width calculation.
2177 (html_table::set_linelength): Don't add 1.
2178 (html_table::add_indent): Don't subtract 1.
2180 * tmac/html.tmac: Set default page offset to zero.
2182 2003-03-30 Werner LEMBERG <wl@gnu.org>
2184 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
2186 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2187 unbreakable_space_node::tprint): New functions.
2188 (troff_output_file): Make space_char_hmotion_mode::tprint and
2189 unbreakable_space_node::tprint to friends.
2190 * src/roff/troff/node.h: Updated.
2192 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
2193 in the HTML standard).
2195 2003-03-29 Werner LEMBERG <wl@gnu.org>
2197 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2198 Otherwise, the following code
2207 produces `x a' instead of `xa'. This is a temporary fix, disabling
2208 font changes in diversions for -Thtml.
2210 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2212 (an-do-tag-html): Merge with ...
2213 (an-do-tag): This macro.
2214 Change code slightly to circumvent grohtml bug.
2215 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2217 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2218 html_table::is_gap): Round `width' properly.
2220 * tmac/html.tmac: Provide some default layout parameters for
2223 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2226 2003-03-28 Werner LEMBERG <wl@gnu.org>
2228 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2230 2003-03-27 Werner LEMBERG <wl@gnu.org>
2232 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2235 2003-03-20 Werner LEMBERG <wl@gnu.org>
2237 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2239 * doc/groff.texinfo: Updated.
2241 2003-03-19 Werner LEMBERG <wl@gnu.org>
2243 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2244 TOKEN_END_TRAP>: Reset `have_input'.
2246 2003-03-18 Werner LEMBERG <wl@gnu.org>
2248 * src/roff/groff/groff.man: Mention groff_trace man page.
2250 2003-03-16 Werner LEMBERG <wl@gnu.org>
2252 * Makefile.in (LIBEXT): New variable to indicate the file extension
2253 of library files. Computed heuristically from $(OBJEXT).
2254 (MDEFINES): Add $(LIBEXT).
2255 * Makefile.lib, Makefile.comm: Use it.
2257 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
2258 overlong lines into smaller chunks.
2259 (get_binary): New function.
2261 * src/utils/pfbtops/pfbtops.man: Updated.
2263 2003-03-15 Colin Watson <cjwatson@debian.org>
2265 * src/roff/groff/groff.man: Minor syntax fix.
2267 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
2269 * src/devices/grops/ps.cc (ps_printer::media_set,
2270 ps_printer::~ps_printer): Handle zero paper width and length.
2272 2003-03-13 Werner LEMBERG <wl@gnu.org>
2274 Add options -p and -l to grodvi.
2276 * src/devices/grodvi/dvi.cc: Include paper.h.
2277 (landscape_flag, user_paper_length, user_paper_width): New global
2279 (dvi_printer::begin_page): Emit `papersize' special.
2280 Set color after initialization of `cur_h' and `cur_v'.
2281 (main): Add options `-l' and `-p'.
2282 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2283 * src/devices/grodvi/grodvi.man, NEWS: Updated.
2285 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2287 2003-03-12 Werner LEMBERG <wl@gnu.org>
2289 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2290 * man/groff_tmac.man: This man page.
2291 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2294 * tmac/X.tmac: Don't load pspic.tmac.
2296 2003-03-11 Werner LEMBERG <wl@gnu.org>
2298 Make variable `pr' local to libdriver/input.cc. Based on a patch
2299 by Bernd Warken <bwarken@mayn.de>.
2301 * src/include/driver.h (pr): Removed.
2303 * src/libs/libdriver/input.cc (pr): New global variable.
2304 (do_file): Deallocate `pr'.
2305 * src/libs/libdriver/printer.cc (pr): Removed.
2307 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2308 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2309 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2310 (main): Don't delete `pr'.
2312 2003-03-10 Werner LEMBERG <wl@gnu.org>
2314 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2315 * tmac/papersize.tmac: New file.
2316 * tmac/troffrc: Include `papersize.tmac'.
2317 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2318 * tmac/an-old.tmac: Set LT to LL by default.
2320 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2321 doc/groff.texinfo: Updated.
2323 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2324 bug which caused all odd iso papers to have wrong dimensions.
2326 * src/devices/grops/ps.cc (user_paper_width): New global variable.
2327 (main) <'p'>: Set `user_paper_width' also.
2328 (ps_printer::media_width, ps_printer::media_height): Use values
2329 given with option `-p'.
2331 2003-03-09 Werner LEMBERG <wl@gnu.org>
2333 * src/include/nonposix.h: Provide default for SET_BINARY.
2335 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2336 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2339 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2340 (main): Treat \r\n as \n.
2342 2003-03-08 Werner LEMBERG <wl@gnu.org>
2344 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2345 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2347 2003-03-07 Werner LEMBERG <wl@gnu.org>
2349 Added support to access more than 256 glyphs in Type 1 fonts.
2351 * src/devices/grops/ps.cc (subencoding): New structure.
2352 (style): Add `sub' field.
2354 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2355 Add `set_subencoding', `get_subfont' and `encode_subfont' member
2358 (ps_printer::set_char): Use `set_subencoding'.
2359 (make_subencoding_name): New function.
2360 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2361 (ps_printer::~ps_printer): Emit subencoding definitions.
2363 * src/devices/grops/psrm.cc (valid_input_table): New array to
2364 properly support EBCDIC.
2365 (white_space): Add `\f'.
2366 (ps_get_line): Change first argument to be of type `string &'.
2367 Updated all callers.
2368 This allows to get lines of arbitrary length.
2369 Use `valid_input_table'.
2370 Remove warning about non-conforming PS line length. This seems
2371 not to be of great importance -- for example, dvips don't emit
2373 (PS_LINE_MAX): Removed.
2374 (matches_comment): Change first argument to be of type `string &'.
2376 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2378 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2379 %AGL_to_unicode, %default_ligatures): New hash tables.
2380 Read all map entries.
2381 Add unencoded characters.
2382 Check for default ligatures if there are no `L' entries.
2383 Print all kern entries.
2384 Print all characters in charset.
2385 * src/utils/afmtodit/afmtodit.man: Updated.
2387 * font/devps/*: Regerated all fonts.
2389 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2390 of characters, just use `.trin'. Otherwise the mapping depends
2391 on the font encoding.
2392 * tmac/ps.tmac: Add `fi' and `fl'.
2393 Improve `Fi' and `Fl'.
2394 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2395 * tmac/Xps.tmac: Fix `em'.
2399 2003-03-04 Werner LEMBERG <wl@gnu.org>
2401 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2404 2003-03-03 Werner LEMBERG <wl@gnu.org>
2406 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2408 * font/devps/generate/textmap: Remove entry `similarequal'.
2409 * font/devps/symbolmap: Updated.
2411 2003-03-02 Werner LEMBERG <wl@gnu.org>
2413 * src/libs/libgroff/font.cc (font::load): Fix error message for
2416 * src/devices/grops/grops.man: Improve documentation of the -b
2419 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2420 `ascii' and `cp1047'.
2422 2003-03-01 Werner LEMBERG <wl@gnu.org>
2424 Document composite glyphs and the `composite' request.
2426 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2428 2003-02-28 Werner LEMBERG <wl@gnu.org>
2430 * font/devdvi/generate/ec.map: Add some more Unicode entities.
2431 * font/devdvi/*EC: Updated.
2433 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2434 * tmac/latin1 (latin1-tr): Undo any previous mapping.
2435 * tmac/troffrc: Load `composite.tmac'.
2436 * tmac/Makefile.sub (NORMALFILES): Updated.
2438 * doc/groff.texinfo (Input Encodings): New section.
2441 2003-02-27 Werner LEMBERG <wl@gnu.org>
2443 * doc/texinfo.tex: New version 2003-02-11.06.
2445 * tmac/doc-common (Dt): Don't emit warning for unknown section.
2446 * tmac/groff_mdoc.man: Fix description of `Dt'.
2448 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
2450 * font/devps/prologue.ps: Fix for included Postscript that does
2451 a setpagedevice -- which is now safely ignored.
2455 * src/devices/grops/ps.cc: Now sets the page size in the generated
2456 document. This is done in two ways: Via a %%-comment for gv and
2457 the like, and via a PageSize and setpagedevice for programs that
2458 understands Postscript proper, like ps2pdf.
2460 * src/devices/grops/ps.h: New broken-flag to avoid page size
2461 definition, if required.
2463 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2465 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2466 Not really necessary due to the fix in prologue.ps, but cleaner:
2467 Such information does not belong in an .eps file.
2469 * doc/Makefile.sub: See doc/Makefile.in.
2471 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
2473 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2474 instead of P1 since the latter is broken in some versions of netpbm.
2475 * configure: Updated.
2477 2003-02-26 Larry Kollar <kollar@alltel.net>
2479 Make man pages more customizable.
2481 * tmac/an-old.tmac (FT): New register holding footer distance from
2483 (HF): New string holding the default heading font.
2484 (TH): Handle registers `IN' and `SN' set on the command line.
2486 (PT, BT): New strings to customize header and footer lines.
2487 (an-header, an-footer): Use them.
2489 * tmac/groff_man.man: Document changes.
2491 * doc/groff.texinfo: Document man changes.
2492 Document Ultrix extensions of man.
2494 2003-02-26 Werner LEMBERG <wl@gnu.org>
2496 * src/roff/troff/input.cc (do_width, do_if_request): Reset
2497 `have_input' after changing back to old environment.
2499 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2500 function up to be defined before first call. This is necessary to
2501 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2503 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2504 the default font directory also. Based on a patch from James
2505 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2506 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2507 * src/utils/afmtodit/afmtodit.man: Document it.
2511 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2513 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
2515 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2516 (GROFF_PNMTOPS_NOSETPAGE): New macro.
2517 * configure.ac: Use it.
2518 * configure: Regenerated.
2519 * Makefile.in: Updated.
2521 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2522 (CLEANADD): Add www.tmac-sed.
2523 (pnmtops_nosetpage): Define default.
2524 (install_data): Handle www.tmac-sed and substitute
2525 @PNMTOPS_NOSETPAGE@.
2526 (stamp-sed): Add www.tmac.
2527 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2528 It now breaks URLs at suitable places.
2529 (www:substring_ok): New register set by...
2530 (www:@test_substring): New macro.
2531 (www:error): New alias to www-error.
2532 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2534 (URL): Use www:url_breaks.
2535 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2536 (CDS, CDE): New macros.
2538 2003-02-25 Werner LEMBERG <wl@gnu.org>
2540 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2543 2003-02-24 Werner LEMBERG <wl@gnu.org>
2545 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2546 can be negative also.
2548 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2550 (read_char_table): Avoid negative ascenders.
2551 (output_charset): Add cast.
2552 * font/devlj4/*: Regenerated.
2554 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2557 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2558 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2560 * font/devdvi/*: Regenerated.
2562 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
2563 normal width, while the previously used characters (U+2329 and
2564 U+232A) are classified as wide due to canonical equivalence with the
2565 CJK punctuation characters U+3008 and U+3009.
2567 * font/devutf8/R.proto: Updated.
2568 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2570 * man/groff_char.man: Simplify handling of table traps by
2571 introducing `start block' and `end block' macros.
2572 (Ns, Ne, 2s, 2e, Ds, De): New macros.
2573 (DL): Make it work with Unix troff also.
2574 Fix code values of `la' and `ra'.
2576 * tmac/dvi.tmac: Define `<>' for CW and CWI.
2578 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
2580 * src/devices/grohtml/post-html.cc (element_list::~element_list):
2581 New destructor, fixing a major memory leak.
2583 2003-02-22 Werner LEMBERG <wl@gnu.org>
2585 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2586 to be in conformance with Unicode 3.0 and newer.
2588 * font/devlj4/generate/text.map: Add `Eu'.
2589 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2590 * font/devlj4/S: Regenerated.
2592 * man/groff_char.man: Completely rewritten.
2594 * doc/groff.texinfo: Fix description of request and macro arguments.
2596 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
2600 * src/devices/grohtml/html-table.cc (html_table::~html_table):
2601 Deallocate `columns' list.
2602 * src/devices/grohtml/post-html.cc (char_block::~char_block):
2604 (text_glob::text_glob_html, text_glob::text_glob_special,
2605 text_glob::text_glob_line, text_glob::text_glob_auto_image,
2606 text_glob::text_glob_tag): Avoid memory leaks.
2607 (text_glob::remember_table): Free memory before reassigning.
2609 2003-02-19 Werner LEMBERG <wl@gnu.org>
2611 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2612 alias `hbar'), the Planck constant over two pi.
2614 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2615 `+e' for position 34.
2616 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2617 `u2662' and `u2661'.
2618 * font/devdvi/{MI,S}: Regenerated.
2619 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2620 * font/devlbp/*: Add `hbar' alias.
2621 * font/devlj4/generate/special.map: Ditto.
2622 * font/devlj4/S: Regenerated.
2623 * font/devps/generate/symbolchars: Add `+e'.
2624 * font/devps/generate/textmap: Fix PS name for `-h'.
2626 * font/devps/symbolmap: Regenerated.
2628 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2630 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2632 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2635 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2637 * tmac/tty-char.tmac: Add `+e'.
2639 2003-02-17 Werner LEMBERG <wl@gnu.org>
2641 Another round trying to really fix problems with `have_input'.
2643 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2644 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2646 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2647 handling if both foreground and background colors are default.
2649 * doc/groff.texinfo (Debugging): Document .lf differences to
2652 2003-02-16 Werner LEMBERG <wl@gnu.org>
2654 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2655 null-bytes in created string.
2657 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2658 alias_macro, lookup_request): Improve warning messages.
2660 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2662 Free `last_image_filename'.
2664 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2666 (imageList::createPage, imageList::createImage): Use `free', not
2668 (imageItem::~imageItem): Free `imageName'.
2669 (addRegDef): Use `strsave', not `strdup'.
2670 (get_resolution): Free `pathp'.
2672 2003-02-15 Werner LEMBERG <wl@gnu.org>
2674 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2677 2003-02-14 Werner LEMBERG <wl@gnu.org>
2679 Add memory management for colors to deallocate unnamed colors
2682 * src/include/color.h (color): New members `free_list' and `next'.
2683 New member functions `new' and `delete'.
2685 * src/libs/libgroff/color.cc: Implement it.
2687 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2688 for array size of new operator.
2690 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2691 redundant comparison.
2693 * src/roff/troff/input.cc (word_space_node::reread,
2694 hmotion_node::reread): Avoid warning about unused parameter.
2695 (reset_output_registers): Remove redundant parameter.
2696 (define_color): Undo change 2003-02-12.
2698 * src/roff/troff/reg.h: Updated.
2700 * src/roff/troff/node.cc (troff_output_file::really_print_line,
2701 output_file::put_filename, real_output_file::really_put_filename,
2702 ascii_output_file::really_print_line,
2703 break_char_node::get_hyphen_list): Avoid warning about unused
2705 (suppress_node::tprint): Updated.
2707 * configure.ac: Check declaration for rand() and srand().
2708 * configure: Regenerated.
2710 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2712 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2715 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2716 to avoid compiler warnings.
2718 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2721 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2723 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2725 Updated all callers.
2727 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2729 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2730 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2732 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2733 Parameter is unused.
2734 (html_printer::add_table_end): Define parameter conditionally.
2735 * src/devices/grohtml/output.cc (simple_output::special): Parameter
2738 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2739 (lbp_printer::set_char): Last parameter is unused.
2741 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2743 2003-02-13 Werner LEMBERG <wl@gnu.org>
2745 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2746 Make \D'f ...' move horizontally again for backwards compatibility.
2747 Replace it with \D'Fg ...' where appropriate to avoid dependency
2748 on horizontal resolution.
2750 * src/roff/troff/input.cc (do_get_long_name): New function.
2751 (get_long_name): Call it.
2753 (read_draw_node): Handle `\D'Fx ...' by calling ...
2754 (read_color_draw_node): New function.
2756 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2758 Pass it to `do_get_long_name' which is used instead of
2761 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2762 unnecessary value guard.
2763 (parse_D_command) <'f'>: Add horizontal shift.
2765 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2766 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2767 (FILL_MAX): Removed.
2769 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2772 2003-02-12 Werner LEMBERG <wl@gnu.org>
2774 * src/roff/troff/input.cc (do_name_test, do_expr_test,
2775 do_zero_width): Push `\n' if closing delimiter is missing.
2777 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2778 <'F'>: Make \F non-transparent at the beginning of line.
2779 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2780 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2783 (define_color): Free color in case of reassignment.
2785 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2786 @DefescListEnd): Use @Var, not @var.
2789 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2791 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2792 `shaded' and `outlined' arrays.
2793 (object_spec::object_spec): Initialize `shaded' and `outlined'.
2794 (graphic_object::set_fill_color, graphic_object::set_outline_color):
2796 (closed_object::set_fill_color): Ditto.
2797 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2799 (troff_output::reset_color): Use a_delete instead of free.
2800 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2802 2003-02-11 Werner LEMBERG <wl@gnu.org>
2804 * doc/groff.texinfo: Improve documentation of `ad'.
2805 Document that \D'f...' is dependent on the horizontal resolution.
2806 * man/groff_diff.man: Improve documentation of \D'f...'.
2808 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2809 compensating \h'...' for \D'f ...' since the latter no longer moves
2811 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2813 2003-02-10 Werner LEMBERG <wl@gnu.org>
2815 Improve error messages for `x F' (and `F') commands.
2817 * src/include/error.h: Add declaration for
2818 `current_source_filename'.
2819 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2820 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2821 parameter for source file string.
2822 Updated all callers.
2824 * src/libs/libdriver/input.cc: Add `current_source_filename'.
2825 (remember_source_filename): New function.
2826 (parse_x_command <'F'>, do_file <'F'>): Use it.
2828 2003-02-09 Werner LEMBERG <wl@gnu.org>
2830 Make grotty not emit warnings about unknown colors more than
2833 * src/devices/grotty/tty.cc: Include `ptable.h'.
2834 (TTY_MAX_COLORS): Removed.
2835 (DEFAULT_COLOR_IDX): Defined to -1.
2836 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2837 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2838 Change `tty_colors' to be a ptable.
2839 First arg of `put_color' is now `char'.
2840 New functions `make_rgb_string' and `tty_color'.
2841 (tty_printer::tty_printer): Use `tty_color'.
2842 (tty_printer::color_to_idx): Return value is now `char'.
2845 * src/include/color.h (color): Add `print_color' member function.
2846 * src/libs/libgroff/color.cc (color::print_color): Implement it.
2848 2003-02-08 Werner LEMBERG <wl@gnu.org>
2852 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2855 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2856 assume that value has been allocated with `new[]', thus use
2857 `a_delete' for deallocation.
2859 * src/libs/libdriver/input.cc (get_integer_arg,
2860 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2863 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2864 * src/libs/libgroff/nametoindex.cc
2865 (character_indexer::named_char_index): Use `new <type>[1]'.
2867 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2869 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2870 (split_text): Use `a_delete'.
2872 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2875 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2876 harmless memory leak.
2877 (hyphen_trie::read_patterns_file): Initialize `buf'.
2878 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2879 Initialize `current_fill_color'and `current_glyph_color'.
2880 * src/roff/troff/glyphuni.cc
2881 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2882 * src/roff/troff/uniuni.cc
2883 (unicode_decompose_init::unicode_decompose_init): Ditto.
2884 * src/roff/troff/uniglyph.cc
2885 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2887 2003-01-26 Werner LEMBERG <wl@gnu.org>
2889 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2890 `access' before calling `unlink'.
2891 (do_file): Handle __EMX__.
2893 * src/include/nonposix.h: Handle __EMX__.
2895 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2896 (fontpath,tmacpath): Use it.
2898 Sorted alphabetically.
2900 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2902 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2905 2003-01-27 Werner LEMBERG <wl@gnu.org>
2907 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2908 New files, copied from gnulib.
2909 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2910 * configure.ac: Updated.
2911 * configure: Regenerated.
2913 * src/include/config.hin: Regenerated.
2914 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2915 Don't define `strcasecmp' as `strcmp'.
2916 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2917 Dont define `strncasecmp' as `strncmp'.
2919 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2922 2003-01-26 Werner LEMBERG <wl@gnu.org>
2924 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2927 2003-01-25 Werner LEMBERG <wl@gnu.org>
2929 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2931 2003-01-24 Werner LEMBERG <wl@gnu.org>
2933 Add US-english hyphenation exceptions (converted from Barbara
2934 Beeton's hyphenation exception log reports which appear irregularly
2937 * tmac/hyphen.us: Updated to latest version.
2938 * tmac/README: Updated.
2939 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2940 * tmac/troffrc: Load `hyphenex.us'.
2941 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2942 * doc/groff.texinfo: Updated.
2944 2003-01-23 Werner LEMBERG <wl@gnu.org>
2946 Improve hyphenation slightly. This is a first step in redesigning
2947 the hyphenation algorithm to make it more flexible (e.g. allowing
2948 kerns and ligatures between the hyphenation character and the
2949 following character -- while not used normally in English, other
2950 languages like German would benefit).
2952 * src/roff/troff/env.cc (environment::hyphenate_line): Use
2953 assertion instead of if-clause.
2954 Let `get_hyphen_list' return the number of involved characters in
2955 the hyphenation pattern instead of computing it directly (which
2956 often yields too small values).
2957 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2958 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2961 2003-01-22 Werner LEMBERG <wl@gnu.org>
2963 Fixing a bug which caused groff to hang if the hyphenation exception
2964 dictionary tried to grow.
2966 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2967 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2968 pointer to dictionary.
2970 2003-01-20 Werner LEMBERG <wl@gnu.org>
2972 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2973 negative left italic correction.
2974 * src/utils/afmtodit/afmtodit.man: Document it.
2976 * font/devps/generate/Makefile (RFLAG): Add `-m'.
2977 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2978 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2982 2003-01-16 Werner LEMBERG <wl@gnu.org>
2986 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
2988 * src/preproc/refer/refer.man: Mention REFER environment variable.
2990 2003-01-05 Werner LEMBERG <wl@gnu.org>
2992 Similar to \[is], the square root glyph (\[sr]) and the square root
2993 extension glyph (\[radicalex]) are now text symbols. The new
2994 mathematical versions are called \[sqrt] and \[sqrtex],
2997 * font/devX*/S: Regenerated.
2998 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2999 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3000 * font/devdvi/EX, font/devdvi/S: Regenerated.
3001 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3002 * font/devlj4/generate/special.map: Add `sqrt'.
3003 * font/devlj4/S: Regenerated.
3004 * font/devps/generate/textmap: Add `sqrt'.
3005 * font/devps/S, font/devps/symbolmap: Regenerated.
3007 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3008 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3009 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3010 overlap horizontally.
3012 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3013 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3016 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3017 and `sqrtex' are overlapping glyphs.
3019 2003-01-04 Werner LEMBERG <wl@gnu.org>
3021 * font/devdvi/generate/texsy.map: Add `is'.
3022 * font/devps/symbolmap: Regenerated.
3023 * font/devdvi/*TC, MI, S: Regenerated.
3025 * tmac/dvi.tmac: Remove `is'.
3027 2003-01-03 Werner LEMBERG <wl@gnu.org>
3029 `is' is now a text symbol (only relevant for dvi). The math variant
3030 can be accessed with `integral'.
3032 * font/devX*/S: Regenerated.
3033 * font/devdvi/generate/texex.map: Remove `is'.
3034 * font/devdvi/EX: Updated.
3035 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3036 * font/devlj4/generate/special.map: Ditto.
3037 * font/devlj4/S: Regenerated.
3038 * font/devps/generate/textmap: Add `integral'.
3039 * font/devps/S: Regenerated.
3041 * tmac/dvi.tmac: Define `is'.
3043 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3045 * src/preproc/tbl/main.cc (process_format): Fix error message.
3047 2003-01-02 Werner LEMBERG <wl@gnu.org>
3049 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3050 * font/devps/textmap: Fix entries for `ne' and `nc'.
3051 * font/devps/symbolmap: Regenerated.
3053 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3054 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3055 `38', `58', `78', `-+', `|=', `nc', `ne'.
3057 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3058 Use `schar' for `aq'.
3059 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3060 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3061 * tmac/tty.tmac: Add `ne'.
3063 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3064 for fallback glyphs.
3066 2002-12-29 Werner LEMBERG <wl@gnu.org>
3070 * font/devX*/*: Regenerated.
3071 * font/devdvi/generate/ec.map: Remove `eq'.
3072 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3073 Assign `|=' to position 39.
3074 * font/devdvi/*EC, S: Regenerated.
3075 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3076 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3077 Assign `|=' to position 549.
3078 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3080 Add `uni2243' for `|='.
3082 * tmac/ec.tmac: Add `eq'.
3083 * tmac/dvi.tmac: Add `=~'.
3084 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3087 2002-12-21 Werner LEMBERG <wl@gnu.org>
3089 * font/devdvi/generate/tc.map: Remove `**'.
3090 * font/devdvi/*TC: Regenerated.
3091 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3093 * font/devutf8/NOTES: Updated.
3095 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3096 Don't give default parameter to `set_macro'.
3097 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3098 instead of `set_macro'.
3099 (charinfo::setx_macro): Implement it.
3100 (charinfo::set_macro): Don't change `mode'.
3102 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3103 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3104 * tmac/dvi.tmac: Define `!=' with `.schar'.
3106 2002-12-20 Werner LEMBERG <wl@gnu.org>
3108 * font/devX*/S: Regenerated.
3109 * font/devdvi/generate/ec.map: Remove `pl'.
3110 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3111 * font/devdvi/*{TC,EC}: Regenerated.
3112 * font/devhtml/R.proto: Add `-+'.
3113 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3114 * font/devlbp/*: Remove `or'.
3115 * font/devlj4/generate/special.map: Remove `or'.
3116 * font/devlj4/S: Regenerated.
3117 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3118 `seveneighths', `threeeighths'.
3120 Replace `minusplus' with `uni2213'.
3121 * font/devps/symbolmap: Regenerated.
3122 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3125 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3127 * src/roff/troff/node.cc (troff_output_file::put_char_width):
3128 Call glyph_color and fill_color even if tcommand_flag isn't set.
3129 (make_node, node::add_char): Check not ci->is_fallback but
3132 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3133 * tmac/ec.tmac: Add .rchar entry for `f/'.
3134 Don't remove `12', `14', `34'.
3135 Define `pl' to be always roman.
3136 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3137 Define `18', `38', `58', `78'.
3138 * tmac/tty.tmac: Add `-+'.
3139 * tmac/dvi.tmac: Define `f/'.
3140 (dvi-frac): Use `f/'.
3141 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3142 Define `18', `38', `58', `78'.
3144 2002-12-15 Colin Watson <cjwatson@debian.org>
3146 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3148 2002-12-10 Werner LEMBERG <wl@gnu.org>
3150 Add glyph `tno', a textual variant of `no'.
3152 * font/devX*/*: Regenerated.
3153 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3154 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3155 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3156 * font/devdvi/*: Regenerated.
3157 * font/devlbp/*: Add `tno'.
3158 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3159 * font/devlj4/*: Regenerated.
3160 * font/devps/generate/textmap: Replace `no' with `tno'.
3161 * font/devps/generate/symbolchars: Add `no'.
3162 * font/devps/*: Regenerated.
3164 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3166 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3167 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3171 * tmac/dvi.tmac: Replace most `\\' with `\E'.
3172 Add definition for `sd'.
3173 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3175 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3177 2002-12-08 Werner LEMBERG <wl@gnu.org>
3179 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3180 mode to avoid rounding errors.
3181 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3183 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3184 src/roff/troff/troff.man: Improve documentation of -T.
3186 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
3188 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3189 (run_pipeline) [_WIN32]: Provide working function without `fork'.
3191 2002-12-06 Werner LEMBERG <wl@gnu.org>
3193 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3194 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3195 Scaling Euro.sansserif glyphs down to have the same height as
3197 Removed unnecessary points; added some extrema.
3199 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3202 2002-12-04 Werner LEMBERG <wl@gnu.org>
3204 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3205 and `Euro.symbol.bold.slanted'.
3206 Improve some glyph offsets and widths.
3207 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3209 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3211 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3214 * tmac/europs.tmac: Updated to new glyph indices.
3215 Use Euro.symbol for font familiy `A'.
3217 * doc/groff.texinfo: Minor improvements.
3219 2002-12-02 Werner LEMBERG <wl@gnu.org>
3221 * font/devdvi/generate.tc.map: s/%O/%0/.
3222 * font/devdvi/*TC: Regenerated.
3224 * src/roff/troff/div.cc (init_div_requests): Sorted.
3226 * tmac/dvi.tmac: Remove `Ye'.
3227 * tmac/ec.tmac: Remove `Ye'.
3228 Add .rchar entry for `de'.
3230 * man/groff.man, man/groff_diff.man: Document register `.pe'.
3231 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3234 2002-11-30 Werner LEMBERG <wl@gnu.org>
3236 Add PS font for various Euro glyphs.
3238 * font/devps/generate/freeeuro.sfd: New master font file for
3240 * font/devps/generate/sfdtopfa.pe: New conversion script for
3242 * font/devps/generate/Makefile (FONTS): Add `EURO'.
3243 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3244 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3246 * font/devps/EURO: Generated from `freeeuro.afm'.
3247 * font/devps/download: Add `freeuro.pfa'.
3248 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3251 * tmac/europs.tmac: New file.
3252 * tmac/ps.tmac: Include `europs.tmac'.
3253 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3255 2002-11-29 Werner LEMBERG <wl@gnu.org>
3257 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3258 * font/devdvi/S: Regenerated.
3259 * font/devhtml/R.proto: Fix `CR' and `ci'.
3261 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3263 * font/devps/symbolmap: Regenerated.
3264 * font/devutf8/R.proto: Fix `CR' and `ci'.
3266 * font/devutf8/NOTES: Updated.
3268 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3271 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3273 * tmac/dvi.tmac: Add `lh' and `rh'.
3274 * tmac/Xps.tmac: Fix `lh' and `rh'.
3275 * tmac/X.tmac: Add `OK'.
3276 * tmac/lj4.tmac: Ditto.
3278 2002-11-24 Werner LEMBERG <wl@gnu.org>
3280 * font/devX*/S: Regenerated.
3281 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3282 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3283 * font/devdvi/generate/texsy.map: Remove `or' glyph.
3284 * font/devdvi/S: Regenerated.
3285 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3286 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3287 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3288 `bracketleftbt', `bracketrighttp', `bracketrightex',
3289 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3290 `braceex', `braceleftex', `bracerightex', `bracerighttp',
3291 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3293 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3294 * font/devutf8/NOTES: Updated.
3295 * font/devlj4/generate/special.map: Add glyph `braceex'.
3296 * font/devlj4/S: Regenerated.
3298 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3300 2002-11-14 Werner LEMBERG <wl@gnu.org>
3302 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3305 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3307 * doc/texinfo.tex: New version from texinfo 4.3.
3308 * doc/groff.texinfo: Updated for texinfo 4.3.
3309 Use @tie{} where appropriate.
3310 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3311 * font/devdvi/generate/tc.map: Remove `rn'.
3312 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3313 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3315 * font/devX100/*, font/devX100-12/*, font/devX75/*,
3316 font/devX75-12/*: Regenerated.
3318 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3319 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3320 Improve definition of `an'.
3321 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3323 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3324 * tmac/X.tmac: Add definition for `or'.
3325 * tmac/Xps.tmac: Undo change 2002-11-05.
3326 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3328 2002-11-11 Werner LEMBERG <wl@gnu.org>
3330 * src/roff/troff/node.cc (troff_output_file::put_char): Always
3333 2002-11-10 Werner LEMBERG <wl@gnu.org>
3335 Added three new requests `schar', `fschar', and `rfschar'. `schar'
3336 defines a glyph which is searched after the check for fonts declared
3337 with `.special' (and before the check for all mounted special
3338 fonts). `fschar' defines a glyph for a particular font which is
3339 searched after the check for fonts declared with `.fspecial' (and
3340 before the check for fonts declared with `.special'). `rfschar'
3341 removes glyphs defined with `fschar'.
3343 * src/roff/troff/token.h (char_mode): New enum.
3344 Declare do_define_character.
3345 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3347 (charinfo::is_fallback): Updated.
3348 (charinfo::is_special): New method.
3349 * src/roff/troff/input.cc (do_define_character): Add and use
3350 optional second parameter used as a prefix for font-specific glyph
3352 (define_character, define_fallback_character): Updated.
3353 (define_special_character): New function.
3354 (init_input_requests): Add `schar'.
3355 (charinfo::charinfo, charinfo::set_macro): Updated.
3356 * src/roff/troff/node.cc: Include `stringclass.h'.
3357 (make_glyph_node): Handle special glyphs defined with `.schar' and
3359 (define_font_special_character, remove_font_special_character): New
3361 (init_node_requests): Sorted.
3362 Add `fschar' and `rfschar'.
3363 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3364 Document new requests.
3366 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3367 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3369 2002-11-08 Werner LEMBERG <wl@gnu.org>
3371 Added new font `SC' (cmtex10) to devdvi.
3373 * devdvi/generate/Makefile (FONTS): Add `SC'.
3375 * devdvi/generate/textex.map: New map file for cmtex.
3377 * devdvi/Makefile.sub (DEVFILES): Updated.
3378 * tmac/dvi.tmac: Add fspecial entries for SC.
3379 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
3380 found before `S' since the font position of `SC' is lower due to the
3381 gaps in DESC's `font' line.
3382 * tmac/ec.tmac: Add a `special' call.
3385 * font/devhtml/R.proto: Remove double entry for `ti'.
3386 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3387 * tmac/tty-char.tmac: Remove entry for `bq'.
3388 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3389 * tmac/ec.tmac: Don't remove `aq' glyph.
3390 * tmac/X.tmac: Fix entry for `em'.
3391 Add entries for `fo' and `fc'.
3392 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3394 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3395 documentation of `special' and `fspecial' requests.
3397 2002-11-05 Werner LEMBERG <wl@gnu.org>
3399 * font/devascii/R.proto, font/devcp1047/R.proto,
3400 font/devlatin1/R.proto: Remove entry for `.i'.
3401 * font/devdvi/generate/textt.map: Add entry for `ad'.
3402 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3403 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3404 We need this for getting kerning values to compose `/l' and `/L'.
3405 * font/devdvi: Regenerated font definition files for CM fonts.
3406 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3407 * font/devutf8/R.proto: Ditto.
3408 Remove double entry for `ti'.
3410 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3411 for (groff) ligatures, `la', and `ra'.
3412 Add "'C", "'c", `IJ', and `ij'.
3413 Remove double entry for `ti'.
3414 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3416 Add "'C", "'c", `IJ', and `ij'.
3417 Fix entries for (groff) ligatures, `la', and `ra'.
3419 * tmac/ps.tmac (ps-achar): New macro.
3420 Define "'c" and "'C".
3421 * tmac/tty.tmac: Add entry for `.i'.
3422 * tmac/X.tmac (X-achar): New macro.
3423 Define "'c", "'C", and `:Y'.
3424 Add entries for `IJ' and `ij'.
3425 * tmac/Xps.tmac (Xps-achar): New macro.
3426 Define "'c" and "'C".
3427 Add entries for `IJ' and `ij'.
3428 * tmac/lbp.tmac (lbp-achar): New macro.
3429 Add fallback characters for all groff ligatures and many other
3431 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3432 Add entries for `/l' and `/L'.
3433 Define "'c" and "'C".
3434 Add entries for `IJ' and `ij'.
3436 2002-11-02 Larry Kollar <kollar@alltel.net>
3438 * PROBLEMS: Document how to solve Mac OS X compilation problems.
3440 2002-11-02 Werner LEMBERG <wl@gnu.org>
3442 Adding support for composite glyphs: \[xxx yyy ...] and the
3443 `composite' request.
3445 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3446 to Unicode-based glyph names.
3447 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3448 glyph names to groff glyph names.
3449 * src/roff/troff/uniuni.cc: New file for canonically decomposing
3450 Unicode-based glyph names.
3451 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3452 for handling Unicode glyph names.
3453 * src/roff/troff/input.cc: Include unicode.h.
3454 (composite_glyph_name): New function.
3455 (token::next) <'['>: Handle Unicode glyph names and composite
3457 (composite_dictionary): New dictionary for the `composite' request.
3458 (composite_request): Implement `composite' request.
3459 (init_input_requests): Add `composite'.
3460 Alphabetically sorted.
3461 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3463 (init_env_requests): Alphabetically sorted.
3464 Removed `tas' and `tar' (already commented out).
3465 * src/roff/troff/Makefile.sub: Updated.
3467 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
3469 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3472 2002-10-29 Werner LEMBERG <wl@gnu.org>
3474 Fix computation of .trunc register. Additionally, its value (and
3475 the value of the .ne register) is now always set before entering the
3478 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3479 `needed_space' before calling `space'.
3480 (top_level_diversion::space): Remove special code for 'sp before the
3482 Call `begin_page' with the discarded space as a parameter.
3483 (top_level_diversion::begin_page): Add optional parameter to set
3485 * src/roff/troff/div.h: Updated.
3487 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3490 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3491 (LP): Remove superfluous call to `br'.
3492 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3493 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3495 2002-10-26 Werner LEMBERG <wl@gnu.org>
3497 * tmac/doc-ditroff: Remove useless switch/variable -rC.
3498 (doc-setup-header): Don't set page register `%'.
3499 * tmac/doc-nroff: Remove variable `C'.
3500 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3501 (doc-setup-header): Don't set page register `%'.
3503 * tmac/doc-common (doc-header): Call `ns'.
3504 (doc-paragraph): Protect .sp with .br so that it survives traps
3505 possibly set by the user.
3506 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3508 * tmac/doc*: Replace ' with . for consistency if no effect.
3510 2002-10-26 Werner LEMBERG <wl@gnu.org>
3512 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3513 so that it survives traps possibly set by the user.
3515 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3516 (troff_output_file::set_font): Call flush_tbuf if necessary.
3517 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3518 flush_tbuf and do_motion only if necessary.
3519 (troff_output_file::start_special,
3520 troff_output_file::put_char_width, troff_output_file::put_char,
3521 troff_output_file::draw): Updated.
3522 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3523 vmotion_node::tprint): Undo change 2002-10-23.
3525 2002-10-25 Werner LEMBERG <wl@gnu.org>
3527 * tmac/www.tmac (DC): Fix case of overlapping images.
3529 2002-10-23 Werner LEMBERG <wl@gnu.org>
3531 * src/roff/troff/node.cc (troff_output_file::fill_color,
3532 troff_output_file::glyph_color): Set current color before testing
3534 (troff_output_file::put_char_width, troff_output_file::put_char,
3535 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3537 (troff_output_file::file_color, troff_output_file::glyph_color):
3539 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3540 vmotion_node::tprint): Move first, then call fill_color.
3542 2002-10-20 Werner LEMBERG <wl@gnu.org>
3544 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3545 possible to use multiple main macro packages.
3547 2002-10-19 Werner LEMBERG <wl@gnu.org>
3549 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3550 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3551 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3553 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3554 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3556 2002-10-16 Werner LEMBERG <wl@gnu.org>
3558 * NEWS, doc/webpage.ms: Updated.
3560 2002-10-14 Werner LEMBERG <wl@gnu.org>
3562 * src/roff/troff/node.cc (troff_output_file::put_char_width,
3563 troff_output_file::put_char, troff_output_file::fill_color,
3564 troff_output_file::glyph_color): Handle case where color pointer
3567 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
3569 Add the new -r option to grotty. It is similar to the -i option
3570 except it tells grotty(1) to use the "reverse video" attribute to
3571 render italic fonts.
3573 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3574 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3575 (tty_printer::make_underline, tty_printer::put_color,
3576 tty_printer::end_page): Use it.
3577 (main): Add -r switch.
3579 * src/devices/grotty/grotty.man: Document it.
3581 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
3583 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3584 cast to `unsigned char' to properly read patterns with 8bit
3587 2002-10-08 Werner LEMBERG <wl@gnu.org>
3589 * REVISION: Increased to 2.
3591 Version 1.18.1 released
3592 =======================
3594 2002-10-08 Werner LEMBERG <wl@gnu.org>
3596 * doc/webpage.ms, NEWS: Updated.
3598 2002-10-07 Werner LEMBERG <wl@gnu.org>
3600 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3601 suppress additional whitespace after the header.
3603 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3606 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3608 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
3610 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3611 (Dt): Use it to improve language localization (especially Russian
3614 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
3616 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3617 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3619 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3621 Call `picurve' for BSPLINE.
3622 (HGPrintElt): Handle BSPLINE.
3623 * src/preproc/grn/README: Document it.
3625 2002-10-03 Werner LEMBERG <wl@gnu.org>
3627 * src/roff/troff/node.cc (break_char_node::col): New variable.
3628 Updated constructor.
3629 (space_node::tprint, word_space_node::tprint): Call `fill_color'
3631 (space_node::space_node): Remove assertion.
3632 (break_char_node::add_self): Pass color argument to space node.
3633 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3635 * src/roff/troff/env.cc (environment::do_break,
3636 environment::add_padding): Ditto.
3638 2002-10-02 Werner LEMBERG <wl@gnu.org>
3640 Redesigning color support in troff. Colors are no longer
3641 represented as separate nodes but are now part of glyph nodes and
3642 friends. This fixes the current formatting misbehaviour due to the
3643 changes introduced on 2002-09-20. Some extra code is necessary for
3644 proper grotty support: Without adding color variables to
3645 space-related nodes, the background color would be changed too late.
3647 * src/roff/troff/node.h, src/roff/troff/node.cc:
3648 s/current_pagecolor/current_fill_color/.
3649 s/current_glyphcolor/current_glyph_color/.
3650 (glyph_color_node, fill_color_node): Removed.
3651 (node::get_glyph_color, node::get_fill_color): New virtual member
3653 (space_node::col): New variable.
3654 Updated constructors of space_node and derived classes accordingly.
3655 (hmotion_node::col): New variable.
3656 Updated constructors of hmotion_node and space_char_hmotion_node
3658 (vmotion_node::col): New variable.
3659 Updated constructor accordingly.
3660 (draw_node::gcol, draw_node::fcol): New variables.
3661 Updated constructor accordingly.
3662 (special_node::gcol, special_node::fcol): New variables.
3663 Updated constructors accordingly.
3664 (troff_output_file::put_char, troff_output_file::put_charwidth,
3665 troff_output_file::draw): Set glyph and fill color.
3666 (troff_output_file::start_special): Set glyph and fill color.
3667 Always set current font.
3668 (troff_output_file::fill_color, troff_output_file::glyph_color):
3669 Don't call `do_motion'.
3670 (glyph_node::gcol, glyph_node::fcol): New variables.
3671 Updated constructors of glyph_node and ligature_node accordingly.
3672 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3674 (glyph_node::merge_glyph_node,
3675 kern_pair_node::add_discretionary_hyphen,
3676 node::add_discretionary_hyphen): Updated.
3677 (break_char_node::merge_self): Updated.
3678 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3679 vmotion_node::tprint): Handle color.
3680 (make_glyph_node, make_node, node::add_char): Updated.
3682 * src/roff/troff/env.cc (environment::space_newline,
3683 environment::space, environment::output_line, environment::do_break,
3684 environment::make_tab_node, environment::add_padding, title):
3686 (environment_switch, environment_copy): Don't add color nodes.
3688 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3690 (token::next): Updated.
3691 \m and \M now are as transparent as \s.
3692 (process_input_stack, token::add_to_node_list, token::process,
3693 read_draw_node): Updated.
3694 (charinfo_to_node_list): Don't add color nodes.
3696 * doc/groff.texinfo: Updated.
3698 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
3700 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3703 2002-09-27 Colin Watson <cjwatson@debian.org>
3705 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3707 2002-09-23 Werner LEMBERG <wl@gnu.org>
3709 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3711 (DEFAULT_LINEWIDTH_FACTOR): New macro.
3712 (linewidth_factor): New global variable.
3713 (lbp_printer::set_line_thickness): Fix case for size < 0, using
3715 (long_options): Add -w/--linewidth option.
3717 (main): Handle -w option to set linewidth_factor.
3718 (lbp_printer::lbp_printer): Initialize req_linethickness, not
3721 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3723 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
3725 Fixed a bug in the line thickness setting code.
3727 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3729 (lbp_printer::set_line_thickness): Pass environment as second
3731 Implement it actually.
3732 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3733 and `set_line_thickness, depending on the current font size.
3735 2002-09-21 Werner LEMBERG <wl@gnu.org>
3737 Some Debian patches.
3739 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3740 * src/roff/troff/node.cc (bracket_node::copy): Initialize
3743 2002-09-20 Werner LEMBERG <wl@gnu.org>
3745 * configure: Regenerated with autoconf 2.54.
3747 2002-09-20 Werner LEMBERG <wl@gnu.org>
3749 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3751 Rename cur_fill_color to fill_color.
3752 * src/roff/troff/env.cc: Updated.
3754 2002-09-20 Werner LEMBERG <wl@gnu.org>
3756 * src/roff/troff/env.cc (title): Copy color status after processing
3758 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3759 fill color nodes to reset colors properly.
3761 * tmac/www.tmac (DC): Fix color handling.
3763 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3764 * doc/groff.texinfo: Fixing documentation of `tl' request.
3765 * doc/webpage.ms: Updated.
3767 2002-09-19 Werner LEMBERG <wl@gnu.org>
3769 * src/roff/troff/env.cc (environent_switch, environment_copy):
3770 Emit glyph and fill color nodes to initialize colors properly.
3772 2002-09-17 Colin Watson <cjwatson@debian.org>
3774 * src/roff/troff/env.cc (environment::set_glyph_color,
3775 environment::set_fill_color): Fix typo which prevented \m[] work
3778 2002-09-17 Werner LEMBERG <wl@gnu.org>
3780 Add left and right italic correction to non-slanted PS fonts. This
3781 is an experimental feature to improve image rendering of grohtml.
3783 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3784 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3785 * font/devps/*: All non-slanted fonts regenerated.
3788 2002-09-16 Werner LEMBERG <wl@gnu.org>
3790 Add a site-specific font directory.
3792 * Makefile.in (localfontdir, legacyfontdir): New variables.
3793 (fontpath): Use them.
3794 (MDEFINES, uninstall_dirs): Updated.
3795 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3796 Remove `FONTPATH' and `MACROPATH'.
3798 * src/roff/troff/troff.man, NEWS: Updated.
3799 * doc/groff.texinfo (Font Directories): New section.
3802 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3803 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3804 src/preproc/grn/grn.man: Minor fixes.
3806 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3807 Remove unused variable.
3809 2002-09-11 Werner LEMBERG <wl@gnu.org>
3811 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3812 * man/groff_out.man: Fix documentation of 'N'.
3814 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
3816 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3817 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3819 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3820 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3821 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3822 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3823 PRE_TAG>: Call `begin' with `FALSE'.
3825 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3827 * src/libs/libgroff/string.cc (string::extract): Fix position of
3828 terminating null byte.
3830 2002-09-08 Werner LEMBERG <wl@gnu.org>
3832 Add global option `nospaces' to tbl so that leading and trailing
3833 spaces in data items are ignored.
3835 * src/libs/libgroff/string.cc (string::remove_spaces): New member
3836 function to remove leading and trailing spaces.
3837 * src/include/stringclass.h: Updated.
3839 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3841 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3843 Fix typo in error messages.
3844 (process_data): Implement `nospaces' option.
3845 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3847 2002-09-07 Werner LEMBERG <wl@gnu.org>
3849 * src/include/config.hin: Add `HAVE_ISATTY'.
3850 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3852 * src/libs/libgroff/tmpname.cc: Include `time.h'.
3853 * src/libs/libdriver/input.cc (Char): Add `operator==' and
3854 `operator!=' for `char'.
3855 * doc/groff.texinfo: Replace @ifnottex block for top node with
3858 2002-09-06 Werner LEMBERG <wl@gnu.org>
3860 * doc/Makefile.in (.texinfo.html): Add -I switch.
3861 * doc/groff.texinfo: Add @ifnottex block for top node to make
3862 translation to HTML work.
3864 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
3866 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3867 (get_papersize, determine_vertical_offset): Removed.
3868 (char_buffer::do_image): Always specify letter size.
3870 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3873 2002-09-05 Werner LEMBERG <wl@gnu.org>
3875 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3876 default indentation.
3878 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
3880 * src/preproc/html/pre-html.cc (imageList::createPage): Use
3882 (generateImages): Clean up push-back buffer.
3884 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3886 * doc/groff.texinfo: Minor fixes.
3888 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
3890 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3891 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3893 (determine_vertical_offset): Use LETTER_LENGTH.
3894 (createPage): Moved to ...
3895 (imageList::createPage): This.
3896 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3897 (imageList::getMaxX): New function.
3898 (createImage): Moved to ...
3899 (imageList::createImage): This.
3900 (imageList::createImages): New function.
3901 (generateImages): Read `maxx' directly.
3903 (scanArguments): Don't specify `gsPaper' for `-o'.
3904 (makeTempFiles): Call `xtmpfile' with the last argument set to
3907 2002-08-24 Werner LEMBERG <wl@gnu.org>
3909 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3910 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3911 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3912 * src/preproc/html/pushback.cc: Include nonposix.h.
3913 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3916 2002-08-23 Werner LEMBERG <wl@gnu.org>
3918 Use $(OBJEXT) for the object file extension.
3920 * Makefile.comm (.SUFFIXES): Add .obj.
3921 (.cc.obj, .c.obj): New implicit rules.
3922 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3923 (MDEFINES): Add EXEEXT and OBJEXT.
3924 * */Makefile.sub: s/.o/.$(OBJEXT)/.
3926 2002-08-22 Werner LEMBERG <wl@gnu.org>
3928 * INSTALL: Mention texinfo 4.2 as a prerequisite.
3930 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
3932 * src/devices/grohtml/post-html.cc (colType): Make enum global to
3934 (html_printer::update_min_max, html_printer::add_table_end): New
3936 (html_printer::lookahead_for_tables): Use them.
3937 Reset page offset correctly.
3938 (html_printer::~html_printer): Add creation of creator comment up.
3940 2002-08-20 Werner LEMBERG <wl@gnu.org>
3942 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3943 * man/groff_tmac.man: Fix typos.
3944 * man/groff_font.man: Minor reordering.
3945 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3947 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
3949 Avoid endless loops while scanning for tables.
3951 * src/devices/grohtml/post-html.cc (list::insert): Set
3953 (html_printer::next_horiz_pos): Add `text_glob' argument; update
3955 Return immediately if that argument is NULL.
3956 (html_printer::calc_nf): Don't test if `g' is NULL.
3957 (html_printer::lookahead_for_tables): Use
3958 `glyphs.move_right_get_data'.
3959 Don't test if `g' is NULL.
3961 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
3963 A better fix, replacing fix 2002-08-15, for increasing SIZE.
3965 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3967 (char_block::char_block): Allocate `buffer'.
3968 (char_buffer::add_string): Use it.
3970 2002-08-15 Werner LEMBERG <wl@gnu.org>
3972 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3973 src/devices/grodvi/grodvi.man: Document default line thickness.
3975 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
3977 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3980 2002-08-14 Werner LEMBERG <wl@gnu.org>
3982 * doc/webpage.ms: Updated.
3984 2002-08-09 Werner LEMBERG <wl@gnu.org>
3986 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3989 2002-08-08 Aaron Campbell <aaron@monkey.org>
3991 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3994 2002-08-08 Werner LEMBERG <wl@gnu.org>
3996 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3999 Don't push back a space but a newline onto the stack.
4001 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
4003 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4006 * src/devices/grohtml/post-html.cc (html_printer::end_font,
4007 html_printer::start_font): Handle them.
4008 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4010 (html_text::do_bold): Don't reset italic and tt.
4011 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4012 * font/devhtml/DESC.proto: Add those fonts.
4013 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4015 2002-08-07 Werner LEMBERG <wl@gnu.org>
4017 * MORE.STUFF: Added gpresent.
4019 * tmac/trace.tmac: Show nesting level by a corresponding amount of
4020 whitespace before printing the logging message.
4022 2002-07-31 Colin Watson <cjwatson@debian.org>
4024 * src/devices/grohtml/html-table.cc (html_table::finish_row):
4025 Initialize `n' to zero. This fixes a segfault on ARM.
4027 2002-07-30 Werner LEMBERG <wl@gnu.org>
4029 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4031 2002-07-29 Werner LEMBERG <wl@gnu.org>
4033 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4036 2002-07-28 Colin Watson <cjwatson@debian.org>
4038 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4040 (html_printer::html_printer): Initialize `pointsize'.
4042 2002-07-26 Werner LEMBERG <wl@gnu.org>
4044 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4046 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4047 (gnu.eps): Add -rle switch to pnmtops.
4048 (distfiles): Add gnu.eps and gnu.png.
4050 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
4052 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4055 2002-07-24 Werner LEMBERG <wl@gnu.org>
4057 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4058 ' \+' but ' *' for sed.
4059 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4061 2002-07-23 Werner LEMBERG <wl@gnu.org>
4063 * doc/groff.texinfo: Document `papersize' keyword.
4064 * NEWS, man/groff_font.man: Updated.
4066 2002-07-23 Colin Watson <cjwatson@debian.org>
4068 Extend papersize keyword to accept more than a single entry. The
4069 first valid will be used.
4071 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4072 (font::scan_papersize): Really skip final newline.
4073 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4075 2002-07-23 Werner LEMBERG <wl@gnu.org>
4077 * configure.ac: Test for isatty.
4078 * configure: Regenerated.
4079 * src/include/posix.h: Check HAVE_ISATTY.
4080 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4081 * src/utils/lookbib/lookbib.cc: Include posix.h.
4082 Don't declare isatty.
4084 2002-07-21 Werner LEMBERG <wl@gnu.org>
4086 * NEWS: Add `output' request.
4088 * REVISION: Increased to 1.
4090 Version 1.18.0 released
4091 =======================
4093 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
4095 Allow internal glyph indices > 0xFF in grohtml for input characters.
4097 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4099 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4100 Updated all callers.
4101 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4102 (html_printer): Updated.
4104 2002-07-19 Werner LEMBERG <wl@gnu.org>
4106 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4107 * font/devutf8/R.proto: Adding some missing glyphs.
4108 * font/devutf8/NOTES: Updated.
4110 * tmac/dvi.tmac: Add more composite glyphs.
4111 * tmac/html.tmac: Updated.
4113 * man/groff_char.man: Add `sum' and `product' entities.
4117 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
4119 Improved table, tab, and indenting support.
4121 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4122 string_iterator::suppress_newline_flag): Removed. Updated all
4123 function which have used it.
4125 * src/roff/troff/env.cc: Include `input.h'.
4126 (environment::add_node): Accept 0 as parameter.
4127 (environment::add_html_tag): Add `force' parameter.
4128 Updated all callers.
4129 (environment::add_html_tag_tabs): Ditto.
4130 For the moment, support left-aligned tabs only.
4131 (environment::make_html_tag): New function.
4132 (fill, no_fill): Set .br html tag additionally.
4133 (environment::newline): Emit `eol.ce' or `eol' tag for html.
4134 (environment::add_html_tag_eol): Removed.
4135 (tab_stops::distance_to_next_tab): Add variant for handling
4137 (environment::distance_to_next_tab): Ditto.
4138 Updated all callers.
4139 (environment::handle_tab): Handle tabs for html.
4141 * src/roff/troff/env.h: Updated.
4143 * src/roff/troff/div.cc: Updated all callers of
4144 `environment::add_html_tag'.
4146 * src/devices/grohtml/html-table.cc,
4147 src/devices/grohtml/html-table.h: New files.
4149 * src/devices/grohtml/html-text.cc (html_text): New members
4150 `blank_para' and `start_space'.
4151 (html_text::issue_tag): Don't emit TABLE_TAG.
4152 Handle indentation for PRE_TAG and P_TAG.
4153 (html_text::end_tag): Updated.
4154 (html_text::table_is_void, html_text::issue_table_begin,
4155 html_text::issue_table_end): Removed.
4156 (html_text::do_push): Simplified.
4157 [DEBUGGING]: Small fix.
4158 (html_text::push_para): Add new parameter for indentation; updated
4161 (html_text::do_indent, html_text::do_table, html_text::done_table,
4162 html_text::is_in_table): Removed.
4163 (html_text::do_pre): Handle P_TAG also.
4164 (html_text::shutdown): Handle p->indent.
4165 (html_text::check_emit_text): Simplified.
4166 (html_text::do_emittext): Reset `blank_para'.
4167 (html_text::do_para): Add new parameter for indentation; updated
4169 (html_text::remove_indent): New function.
4170 (html_text::do_space): Handle verbatim text properly.
4171 (html_text::ever_emitted_text, html_text::starts_with_space,
4172 html_text::remove_para_align): New functions.
4173 (html_text::dump_stack_element, html_text::dump_stack): Updated.
4175 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4178 * src/devices/grohtml/post-html.cc: Include html-table.h.
4179 (INDENTATION): Removed.
4180 (text_glob): Added many `is_<foo>' functions.
4181 Added table description `tab'.
4182 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4184 (list): Add `insert' and `move_to' member functions.
4185 (page): Add `insert_tag' member function.
4186 (page::dump_page) [DEBUG_TABLES]: Improved.
4187 (html_printer): Add `table' and `max_linelength' elements.
4188 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4189 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4190 `remove_tabs', `remove_courier_tabs'.
4191 (html_printer::emit_raw): Handle indentation.
4192 (html_printer::do_center, html_printer::write_header): Updated.
4193 (html_printer::is_courier_until_eol): Check for tag.
4194 (html_printer::do_linelength): Handle max_linelength.
4195 (html_printer::do_page_offset, html_printer::do_indentation): Handle
4197 (html_printer::do_tempindent): Updated.
4198 (html_printer::do_indentedparagraph): Removed.
4199 (html_printer::do_indent): Simplified.
4200 (html_printer::do_eol): Use `ever_emitted_text'.
4201 (html_printer::do_flush, html_printer::do_links): Don't call
4203 (html_printer::do_break): Handle end_tempindent.
4204 (html_printer::troff_tag): Get argument.
4206 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4207 (html_printer::flush_page): Call `lookahead_for_tables'.
4208 Don't call `done_table'.
4209 (html_printer::add_to_sbuf): Always call do_indent.
4211 * src/devices/grohtml/Makefile.sub: Updated.
4213 * tmac/an-old.tmac (TP): Don't handle html device specially.
4214 (an-do-tag-html): New function which will be used instead of
4215 `an-do-tag' if html device is used.
4217 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4219 * tmac/s.tmac (@IP): Don't handle html device specially.
4220 (@IP-html): New function which will be used instead of `@IP' if
4221 html device is used.
4223 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4224 is a hack which will eventually vanish again.
4225 (PIMG): Handle `-C' option correctly if not html.
4228 2002-07-17 Werner LEMBERG <wl@gnu.org>
4230 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4232 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
4234 * contrib/pic2graph/pic2graph.*: Use convert(1).
4235 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4237 2002-07-14 Bernd Warken <bwarken@mayn.de>
4239 * tmac/groff_trace.man: New file.
4240 * tmac/Makefile.sub: Updated.
4243 2002-07-13 Werner LEMBERG <wl@gnu.org>
4245 * src/roff/groff/groff.man: Add some cross references.
4247 2002-07-12 Werner LEMBERG <wl@gnu.org>
4249 * src/roff/troff/input.cc (substring_request): Add warnings for
4250 string indices out of range.
4252 2002-07-11 Werner LEMBERG <wl@gnu.org>
4254 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4255 * font/devdvi/*EC: Regenerated.
4257 2002-07-10 Bernd Warken <bwarken@mayn.de>
4259 * man/groff_char.man: Updated and extended.
4261 2002-07-10 Werner LEMBERG <wl@gnu.org>
4263 * src/roff/troff/input.cc (length_macro): Renamed to...
4264 (length_request): This.
4265 Move call of `tok.next()' to the very end, otherwise the register
4266 value hasn't been updated yet.
4267 (init_input_requests): Updated.
4269 2002-07-09 Werner LEMBERG <wl@gnu.org>
4271 * src/roff/troff/input.cc (substring_macro): Renamed to...
4272 (substring_request): This.
4273 (init_input_requests): Updated.
4274 * src/roff/troff/request.h: Updated.
4276 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
4278 * src/roff/grog/grog.sh: Fix typo.
4280 2002-07-08 Werner LEMBERG <wl@gnu.org>
4282 * win32-diffs: Updated.
4284 Handle `papersize' keyword properly in DESC.
4286 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4288 Updated all callers.
4289 * src/libs/libgroff/paper.cc: Add four more paper formats used by
4291 * src/include/paper.h: Updated.
4293 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4294 Other minor C syntax fixes.
4295 (papersize, paperlength, paperwidth): Renamed to `user_*'.
4296 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4298 (lbp_printer::lbp_printer): Pass three arguments.
4299 Set paper dimensions properly.
4300 (make_printer, main): Updated.
4301 (handle_unknown_desc_command): Fix error messages.
4302 (main): Handle papersize keyword in DESC properly.
4304 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4306 (lbp_printer::lbp_printer): Pass an argument.
4307 Set paper_size properly.
4308 (handle_unknown_desc_command): Removed.
4309 (make_printer, main): Updated.
4310 * src/devices/grolj4/grolj4.man: Minor documentation fix.
4312 * man/groff_font.man, NEWS: Updated.
4314 2002-07-07 Werner LEMBERG <wl@gnu.org>
4316 Integrated eqn2graph, contributed by Eric S. Raymond.
4318 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4320 * Makefile.in, NEWS: Updated.
4322 2002-06-04 Werner LEMBERG <wl@gnu.org>
4324 Changing the substring request to make it fit better with other
4325 string manipulation functions in other programming languages:
4326 Index 0 is now the first character in the string, and index -1
4327 indicates the last character. Since this request didn't work
4328 properly anyway in the last release, it doesn't harm too much to
4331 * src/roff/troff/input.cc (substring_macro): Use loops to get
4332 the real string length (ignoring COMPATIBLE_SAVE and
4333 COMPATIBLE_RESTORE) and offsets.
4334 Implement change described above.
4336 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4337 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4339 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4341 2002-06-03 Werner LEMBERG <wl@gnu.org>
4343 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
4344 COMPATIBLE_RESTORE are completely ignored.
4346 * src/roff/troff/input.cc (char_list::set, char_list::get): New
4348 (macro): `length' field renamed to `len'.
4349 Added new field `empty_macro' (1 if macro is empty), to be used
4350 instead of checking `len'.
4351 Updated all callers.
4352 (macro::empty): Updated.
4353 (macro::length, macro::set, macro::get): New functions.
4354 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4356 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4357 COMPATIBLE_RESTORE pairs.
4358 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4359 * src/roff/troff/request.h: Updated.
4361 * doc/groff.texinfo: Document .chop's behaviour better.
4363 2002-06-02 Werner LEMBERG <wl@gnu.org>
4365 * doc/pic.ms: Fix documentation for the addition of positions.
4367 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4369 2002-06-29 Werner LEMBERG <wl@gnu.org>
4371 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4373 * src/roff/troff/input.cc (have_string_arg): New global variable.
4374 (read_mode): New enumeration.
4375 (read_escape_name): Use it. Update all calls.
4376 (read_long_escape_name): Use it. Update all calls.
4377 Set have_string_arg if appropriate.
4378 (get_char_for_escape_name): Add parameter for handling space
4380 (interpolate_string_with_args, decode_string_args): New functions.
4381 (get_copy, token::next): Call it if necessary.
4382 (interpolate_string): Fix error message.
4384 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4387 2002-06-24 Bernd Warken <bwarken@mayn.de>
4389 * man/groff_tmac.man: Updated and extended.
4391 2002-06-24 Werner LEMBERG <wl@gnu.org>
4393 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4395 2002-06-23 Werner LEMBERG <wl@gnu.org>
4397 * doc/pic.ms: Improve documentation of composite block objects.
4399 2002-06-22 Werner LEMBERG <wl@gnu.org>
4401 * src/roff/troff/input.cc (init_registers): Add three registers
4402 `seconds', `minutes', and `hours' to hold the current time.
4404 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4407 2002-06-20 Werner LEMBERG <wl@gnu.org>
4409 Make \X accept both `\ ' and `\~', converting them to single space
4412 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4413 (token::unstretchable_space): New inline function.
4414 * src/roff/troff/input.cc (token::next, token::delimiter,
4415 token::description, token::add_to_node_list, token::process): Handle
4416 TOKEN_UNSTRETCHABLE_NODE.
4417 (encode_char): Handle tok.stretchable_space and
4418 tok.unstretchable_space.
4420 * NEWS, doc/groff.texinfo: Document it..
4422 2002-06-19 Werner LEMBERG <wl@gnu.org>
4424 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4426 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4427 keyword to enable/disable SGR output.
4428 (tty_printer::change_fill_color): New function.
4429 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4431 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4434 2002-06-18 Werner LEMBERG <wl@gnu.org>
4436 Add a `color' request and a `.color' register to control usage of
4439 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4440 (color_flag): This (which is the inverse).
4441 (activate_color): New function.
4442 (main, init_input_requests): Updated.
4443 * src/roff/troff/troff.h, src/roff/troff/node.cc
4444 (troff_output_file::fill_color, troff_output_file::glyph_color):
4447 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4448 Document the changes.
4450 2002-06-17 Colin Watson <cjwatson@debian.org>
4452 Circumvent bug in autoconf 2.53 regarding top_builddir.
4454 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4455 * Makefile.in, doc/Makefile.in:
4456 s/@top_builddir@/@groff_top_builddir@/.
4457 * configure: Regenerated (with autoconf 2.53).
4459 2002-06-17 Werner LEMBERG <wl@gnu.org>
4461 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4462 `paperwidth' and `paperlength' for the `papersize' keyword.
4464 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
4466 * src/devices/grops/grops.man: Add info about Type 42 fonts.
4468 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
4470 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4471 html_printer::do_linelength, html_printer::do_pageoffset,
4472 html_printer::do_indentation, html_printer::do_tempindent,
4473 html_printer::do_break, html_printer::begin_page): Clear indented
4475 * tmac/html.tmac: Disable hyphenation.
4477 2002-06-15 Werner LEMBERG <wl@gnu.org>
4479 Don't produce HTML files if utility programs are missing.
4481 * Makefile.in (make_html, make_install_html): New variables.
4482 (MDEFINES): Updated.
4484 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4486 * configure.ac: Use it.
4487 * configure: Regenerated.
4489 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4490 (HTMLEXAMPLESFILES): This new variable.
4491 (EXAMPLESIMAGEFILES): Renamed to...
4492 (HTMLEXAMPLEIMAGEFILES): This.
4493 (CLEANADD): Add HTMLEXAMPLEFILES.
4494 (all): Use `make_html'.
4496 (install_data): Use `make_install_html'.
4497 Move html stuff to...
4498 (install_html): This new target.
4499 (uninstall_sub): Updated.
4501 2002-06-14 Bernd Warken <bwarken@mayn.de>
4503 * src/roff/grog/Makefile.sub (grog): Renamed to...
4505 (grog): New rule to always install grog.sh as grog.
4507 2002-06-08 Bernd Warken <bwarken@mayn.de>
4509 * src/roff/grog/grog.pl: Fix typo.
4511 2002-06-07 Werner LEMBERG <wl@gnu.org>
4513 * doc/groff.texinfo: Add more info on .tr arguments.
4515 2002-06-05 Werner LEMBERG <wl@gnu.org>
4517 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4519 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4520 * configure: Regenerated.
4522 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4524 * src/roff/troff/symbol.cc (table_sizes): Add more values.
4526 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4528 2002-06-04 Werner LEMBERG <wl@gnu.org>
4530 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4531 is not initialized at the time we need it in case `--prefix' hasn't
4532 been set. Check for `ac_default_prefix' also.
4533 Test for `papersize' keyword also and generalize allowed whitespace.
4534 * configure: Regenerated.
4536 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4539 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4541 (src_version, src_revision): New variables to avoid overwriting
4542 from parent make process.
4543 (version.cc): Updated.
4545 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4546 (linebuf, linebufsize): New global variables.
4547 (sys_fatal): Use `fatal' to abort properly.
4548 (get_line): New function.
4549 (get_resolution): Use it.
4550 Improve error messages.
4551 (get_papersize): Check `papersize' also.
4553 Improve error messages.
4555 2002-06-03 Werner LEMBERG <wl@gnu.org>
4557 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4558 should be removed only if builddir is not srcdir.
4559 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4560 (clean): Depend on `mostlyclean'.
4561 (distclean): Depend on `clean'.
4562 (realclean, extraclean): Depend on `distclean'.
4563 (.y.cc, .y.o): Simplified. The output files are no longer written
4564 to srcdir but to builddir.
4565 * Makefile.in (MDEFINES): Add `version' and `revision'.
4566 (uninstall_dirs): Fix order of directories.
4567 * doc/Makefile.sub (version, revision): Removed.
4568 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4569 Added `HTMLDOCFILES'.
4570 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4571 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4572 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4575 * doc/texinfo.tex (\authortt): New macro.
4576 (\shortcontt): Define.
4577 (\titlepage): Set \tt to \authortt while defining \authorfont.
4578 (\appendixbox): New macro.
4579 (\chapmacro, \appendixentry): Use \appendixbox to get even
4580 indentation for letters.
4581 (\summarycontents): Set \tt.
4582 (\internalpagesize): Add two arguments for real paper width and
4583 height as needed by pdfTeX.
4584 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4586 (\tempdima, \tempdimb): New temporary dimensions.
4587 (\pagesizesyyy): Updated.
4589 2002-06-02 Werner LEMBERG <wl@gnu.org>
4591 Adding a new keyword `papersize' to the DESC file format (similar
4592 but not completely identical to grolbp's extension). grops now has
4593 a -p command line option to override `papersize'. Finally, grolbp
4594 has been adapted to the new syntax.
4596 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
4597 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4599 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4600 (CCSRCS): Add `paper.cc'.
4602 * src/include/font.h (font): Add `papersize' element.
4603 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4604 (font::scan_papersize): New function.
4605 (font::load_desc): Use it for handling `papersize' keyword.
4606 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4608 * src/devices/grops/ps.cc: Include paper.h.
4609 (user_paper_length): New global variable.
4610 (ps_printer): Use paper length as initializer.
4611 (make_printer): Updated.
4612 (main): Handle new `-p' option.
4613 * src/devices/grops/grops.man: Updated.
4615 * src/devices/grolbp/lbp.cc: Include paper.h.
4616 s/papersizes/lbp_papersizes/.
4617 (set_papersize): Use new `papersizes' array.
4618 (handle_unknown_desc_command): Don't handle `papersize'.
4619 (main): Use `font::scan_papersize' for handling `-p' option.
4620 * src/devices/grolbp/grolbp.man: Updated.
4622 * man/groff_font.man: Document `papersize'.
4625 2002-05-30 Werner LEMBERG <wl@gnu.org>
4627 * src/devices/grops/TODO: Updated.
4628 * src/devices/grops/grops.man: More info on paper formats.
4629 * man/groff_font.man: Document `paperheight' and `paperwidth'.
4631 2002-05-29 Werner LEMBERG <wl@gnu.org>
4633 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4634 to list only if srcdir != currdir.
4635 (distfiles): New target.
4637 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4638 (NOMAKEDIRS): New variable.
4641 2002-05-26 Werner LEMBERG <wl@gnu.org>
4643 Add .output request, similar to \! at top-level.
4645 * src/roff/troff/input.cc (transparent): Remove unused declaration.
4646 (output_request): New function.
4647 (init_input_requests): Add it.
4649 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4652 * Makefile.in (MDEFINES): Add INSTALL_INFO.
4653 (prepare_examples): Fix typo.
4654 * doc/groff.texinfo (@direntry): Fix it.
4656 2002-05-25 Werner LEMBERG <wl@gnu.org>
4658 Including the doc subdir into groff's Makefile system.
4660 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4661 * configure.ac: Use it.
4662 Generate `doc/Makefile'.
4663 * configure: Regenerated.
4665 * Makefile.in (infodir, INSTALL_INFO): New variables.
4666 (MDEFINES, uninstall_dirs): Updated.
4667 (OTHERDIRS): Add `doc'.
4668 * Makefile.comm (CLEANDIRADD): New variable.
4669 (mostlyclean): Use it.
4671 * doc/Makefile.sub, doc/Makefile.in: New files.
4672 * doc/Makefile: Removed.
4674 * NEWS, INSTALL: Updated.
4676 2002-05-24 Werner LEMBERG <wl@gnu.org>
4678 * doc/homepage.ms: Renamed to ...
4679 * doc/webpage.ms: This.
4682 2002-05-23 Werner LEMBERG <wl@gnu.org>
4684 Integrating the `mom' macro package, contributed by Peter Schaffter
4687 * contrib/mom/*: New subdirectory tree.
4688 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4689 be used for documentation files.
4690 (MDEFINES, uninstall_dirs): Use them.
4691 (OTHERDIRS): Add contrib/mom.
4692 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4694 * MANIFEST, NEWS: Updated.
4696 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
4698 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4699 if at outer level; at start-up we are at outer level.
4701 * src/roff/troff/input.cc (do_suppress): Implement it.
4704 Add option -p to show progress information.
4705 pre-grohtml will now render only one page at a time, reducing the
4706 size of needed disk resources enormously.
4708 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4709 (imagePageName): New global variable.
4710 (psPageName, show_progress, currentPageNo): New global variables.
4711 (html_system): Close saved stderr and stdout handles.
4712 (write_end_image): Accept a parameter to control \O escape.
4713 (write_start_image): Adapted to new \O meaning.
4714 (char_buffer::write_upto_newline): Updated.
4715 (createAllPages): Replaced with...
4716 (createPage): This new function to create a single page for images.
4717 It uses `psselect' from the psutils package.
4718 (removeAllPages): Removed.
4719 (createImage): Updated.
4720 Handle progress display.
4721 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4722 (scanArguments): Add option -p.
4723 (makeTempFiles): Updated to create temp files for psPageName and
4725 (removeTempFiles): Removed.
4728 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4729 html_printer::write_header): Append `\0' to `buffer'.
4730 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4732 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4733 Handle `text_emitted'.
4734 (html_text::table_is_void): Slightly rewritten.
4735 (stop): New external symbol.
4736 (html_text::do_push) [DEBUGGING]: Use it and simplify.
4737 (html_text::shutdown): Call `dump_stack'.
4738 (html_text::do_space): Rewritten.
4739 * src/devices/grohtml/grohtml.man: Document -p and the need of
4742 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4744 Call \O[0] if `ps4html' is active.
4745 * tmac/s.tmac (@EQ, @EN): Handle html better.
4747 * tmac/html.tmac: Don't use black for background colour.
4749 * src/roff/troff/node.cc: Include `div.h'.
4750 (troff_output_file::really_print_line): Don't use `is_on'.
4751 (troff_output_file::word_marker, troff_output_file::flush_tbuf
4752 troff_output_file::check_charinfo,
4753 troff_output_file::put_char_width, troff_output_file::put_char,
4754 troff_output_file::determine_line_limits, troff_output_file::draw,
4755 real_output_file::begin_page, glyph_color_node::tprintf,
4756 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4758 (troff_output_file::really_on): Call `do_motion'.
4759 (suppress_node::tprint): Use `get_page_number' instead of `%'
4761 Call `reset_output_registers' conditionally on `is_on'.
4763 * doc/groff.texinfo: Document new syntax of \O.
4764 * NEWS, man/groff_diff.man: Updated.
4766 2002-05-22 Werner LEMBERG <wl@gnu.org>
4768 * MORE.STUFF: Add info about David Frey's deroff implementation.
4771 2002-05-16 Werner LEMBERG <wl@gnu.org>
4773 Pic's `with' attribute now accepts positions.
4775 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4776 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4778 (object_spec): Add rule for `WITH' and `position'.
4779 (relative_path): Give `corner' the precedence of `CHOP'.
4780 * src/preproc/pic/object.h (path): New members `pos' and
4782 * src/preproc/pic/object.cc: Updated initializers of `path'.
4783 (path::follow): Handle `is_position'.
4785 * doc/pic.ms: Completely updated grammar description.
4786 Many typographical improvements.
4788 2002-05-15 Werner LEMBERG <wl@gnu.org>
4790 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4791 code of x in range 0-127) also.
4792 * doc/groff.texinfo, man/groff_diff.man: Updated.
4794 Added keywords `north', `south', `east', and `west' for corners
4797 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4799 (yylex): Handle them.
4800 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4801 (corner): Handle them.
4803 2002-05-14 Werner LEMBERG <wl@gnu.org>
4805 * src/devices/grops/grops.man: Clarify handling of `download' file.
4807 2002-05-11 Werner LEMBERG <wl@gnu.org>
4809 Adding `warnscale' and `spreadwarn' requests, based on a patch from
4810 Jeffrey Friedl <jfriedl@yahoo.com>.
4812 * src/roff/troff/input.cc (spread_limit, warn_scale,
4813 warn_scaling_indicator): New global variables.
4814 (warnscale_request, spreadwarn_requests): New functions.
4815 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4816 (init_input_requests): Updated.
4817 (error_type): Add `OUTPUT_WARNING'.
4818 (do_error): Handle it.
4819 (output_warning): New warning function which shows output location.
4820 * src/roff/troff/env.h (spread_limit): New external variable.
4821 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4823 (distribute_space): Emit warning if added space is larger than
4825 (environment::possibly_break_line): Emit warning if a line can't
4826 be adjusted on both sides.
4828 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4830 2002-05-08 Werner LEMBERG <wl@gnu.org>
4832 * src/roff/troff/node.cc (special_node::special_node): Use
4833 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
4834 \X''\% crashes, for example.
4836 * doc/groff.texinfo: Document \! and \? used at top-level.
4838 2002-05-06 Werner LEMBERG <wl@gnu.org>
4840 * src/preproc/pic/pic.man: Fix some keyword syntax.
4841 Other minor typographical fixes.
4843 * src/roff/groff/groff.man: Fix typos.
4845 2002-05-04 Werner LEMBERG <wl@gnu.org>
4847 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4848 (ShortOpt[]): This to avoid problems with refer.
4850 * doc/pic.ms: Fix typo.
4851 Fix pic grammar description.
4853 * tmac/an-old.tmac (ne): Use de1, not de.
4855 2002-05-03 Werner LEMBERG <wl@gnu.org>
4857 * doc/groff.texinfo: Finished separation of glyphs and characters.
4858 Don't use the string `Appendix' for appendix headers (both in
4859 the text and the table of contents).
4860 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4863 Use registers LL and LT (similar to -ms) for controlling the
4864 length of title and line, respectively, in the -man and -mdoc
4867 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4868 (doc-setup-page-layout): Use \n[LL] and \n[LT].
4869 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4871 (an-header, an-p-footer): Use \n[LT].
4872 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4873 doc/groff.texinfo: Document it.
4875 2002-05-02 Werner LEMBERG <wl@gnu.org>
4877 * doc/fdl.texi: New file.
4878 * doc/groff.texinfo: Include it.
4879 Define and use @copying.
4880 Starting with separating glyph, symbol, and character.
4882 2002-04-27 Werner LEMBERG <wl@gnu.org>
4884 * Makefile.in (EXEEXT): Set it.
4885 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4888 * src/include/nonposix.h: Define GS_NAME.
4889 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4891 Some preliminary changes for EMX support under OS/2.
4893 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4894 __EMX__ similar to __MSDOS__.
4895 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4897 2002-04-25 Werner LEMBERG <wl@gnu.org>
4899 * doc/groff.texinfo: Integrated groff_out.man.
4902 2002-04-23 Werner LEMBERG <wl@gnu.org>
4904 * man/groff_out.man: Minor fixes.
4906 2002-04-23 Werner LEMBERG <wl@gnu.org>
4908 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4909 correct page references.
4910 Fixed many index entries.
4912 2002-04-23 Bernd Warken <bwarken@mayn.de>
4914 * man/roff.man: Enlarged.
4916 2002-04-22 Werner LEMBERG <wl@gnu.org>
4918 * doc/groff.texinfo: More examples, other fixes.
4920 2002-04-20 Werner LEMBERG <wl@gnu.org>
4922 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4923 will now form a chain, e.g.
4932 This is for compatibility with plan 9's troff.
4934 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4938 * doc/groff.texinfo: Add documentation of remaining requests and
4941 2002-04-19 Werner LEMBERG <wl@gnu.org>
4943 * doc/groff.texinfo: Add documentation of remaining escapes.
4945 * font/devdvi/generate/tc.map: Remove entry for `sr'.
4946 * font/devdvi/*TC: Regenerated.
4948 2002-04-18 Werner LEMBERG <wl@gnu.org>
4950 * src/roff/troff/input.cc (token::next): Make \H behave consistently
4951 if not in compatibility mode, i.e., increment relative to the
4953 * doc/groff.texinfo: Updated accordingly.
4955 2002-04-17 Werner LEMBERG <wl@gnu.org>
4957 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4959 2002-04-16 Bernd Warken <bwarken@mayn.de>
4961 * src/roff/groff/groff.man: Improve documentation of -P option.
4964 2002-04-15 Werner LEMBERG <wl@gnu.org>
4966 Add new escape \F to switch font family.
4968 * src/roff/troff/input.cc (token::next): Handle \F.
4969 * src/roff/troff/env.cc (environment::set_family): Handle
4971 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4974 2002-04-14 Werner LEMBERG <wl@gnu.org>
4976 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4979 2002-04-13 Werner LEMBERG <wl@gnu.org>
4981 Implement \f[] as an alternative to \fP. Change \mP and \MP to
4982 \m[] and \M[], respectively.
4984 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4985 (symbol::symbol): Handle NULL string and empty string differently.
4986 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4987 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4988 Add optional parameter.
4989 Updated calling functions.
4990 (get_copy, do_glyph_color, do_fill_color, token::next): Use
4992 * src/roff/troff/env.cc (environment::set_font): Ditto.
4994 * src/preproc/pic/troff.cc (troff_output::set_fill,
4995 troff_output::reset_color: Updated.
4997 * tmac/www.tmac: Updated.
4999 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5000 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5003 * tmac/Xps.tmac: Remove some redundant code.
5005 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5006 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5007 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5010 2002-04-13 Bernd Warken <bwarken@mayn.de>
5012 * src/include/printer.h, src/libs/libdriver/printer.cc
5013 (printer::change_fill_color): New member function.
5014 * src/libs/libdriver/input.cc (parse_D_command): Use it.
5016 2002-04-12 Werner LEMBERG <wl@gnu.org>
5018 * doc/groff.texinfo: Completed pass on gtroff reference.
5020 2002-04-11 Werner LEMBERG <wl@gnu.org>
5022 * doc/groff.texinfo: More fixes.
5024 2002-04-11 Bernd Warken <bwarken@mayn.de>
5026 * src/include/color.h: Decorate with `const'.
5029 * src/libs/libgroff.color.cc: Decorate with `const'.
5031 (color::color): Initialize members.
5032 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5033 command according to the documentation.
5035 * man/groff_out.man: Updated.
5038 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
5040 * src/preproc/html/pre-html.cc (write_start_image): Remove
5042 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5044 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5045 \C'hy' caused an assertion failure.
5047 * src/roff/troff/env.cc (environment::environment): Initialize
5049 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5051 2002-04-10 Werner LEMBERG <wl@gnu.org>
5053 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5054 Document pvs request and .pvs register.
5056 2002-04-09 Werner LEMBERG <wl@gnu.org>
5058 * doc/groff.texinfo: Improve and fix documentation of diversions
5061 2002-04-08 Werner LEMBERG <wl@gnu.org>
5063 * doc/groff.texinfo: Fix documentation of drawing functions.
5066 2002-04-07 Werner LEMBERG <wl@gnu.org>
5068 * doc/groff.texinfo: Better documentation of double quotes as
5072 2002-04-06 Werner LEMBERG <wl@gnu.org>
5074 * man/groff_font.man: Document names of special characters better.
5075 * doc/groff.texinfo: Minor improvements.
5077 * tmac/lbp.tmac: Load latin1.tmac.
5078 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5080 * font/devX*/*: Regenerated (all chars > 0x80 removed).
5082 2002-04-05 Werner LEMBERG <wl@gnu.org>
5084 * tmac/tty.tmac: Don't use shc request.
5085 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5088 * man/groff_diff.man: Minor fixes.
5090 * font/devlbp/*: Remove all `charXXX' entities.
5092 * src/libs/libgroff/font.cc (font::~font): Deallocate
5093 `special_device_coding'.
5094 (font::load): Use `new' for allocating `special_device_coding'.
5095 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5096 Removed unused member.
5098 2002-04-05 Werner LEMBERG <wl@gnu.org>
5100 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5101 (resource_manager::do_begin_binary,
5102 resource_manager::do_begin_data): Use it.
5104 * doc/texinfo.tex: Updated to version 4.2.
5106 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5107 (token::zero_width_break): New inline function.
5108 * src/roff/troff/input.cc (token::next): Use it.
5109 (token::description): Updated.
5110 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5111 (token::add_to_node_list, token::process): Use it.
5112 * NEWS, doc/groff.texinfo: Updated.
5114 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5115 * tmac/tty.tmac: Add missing backslash.
5117 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
5119 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5120 `.ps' register instead of `.s' to handle fractional point sizes.
5121 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5122 limit_box::output): Ditto.
5123 * src/preproc/eqn/other.cc (size_box::compute_metrics,
5124 size_box::output): Ditto.
5125 * src/preproc/eqn/over.cc (over_box::compute_metrics,
5126 over_box::output): Ditto.
5127 * src/preproc/eqn/script.cc (script_box::compute_metrics,
5128 script_box::output): Ditto.
5129 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5130 sqrt_box::output): Ditto.
5132 2002-04-03 Michael Selway <mas@ssl.co.uk>
5134 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5137 2002-04-03 Werner LEMBERG <wl@gnu.org>
5139 * doc/homepage.ms: Reduce title size.
5140 * doc/groff.texinfo: Fix documentation of .t register.
5141 Fix handling of colon.
5144 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5145 only if page length is positive to avoid a loop.
5147 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5150 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
5152 * src/include/nonposix.h, src/roff/groff/pipeline.c:
5153 s/__CYGWIN32__/__CYGWIN__/.
5155 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
5157 * doc/gnu.xpm: New image contributed by Emily Mulley.
5158 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5159 (homepage.html): Be dependent on gnu.eps.
5160 * doc/homepage.ms: Updated to new image.
5162 * src/devices/grohtml/post-html.cc (html_printer): New member
5164 (html_printer::flush_sbuf, html_printer::set_char): Set it.
5165 (html_printer::sbuf_continuation): Use it.
5167 2002-03-28 Werner LEMBERG <wl@gnu.org>
5169 * src/libs/libgroff/getopt.c: Updated to latest version.
5171 * tmac/README: More on hyphen.tex license.
5173 2002-03-26 Larry Kollar <kollar@alltel.net>
5175 * doc/groff.texinfo: Add documentation of most missing requests.
5177 2002-03-25 Werner LEMBERG <wl@gnu.org>
5179 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5180 of `+-', `mu', and `di', respectively.
5182 * font/devascii/R.proto, font/devutf8/R.proto,
5183 font/devlatin1/R.proto, font/devhtml/R.proto,
5184 font/devcp1047/R.proto, font/devlpb/*: Add them.
5185 * font/devps/generate/textmap: Ditto.
5186 * font/devps/*: Regenerated.
5187 * font/devlj4/generate/text.map: Add them.
5188 * font/devlj4/*: Regenerated.
5189 * font/devdvi/generate/tc.map: Use them.
5190 * font/devdvi/generate/texsy.map: Add them.
5191 * font/devdvi/*: Regenerated.
5192 * font/devX*/*: Regenerated.
5194 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5195 tmac/tty-char.tmac: Updated.
5197 * NEWS, man/groff_char.man: Updated.
5199 2002-03-24 Werner LEMBERG <wl@gnu.org>
5201 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5202 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5203 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5204 we use `.fchar' in dvi.tmac.
5205 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5206 * tmac/Xps.tmac: Simplify some char definitions.
5207 Add definition for \[f/].
5208 * man/groff_char.man: Updated for new X.tmac.
5210 * tmac/README: New file.
5212 2002-03-23 Phil Lobbes <phil@perkpartners.com>
5214 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5215 internal .y.o rule took precendence over the .y.cc rule, compiling
5216 the yacc files with gcc instead of g++.
5218 2002-03-23 Werner LEMBERG <wl@gnu.org>
5220 * tmac/dvi.tmac: Add replacement font for `CB'.
5222 * tmac/doc.tmac: s/request/macro/ in messages.
5223 (doc-generic-macro): Improve error message.
5224 * tmac/groff_mdoc.man: Minor improvements.
5226 2002-03-22 Werner LEMBERG <wl@gnu.org>
5228 * doc/groff.texinfo: Document possible conflict between `tr' and
5231 2002-03-21 Werner LEMBERG <wl@gnu.org>
5233 Improve handling of hyphenation patterns. It is now possible to
5234 use most of TeX's pattern files unmodified. To make the process
5235 more flexible, a new request `hpfcode' has been added which
5236 provides a character code mapping for the `hpf' request. See
5237 comment before hpf_getc() for more details.
5239 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5241 (read_patterns_file): Additional parameter for exception dictionary.
5242 Extended to recognize \pattern, \hyphenation, and \endinput.
5243 (do_hyphenation_patterns_file): Updated.
5244 * src/roff/troff/env.h (hpf_code_table): New extern.
5246 * src/roff/troff/input.cc (hpf_code_table): New array.
5247 (init_hpf_code_table, hyphenation_patterns_file_code): New
5249 (hyphenation_code): Handle translation from `trin' correctly.
5250 (main, init_input_requests): Updated.
5251 (charinfo::set_translation): Handle hyphenation code also.
5253 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5256 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5257 char' is used for offsets in hyphenation exceptions.
5259 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5261 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5263 2002-03-20 Larry Kollar <kollar@alltel.net>
5265 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5268 2002-03-18 Werner LEMBERG <wl@gnu.org>
5270 * tmac/html.tmac: Fix serious typo.
5272 2002-03-17 Larry Kollar <kollar@alltel.net>
5274 * doc/groff.texinfo: Add documentation for `writec' request.
5276 2002-03-17 Werner LEMBERG <wl@gnu.org>
5278 Added request `hpfa' to append hyphenation patterns.
5280 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5282 (hyphenation_patterns_file): Renamed to...
5283 (do_hyphenation_patterns_file): This.
5284 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5286 (init_hyphen_requests): Updated.
5287 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5289 2002-03-16 Werner LEMBERG <wl@gnu.org>
5291 Added request `writec' in analogy to `tmc'.
5293 * src/roff/troff/input.cc (write_request): Renamed to...
5294 (do_write_request): This.
5295 Added one parameter.
5296 (write_request, write_request_continue): New functions.
5297 (init_input_requests): Updated.
5298 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5300 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5302 * NEWS: Document it.
5304 2002-03-15 Werner LEMBERG <wl@gnu.org>
5306 * man/groff.man: Add writem request.
5308 Add request `trin' (translate input) to make `.asciify' work
5309 correctly. This is necessary since `charXXX' entity names are no
5310 longer hardcoded in font definition files.
5312 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5313 `translate_input' members.
5314 (charinfo::set_asciify_code, charinfo::get_asciify_code,
5315 charinfo::set_translation_input): New methods.
5316 (charinfo::set_translation): Add third argument.
5317 * src/roff/troff/input.cc (charinfo:set_translation): Set
5319 (do_translate): Add second argument.
5320 (translate_input): New function.
5321 (init_input_requests): Updated.
5322 * src/roff/troff/node.cc (glyph_node::asciify,
5323 composite_node::asciify): Use `get_asciify_code'.
5325 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5327 * NEWS, man/groff.man, man/groff_diff.man: Updated.
5329 2002-03-14 Larry Kollar <kollar@alltel.net>
5331 * doc/groff.texinfo: Improve documentation of .RS and .RE.
5333 2002-03-14 Werner LEMBERG <wl@gnu.org>
5335 Add a new request `sizes' similar to the `sizes' command in DESC
5338 * src/roff/troff/env.cc (override_sizes): New function.
5339 (init_env_requests): Use it.
5340 * src/roff/troff/token.h: Export `read_string'.
5341 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5343 2002-03-12 Werner LEMBERG <wl@gnu.org>
5345 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5347 2002-03-10 Werner LEMBERG <wl@gnu.org>
5349 * tmac/pspic.tmac: Add support for -Tdvi.
5350 * tmac/dvi.tmac: Include pspic.tmac.
5351 * src/devices/grodvi/grodvi.man: Document it.
5354 * font/devlj4/generate/Makefile: Fix URL of metric files.
5356 2002-03-09 Werner LEMBERG <wl@gnu.org>
5358 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5360 2002-03-09 Larry Kollar <kollar@alltel.net>
5362 * tmac/groff_ms.man: Add documentation for RS and RE macros.
5364 2002-03-08 Werner LEMBERG <wl@gnu.org>
5366 * doc/groff.texinfo: Fixes for texinfo 4.1.
5368 2002-03-07 Werner LEMBERG <wl@gnu.org>
5370 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5372 Handle CYGWIN properly.
5374 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
5376 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5377 * tmac/lbp.tmac: Add some font translations.
5379 2002-03-02 Werner LEMBERG <wl@gnu.org>
5381 * font/devcp1047/R.proto, font/devlatin1/R.proto,
5382 font/devhtml/R.proto: Remove `charXXX' entries.
5383 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5386 * font/devlj4/generate/text.map: Remove `charXXX' entries.
5387 * font/devlj4/*: Regenerated all font definition files.
5388 * tmac/lj4.tmac: Load latin1.tmac.
5390 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5391 from 2000-06-17: LJ4 metric files are *not* text files.
5393 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5394 register to test for EBCDIC.
5396 2002-03-01 Werner LEMBERG <wl@gnu.org>
5398 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5399 files (as grops already does).
5400 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5402 * src/devices/grops/grops.man: Document comment lines in encoding
5405 * tmac/cp1047.tmac: New file.
5406 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5407 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5408 * tmac/Makefile.sub (NORMALFILES): Updated.
5410 * tmac/ec.tmac: Don't load latin1.tmac again.
5412 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5413 font/devps/generate/dingbats.map,
5414 font/devps/generate/dingbats.rmap, font/devps/text.enc,
5415 font/devps/generate/Makefile (symbolmap): Add header comment.
5416 * font/devps/generate/textmap: Ditto.
5417 Remove `charXXX' entries.
5418 * font/devps/symbolmap: Regenerated.
5419 * font/devps/*: Regenerated all font definition files.
5421 2002-02-28 Werner LEMBERG <wl@gnu.org>
5423 Add color support to grodvi (for drawing colors are currently
5424 translated to gray values).
5426 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5427 (dvi_printer): Add `cur_color' member.
5428 (dvi_printer::set_color): New function.
5429 (draw_dvi_printer): Remove `fill'.
5430 (draw_dvi_printer::fill_next): Pass environment as parameter.
5431 Update code for new color support translated to gray.
5432 (dvi_printer::set_char): Updated.
5433 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5434 changes crossing the page border.
5435 (dvi_printer::draw): Updated.
5436 Remove cases `f' and `F'.
5437 * tmac/dvi.tmac: Add color definitions.
5438 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5440 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5443 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5444 versions of autoconf.
5445 * configure: Updated.
5447 * doc/homepage.ms: Use `.blm'.
5448 * tmac/www.tmac (www-depth): New auxiliary variable.
5449 (www-pop-level): Don't issue HTML tag.
5450 (ULS, ULE, LI): Use absolute indentation.
5452 * src/devices/grops/ps.cc (ps_printer::begin_page,
5453 ps_printer::end_page): Switch forth and back to default color while
5454 starting a new page.
5456 2002-02-27 Werner LEMBERG <wl@gnu.org>
5458 Add EC and TC fonts to devdvi.
5460 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5461 * font/devdvi/generate/cork.map: Renamed to...
5462 * font/devdvi/generate/ec.map: This.
5463 Remove entry for `aq'.
5464 * font/devdvi/generate/tc.map: New file.
5465 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5468 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5469 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5470 * tmac/ec.tmac: New file.
5471 * tmac/Makefile.sub (NORMALFILES): Updated.
5472 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5473 * man/groff_char.man: Check `ECFONTS' register.
5475 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5477 2002-02-26 Werner LEMBERG <wl@gnu.org>
5479 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5480 * font/devdvi/generate/cork.map: Add 'y and 'Y.
5481 * font/devdvi/*: Updated.
5482 * tmac/dvi.tmac: Formatting.
5484 Add font `HBI' for the dvi output.
5485 Add support for font families `T' and `H'.
5487 * font/devdvi/HBI: New file.
5488 * font/devdvi/B: Renamed to ...
5489 * font/devdvi/TB: This.
5490 * font/devdvi/BI: Renamed to ...
5491 * font/devdvi/TBI: This.
5492 * font/devdvi/I: Renamed to ...
5493 * font/devdvi/TI: This.
5494 * font/devdvi/R: Renamed to ...
5495 * font/devdvi/TR: This.
5496 * font/devdvi/H: Renamed to ...
5497 * font/devdvi/HR: This.
5498 * font/devdvi/Makefile.sub (DEVFILES): Updated.
5499 * font/devdvi/generate/Makefile (HBI): New rule.
5501 (R, I, B, BI, H): Renamed to ...
5502 (TR, TI, TB, TBI, HR): This, respectively.
5504 * NEWS, src/devices/grodvi/grodvi.man: Updated.
5505 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5506 Add `styles' and `family' keywords.
5507 * tmac/dvi.tmac: Alias `H' to `HR'.
5508 Add some fspecial requests for italic fonts.
5509 Add TR and TI as special.
5510 Add support for `_' with font CWI.
5512 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5513 operator `:'. Until now, the expression `0:1' would return 2
5516 2002-02-25 Werner LEMBERG <wl@gnu.org>
5518 * man/groff_char.man: Added some missing PS glyph names (from the
5520 * font/devps/generate/textmap, font/devps/symbolmap: Add
5523 * doc/groff.texinfo: Minor additions and fixes.
5524 * man/groff_diff.man: Remove documentation of fp request. This
5525 is already covered in the original troff manual.
5526 Updated to be consistent with other doc files.
5529 2002-02-24 Werner LEMBERG <wl@gnu.org>
5531 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5533 Define new variable OTHERDEVDIRS (containing `font/devlj4
5534 font/devlbp' if not EBCDIC).
5535 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5536 (OTHERDEVDIRS): New variable.
5537 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5538 * configure: Regenerated.
5540 * NEWS, src/devices/grotty/grotty.man: Updated.
5542 2002-02-23 Werner LEMBERG <wl@gnu.org>
5544 * src/roff/troff/input.cc (do_overstrike, do_bracket,
5545 get_line_arg): Honour input level.
5547 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5549 * font/*/*: Implement it in all font files.
5550 * font/devps/generate/textmap, font/devps/generate/symbolchars,
5551 * font/devps/symbolmap: Updated.
5552 * font/devlj4/generate/text.map: Updated.
5553 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5554 * font/devdvi/generate/texmi.map: Updated.
5556 * font/devutf8/R.proto: Remove all `charXXX' entries.
5557 * font/devutf8/NOTES: Updated.
5559 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5562 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5564 * NEWS, man/groff_char.man: Updated.
5566 2002-02-21 Phil Lobbes <phil@perkpartners.com>
5568 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5570 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5572 * src/roff/grog/grog.pl: Fix computation of $refer.
5574 2002-02-19 Werner LEMBERG <wl@gnu.org>
5576 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5577 `snprintf' and `vsnprintf'.
5579 * src/include/htmlindicate.h: Renamed to...
5580 * src/include/htmlhint.h: This.
5581 * src/include/Makefile.sub: Updated.
5582 * src/preproc/eqn/main.cc: Updated.
5584 2002-02-18 Werner LEMBERG <wl@gnu.org>
5586 * man/roff.man, man/groff_out.man, man/groff.man,
5587 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5588 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5590 * win32-diffs: Updated.
5592 2002-02-17 Werner LEMBERG <wl@gnu.org>
5594 * doc/Makefile (clean): Add *.eps.
5595 (MEMACROS): Removed.
5596 (TFLAG): New variable.
5599 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5601 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5603 * tmac/www.tmac: Use dummy diversion while resetting and disabling
5605 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5607 * src/roff/troff/troff.man: Fix order of parameter description.
5611 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
5613 Simplify image handling for grohtml.
5616 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5618 (html_text::dump_stack): Don't emit newline while debugging.
5619 (html_text::do_push) [DEBUGGING]: Print more info.
5620 (html_text::check_emit_text): Fix handling of <p>.
5621 * src/devices/grohtml/html.h: Updated.
5622 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5623 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
5624 send its data to stderr also.
5626 (simple_output::space_or_newline) [DEBUGGING]: Removed.
5627 * src/devices/grohtml/post-html.cc (html_printer::do_links,
5628 html_printer::html_printer): Remove `DEBUGGING' conditionals.
5630 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5632 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5633 is_inline_image): Removed.
5634 (html_begin_suppress, html_end_suppress): Don't take a parameter.
5635 (graphic_start, graphic_end): Removed.
5636 * src/include/htmlindicate.h: Updated.
5637 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5638 (macroset_template): New global variable.
5639 (makeFileName): Use `macroset_template'.
5640 (write_end_image): Don't take a parameter.
5642 (write_start_image: Don't emit newline.
5643 (char_buffer::write_upto_newline): Updated.
5644 (char_buffer::skip_to_newline): Renamed to ...
5645 (char_buffer::skip_until_newline): This.
5647 (char_buffer::write_file_troff, char_buffer::write_file_html):
5649 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5650 (removeAllPages): Remove `DEBUGGING' conditionals.
5651 (addRegDef, dump_args): New functions.
5652 (char_buffer::do_html, char_buffer::do_image): Handle
5653 `www-image-template' command line variable.
5654 Add more debugging code.
5655 (addps4html): Removed.
5656 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5658 * src/preproc/eqn/main.cc: Include `ctype.h'.
5659 (suppress_html): Removed.
5661 (inline_equation): Use `html_begin_suppress' and
5662 `html_end_suppress'.
5663 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5664 (troff_output::start_picture, troff_output::finish_picture):
5666 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5667 (process_input_file): Updated.
5669 * src/roff/troff/div.cc (page_number): Set page number only if the
5670 `ps4html' register isn't defined.
5671 * src/roff/troff/input.cc (image_no): New external variable.
5672 (do_suppress): Use it.
5673 * src/roff/troff/node.h (suppress_node::image_id): New member.
5674 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5675 (suppress_node::suppress_node): Initialize `image_id' member.
5676 (suppress_node::same): Handle `image_id' also.
5677 (suppress_node::copy): Updated.
5678 (last_image_id): New global variable.
5679 (suppress_node::tprint): Use it.
5681 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5683 * tmac/pspic.mac (PSPIC): Fix html support.
5684 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5685 * tmac/www.tmac (www-image-template): Set up.
5686 (HTMLINDEX): Renamed to...
5688 (BODYCOLOR): Renamed to...
5690 (BACKGROUND): Renamed to...
5692 (URL): Change order of parameters for consistency.
5693 (MAILTO): Renamed to...
5695 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5696 (IMG, PIMG, MPIMG): This.
5697 (HTML-H-BEGIN, HTML-H-END): Renamed to...
5699 (LINKS): Renamed to...
5701 (LINE): Renamed to...
5703 (NO-AUTO-RULE): Renamed to...
5705 (HTML-TL): Renamed to...
5707 (UL-BEGIN, UL-END): Renamed to...
5709 (DROPCAP): Renamed to...
5711 (TS, TE, EQ, EN): Provide default definitions.
5712 (www-make-unique-name): Updated.
5713 (HTML-IMAGE-INLINE): Fix typo.
5714 * tmac/groff_www.man: Updated.
5716 * doc/Makefile (homepage.html): Add option -r to grohtml.
5717 Use shortened image name.
5718 * doc/groff.texinfo: Updated info on grohtml strings and macros.
5719 * doc/homepage.ms: Updated and extended.
5721 2002-02-14 Werner LEMBERG <wl@gnu.org>
5723 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5725 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5726 SGR_BACK_DEFAULT_COLOR): Replaced with ...
5727 (tty_printer::put_color): Use it.
5728 (ttr_printer::end_page): Simplify.
5730 2002-02-13 Werner LEMBERG <wl@gnu.org>
5732 * tmac/groff_tmac.man: Moved to...
5733 * man/groff_tmac.man: This place.
5734 * tmac/Makefile.sub, man/Makefile.sub: Updated.
5736 2002-02-12 Werner LEMBERG <wl@gnu.org>
5738 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5739 $(COMPILE.c) to not include groff's assert.h.
5741 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5743 * NEWS, src/drivers/grotty/grotty.man: Document it.
5745 2002-02-11 Werner LEMBERG <wl@gnu.org>
5747 * src/libs/snprintf/snprintf.c: Updated to latest version
5750 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
5751 test whether there is `.]' also.
5752 Don't check for spaces after `.['.
5753 * src/roff/grog/grog.sh: Do the same.
5755 2002-02-10 Werner LEMBERG <wl@gnu.org>
5759 * src/libs/libgroff/illegal.cc: Renamed to ...
5760 * src/libs/libgroff/invalid.cc: This.
5761 (illegal_char_table): Renamed to ...
5762 (invalid_char_table): This.
5763 * src/libs/libgroff/Makefile.sub: Updated.
5764 * win32-diffs: Updated.
5766 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5767 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5768 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5769 font::load), src/preproc/eqn/main.cc (read_line, main),
5770 src/preproc/eqn/lex.cc (file_input::read_line),
5771 src/preproc/pic/lex.cc (file_input::read_line,
5772 simple_file_input::get, simple_file_input::peek),
5773 src/preproc/pic/main.cc (top_input::get, top_input::peek),
5774 src/preproc/pic/pic.man, src/preproc/refer/main.cc
5775 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5776 do_bib), src/preproc/tbl/main.cc (table_input::get),
5777 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5778 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5779 do_zero_width, read_request, encode_char, ps_get_line,
5780 transparent_file, get_char_for_escape_name, transparent_translate,
5781 asciify, input_char_description, read_string, set_string),
5782 src/roff/troff/env.cc (environment::add_html_tag),
5783 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5785 * src/include/lib.h: Updated.
5787 * src/preproc/eqn/eqn.cc: Removed.
5791 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5793 2002-02-09 Werner LEMBERG <wl@gnu.org>
5795 * doc/gnu.xpm: New image.
5796 * doc/Makefile (DOCS): Add homepage.ps.
5797 Add rules for converting xpm->png and xpm->eps.
5798 Use `gnu.{xpm,eps}' as image names.
5799 * doc/homepage.ms: Updated.
5801 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
5803 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5804 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5805 Remove calls to `B1' and `B2'
5806 (PNG-IMAGE): New macro for inclusion of images in PNG format.
5807 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5808 auxiliary variables for MARGIN-PNG-IMAGE.
5809 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5810 auxiliary macros for MARGIN-PNG-IMAGE.
5811 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5813 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5814 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5815 (DROPCAP): New macro to produce dropcap characters.
5816 (www-do-image): Renamed back to...
5817 (HTML-DO-IMAGE): This.
5818 Updated all callers.
5820 * doc/Makefile (gnubw.eps): Updated.
5821 * doc/homepage.ms: Updated.
5823 2002-02-08 Werner LEMBERG <wl@gnu.org>
5825 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5826 Added `linethick' to table in section `Style Variables'.
5828 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
5830 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5832 2002-02-07 Werner LEMBERG <wl@gnu.org>
5834 Adding options -C (compatibility mode) and -c (grotty's old output
5837 * src/roff/nroff/nroff.sh: Implement it.
5839 * NEWS, src/roff/nroff/nroff.man: Updated.
5841 * PROBLEMS: Document bison 1.32 bug.
5843 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5845 * src/roff/troff/node.cc (make_tfont): Define it earlier.
5846 * src/roff/troff/div.h: Add prototype for `end_diversions'.
5847 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5848 * src/roff/troff/env.h: Add prototype for `title'.
5850 Adding EBCDIC support to grotty.
5852 * src/devices/grotty/tty.cc (CSI): New macro.
5853 (SGR_*, tty_printer::put_color): Use it.
5855 2002-02-06 Werner LEMBERG <wl@gnu.org>
5857 Implementing color support in grotty. The new switch -c activates
5858 the old drawing scheme, disabling color at the same time. The new
5859 switch `-i' selects italic instead of underlining (SGR only).
5861 * src/devices/grotty/tty.cc (putstring): New define instead of
5862 `fputs'. Updated all callers.
5863 (old_drawing_scheme): New global variable.
5864 (COLOR_CHANGE): New enum value.
5865 (SGR_*): New defines containing color handling escape sequences.
5866 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5867 (glyph): New members `back_color_idx' and `fore_color_idx'.
5868 (glyph::order): Add COLOR_CHANGE.
5869 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5870 `is_underline', `is_bold', `cu_flag', `tty_colors'.
5871 New methods `make_underline', `make_bold', `color_to_idx',
5872 `change_color', `put_color'.
5873 (cu_flag): Moved into `tty_printer' class.
5874 (tty_printer::tty_printer): Initialize colors.
5875 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5876 tty_printer::draw, tty_printer::end_page): Handle colors also.
5877 (main): Add options `-c' and `-i'.
5879 * NEWS, src/devices/grotty/grotty.man: Updated.
5881 * src/include/errarg.h (errarg): Add support for `unsigned int'.
5882 * src/libs/libgroff/errarg.c: Implement it.
5884 * src/include/printer.h (printer): Add `change_color' method
5885 (currently used by grotty only).
5886 * src/libs/libdriver/printer.cc: Implement it.
5887 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5888 call to `pr->change_color'.
5890 * src/roff/troff/node.cc (troff_output_file::fill_color,
5891 troff_output_file::glyph_color): Call `do_motion'.
5893 * tmac/tty.tmac: Add color definitions.
5895 * src/roff/groff/groff.man: Minor fixes.
5897 2002-02-05 Bernd Warken <bwarken@mayn.de>
5899 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5900 it. This is a preparation for future changes.
5902 2002-02-05 Werner LEMBERG <wl@gnu.org>
5904 * src/roff/troff/input.cc (process_input_stack): Fix the case
5905 where leading spaces are followed by \f or \s; previously, an
5906 incorrect space width has been used.
5908 * doc/roff.man (quoted_char): Fix argument.
5909 (comment): Define string.
5911 2002-02-04 Larry Kollar <kollar@alltel.net>
5913 * doc/groff.texinfo: More fixes.
5915 2002-02-04 Werner LEMBERG <wl@gnu.org>
5917 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5918 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5919 `restore_compatibility' before `output_string' -- the LINE_STRING
5920 register now already contains proper switches from and to
5923 * man/groff_char.man: Add Euro symbol.
5924 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5925 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5926 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5929 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5931 (.texinfo.html): Add support for texinfo->html.
5933 2002-02-03 Werner LEMBERG <wl@gnu.org>
5935 Added three new requests `ds1', `as1', and `ami'. The former two
5936 are equivalent to `ds' and `as' with the difference that
5937 compatibility mode is saved on entry, switched off during string
5938 expansion, and restored on exit. The latter is the pendant to `dei'
5941 (do_define_string): Use `define_mode' and `calling mode'.
5942 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5943 end of string, respectively.
5944 (define_string, append_string): Use `calling_mode'.
5945 (define_nocomp_string, append_nocomp_string,
5946 define_string_indirect): New functions.
5947 (init_input_requests): Updated.
5948 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5950 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5951 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
5952 mm macro package accesses this string register directly.
5953 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5955 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
5958 2002-02-02 Larry Kollar <kollar@alltel.net>
5960 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5962 2002-01-31 Werner LEMBERG <wl@gnu.org>
5964 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5966 2002-01-31 Bernd Warken <bwarken@mayn.de>
5968 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5969 * man/groff_out.man: Revised and updated.
5971 2002-01-30 Bernd Warken <bwarken@mayn.de>
5973 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5974 out the unused `{' and `}' commands. Undefined by default.
5975 (IntArray): Make `data' private.
5976 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5977 new methods instead.
5978 (skip_line_D, skip_to_end_of_line): New functions.
5979 (get_D_fixed_args): Use `skip_line_D'.
5980 Changed to handle dummy odd arguments by ...
5981 (get_D_fixed_args_odd_dummy): This new function.
5982 (get_D_variable_args): Split some code into ...
5983 (get_possibly_integer_args): This new function.
5984 (send_draw): Use more `const'.
5985 (delete_current_env): New function.
5986 (position_to_end_of_args): Use `size_t'.
5988 (send_draw): Updated.
5989 (parse_D_command): Handle `c', `C', and `t' better.
5993 2002-01-29 Werner LEMBERG <wl@gnu.org>
5996 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5997 @Def...ListEnd which replaces @Def...x. This is necessary to get
5998 proper HTML output -- see the comment in the file for more
6002 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
6004 Fixes to make color changes of 2002-01-21 work with grohtml.
6006 * src/devices/grohtml/post-html.cc (style): Updated.
6007 (html_printer): Remove unused methods.
6008 (html_printer::do_font, html_printer::draw, html_printer::set_char,
6009 html_printer::special): Updated.
6010 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6011 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6012 Added some debugging code.
6013 (html_text::start_tag): Updated.
6014 (html_text::do_push): New method.
6015 (html_text::push_para): Call it.
6016 Add method for handling color.
6017 (html_text::do_color): Updated.
6018 (html_text::shutdown): Handle color.
6019 * src/devices/grohtml/html-text.h (tag_definition): New member
6023 2002-01-28 Werner LEMBERG <wl@gnu.org>
6025 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6027 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
6029 Add two switches -a and -g to control the antialiasing bits for
6030 text and graphics, respectively.
6032 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6034 * src/devices/grohtml/grohtml.man: Document them.
6035 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6037 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6038 (setupAntiAlias): New function.
6039 (createAllPages): Updated.
6040 (scanArguments): Handle `-a' and `-g'.
6041 (main): Call `setupAntiAlias'.
6044 2002-01-27 Werner LEMBERG <wl@gnu.org>
6046 * doc/groff.texinfo (Def*): Call index function after deffn.
6048 * tmac/html.tmac: Call `nroff' request.
6050 2002-01-26 Larry Kollar <kollar@alltel.net>
6052 * tmac/groff_ms.man: Add some omissions.
6054 2002-01-25 Larry Kollar <kollar@alltel.net>
6056 * tmac/groff_ms.man: Typographical improvements.
6058 2002-01-25 Werner LEMBERG <wl@gnu.org>
6060 * doc/groff.texinfo: Updated version and copyright.
6061 * src/devices/grops/grops.man: Updated.
6063 * tmac/groff_tmac.man: Fix `ig' macro.
6065 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6067 Use `.ne' unconditionally everywhere.
6068 (TS): Only insert some vertical space. Doing a page break is no
6069 longer necessary due to the redefinition of the `ne' request.
6071 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6072 warning for unknown subcommands but parse and pass them to the
6075 2002-01-24 Werner LEMBERG <wl@gnu.org>
6077 * tmac/groff_www.man, NEWS: Fix typos.
6079 2002-01-21 Werner LEMBERG <wl@gnu.org>
6081 Complete revision of color support:
6083 Adapt programs to the new libdriver/input.cc.
6085 Color spaces are no longer converted to RGB but transferred as-is
6086 in the troff intermediate output format.
6088 Handle default color gracefully. troff now supports a `default'
6089 color (which can't be changed).
6091 grops will now use the proper color space functions if available.
6095 Note that currently grohtml doesn't handle colors properly. This
6098 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6099 (ui_to_a): New function.
6100 * src/include/lib.h: Updated.
6102 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6103 (color): Simplified; removed all `double' members and methods.
6104 A new array `components' now holds the color parameters.
6105 (color::is_default, color::get_components): New methods.
6106 (color::operator==, color:operator!=): New.
6107 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6108 to make access to the `components' array more comprehensible.
6109 * src/libs/libgroff/color.cc: Implement new color support.
6110 (atoh): Small fixes.
6111 (color::read_encoding): Simplified for new troff intermediate color
6113 (default_color): New global variable.
6115 * src/roff/troff/input.cc (default_symbol): New global variable.
6116 (lookup_color): Use it.
6117 (default_black): Removed.
6118 (do_glyph_color, do_fill_color): Simplified.
6119 (define_color): Handle default color.
6121 (do_if_request): Handle default color.
6122 * src/roff/troff/env.cc (environment::environment): Initialize
6123 colors with `default_color'.
6124 * src/roff/troff/node.cc (troff_output_file::put): Add method
6126 (troff_output_file::hex): Removed.
6127 (troff_output_file::fill_color, troff_output_file::glyph_color):
6128 Updated to include/color.h and libdriver/input.cc.
6130 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6131 fill color properly (identically to the outline color). \D'f...'
6132 doesn't work any more.
6133 All function calls to it updated.
6135 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6137 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6140 * src/devices/grops/ps.cc (ps_output::put_color): New method.
6141 (ps_printer::sbuf_color): Make a real member instead of pointer.
6142 (ps_printer::fill_color, ps_printer::output_color): Removed.
6143 (ps_printer::ps_printer): Updated.
6144 (ps_printer::set_char): Ditto.
6145 (ps_printer::set_color): Use various color schemes.
6146 Use `put_color' method.
6147 (ps_printer::flush_sbuf): Don't set color.
6148 (ps_printer::fill_path): Take `environment' as parameter.
6149 Simplify color handling.
6150 (ps_printer::set_line_thickness): Renamed to ...
6151 (ps_printer::set_line_thickness_and_color): This (and updated).
6152 (ps_printer::set_color): Change second parameter from `complete'
6153 to `fill' which better describes what it does.
6154 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6155 and text in the right order.
6157 Remove branches for `f' and `F'; this is handled by
6159 * src/devices/grops/ps.h: Updated.
6160 * font/devps/prologue (FL): Redefined.
6161 ({F,C}r,k,g: New color functions (with and without filling).
6163 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6164 * man/groff_diff.man, man/groff.man, man/groff_out.man,
6165 doc/groff.texinfo, NEWS: Updated.
6167 2002-01-20 Bernd Warken <bwarken@mayn.de>
6169 * src/libs/libdriver/input.cc: Completely rewritten. See comments
6170 in this file for what has been changed.
6172 2002-01-19 Werner LEMBERG <wl@gnu.org>
6174 * test-groff: Fix GROFF_FONT_PATH.
6175 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6176 is read before .TH or .Dd is parsed.
6178 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
6180 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6181 quadrant boundaries.
6183 2002-01-18 Werner LEMBERG <wl@gnu.org>
6185 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
6188 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
6190 * tmac/doc.common: Initialize %I register for the %I macro to
6191 avoid (harmless) warning.
6192 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6193 when in the SYNOPSIS section.
6195 2002-01-17 Bruno Haible <haible@clisp.cons.org>
6197 * src/preproc/pic/lex.cc (get_token): Fix typo.
6199 2002-01-17 Werner LEMBERG <wl@gnu.org>
6201 * devices/grops/ps.cc: Fix incorrectly applied last patch.
6203 2002-01-17 Larry Kollar <kollar@alltel.net>
6205 * tmac/groff_ms.man: Completely rewritten.
6207 2002-01-16 Werner LEMBERG <wl@gnu.org>
6209 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6211 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
6213 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6215 (ps_printer::draw): Ditto.
6217 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
6219 * tmac/groff_mdoc.man: Minor fixes.
6221 2002-01-13 Werner LEMBERG <wl@gnu.org>
6223 * man/groff_out.man: Some fixes.
6225 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
6227 * doc/pic.ms: Fix typos.
6229 2002-01-12 Werner LEMBERG <wl@gnu.org>
6231 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6233 2002-01-10 Werner LEMBERG <wl@gnu.org>
6235 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6239 2002-01-09 Bernd Warken <bwarken@mayn.de>
6241 * man/groff_out.man: Revised.
6242 * man/roff.man: Minor fixes.
6243 * src/roff/troff/troff.man: Some reordering.
6245 2002-01-09 Werner LEMBERG <wl@gnu.org>
6247 * tmac/an-old.tmac: Add dummy macros for equation support.
6249 2002-01-07 Werner LEMBERG <wl@gnu.org>
6251 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6253 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
6255 * tmac/groff_man.man: Small improvements.
6257 2002-01-07 Bernd Warken <bwarken@mayn.de>
6259 * man/groff_diff.man: Revised.
6261 2002-01-06 Werner LEMBERG <wl@gnu.org>
6263 * tmac/www.tmac: Remove extraneous backslash.
6265 2002-01-06 Bernd Warken <bwarken@mayn.de>
6267 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6269 2002-01-05 Werner LEMBERG <wl@gnu.org>
6271 Integrated groffer, contributed by Bernd Warken.
6273 * contrib/groffer/*: New.
6274 * Makefile.in, NEWS: Updated.
6276 2002-01-04 Werner LEMBERG <wl@gnu.org>
6278 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6279 registers defined in macro packages.
6280 Revising the ms part.
6282 2002-01-04 Larry Kollar <kollar@alltel.net>
6284 * doc/groff.texinfo: Add documentation for ms macros.
6286 2002-01-02 Werner LEMBERG <wl@gnu.org>
6288 First step in adding PS support for the Euro symbol. `eu' is the
6289 official Euro logo, `Eu' is a font-specific glyph variant.
6291 * font/devps/text.enc: Add `Euro' at position 9.
6292 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6293 * font/devps/symbolmap: Regenerated.
6297 2002-01-02 Bernd Warken <bwarken@mayn.de>
6299 * man/roff.man: Revised.
6301 2002-01-01 Bernd Warken <bwarken@mayn.de>
6303 * src/roff/groff/groff.man: Completely rewritten.
6305 2001-12-31 Werner LEMBERG <wl@gnu.org>
6307 * doc/Makefile: Updated.
6309 2001-12-30 Werner LEMBERG <wl@gnu.org>
6311 * tmac/www.tmac: Make all names of internal macros/registers/strings
6312 lowercase, and prepend `www-'.
6313 Other minor changes.
6314 * src/roff/troff/troff.man: Add preprocessor string at BOF.
6316 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
6318 Implement option `-b' in grohtml to set the HTML background colour.
6320 * src/devices/grohtml/post-html.cc (default_background): New global
6322 (html_printer::html_printer): Initialize `background' to
6323 `default_background'.
6324 (main): Implement option `-b'.
6326 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6328 * src/devices/grohtml/grohtml.man: Updated.
6329 * doc/Makefile (.ms.html): Use `-b'.
6330 * tmac/html.tmac: Don't set background color.
6332 Add new grohtml tag `.html-tl'.
6334 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6336 (title_desc::title_desc): Updated.
6337 (html_printer::troff_tag): Handle `.html-tl'.
6338 (html_printer::write_title): Use `with_h1'.
6339 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6340 (HTML-TL): New macro.
6342 Add support for unordered lists in HTML.
6344 * tmac/www.tmac (www-level): New auxiliary register.
6345 (www-level1, www-level2, www-level3): New auxiliary strings.
6346 (www-push-level, www-pop-level): New auxiliary macros
6347 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6351 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6352 (DEFAULT_VERTICAL_OFFSET): Removed.
6353 (IMAGE_BOARDER_PIXELS): Set to 0.
6354 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6355 (vertical_offset): Initialize with 0.
6356 (gsPaper): New global variable.
6357 (get_resolution): Scan for and return unsigned int.
6358 (get_papersize): New function to get paper length from devps/DESC.
6359 (determine_vertical_offset): New function.
6360 (createAllPages): Produce gray-level images and use proper page
6362 (createImage): Use `-quiet' option of pnmcrop.
6363 (addZ): Fix passing of `-Z'.
6364 (scanArguments): Fix handling of `-o'.
6365 (main): Call `determine_vertical_offset'.
6366 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6369 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6370 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6371 glyph descenders properly.
6373 * doc/homepage.ms: Include `gnubw.eps'.
6374 * doc/Makefile (gnubw.eps): New rule.
6375 (homepage.html): Depend on `gnubw.eps'.
6377 2001-12-25 Werner LEMBERG <wl@gnu.org>
6379 * src/roff/troff/input.cc (default_black): Fix return value.
6381 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
6383 * tmac/doc-common (Dt): Change output of architecture strings.
6384 Do some syntax cleanup.
6385 * tmac/groff_mdoc.man: Updated.
6387 2001-12-23 Werner LEMBERG <wl@gnu.org>
6389 Adding an `itc' request (input line trap accepting \c).
6391 * src/roff/troff/env.h (environment): New member
6392 `continued_input_trap'.
6393 Make `do_input_trap' a friend function instead of `input_trap'.
6394 * src/roff/troff/env.cc (environment::environment,
6395 environment::copy): Updated.
6396 (environment::newline): Implement it.
6397 (do_input_trap): New function.
6398 (input_trap): Call `do_input_trap'.
6399 (input_trap_continued): New function.
6400 (init_env_requests): Updated.
6401 * src/roff/troff/TODO: Updated.
6403 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6406 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6408 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
6410 * tmac/doc-common, tmac/doc-syms: Small updates.
6412 2001-12-22 Colin Watson <cjwatson@debian.org>
6414 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6416 2001-12-22 Bernd Warken <bwarken@mayn.de>
6418 * MANIFEST: New file.
6420 2001-12-22 Werner LEMBERG <wl@gnu.org>
6422 * src/preproc/grn/grn.man: Updated.
6424 2001-12-22 Solar Designer <solar@openwall.com>
6426 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6429 2001-12-19 Werner LEMBERG <wl@gnu.org>
6431 Implement a fallback character request `.fchar'.
6433 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6434 (is_fallback): New inline function.
6435 * src/roff/troff/input.cc (do_define_character): New function.
6436 (define_character): Call `do_define_character'.
6437 (define_fallback_character): New function.
6438 (init_input_requests): Add `fchar'.
6439 (charinfo::charinfo): Updated.
6440 (charinfo::set_macro): New argument to set `fallback' flag.
6441 * src/roff/troff/node.cc (make_glyph_node, make_node,
6442 node::add_char): Check `fallback' flag.
6443 * NEWS, man/groff_diff.man, man/groff_man: Updated.
6445 2001-12-16 Werner LEMBERG <wl@gnu.org>
6447 * groff.texinfo: Document exact search algorithm for glyphs.
6449 2001-12-15 Werner LEMBERG <wl@gnu.org>
6451 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6452 the left side of $(MANPAGES) rule to make it always non-empty.
6454 2001-12-14 Werner LEMBERG <wl@gnu.org>
6456 * src/roff/troff/input.cc (default_black): Define default color
6457 `black' if not yet defined.
6459 2001-12-13 Werner LEMBERG <wl@gnu.org>
6461 Implement new string-valued register `.fn' to return the current
6462 real (internal) font name.
6464 * env.cc (environment::get_font_name_string): New function.
6465 (init_env_requests): Add `.fn' register.
6466 * env.h (environment): Updated.
6467 * node.cc (font_info): Make `get_font_name' a friend.
6468 (get_font_name): New function.
6471 * man/groff_diff.man, man/groff.man, NEWS: Updated.
6473 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6475 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6477 2001-12-12 Werner LEMBERG <wl@gnu.org>
6479 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6481 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
6483 * man/groff_diff.man: Adding documentation for \O.
6485 2001-12-10 Werner LEMBERG <wl@gnu.org>
6487 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6488 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6490 2001-12-09 Werner LEMBERG <wl@gnu.org>
6492 * man/roff.man: Revised.
6493 * src/roff/groff/groff.man: Replace man page references with a
6494 pointer to roff.man.
6496 2001-12-09 Bernd Warken <bwarken@mayn.de>
6498 * man/roff.man: Completely rewritten.
6500 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6502 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6504 2001-12-05 Werner LEMBERG <wl@gnu.org>
6506 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6508 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6509 order of initializers.
6512 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
6514 * doc/groff.texinfo: Fix documentation of \O.
6516 * src/devices/grohtml/html-text.cc (html_text::do_indent,
6517 html_text::do_table, html_text::do_emittext, html_text::do_para):
6518 Use `const' for first argument.
6519 (html_text::do_table): Use cast.
6520 * src/devices/grohtml/html-text.h: Updated.
6521 * src/devices/grohtml/output.cc (simple_output::put_string): Add
6522 method for `const string &s'.
6523 * src/devices/grohtml/html.h: Updated.
6524 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6525 (ANCHOR_TEMPLATE): Modified.
6526 (manufacture_headings): New global variable to handle `-h' option.
6527 (is_subsection): Removed.
6528 (char_buffer::add_string): Add `const' to first argument.
6529 Protect against invalid string argument.
6530 Add method for `const string &s'.
6531 (text_glob): Completely redesigned.
6532 (page): Use `const' for strings and remove string length variable.
6533 (page::add_html): Removed.
6534 (page::add_end_encode): New member function.
6535 (to_unicode): Moved upwards.
6536 (title_desc, header_desc): Updated.
6537 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6539 (html_printer::is_bold, html_printer::make_bold): New member
6541 (html_printer::end_of_line): Updated.
6542 (generate_img_src, html_printer::do_auto_image,
6543 html_printer::do_title, html_printer::write_header,
6544 html_printer::determine_header_level, html_printer::do_heading,
6545 html_printer::do_linelength, html_printer::do_pageoffset,
6546 html_printer::do_indentation, html_printer::do_tempindent,
6547 html_printer::do_indentedparagraph, html_printer::do_break,
6548 html_printer::flush_sbuf, get_html_translation,
6549 html_printer::begin_page, html_printer::special): Rewritten to get
6550 rid of static string length limit.
6551 (html_printer::troff_tag): Added `.no-auto-rule'.
6552 (html_printer::flush_globs): Small fix.
6553 (html_printer::determine_space): Don't compute `space_width'.
6554 (html_printer::translate_to_html): Renamed to ...
6555 (html_printer::emit_html): This (with updates).
6556 (html_printer::write_header): Implement `-h' option.
6557 (html_printer::draw): Remove commented-out code. Handle `F'
6559 (html_printer::add_char_to_sbuf): Removed.
6560 (html_printer::add_to_sbuf): Rewritten.
6561 (html_printer::sbuf_continuation): Fixed.
6562 (html_printer::seen_backwards_escape, reverse,
6563 html_printer::remove_last_char_from_sbuf): Removed.
6564 (char_translate_to_html, str_translate_to_html): Removed.
6565 (html_printer::overstrike): New function member.
6566 (html_printer::set_char): Use it.
6567 (html_printer::do_body): New function member.
6568 (html_printer::~html_printer): Use it.
6569 (main): Handle `-h' option.
6571 * src/devices/grohtml/grohtml.man: Document -h switch.
6573 * src/preproc/html/pre-html.cc: Include searchpath.h
6574 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6575 (get_resolution): New function.
6576 (checkImageDir): Use `0777' permissions in mkdir()
6577 (write_start_image): Rewritten to use `\O[5...]'.
6578 (createImage, generateImages): Updated.
6579 (main): Handle `F' and `h' options.
6580 Use `get_resolution'.
6582 * src/roff/troff/input.cc (begin, end, image): Removed.
6583 (do_suppress): Take parameter.
6584 Handle modified syntax of `\O'.
6585 (token::next): Updated.
6586 (init_markup_requests): Removed.
6589 * src/roff/troff/div.h: Add declaration for begin_page().
6591 * tmac/color-html.tmac: Removed. Contents moved to...
6592 * tmac/html.tmac: Here. Set background color.
6593 * tmac/color.tmac: Removed. Contents moved to...
6594 * tmac/ps.tmac: Here.
6595 * tmac/www.tmac: Remove the title command when generating images
6597 (NO_AUTO_RULE): New macro.
6598 (HTML_DO_IMAGE): Use revised `\O' escapes.
6599 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6601 2001-12-02 Werner LEMBERG <wl@gnu.org>
6603 * tmac/groff_mdoc.man: Fix typo.
6605 2001-12-01 Colin Watson <cjwatson@debian.org>
6607 * man/roff.man: Fix typo.
6609 2001-11-29 Werner LEMBERG <wl@gnu.org>
6611 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6614 * src/roff/troff/input.cc (read_draw_node): Emit error message if
6615 more than one argument to \D'f ...'.
6617 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6619 2001-11-28 Werner LEMBERG <wl@gnu.org>
6621 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6624 * tmac/groff_man.man: Minor cosmetic fix.
6626 2001-11-27 Werner LEMBERG <wl@gnu.org>
6628 * src/roff/groff/groff.man, tmac/groff_tmac.man,
6629 tmac/groff_www.man: s/mwww/www/.
6631 2001-11-26 Werner LEMBERG <wl@gnu.org>
6633 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6634 * configure: Regenerated.
6635 * win32-diffs: Updated.
6637 * tmac/groff_mwww.tmac: Renamed to ...
6638 * tmac/groff_www.tmac: This.
6639 * tmac/mwww.tmac: Removed.
6640 * NEWS, tmac/Makefile.sub: Updated.
6642 2001-11-21 Werner LEMBERG <wl@gnu.org>
6644 * doc/groff.texinfo: Improve documentation of the `\v' escape.
6645 Fix explanation of `\D' and `rt'.
6647 2001-11-20 Werner LEMBERG <wl@gnu.org>
6649 * tmac/an-old.tmac (an-header): Set header length equal to page
6651 * doc/groff.texinfo: Improve documentation of `ne' request. Other
6655 2001-11-19 Werner LEMBERG <wl@gnu.org>
6657 * NEWS, man/Makefile.sub: Updated.
6659 2001-11-19 Bernd Warken <bwarken@mayn.de>
6661 * man/ditroff.man: New file.
6663 2001-11-17 Werner LEMBERG <wl@gnu.org>
6665 * man/groff_differences.man: Renamed to ...
6666 * man/groff_diff.man: This. Updated.
6667 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6669 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6670 * src/preproc/html/pushback.cc: This. Updated.
6671 * src/preproc/html/pushbackbuffer.h: Renamed to ...
6672 * src/preproc/html/pushback.h: This.
6673 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6676 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6677 * src/libs/libgroff/htmlhint.cc: This.
6678 * src/libs/libgroff/Makefile.sub: Updated.
6680 * tmac/an-old.tmac (an-end): Fix page length.
6682 2001-11-16 Werner LEMBERG <wl@gnu.org>
6684 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6685 * man/Makefile.sub: Include groff_differences.man.
6686 * VERSION: Set to 1.18.
6687 * REVISION: Set to 0.
6689 2001-11-16 Bernd Warken <bwarken@mayn.de>
6691 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6692 the second dot (or ending macro name) to end a macro.
6693 * doc/groff.texinfo: Doc fix.
6695 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
6697 * tmac/doc-common (doc-header): Handle very long document titles
6700 2001-11-16 Werner LEMBERG <wl@gnu.org>
6702 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6704 2001-11-15 Werner LEMBERG <wl@gnu.org>
6706 * src/roff/troff/troff.man: Revised and split into troff.man and...
6707 * man/groff_differences.man: New file.
6710 2001-11-13 Werner LEMBERG <wl@gnu.org>
6712 * tmac/an-old.tmac (TS, TE): New macros for table support.
6714 2001-11-12 Werner LEMBERG <wl@gnu.org>
6716 * src/include/lib.h: Provide a fix for emx to not include
6719 2001-10-27 Werner LEMBERG <wl@gnu.org>
6721 * src/roff/troff/input.cc (substring_macro): Fix computation of
6724 2001-10-20 Werner LEMBERG <wl@gnu.org>
6726 Undo change from 2001-08-28.
6728 * src/roff/troff/input.cc (have_input): New global variable.
6729 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6730 in compatibility mode.
6731 (process_input_stack): Use it.
6733 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
6735 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6736 being handled as end-of-sentence characters,
6738 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
6740 * src/roff/troff/input.cc (file_iterator): New members
6741 `suppress_newline_flag' and `seen_escape'.
6742 (file_iterator::next_file): Updated.
6743 (file_iterator::fill): Use it.
6744 (string_iterator): New member `suppress_newline_flag'.
6745 (string_iterator::fill): Set it.
6746 (get_color_element): Use MAX_COLOR_VAL.
6747 * src/roff/troff/env.cc (environment): Remove `need_eol'.
6748 (no_fill): Don't set `env->ignore_next_eol'.
6749 (environment::newline): Handle `eol' tag properly.
6751 (environment::add_html_tag): Set `env->ignore_next_eol'.
6753 * src/roff/troff/env.h (environment): Updated.
6755 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6757 (html_printer::outstanding_eol): New member function.
6758 (html_printer::do_title): Use new functions.
6759 (html_printer::troff_tag): Test `id_eol_ce'.
6761 2001-10-10 Werner LEMBERG <wl@gnu.org>
6763 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6764 files work with -C also.
6766 2001-10-05 Werner LEMBERG <wl@gnu.org>
6768 * doc/pic.ms: Minor fix.
6769 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6770 as a valid command line switch.
6771 * src/devices/grohtml/post-html.cc (main): Ditto.
6773 * src/devices/grohtml/grohtml.man: Updated.
6774 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6776 2001-10-04 Werner LEMBERG <wl@gnu.org>
6778 Implementing color support in troff, pic, grops, and grohtml. These
6779 changes are based on a major patch provided by Gaius Mulley
6782 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6783 definitions with both hex values and fractions.
6785 New escapes: \m and \M for drawing and background color,
6786 respectively. This corresponds to the troff output commands `m'
6789 groff and troff accept command line switch `-c' to disable color
6790 output (which is automatically disabled in compatibility mode).
6792 New scaling indicator `f' for fractions (1f = 65536u).
6794 New conditional operator `m' to test for defined colors with `if'
6797 New keywords `color' (or `colour', `colored', `coloured'), `outline'
6798 (or `outlined'), and `shaded' added to pic.
6800 * src/include/color.h: New file.
6801 * src/include/driver.h: Include it.
6802 * src/include/printer.h: Include color.h.
6803 (environment): New members `col' and `fill'.
6804 (printer): Remove `adjust_arc_center' member function.
6805 * src/include/Makefile.sub: Updated.
6807 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6809 Handle `m' and `DF' troff commands.
6810 * src/libs/libgroff/color.cc: New file.
6811 * src/libs/libgroff/Makefile.sub: Updated.
6813 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6815 (createImage): Fix computation of `y2'.
6817 (buffer::write_file_html): Remove calls to `stop'.
6819 * src/preproc/pic/common.h (common_output): New abstract function
6820 members `set_color', `reset_color', `get_last_filled', and
6821 `get_outline_color'.
6822 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6823 (object_spec): Add members `shaded' and `outlined'.
6824 * src/preproc/pic/output.h (output): `command' is now abstract.
6825 New function members `set_color', `reset_color', `get_last_filled',
6826 and `get_outline_color'.
6827 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6828 `outline[d]', and `shaded'.
6829 * src/preproc/pic/object.cc (output::command): Removed.
6830 (output::set_location): Moved to output.h.
6831 (graphic_object): Add protected members `outline_color' and
6833 Add member functions `set_outline_color', `get_outline_color', and
6835 (closed_object): Add member function `set_fill_color'.
6836 Add member `color_fill'.
6837 (graphic_object::print_text): Use `out->set_color' and
6839 (box_object::print, ellipse_object::print, circle_object::print,
6840 line_object::print, spline_object::print, arc_object::print): Ditto.
6841 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6842 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6843 `SHADED', making them `%left'.
6844 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6845 * src/preproc/pic/tex.cc (tex_output): New dummy function members
6846 `set_color', `reset_color', `get_last_filled', and
6847 `get_outline_color'.
6848 * src/preproc/pic/troff.cc (simple_output): New abstract function
6849 members `set_color', `reset_color', and `get_last_filled'.
6850 (simple_output::polygon, simple_output::circle,
6851 simple_output::ellipse): Use `get_last_filled'.
6852 (troff_output): New members `last_filled' and `last_outlined'.
6853 New function members `set_color', `reset_color', `get_last_filled',
6854 and `get_outline_color'.
6855 (troff_output::finish_picture): Use `reset_color'.
6856 (troff_output::set_fill): Test `last_filled'.
6857 * src/preproc/pic/pic.man: Updated.
6859 * src/roff/groff/groff.cc (main): Implement `-c' option.
6860 (synopsis, help): Updated.
6861 src/roff/groff/groff.man: Updated.
6863 * src/roff/troff/troff.h: Include color.h.
6864 (warning_type): Add WARN_COLOR.
6865 * src/roff/troff/env.h (environment): New members
6866 `{cur,prev}_{glyph,fill}_color'.
6867 New member functions `get_{prev_,}{glyph,fill}_color'.
6868 * src/roff/troff/env.cc: Initialize and implement them.
6869 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6870 Replace `NULL' with `0' everywhere for consistency.
6871 (lookup_color, default_black, do_glyph_color, do_fill_color,
6872 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6873 define_color): New functions.
6874 (token::next): Implement \M and \m escapes.
6875 (do_if_request): Implement `m' operator.
6877 (main): Implement `-c' option.
6878 (init_markup_requests): Add `defcolor' request.
6879 (warning_table): Add `color' warning.
6880 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6882 * src/roff/troff/node.cc (troff_output_file): New members
6883 `current_{page,glyph}color'. New member functions `put_hex',
6884 `glyph_color', and `fill_color'.
6885 (glyph_color_node::*, fill_color_node::*): Implement it.
6886 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6887 (parse_term): Add support for `f'.
6888 * src/roff/troff/troff.man: Updated.
6890 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6892 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6893 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6895 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6896 (tag_definition): Use `void *' for arg1.
6897 (html_text): New member functions `do_color' and `done_color'.
6898 Use `void *' for second parameter of `push_para' member function.
6899 New `push_para' member function with a single parameter.
6900 Use `char *' for parameter of `issue_table_begin' member funtion.
6901 New `issue_color_begin' member function.
6902 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6904 (html_text::issue_color_begin): New function.
6905 (html_text::issue_table_begin): Use `char *' for parameter.
6906 (html_text::start_tag, html_text::shutdown,
6907 html_text::check_emit_text): Updated.
6908 (html_text::push_para): Use `void *' for second parameter.
6909 Add same function with only one parameter.
6910 (html_text::do_*): Updated.
6911 (html_text::do_color, html_text::done_color): New functions.
6912 * src/devices/grohtml/post-html.cc (style): New member `col'.
6913 Mew member `style' with 6 parameters.
6914 (style::style, style::operator==): Updated.
6915 (html_printer::do_font): Use it.
6916 (html_printer::draw): Add dummy entry for `F'.
6917 (html_printer::set_char): Updated.
6918 * src/devices/grohtml/grohtml.man: Updated.
6920 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6921 trailing zeroes removed.
6922 (ps_printer): New members `sbuf_color', `fill_color', and
6924 Removed member `fill'.
6925 New member function `set_color'.
6926 (ps_printer::ps_printer, ps_printer::set_char): Updated.
6927 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6928 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6930 * tmac/color-html.tmac, tmac/color.tmac: New files.
6931 * tmac/troffrc: Include them.
6932 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6933 * tmac/Makefile.sub: Updated.
6935 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6936 man/groff.man: Updated.
6937 * font/devps/prologue.ps: Define FC and CO functions.
6939 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
6941 Fix incorrect cropping of images and incorrect handling of special
6942 characters. Fix handling of file names in \O.
6944 * src/include/geometry.h: New file.
6945 * src/libs/libgroff/geometry.cc: New file.
6946 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6948 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6950 (do_suppress): Updated.
6951 * src/roff/troff/node.cc: Include geometry.h.
6952 (troff_output_file::flush_tbuf): Fixed parameters to
6953 `check_output_limits'.
6954 (troff_output_file::check_charinfo): Ditto.
6955 (troff_output_file::determine_line_limits): Add support for `Da'
6958 * src/devices/grohtml/post-html.cc (str_translate_to_html):
6959 Add new parameter `is_special' to decode special characters from
6961 (html_printer::do_title, html_printer::do_heading,
6962 html_printer::do_indentedparagraph,
6963 html_printer::translate_to_html, html_printer::special): Updated.
6965 2001-10-03 Werner LEMBERG <wl@gnu.org>
6967 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6968 Fix entry for config.h.
6969 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6970 * tmac/troffrc: Translate nonbreakable space character to `\~'.
6971 * src/preproc/eqn/eqn.man: Document -d command line option.
6973 2001-09-27 Werner LEMBERG <wl@gnu.org>
6975 * man/groff.man: Use
6983 instead of the old code (`.ad .hy' after the table) to suppress
6984 incorrect hyphenation for grohtml output.
6986 2001-09-22 Werner LEMBERG <wl@gnu.org>
6988 * man/groff_font.man, man/groff_out.man: Minor fixes.
6990 2001-09-20 Werner LEMBERG <wl@gnu.org>
6992 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
6993 Arnold Robbins <arnold@skeeve.com>).
6995 2001-09-09 Werner LEMBERG <wl@gnu.org>
6997 * configure: Regenerated with autoconf 2.52.
6999 * doc/groff.texinfo: Complete revision of indices.
7001 2001-09-07 Werner LEMBERG <wl@gnu.org>
7003 * doc/Makefile (clean): Updated to delete all indices.
7005 2001-09-05 Werner LEMBERG <wl@gnu.org>
7007 * src/roff/troff/troff.man: Remove superfluous line.
7009 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7010 given on the command line (or rather, if only the default warnings
7013 2001-09-03 Werner LEMBERG <wl@gnu.org>
7015 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7016 use .ne for TTY devices.
7018 2001-08-31 Werner LEMBERG <wl@gnu.org>
7020 * src/roff/troff/token.h, src/roff/troff/input.cc:
7021 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7023 2001-08-28 Werner LEMBERG <wl@gnu.org>
7025 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7026 * src/roff/troff/input.cc (token::next): Return
7027 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7029 (token::description): Updated.
7030 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7031 (token::add_to_node_list, token::process): Ignore
7032 TOKEN_TRANSPARENT_ESCAPE.
7034 2001-08-27 Werner LEMBERG <wl@gnu.org>
7036 * tmac/an-old.tmac: Fix `S' string.
7038 2001-08-26 Werner LEMBERG <wl@gnu.org>
7040 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7042 2001-08-25 Werner LEMBERG <wl@gnu.org>
7044 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7046 Many other minor fixes.
7048 * configure.ac: Add message at end to inform how to compile
7050 * configure: Regenerated.
7052 2001-08-24 Werner LEMBERG <wl@gnu.org>
7054 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7055 Updated to latest version of libc.
7057 2001-08-23 Werner LEMBERG <wl@gnu.org>
7059 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7060 Autoconf 2.50 and newer can handle this.
7061 * configure: Regenerated.
7063 2001-08-21 Werner LEMBERG <wl@gnu.org>
7065 * doc/pic.ms: Fix typo.
7066 * src/preproc/tbl/tbl.man: Document case of global options.
7068 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
7070 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7071 handling of `CR' font.
7073 2001-08-20 Werner LEMBERG <wl@gnu.org>
7075 Use a config.h file.
7077 * src/include/lib.h: Include config.h.
7078 * All C files: Ditto (if necessary).
7079 * All C++ source and header files: Include lib.h first (if
7082 * src/include/config.hin: New file (autogenerated by autoheader).
7083 * stamp-h.in: New file.
7084 * configure.ac: Updated.
7085 * aclocal.m4: Add third parameters to AC_DEFINE macros.
7086 (GROFF_ARRAY_DELETE): Simplified.
7087 * Makefile.sub (DISTCLEANFILES): Updated.
7088 Added targets for remaking config.status, config.hin, config.h,
7089 stamp-h.in, and stamp-h.
7090 * configure: Regenerated.
7092 2001-08-19 Werner LEMBERG <wl@gnu.org>
7096 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
7098 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7099 (do_sprintf): Use snprintf().
7101 2001-08-18 Werner LEMBERG <wl@gnu.org>
7103 * src/libs/snprintf/*: Added an snprintf module written by Mark
7105 * src/libs/libgroff/Makefile.sub: Updated.
7106 * configure.ac: Add test for snprintf().
7107 * Makefile.in: Updated.
7108 * configure: Regenerated.
7110 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7113 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
7115 * tmac/doc.tmac (Ex): New implementation.
7116 * tmac/doc-common, tmac/groff_tmac.man: Updated.
7118 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
7120 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7122 * tmac/groff_tmac.man: Updated.
7124 2001-08-13 Werner LEMBERG <wl@gnu.org>
7126 * src/preproc/tbl/tbl.man: Minor documentation update.
7128 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
7130 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7131 * configure.ac: Add declaration test for gettimeofday().
7132 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7133 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7134 * configure: Regenerated.
7136 2001-08-11 Werner LEMBERG <wl@gnu.org>
7138 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7139 * configure.ac: Add declaration test for strcasecmp().
7140 * Makefile.in: Updated.
7141 * configure: Regenerated.
7142 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7143 this is necessary because groff's mkstemp.cc is C++.
7144 Add declaration conditionally for strcasecmp().
7146 2001-08-10 Werner LEMBERG <wl@gnu.org>
7148 Integrated pic2graph, contributed by Eric S. Raymond.
7150 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7152 * Makefile.in, NEWS: Updated.
7154 * src/preproc/tbl/tbl.man: Revised.
7156 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
7158 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7160 2001-08-09 Werner LEMBERG <wl@gnu.org>
7162 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7165 2001-08-08 Paul Eggert <eggert@twinsun.com>
7167 * Makefile.sub (configure): Depend on configure.ac, not
7169 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7171 2001-08-07 Werner LEMBERG <wl@gnu.org>
7173 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7176 2001-08-06 Werner LEMBERG <wl@gnu.org>
7178 * src/roff/troff/troff.man: Improve documentation of -E option.
7180 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7182 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7185 2001-07-27 Werner LEMBERG <wl@gnu.org>
7187 * src/preproc/refer/refer.cc: Undo last change.
7188 * src/devices/grohtml/post-html.cc: Ditto.
7190 2001-07-26 Werner LEMBERG <wl@gnu.org>
7192 * src/preproc/refer/refer.cc: Include `lib.h'.
7193 * src/devices/grohtml/post-html.cc: Ditto.
7195 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
7197 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7198 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7199 * Makefile.in: Comment updated.
7200 * configure: Regenerated.
7202 2001-07-25 Werner LEMBERG <wl@gnu.org>
7204 * src/preproc/pic/pic.cc: Removed.
7205 * src/preproc/pic/pic_tab.h: Removed.
7206 * src/preproc/refer/label.cc: Removed.
7208 * doc/Makefile (.ms.html): Don't use a file name extension in
7209 argument to grohtml's -I option.
7210 * Makefile.in (dist): Remove CVS directories.
7211 Call `distfiles' target.
7213 * src/devices/grohtml/grohtml.man: Add information about valid
7214 versions of pnmtopng.
7215 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7216 name instead of number.
7218 2001-07-24 Werner LEMBERG <wl@gnu.org>
7220 * doc/groff.texinfo: Minor fixes.
7222 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
7224 * doc/Makefile (.ms.html): Put image files into a subdirectory.
7227 2001-07-20 Werner LEMBERG <wl@gnu.org>
7229 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7230 * src/libs/libgroff/mkstemp.cc: New file.
7231 * src/libs/libgroff/mksdir.cc: New file.
7232 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7233 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7234 * src/libs/libgroff/Makefile.sub: Updated.
7235 * src/include/lib.h: Add mksdir() prototype.
7236 * src/include/posix.h: Define S_IXUSR if not yet defined.
7238 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7239 (createAllPages): Use mksdir() instead of current code.
7240 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7241 (main): [!HAVE_MKSTEMP]: Removed.
7243 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7244 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7246 * configure.ac: Add tests for stdint.h, sys/time.h, and
7248 Call new GROFF_xxx macros.
7249 * configure: Regenerated.
7250 * Makefile.in: Comments updated.
7252 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
7254 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7255 instead of current code.
7256 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7257 * src/roff/groff/groff.cc (possible_command::insert_args): New
7259 (main): Use it for predriver handling instead of insert_arg().
7261 2001-07-19 Werner LEMBERG <wl@gnu.org>
7263 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7266 * src/include/posix.h: Define S_IWUSR if not yet defined.
7268 2001-07-18 Werner LEMBERG <wl@gnu.org>
7272 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
7274 * tmac/groff_mdoc.man: Document new -width and -column syntax.
7275 Some other minor fixes.
7276 * tmac/an-old.tmac: Add `AT' and `UC' macros.
7278 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
7280 Replace call to `troff' with `groff -Z' to make it aware of
7283 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7284 (troff_command, command_prefix): Removed.
7285 (alterDeviceTo): Use groff.
7286 (addZ): New function.
7287 (char_buffer::do_html): Use it.
7288 (scanArguments): Use TROFF_COMMAND.
7289 (findPrefix): Removed.
7291 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7293 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
7295 * doc/pic.ms: Documentation fixes.
7297 2001-07-17 Werner LEMBERG <wl@gnu.org>
7299 Replace atexit() with global destructor.
7301 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7302 (xtmpfile_list_init): New global structure to deallocate
7303 xtmpfile_list on exit. Its destructor inherits most code from
7305 (remove_tmp_files): Deleted.
7306 (add_tmp_file): Simplified.
7308 2001-07-16 Werner LEMBERG <wl@gnu.org>
7310 Replace strdup() with strsave().
7312 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7313 (set_papersize): Use strsave() and a_delete.
7314 (main): Use strsave().
7315 * src/preproc/html/pre-html.cc (make_message, createAllPages,
7316 removeAllPages): Use strsave() and a_delete.
7318 * configure.ac: Remove test for strdup.
7319 * Makefile.in: Comment updated.
7320 * configure: Regenerated.
7322 2001-07-15 Werner LEMBERG <wl@gnu.org>
7324 * win32-diffs: Updated.
7326 2001-07-14 Werner LEMBERG <wl@gnu.org>
7328 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7329 removing the old one.
7330 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7332 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7334 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7336 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
7338 Merge -xwidth into -width. Add -xwidth functionality to -column
7341 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7343 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
7344 string immediately following a leading dot starts with a valid mdoc
7346 Add similar code to the -column branch.
7347 (doc-Bl-usage): Updated.
7348 * groff_mdoc.man: s/-xwidth/-width/.
7350 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
7352 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7353 running into centered or non-formatted text.
7355 2001-07-11 Werner LEMBERG <wl@gnu.org>
7357 Introduce short and long prefixes to have the selection at run-time
7358 whether there is a 8+3 limit for names of temporary files.
7360 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7361 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7362 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7364 (temp_init): New global structure to initialize above three
7366 (xtmptemplate): Use two parameters for long and short prefix.
7367 Simplify code use above three variables.
7368 (xtmpfile): Use long and short prefixes as parameters.
7369 * src/include/lib.h: Updated.
7371 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7373 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7374 (createAllPages, makeTempFiles): Updated.
7376 2001-07-09 Werner LEMBERG <wl@gnu.org>
7378 * REVISION: Increased to 3.
7380 Version 1.17.2 released
7381 =======================
7383 2001-07-07 Werner LEMBERG <wl@gnu.org>
7385 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7388 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
7390 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7392 * tmac/groff_mdoc.man: Fix synopsis.
7394 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
7396 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7397 Restore `doc-Pa-font'.
7399 2001-07-04 Werner LEMBERG <wl@gnu.org>
7401 * src/utils/indxbib/dirnamemax.c: Moved to ...
7402 * src/libs/libgroff/maxfilename.cc: Here.
7403 s/dir_name_max/file_name_max/.
7405 * src/include/lib.h: Add file_name_max.
7406 * src/utils/indxbib/indxbib.cc: Updated.
7407 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7410 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7412 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7414 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7415 REGION_TEMPLATE): New macros.
7416 (createAllPages, makeTempFiles): Use them.
7417 Include `nonposix.h'.
7418 (html_system): New function.
7419 (createAllPages, createImage): Use it.
7422 * tmac/www.tmac: Fix typos.
7424 2001-07-03 Werner LEMBERG <wl@gnu.org>
7426 * tmac/www.tmac: Disable hyphenation in normal text only if output
7428 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7429 * tmac/groff_mwww.man, NEWS: Updated.
7431 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
7433 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7436 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
7438 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7439 doc-display-ps-stack): Implement font and font size stack for
7442 2001-07-02 Werner LEMBERG <wl@gnu.org>
7444 * REVISION: Increased to 2.
7445 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7447 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7448 beginning of a line.
7449 * src/groff/grog/grog.sh: Ditto.
7451 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
7453 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7456 2001-06-27 Werner LEMBERG <wl@gnu.org>
7458 Fix problems with preprocessor string for `man' program.
7460 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
7461 Updated/added copyright.
7462 Moved Emacs's local variable to identify nroff mode to the end of
7463 the file; add local variable if missing.
7465 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
7467 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7468 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7469 * configure: Regenerated.
7471 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
7473 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7474 * configure: Regenerated.
7476 2001-06-24 Werner LEMBERG <wl@gnu.org>
7478 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7480 * doc/pic.ms: Fix typos.
7482 Version 1.17.1 released
7483 =======================
7485 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
7487 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7488 * configure: Updated.
7490 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
7492 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7494 * src/roff/troff/dic.cc (blank_line): Add html tag.
7496 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
7498 * src/roff/troff/input.cc (do_suppress): Fix typo.
7500 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
7502 Added two new options (-D and -I) to specify image names and a
7503 subdirectory to place the images in.
7505 Change syntax from \\Ox to \\O[x].
7507 * src/devices/grohtml/post-html.cc (main): Add options.
7509 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7510 Use `NULL' instead of `0' for null string pointers.
7511 (MAX_RETRIES): New macro.
7512 (lengthOfintToStr, intToStr, make_message): New functions.
7513 (makeFileName): Make function static.
7514 Implement -D and -I options.
7515 (checkImageDir): New function.
7516 (write_end_image, write_start_image): Use new syntax of \O.
7517 (createAllPages, removeAllPages): Implement -D and -I options. Use
7519 (createImage): Use make_message().
7520 (addps4html): Add guard for malloc().
7521 (usage, scanArguments): Updated.
7522 (makeTempFiles): Use mkstemp().
7523 (removeTempFiles): Use unlink().
7524 (findPrefix): Add guard for malloc().
7526 * src/roff/troff/input.cc (get_delim_file_name): New function to
7528 (do_suppress): Updated to parse new syntax.
7529 * src/devices/grohtml/grohtml.man: Updated.
7530 * tmac/www.tmac: Updated to new syntax.
7534 2001-06-15 Werner LEMBERG <wl@gnu.org>
7536 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7538 * src/devices/grohtml/grohtml.man: Minor improvements.
7540 2001-06-14 Werner LEMBERG <wl@gnu.org>
7542 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7544 2001-06-11 Werner LEMBERG <wl@gnu.org>
7546 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7547 line to specify preprocessor options -- mandb 2.3.1 only recognizes
7549 * src/preproc/grn/grn.man: Add proper '\" string.
7551 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
7553 * test-groff: Don't use PATH but GROFF_BIN_PATH.
7555 2001-06-08 Werner LEMBERG <wl@gnu.org>
7557 Updated to autoconf 2.50.
7559 * configure.in: Renamed to...
7560 * configure.ac: This.
7561 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7562 (GROFF_OS390): Updated.
7563 * configure: Regenerated.
7565 2001-05-18 Werner LEMBERG <wl@gnu.org>
7567 * src/roff/troff/env.c, src/roff/troff/env.h,
7568 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7571 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
7573 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7575 2001-05-16 Werner LEMBERG <wl@gnu.org>
7577 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7578 less than or equal zero; set it to 1 then.
7579 * src/roff/troff/node.h (node::node): Initialize `last'.
7581 2001-05-08 Werner LEMBERG <wl@gnu.org>
7583 * tmac/an-old.tmac: Make predefined strings work in compatibility
7585 Add troff version guard.
7586 * tmac/doc.tmac: Simplify version guard.
7588 2001-05-07 Werner LEMBERG <wl@gnu.org>
7590 The .ns and .rs requests are now honoured not only in the top-level
7591 but in all diversions (similar to UNIX troff).
7593 This change is based on a patch from Tadziu Hoffmann
7594 <hoffmann@usm.uni-muenchen.de>.
7596 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7597 (top_level_diversion): Remove `no_space_mode' member.
7598 * src/roff/troff/div.cc (diversion::diversion,
7599 top_level_diversion::top_level_diversion): Updated.
7600 (macro_diversion::output): Reset `no_space_mode'.
7601 (no_space, restore_spacing): Use `curdiv' unconditionally.
7602 (space_request, blank_line): Check `curdiv->no_space_mode'.
7603 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7604 `curdiv' unconditionally.
7605 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7608 2001-05-06 Werner LEMBERG <wl@gnu.org>
7610 Added two new requests `de1' and `am1' which are similar to `de' and
7611 `am' with the difference that compatibility mode is saved on entry,
7612 switched off during macro execution, and restored on exit.
7614 * src/roff/troff/input.h: Added two new special characters
7615 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7616 * src/roff/troff/input.cc (input_iterator): Added two member
7617 functions `save_compatible_flag' and `get_compatible_flag'.
7618 (input_stack): Ditto.
7619 (string_iterator): Ditto. Also add private member
7620 `saved_compatible_flag'.
7621 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7622 (calling_mode): New enumeration.
7623 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
7624 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7625 (define_macro, define_indirect_macro, append_macro, ignore): Use
7627 (define_nocomp_macro, append_nocomp_macro): New functions.
7628 (init_input_requests): Updated.
7629 (do_request): Rename local variable `saved_compatible_flag' to
7630 `old_compatible_flag'.
7631 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7633 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7634 public and trap-invoked macros. As a consequence, the man macros
7635 work in compatibility mode also.
7637 2001-05-06 Solar Designer <solar@openwall.com>
7639 * Makefile.in: Use $(mandir).
7641 2001-05-06 Alexios Zavras <zvr@pobox.com>
7643 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7645 2001-05-05 Werner LEMBERG <wl@gnu.org>
7647 Added `.ns' number register: Returns 1 in no-space mode (if in
7648 top-level diversion), 0 otherwise.
7650 * src/roff/troff/div.cc (no_space_mode_reg): New class.
7651 (init_div_requests): Updated.
7652 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7655 2001-05-04 Werner LEMBERG <wl@gnu.org>
7657 * src/roff/nroff/nroff.man: Improved documentation (especially
7660 2001-05-02 Werner LEMBERG <wl@gnu.org>
7662 Added `brp' request: This is \p as a request.
7664 * src/roff/troff/env.cc (environment::do_break): Add parameter
7666 (do_break_request): New function (was `break_request').
7667 (break_request): Calls `do_break_request'.
7668 (break_spread_request): New; calls `do_break_request'.
7669 (init_env_requests): Updated.
7670 * src/roff/troff/env.h: Updated.
7671 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7673 * REVISION: Increased to 1.
7674 * win32-diffs: Updated.
7676 2001-05-01 Werner LEMBERG <wl@gnu.org>
7678 * tmac/an-old.tmac: Fix minor compatibility mode issue.
7679 * tmac/troffrc-end: Make it really work in compatibility mode.
7681 2001-04-27 Werner LEMBERG <wl@gnu.org>
7683 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7686 2001-04-22 Werner LEMBERG <wl@gnu.org>
7688 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7689 latest versions from glibc CVS archive.
7691 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7692 <c.zeelenberg@hccnet.nl>.
7694 2001-04-21 Werner LEMBERG <wl@gnu.org>
7696 * configure.in: Move check for mkstemp() to...
7697 * aclocal.m4 (GROFF_MKSTEMP): This new function.
7698 * configure: Regenerated.
7700 * src/include/groff-getopt.h: Don't use variable names in
7703 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
7704 * src/devices/grohtml/Makefile.sub,
7705 src/devices/grohtml/post-html.cc: Updated.
7707 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
7709 * configure.in: Add special check for mkstemp().
7710 * src/libs/libgroff/tmpfile.cc: Use it.
7711 * src/utils/indxbib/indxbib.cc: Ditto.
7712 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7713 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7716 2001-04-20 Bruce Lilly <blilly@erols.com>
7718 `Version_string' as C++ object was not visible to linker from C
7720 Add `const' to `Version_string'.
7722 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7723 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7724 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7725 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7726 (scanArguments), src/preproc/refer/refer.cc (main),
7727 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7728 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7729 (main), src/devices/grohtml/post-html.cc (main),
7730 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7731 (main), src/utils/hpftodit/hpftodit.cc (main),
7732 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7733 (main), src/utils/lkbib/lkbib.cc (main),
7734 src/utils/addftinfo/addftinfo.cc (main): Implement it.
7736 * src/roff/groff/pipeline.c: Add _UWIN.
7737 * src/include/nonposix.h: Ditto.
7739 2001-04-20 Werner LEMBERG <wl@gnu.org>
7741 * src/include/lib.h: Use HAVE_STRERROR.
7742 * src/roff/groff/pipeline.c: Ditto.
7743 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7744 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7745 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7746 * win32-diffs: Updated.
7747 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7749 2001-04-19 Werner LEMBERG <wl@gnu.org>
7751 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7752 instead of hardwired `"troff"'.
7753 (char_buffer::read_file): Remove unused variables.
7754 (char_buffer::write_file_troff): Ditto.
7755 (char_buffer::write_file_html): Ditto.
7756 (generateImages): Ditto.
7758 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7760 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7762 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7763 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7764 index_search_item::search1): Ditto.
7765 * src/roff/troff/node.h (width_list): Reorder members.
7766 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7767 (lookup_warning): Ditto.
7768 (prepend_string): Commented out.
7769 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7770 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7771 * src/preproc/tbl/main.cc (process_format): Ditto.
7772 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7774 * src/preproc/pic/pic.cc: Updated.
7775 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7776 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7777 * src/preproc/refer/command.cc (execute_command): Ditto.
7778 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7779 * src/preproc/refer/token.cc (lookup_token): Ditto.
7780 * src/preproc/soelim/soelim.cc: Ditto.
7781 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7782 (isHexDigit): Commented out.
7783 (pushBackBuffer::isString): Remove unused variable.
7784 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7786 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7787 resource_manager::read_resource_arg, read_one_of, parse_extensions):
7789 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7790 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7791 lookup_paper_size): Ditto.
7792 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7793 (text_glob, element_list): Reorder members.
7794 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7796 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7797 return value to `void'.
7798 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7800 * src/devices/grohtml/html.h (simple_output::check_newline,
7801 simple_output::space_or_newline, simple_output::enable_newlines):
7803 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7805 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7806 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7807 output_ligatures, output_charset, read_map): Ditto.
7808 * src/utils/lookbib/lookbib.cc (main): Ditto.
7809 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7810 (do_file): Fix typo (`=' -> `==').
7811 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7812 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7814 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
7816 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7817 Fix usage of GROFF_BIN_PATH.
7818 * src/roff/nroff/nroff.man: Updated.
7820 2001-04-18 Werner LEMBERG <wl@gnu.org>
7822 * NEWS: Fixing typos.
7825 Version 1.17 released
7826 =====================
7828 2001-04-17 Werner LEMBERG <wl@gnu.org>
7830 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7831 directory, not in $(srcdir).
7833 2001-04-16 Werner LEMBERG <wl@gnu.org>
7835 * doc/groff.texinfo: More info on conditionals.
7837 2001-04-15 Werner LEMBERG <wl@gnu.org>
7839 * doc/groff.texinfo: Added some info about groff internals.
7841 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7842 about missing special character only if the name is non-null.
7844 2001-04-14 Werner LEMBERG <wl@gnu.org>
7846 Removing the grohtml-old device driver which is now obsolete.
7848 * src/devices/grohtml-old/*: Removed.
7849 * font/devhtml-old/*: Removed.
7850 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7852 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7853 * test-groff (PATH): Updated.
7854 * tmac/Makefile.sub (NORMALFILES): Updated.
7855 * tmac/an-old.tmac: Remove special code for html-old device.
7856 Replace `html-or-html-old' register with `an-html'.
7857 * tmac/eqnrc: Updated.
7858 * tmac/html-old.tmac: Removed.
7859 * tmac/troffrc, tmac/troffrc-end: Updated.
7860 * tmac/www.tmac: Remove special code for html-old device.
7861 Replace `html-or-html-old' register with `www-html'.
7863 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7864 src/libs/libgroff/htmlindicate.cc (graphic_end),
7865 include/htmlindicate.h, src/preproc/grn/*.cc,
7866 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7867 single argument for consistency with rest of source code.
7869 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7871 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
7873 * src/roff/troff/troff.man: Fixing typos.
7875 2001-04-13 Werner LEMBERG <wl@gnu.org>
7877 * doc/pic.ms: Fixing many font switches.
7878 * doc/groff.texinfo: Fixes, additions.
7879 * MORE.STUFF: Updated.
7881 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
7883 * src/devices/grohtml/grohtml.man: Updated manual page regarding
7885 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7887 (removeTempFiles): New function to tidy up temporary files.
7888 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7889 Many fixes to do with the new inline suppress node and image regions
7891 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7892 (generate_img_src): New function.
7893 (html_printer::do_auto_image): Utilizes it.
7894 (do_heading, do_title): Include inline images within their contents.
7895 (html_printer::begin_page): Tidied up comments that are issued to
7896 the html output file.
7897 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7899 (text_glob::is_br): New method used by do_heading.
7900 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7901 equivalent diversion.
7902 * src/include/html-strings.h: Altered image tags to reflect the
7904 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7906 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7907 it is already inside a pic image. Only emit tags if the argument
7908 `-Tps:html' is present.
7909 * src/preproc/tbl/main.cc: Changes to reflect additional
7910 `html_end_suppress' parameter.
7911 * src/roff/troff/env.cc: Only emit eol tag if a node has been
7912 emitted since the last eol tag was written.
7913 * src/roff/troff/env.h: New boolean `emitted_node'.
7914 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7915 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
7916 * src/roff/troff/node.cc (check_charinfo): New method.
7917 (troff_output_file::determine_line_limits): Alterations to limit
7919 * tmac/www.tmac: Changes to reflect new suppress nodes.
7921 2001-04-12 Bruno Haible <haible@clisp.cons.org>
7923 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7924 Escape the html_glyph in the buffer.
7925 (str_translate_to_html): Output the unescaped escaped_char.
7926 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7927 `frame=void', not `frame=none'. Add `border=0'.
7929 2001-04-12 Werner LEMBERG <wl@gnu.org>
7931 * PROBLEMS: Add some words on how to avoid wrapper macros.
7933 2001-04-11 Blake McBride <blake@florida-software.com>
7935 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7937 2001-04-11 Werner LEMBERG <wl@gnu.org>
7939 * font/devlbp/Makefile.sub (CLEANADD): Set it.
7940 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7941 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7942 * Makefile.sub (DISTCLEANFILES): Here.
7944 * libs/libgroff/new.cc: Include `nonposix.h'.
7945 * win32-diffs: Updated.
7947 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
7949 Added skeleton macro for defunct macros.
7951 Updated documentation.
7953 When inside displays, an empty input line warning should be
7954 suppressed. If another macro call is put inside a display,
7955 all subsequent empty lines found in that display caused a
7956 warning to be emitted.
7958 * tmac/doc.tmac (doc-defunct-macro): New macro.
7959 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7960 (doc-restore-global-vars): Fixed typo.
7961 (doc-empty-line): Check the `doc-display-depth' register to
7962 determine whether we are inside display or not.
7964 * tmac/doc-common: Removed `Or' and `Sf' registers.
7965 Moved obsolete `Ds' macro to doc.tmac.
7967 * tmac/groff_mdoc.man: Bump document date.
7968 Document `.Vt' under ``Variable Types''.
7969 Removed documentation for obsolete `.Or' macro.
7971 2001-04-10 Werner LEMBERG <wl@gnu.org>
7974 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7976 2001-04-10 Bruno Haible <haible@clisp.cons.org>
7978 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7979 (usage): Add stream argument. Don't exit.
7980 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7981 Write --version output to stdout, not stderr.
7982 (usage): Add stream argument. Don't exit.
7983 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7984 (usage): Add stream argument. Don't exit.
7985 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7987 (usage): Add stream argument. Don't exit.
7988 (main): Write --help output to stdout, not stderr.
7989 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7990 (usage): Add stream argument. Don't exit.
7991 * src/devices/grops/ps.cc (main): Accept --help and --version.
7992 (usage): Add stream argument. Don't exit.
7993 * src/devices/grotty/tty.cc (main): Accept --help and --version.
7994 (usage): Add stream argument. Don't exit.
7995 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7996 (main): Accept --help and --version.
7997 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7998 (main): Accept --help and --version.
7999 * src/preproc/html/pre-html.cc (usage): Add stream argument.
8000 (scanArguments): Accept --help and --version.
8001 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8002 (main): Accept --help and --version.
8003 * src/preproc/refer/refer.cc (main): Accept --help and --version.
8004 (usage): Add stream argument. Don't exit.
8005 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8007 (main): Accept --help and --version.
8008 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8009 (main): Accept --help and --version.
8010 * src/roff/groff/groff.cc (main): Accept --help and --version.
8011 (synopsis): Add stream argument.
8012 (help): Write --help output to stdout, not stderr.
8013 (usage): Add stream argument. Don't exit.
8014 * src/roff/grog/grog.pl: Accept --help and --version.
8016 * src/roff/grog/grog.sh: Accept --help and --version.
8017 * src/roff/nroff/nroff.sh: Accept --help and --version.
8018 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8019 (usage): Add stream argument. Don't exit.
8020 (main): Accept --help and --version.
8021 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8022 (usage): New function with stream argument, doesn't exit.
8023 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8024 (usage): New function with stream argument, doesn't exit.
8025 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8026 (usage): Add stream argument. Don't exit.
8027 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8028 (main): Accept --help and --version.
8029 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8031 (main): Accept --help and --version.
8032 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8033 (main): Accept --help and --version.
8034 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8035 (usage): Add stream argument. Don't exit.
8037 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
8039 Fix indentation in SYNOPSIS.
8041 Updated to include changes of latest BSD mdoc version (basically,
8042 the only change is that `.Fn' and `.Fc' put a final semicolon after
8043 a function declaration in the SYNOPSIS section).
8045 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8046 (doc-in-synopsis-section): New variable. Updated all related
8048 (doc-indent-synopsis-active): New register.
8049 (Nd, Fn, Fo): Use it.
8050 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8051 `.Cd' with long argument line produces indented wrapped lines.
8052 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8053 undesirable line break to be output.
8054 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8056 (Fn, Fc): Add final `;' to output.
8057 (doc-save-global-vars, doc-restore-global-vars): Updated.
8058 * tmac/doc-common: Remove `Ex' register.
8060 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8063 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8065 * tmac/doc.tmac (Cd): Simplify code.
8066 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8068 2001-04-06 Werner LEMBERG <wl@gnu.org>
8070 Implement continuous underlining for nroff mode. To do that, a new
8071 request in the ditroff language has been added: `x u N' (N is 0
8074 \X and \Y are now transparent to end-of-sentence recognition.
8076 * src/include/printer.h (printer): Add `type' parameter to `special'
8078 * src/libs/libdriver/printer.cc (printer::special): Updated.
8079 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8081 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8082 specials of type `p'.
8083 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8084 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8085 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8086 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8087 (glyph::order): New method.
8088 (tty_printer::add_char): Use it.
8089 (tty_printer::special): New method.
8090 (tty_printer::end_page): Implement it.
8092 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8093 * src/roff/troff/node.cc (special_node::special_node): Add parameter
8094 to set `no_init_string'.
8095 (special_node::tprint_start): Use it.
8096 (special_node::same, special_node::copy): Updated.
8097 (special_node::ends_sentence): New method.
8098 (troff_output_file::start_special): Add parameter to include
8099 inititialization of special conditionally.
8101 * src/roff/troff/env.h (environment): New member `underline_spaces'.
8102 * src/roff/troff/env.cc (do_underline_special): New function.
8103 (environment::set_font): Use it.
8104 (do_underline): Use it. This was `underline()'.
8105 (underline): Call `do_underline()'.
8106 (continuous_underline): New function which calls `do_underline()'.
8107 (environment::newline): Use `do_underline_special()'.
8108 (init_env_requests): Updated.
8110 * NEWS, man/troff_out.man: Updated.
8112 2001-04-06 Bruno Haible <haible@clisp.cons.org>
8114 * font/devutf8/R.proto: Fix code of 'shc'.
8116 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8118 Many fixes. Diag lists can now be nested also; additionally,
8119 `-compact' and `-offset' are supported.
8121 * tmac/doc.tmac (doc-have-indent): Replaced with ...
8122 (doc-list-have-indent-stackXXX): A new register stack.
8123 (doc-have-diag-list): Removed.
8124 (Bl): Use `doc-list-have-indent-stackXXX'.
8126 (doc-diag-list): Use `doc-compact-list-stackXXX'.
8127 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8128 (doc-set-vertical-and-indent): Ditto.
8129 (doc-next-list-depth): Removed.
8130 (doc-increment-list-stack): Updated.
8131 (doc-decrement-list-stack): Use `doc-list-depth' instead of
8132 `doc-next-list-depth'.
8133 (doc-end-list, doc-end-column-list): Don't use
8134 `doc-increment-list-stack'.
8135 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8136 (doc-save-global-vars, doc-restore-global-vars): Updated.
8137 * tmac/doc-common: Updated.
8138 * tmac/groff_mdoc.man: Updated.
8141 2001-04-02 Werner LEMBERG <wl@gnu.org>
8143 * src/devices/grotty/grotty.man: Fix grammatical error.
8145 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
8147 Remove .Ld from mdoc package; replace it with special handling of
8150 * tmac/doc-common: Remove `Ld' register.
8151 Uncomment `doc-volume-ds-*' strings.
8152 Remove `doc-operating-system-default'.
8154 * tmac/doc-syms (Ld): Removed.
8155 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8159 * tmac/groff_mdoc.man: Many fixes and updates.
8161 2001-03-29 Werner LEMBERG <wl@gnu.org>
8163 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
8164 Bond <tkb@tkb.mpl.com>.
8165 * tmac/www.tmac: Save compatibility mode.
8167 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
8169 * tmac/groff_mdoc.man: Many fixes.
8171 2001-03-28 Werner LEMBERG <wl@gnu.org>
8173 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8176 2001-03-27 Werner LEMBERG <wl@gnu.org>
8178 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8179 diversion. This fixes overlong tags.
8181 2001-03-26 Werner LEMBERG <wl@gnu.org>
8183 * doc/groff.texinfo: Fixed and improved documentation of fonts.
8184 * tmac/doc-syms: Fix error messages.
8185 * tmac/an-old.tmac: Remove incorrect double backslashes.
8187 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
8189 * tmac/Makefile.sub: Strip mdoc.local also
8190 * tmac/strip.sed: Fixed.
8192 2001-03-24 Werner LEMBERG <wl@gnu.org>
8194 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8195 selecting the font size.
8196 * tmac/groff_mdoc.man, NEWS: Document it.
8198 2001-03-23 Werner LEMBERG <wl@gnu.org>
8200 * src/roff/troff/div.cc (save_vertical_space): Add default argument
8202 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8203 argument to restore previous font family.
8204 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8206 * doc/groff.texinfo: More fixes and additions (mainly for font
8207 manipulating commands).
8209 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8210 * tmac/groff_mdoc.man: This. The quick reference has been removed.
8211 * tmac/Makefile.sub, NEWS: Updated.
8213 2001-03-23 Werner LEMBERG <wl@gnu.org>
8215 Replaced mdoc implementation. The new version is `state of the
8216 art', using almost all new features of groff 1.17 -- it won't run
8217 with older versions.
8219 * tmac/doc.tmac: Completely rewritten.
8220 * tmac/doc-common: Ditto.
8221 * tmac/doc-nroff: Ditto.
8222 * tmac/doc-ditroff: Ditto.
8223 * tmac/doc-syms: Ditto.
8224 * tmac/mdoc.local: New file.
8225 * tmac/groff_mdoc.samples.man: Replaced with ...
8226 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8227 * tmac/strip.sed: Updated.
8228 * tmac/Makefile.sub: Updated.
8231 * tmac/groff_man.man: Add `man.local' to the FILES section.
8233 2001-03-22 Werner LEMBERG <wl@gnu.org>
8235 * doc/groff.texinfo: Added many @noindent.
8236 Replaced @end_Example -> @endExample.
8237 Added info whether registers are r/o.
8238 Many other additions and fixes.
8240 2001-03-21 Werner LEMBERG <wl@gnu.org>
8242 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8243 in makeinfo of texinfo 4.0) to be used in @Def* macros.
8244 Improved @Def* macros: Now the exact syntax of request, register,
8245 and escapes is shown.
8246 Added macros for parentheses and brackets to be used in @Def*.
8247 Many fixes and improvements of the documentation.
8249 2001-03-20 Werner LEMBERG <wl@gnu.org>
8251 * doc/groff.texinfo: Added new index: `st' (for strings).
8252 Added macros @Defstr(x).
8253 Added macro @Example (adding @group).
8254 Other minor improvements.
8256 2001-03-19 Werner LEMBERG <wl@gnu.org>
8258 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8259 `rq' for requests. `fn' is no longer used.
8260 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8263 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8264 number with name of man page.
8266 2001-03-19 Larry Kollar <kollar@alltel.net>
8268 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
8271 2001-03-19 Werner LEMBERG <wl@gnu.org>
8273 * man/groff_font.man: Document `prepro', `postpro', and `print'.
8274 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8275 * src/devices/grohtml/grohtml.man: Fixing typos.
8277 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
8279 * tmac/s.tmac (@IP): Pass `.ip' html tag.
8280 * tmac/groff_mwww.man: Remove .LINE macro
8281 * tmac/www.tmac (LINE): Add `.ti'.
8283 * src/devices/grohtml/post-html.cc (html_printer): New member
8285 (html_printer::emit_raw): Use it.
8286 (html_printer::do_linelength): Ditto.
8287 (html_printer::do_pageoffset): Ditto.
8288 (html_printer::do_indentation): Ditto.
8289 (html_printer::do_tempindent): Ditto.
8290 (html_printer::do_break): Ditto.
8291 (html_printer::begin_page): Ditto.
8292 (html_printer::do_indentedparagraph): New function.
8293 (html_printer::troff_tag): Handle `.ip'.
8294 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8295 Add `<td width=...>' handling.
8296 (html_text::do_table): Add parameter.
8297 (html_text::do_indent): Updated.
8298 * src/devices/groohtml/html-text.h: Updated.
8300 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
8302 Introduced simple html tables to implement indentation.
8304 * src/devices/grohtml/html.h (word, word_list): New structures.
8305 (simple_output): Use it.
8306 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8307 (html_printer): Improve indentation handling.
8308 (html_printer::emit_raw): Set `in_table' element. Handle
8310 (html_printer::write_header): Move conditional downwards.
8311 Don't allow whitespace in tags.
8312 (html_printer::do_linelength): Handle line length and indentation
8314 (html_printer::do_pageoffset): Handle indentation conditionally.
8315 (html_printer::do_indentation): Ditto.
8316 (html_printer::do_tempindent): New function member.
8317 (html_printer::do_fill): Take care of indentation.
8318 (html_printer::do_flush): Finish table.
8319 (html_printer::do_links): Ditto.
8320 (html_printer::do_break): New function for handling `.br' and `.ti'.
8321 (html_printer::troff_tag): Use it.
8323 (html_printer::flush_globs): Fix.
8324 (html_printer::flush_page): Finish table.
8325 (html_printer::html_printer): Fix error message. Set up
8327 (html_printer::add_to_sbuf): Remove special handling of character
8329 (to_unicode): Remove `stop()'.
8330 (html_printer::write_title): Cleanup.
8331 (html_printer::begin_page): Use `put_string()'. Handle indentation.
8332 (html_printer::~html_printer): Flush text and end the line.
8334 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8335 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8337 (html_text::start_tag): Disable newlines.
8338 (html_text::table_is_void): New function.
8339 (html_text::issue_table_begin): Ditto.
8340 (html_text::issue_table_end): Ditto.
8341 (html_text::push_para): Better table handling.
8342 (html_text::do_indent): New function.
8343 (html_text::do_table): Ditto.
8344 (html_text::done_table): Ditto.
8345 (html_text::do_tt): Handle PRE_TAG.
8346 (html_text::is_in_table): New function.
8347 (html_text::check_emit_text): Handle tables.
8348 (html_text::do_emittext): Use `nl()'.
8349 (html_text::do_para): Handle table.
8350 (html_text::remove_def): New function.
8351 * src/devices/grohtml/output.cc (word, word_list): Implement
8353 (simple_output::end_line): Flush last word.
8354 (simple_output::simple_comment): Ditto.
8355 (simple_output::begin_comment): Recoded.
8356 (simple_output::end_comment): Ditto.
8357 (simple_output::comment_arg): Removed.
8358 (simple_output::check_newline): Improve test and flush last word.
8359 (simple_output::space_or_newline): Improved.
8360 (simple_output::write_newline): Replaced with...
8361 (simple_output::nl): This.
8362 (simple_output::put_raw_char): Flush last word.
8363 (simple_output::check_space): Removed.
8364 (simple_output::put_translated_string): Ditto.
8365 (simple_output::put_string): Simplified.
8366 (simple_output::put_number): Updated.
8367 (simple_output::put_float): Ditto.
8368 (simple_output::put_symbol): Removed.
8369 (simple_output::enable_newlines): Add `check_newline()'.
8370 (simple_output::flush_last_word): New function.
8372 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8373 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8375 * tmac/s.tmac (@PP, @IP): Add html conditional code.
8376 * tmac/an-old.tmac (TP): Ditto.
8378 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
8380 * mdate.sh: Make it POSIX compliant.
8382 2001-03-09 Werner LEMBERG <wl@gnu.org>
8384 Added the `return' request to end a macro immediately. It simply
8385 pops iterators from the input stack until a macro iterator is found.
8387 * src/roff/troff/input.cc (input_iterator::is_macro,
8388 macro_iterator::is_macro): New member.
8389 (input_return_boundary): New class to signal an immediate return
8391 (input_stack::add_return_boundary, input_stack::is_return_boundary):
8393 (input_stack::clear): Use it.
8394 (input_stack::pop_macro): New function.
8395 (while_request): Use `is_return_boundary()'.
8396 (return_macro_request): New function.
8397 (init_input_requests): Use it.
8399 * src/roff/troff/TODO: Updated.
8400 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8402 2001-03-08 Werner LEMBERG <wl@gnu.org>
8404 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8407 2001-03-07 Werner LEMBERG <wl@gnu.org>
8409 Make `\B' more rigid.
8411 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8413 (get_number_rigidly): New function.
8414 * src/roff/troff/input.cc (do_expr_test): Use it.
8415 * src/roff/troff/token.h: Updated.
8417 * src/roff/troff/request.h: Fix typo (init_html_request ->
8418 init_markup_request).
8420 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
8422 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
8423 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8424 are now `.begin', `.end', `.image'.
8426 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8427 (html_printer::add_to_sbuf): Changing type of `code' parameter.
8428 Use add_char_to_sbuf().
8429 (to_unicode): New function.
8430 (char_translate_to_html): Changing type of `ch' parameter.
8432 (html_printer::~html_printer): Comment out doctype string.
8433 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8434 instead of `.html-end'.
8435 (write_start_image): Use `.begin' and `.image' instead of
8436 `.html-begin' and `.html-image'.
8437 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8438 (html_begin): Renamed to ...
8440 (html_end): Renamed to ...
8442 (html_image): Renamed to ...
8444 (init_html_requests): Renamed to ...
8445 (init_markup_requests): This.
8446 * tmac/www.tmac: Updated.
8448 2001-02-28 Bram <bram@avontuur.org>
8450 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8453 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
8455 * doc/meref.me: Fixing some typos.
8457 2001-02-16 Werner LEMBERG <wl@gnu.org>
8459 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8460 method. Return `HYPHEN_MIDDLE' if it was `\:'.
8461 * src/roff/troff/node.h: Updated.
8463 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
8465 * tmac/groff_tmac.man: Fix typo.
8467 2001-02-16 Werner LEMBERG <wl@gnu.org>
8469 Fixing a bug which prevented proper end-of-sentence recognition
8470 between an `unformatted' box and the following text. As a
8471 consequence, vertical line distances are no longer preserved in
8472 boxes after a call to `.unformat' -- because boxes aren't
8473 line-oriented (contrary to diversions), this doesn't make sense
8476 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8478 (vertical_size_node::set_unformat_flag): New method.
8479 * src/roff/troff/node.hh: Updated.
8480 * src/roff/troff/input.cc (word_space_node::reread,
8481 hmotion_node::reread): Reset `unformat' flag after usage.
8482 (unformat_macro): Append only if `set_unformat_flag()' returns
8484 * src/roff/troff/troff.man: Updated.
8486 2001-02-15 Werner LEMBERG <wl@gnu.org>
8488 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8489 documentation of `asciify' and `unformat' requests.
8491 2001-02-13 Werner LEMBERG <wl@gnu.org>
8493 Redesigned the `unformat' request. It is no longer connected with
8494 `asciify' but rather uses new `reread()' methods if the `unformat'
8495 flag is set. Additionally, the handling of space characters after
8496 unformatting has been fixed so that they retain their width.
8498 * src/roff/troff/node.h (width_list): New structure to store
8499 original widths of spaces.
8500 (node): Added `unformat' member.
8501 Replaced `num_spaces' variable with `orig_width' list.
8502 * src/roff/troff/node.cc (*node::asciify,
8503 asciify_reverse_node_list): Removed `unformat_only' flag and related
8505 (word_space_node::asciify, word_space_node::word_space_node): Use
8507 (word_space_node::~word_space_node): New destructor.
8508 (word_space_node::copy): Updated to handle `orig_width'.
8509 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8510 (*node::merge_space): Update `orig_width' list if necessary.
8511 (*node::set_unformat_flag): New methods to set the `unformat' flag.
8512 * src/roff/troff/enc.cc (environment::space_newline): Use
8514 (environment::space): Added method to handle space width and
8515 sentence space width as parameters. Use `width_list'.
8516 (environment::make_tab_node): Updated.
8517 * src/roff/troff/env.h: Updated.
8518 * src/roff/troff/input.cc (word_space_node::reread,
8519 unbreakable_space_node::reread, hmotion_node::reread): New methods
8520 to handle nodes specially if `unformat' flag is set.
8521 (do_asciify_macro): Renamed back to ...
8522 (asciify_macro): This.
8523 (unformat_macro): New implementation to simply set the `unformat'
8526 * MORE.STUFF: Added more info about deroff.
8528 2001-02-08 Werner LEMBERG <wl@gnu.org>
8530 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8531 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8532 and `add_self()' methods to avoid hyphenation. For example, the
8533 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8534 soft hyphen after `foo'. Now the hyphen list is correctly
8535 `foo<ignore><ignore>bar'.
8537 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
8539 * tmac/groff_tmac.man: Fix `BIR' macro.
8541 2001-02-04 Werner LEMBERG <wl@gnu.org>
8543 A new escape sequence `\:', inserting a zero-width break point.
8545 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8546 * src/roff/troff/input.cc (get_copy, token::next, asciify):
8548 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8550 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
8551 and `asciify()' methods.
8552 * src/roff/troff/node.cc (space_node::space_node): Updated.
8553 (space_node::asciify): Handle `was_escape_colon'.
8554 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8556 Handle `\~' similar to other comparable requests.
8558 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8560 (token::next): Move creation of an unbreakable_space_node to...
8561 (token::add_to_node_list): Here.
8563 Fix a bug which sometimes prevented hyphenation of words connected
8564 with `\~' or `\ ' (and other escape sequences handled as
8565 TOKEN_NODE). This also fixes a hyphenation problem with boxes
8566 (after a call to the `unformat' request).
8568 * src/roff/troff/env.h (environment::possibly_break_line,
8569 environment::hyphenate_line): Introducing `start_here' parameter.
8570 * src/roff/troff/env.cc (environment::space_newline,
8571 environment::space): Use it.
8572 (environment::possibly_break_line, environment::hyphenate_line):
8574 * src/roff/troff/input.cc (process_input_stack): Use it.
8575 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8576 space_char_hmotion_node, overstrike_node): Add
8577 `get_hyphenation_type()' method.
8578 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8579 if `unformat_only' is active.
8581 2001-01-30 Werner LEMBERG <wl@gnu.org>
8583 Implemented new read-only number register `.linetabs' which
8584 returns 1 if in line-tabs mode, 0 otherwise.
8586 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8587 * src/roff/troff/env.cc (get_line_tabs): New function.
8588 (init_env_requests): Use it.
8589 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8591 * VERSION, REVISION: Changing to 1.17.0.
8593 2001-01-28 Werner LEMBERG <wl@gnu.org>
8595 Fixed a bug which prevented hyphenation of words which are finished
8598 * src/roff/troff/token.h (token): Add enum type
8599 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8600 * src/roff/troff/input.cc (token::next, token::description,
8601 get_line_arg, token::add_to_node_list, token::process): Use it.
8603 2001-01-27 Werner LEMBERG <wl@gnu.org>
8605 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8606 * src/roff/troff/div.cc (do_divert): Use it.
8608 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8610 2001-01-25 Werner LEMBERG <wl@gnu.org>
8612 Adding the `linetabs' request. If set, tab distances are not
8613 computed relative to the input line but relative to the output line.
8615 * src/roff/troff/env.h (environment): New member `line_tabs'.
8616 * src/roff/troff/env.cc (line_tabs_request): Implement request.
8617 (environment::environment, environment::copy): Updated.
8618 (environment::distance_to_next_tab): Use `line_tabs'.
8619 (init_env_requests): Register request.
8620 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
8623 2001-01-24 Werner LEMBERG <wl@gnu.org>
8625 Introducing a new read-only register `.int' which is set to a
8626 positive value if the last output line is interrupted (i.e., if it
8629 * src/roff/troff/env.cc (init_env_requests): Add it.
8630 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8632 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
8634 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8635 * src/preproc/html/pre-html.cc (findPrefix): New function which
8636 generates the troff executable name via the system prefix.
8637 * src/preproc/eqn/main.cc: Modified warning message.
8639 2001-01-23 Werner LEMBERG <wl@gnu.org>
8641 troff's `box' and `boxa' requests didn't preserve temporary
8644 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8645 `saved_target_text_length' members.
8646 * src/roff/troff/div.cc (do_divert): Use them.
8648 Tabs (but not yet leaders and fields) are now handled correctly by
8651 * node.h (hmotion_node): Add field `was_tab'.
8652 * env.cc (environment::make_tab_node): Set it.
8653 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8655 Added new request `unformat' which will, contrary to `asciify',
8656 preserve font information after unformatting (i.e., only nodes
8657 dealing with horizontal space are converted back to input
8660 * input.cc (asciify_macro): Renamed to ...
8661 (do_asciify_macro): this, having a new parameter `unformat_only'.
8662 (asciify_macro, unformat_macro): New; using do_asciify_macro.
8663 (init_input_requests): Added `unformat'.
8664 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8665 parameter to control asciification process.
8666 * node.h (*_node::asciify): Ditto.
8667 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8669 2001-01-20 Werner LEMBERG <wl@gnu.org>
8671 * doc/groff.texinfo: Minor improvement of `.in' documentation.
8673 2001-01-18 Werner LEMBERG <wl@gnu.org>
8675 * tmac/ps.tmac: Remove call of psold.tmac.
8676 * tmac/psold.tmac: Comment updated.
8677 * tmac/psnew.tmac: Removed since no longer needed.
8678 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8680 * font/devutf8/R.proto: Adding `shc' glyph.
8681 * font/devutf8/NOTES: Updated.
8683 * test-groff: Updated.
8685 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
8687 First cut of the new html device driver. Changes to pre-html and
8688 the new grohtml are too numerous to be documented here.
8690 Stuff related to `html' has been renamed to `html-old' and `html2'
8691 stuff has been renamed to `html' (including directories). The new
8692 html device driver is therefore invoked as `-Thtml'.
8694 Added new `\O' escape to suppress output (needed by html driver).
8696 Added functions and code to pass info about input-level commands
8697 (`.in', `.fl', etc.) to html driver.
8699 Three new functions (.html-begin, .html-end, and .html-image) for
8700 better html handling: `html-begin' will execute the remaining line
8701 if at the outermost nesting level, increasing an internal counter.
8702 `html-end' does the same but decreases the internal counter.
8703 `html_image' puts its arguments into a special node (suppress_node)
8704 to define an image region.
8706 The `output' request has been removed.
8708 * tmac/html-tags.tmac: Removed.
8709 * tmac/arkup.tmac: Updated and renamed to ...
8710 * tmac/www.tmac: New file.
8711 * tmac/markup.tmac Updated and renamed to ...
8712 * tmac/mwww.tmac: New file.
8713 * tmac/Makefile.sub: Updated.
8714 * tmac/an-old.tmac: Updated.
8715 * tmac/eqnrc: Updated.
8716 * tmac/groff_man.man
8717 * tmac/groff_markup.man: Updated and renamed to ...
8718 * tmac/groff_mwww.man: New file.
8719 * tmac/groff_tmac.man: Updated.
8720 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8721 * tmac/html.tmac: Updated and renamed from html2.tmac.
8722 * tmac/pspic.tmac: Updated html support.
8723 * tmac/s.tmac: Added html output support.
8724 * tmac/troffrc, tmac/troffrc-end: Updated.
8726 * Makefile.in, doc/Makefile: Updated.
8727 * doc/groff.texinfo: Added info about new `\O' escape.
8728 * doc/homepage.ms: Use `MAILTO' macro.
8730 * font/devhtml/DESC.proto: Add `C' font.
8731 * font/devhtml/Makefile.sub: Updated.
8732 * font/devhtml/R.proto: Minor fixes.
8733 * font/devhtml-old/Makefile.sub: Updated.
8735 * src/devices/grohtml-old/Makefile.sub: Updated.
8737 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8739 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8740 graphic_start): Add `inline' parameter. Update.
8741 (html_end_suppress, graphic_end): Update.
8743 * src/include/html-strings.h: New file.
8744 * src/include/htmlindicate.h: Comments updated.
8745 * src/include/printer.h: Updated.
8747 * src/preproc/eqn/main.cc (do_file, main): Updated.
8748 * src/preproc/pic/troff.cc (troff_output::start_picture,
8749 troff_output::finish_picture): Updated.
8750 * src/preproc/tbl/main.cc (process_input_file): Updated.
8752 * src/roff/groff/groff.cc (main): Updated.
8753 Pass device arguments to predrivers also.
8754 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8755 * src/roff/troff/env.h (environment): Updated.
8756 New elements `need_eol' and `ignore_next_eol' (for html output).
8757 * src/roff/troff/env.cc (environment::environment): Add initializers
8758 for `need_eol' and `ignore_next_eol'.
8759 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8761 (point_size, fill, no_fill, center, right_justify, line_length,
8762 indent, temporary_indent, break_request, handle_tab): Use
8764 (set_tabs): Use `add_html_tag_tabs()'.
8765 (environment::add_html_tag): Updated.
8766 (environment::do_break): Updated.
8767 * src/roff/troff/div.cc (space_request, flush_output): Use
8768 `environment::add_html_tag()'.
8769 * src/roff/troff/input.cc: Updated.
8770 New variable `html_level' to indicate nested `html-begin' requests.
8771 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8772 (non_interpreted_char_node, token_node, non_interpreted_node): Add
8773 `force_tprint()' method.
8774 (token::next): Handle `\O'.
8775 (do_suppress): Implement it.
8776 (html_begin, html_end, html_image): New functions.
8777 (init_output_requests): Renamed to ...
8778 (init_html_requests): this.
8780 (macro::append_str, macro::append_unsigned, macro::append_int): New
8782 New variable `output_low_mark_miny' to limit minimal value of y.
8783 (reset_output_registers): Use it.
8784 (output_request): Removed.
8785 (get_output_registers): New function.
8786 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8787 (*_node): Added `force_tprint()' if necessary.
8788 (special_node): New elements `tf' and `get_tfont()'.
8789 (suppress_node): New class.
8790 * src/roff/troff/node.cc:
8791 New global variables `image_no' and `suppress_start_page'.
8792 (real_output_file): New method `is_on()'.
8793 (troff_output_file): New method `start_special(tfont)'.
8794 (troff_output_file::really_print_line): Use `tprint' conditionally.
8795 (real_output_file::print_line): Updated.
8796 (real_output_file::on): Updated.
8797 (*_node): Added `force_tprint()'.
8798 (special_node::special_node): Initializer updated.
8799 (special_node::same, special_node::copy, special_node::tprint_start):
8801 (get_reg_int, get_reg_str): New functions.
8802 (suppress_node::*): New methods.
8803 New global variables last_position, last_image_filename;
8804 (min): New inline function.
8805 * src/roff/troff/reg.h, src/roff/troff/request.h,
8806 src/roff/troff/troff.h: Updated.
8808 2001-01-13 Werner LEMBERG <wl@gnu.org>
8810 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8811 documentation of `asciify' request.
8813 2001-01-12 Werner LEMBERG <wl@gnu.org>
8815 * src/roff/troff/input.cc: Move definition of special characters
8816 like `ESCAPE_TILDE' to ...
8817 * src/roff/troff/input.h: New file.
8818 * src/roff/troff/Makefile.sub (HDRS): Add it.
8820 Extending the .asciify request to `unformat' space characters also.
8822 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8823 to count input space characters.
8824 Update constructors to take care of it.
8825 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8826 `ESCAPE_SPACE' instead of normal space.
8827 (word_space_node::asciify): New method.
8828 (unbreakable_space_node::asciify): New method.
8829 (word_space_node::merge_space): New method.
8830 * src/roff/troff/env.cc (environment::space_newline,
8831 environment::space): Add code to initialize `num_spaces' (using the
8832 constructor of `word_space_node').
8833 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8836 2001-01-09 Werner LEMBERG <wl@gnu.org>
8838 * man/groff_char.man: Use table header traps only conditionally.
8840 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
8842 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8844 2001-01-08 Werner LEMBERG <wl@gnu.org>
8846 Introducing the `box' and `boxa' requests which are similar to
8847 `di' resp. `da' but omitting a partially filled line (which is
8848 restored after ending the diversion).
8850 * src/roff/troff/div.h (diversion): Add elements to save partially
8852 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8853 partially filled line.
8854 (divert, divert_append): Updated.
8855 (box, box_append): New functions.
8856 (init_div_requests): Use them.
8857 * src/roff/troff/env.h (environment): do_divert() is now a friend.
8858 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8860 * doc/groff.texinfo: Fix documentation of `lf' request.
8862 2000-12-25 Werner LEMBERG <wl@gnu.org>
8864 * src/roff/troff/troff.man, NEWS: Document `writem' request.
8866 2000-12-21 Werner LEMBERG <wl@gnu.org>
8868 Ignore `ss' request if in compatibility mode.
8870 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8871 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8872 * src/roff/troff/env.cc (space_size): Use it.
8874 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8875 `ss' request in nroff mode.
8877 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8880 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
8882 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8884 2000-12-13 Werner LEMBERG <wl@gnu.org>
8886 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8887 * src/preproc/eqn/neqn.man: Small fixes and additions.
8889 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
8891 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8894 * src/preproc/eqn/neqn.man: New file.
8896 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8899 * tmac/e.tmac: Add `T&' macro.
8900 Fix `indent cannot be negative' warning.
8901 * tmac/s.tmac: Fix `indent cannot be negative' warning.
8903 2000-12-07 Werner LEMBERG <wl@gnu.org>
8905 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8907 2000-12-06 Werner LEMBERG <wl@gnu.org>
8909 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8912 * MORE.STUFF: Added info about deroff for djgpp.
8914 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8915 documentation of -rcR switch.
8917 2000-12-03 Werner LEMBERG <wl@gnu.org>
8919 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8920 if -rcR=1 (which is now the default in nroff mode), a single, very
8921 long page is created instead of multiple pages: All `ne' and `wh'
8922 requests are put into conditionals; a new macro `an-end' is added to
8923 be called with `em'.
8925 Some other minor cleanups.
8927 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8929 2000-12-02 Werner LEMBERG <wl@gnu.org>
8931 Fixing a bug which prevented hyphenation in words followed
8932 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8934 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8935 Adding possibly_break_line().
8936 * src/roff/troff/env.h (environment): Make possibly_break_line()
8939 Make `\~' usable in .tr request.
8941 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8942 (token): Add stretchable_space().
8943 * src/roff/troff/input.cc (token::next, token::delimiter,
8944 token::description, process_input_stack, do_translate,
8945 add_to_node_list, token::process): Use it.
8946 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8947 for adjusting the space.
8948 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
8949 for stretchable space.
8950 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8951 (make_node): Add code for stretchable space.
8952 * src/roff/troff/env.cc (environment::add_char): Use it.
8953 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8954 (get_copy, token::next, transparent_translate, asciify): Use it.
8956 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8957 doc/groff.texinfo: Updated.
8958 * man/groff.man: Small reorderings.
8960 2000-11-23 Werner LEMBERG <wl@gnu.org>
8963 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8965 * src/roff/troff/input.cc (main): Add `config_macro_path' and
8966 `safer_macro_path' to -M option.
8967 * src/roff/troff/troff.man: Fixes.
8969 2000-11-22 Werner LEMBERG <wl@gnu.org>
8971 Use safer path (except for config files) if -U isn't specified. Add
8972 a special macro path (without home and current directory) for config
8973 files. Add home directory to unsafe path for consistency. Don't
8974 include the home directory in the font path.
8976 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8978 * src/include/macropath.h: Add `config_macrp_path'.
8979 * src/libs/libgroff/fontfile.cc: Fix font path.
8980 * src/roff/troff/input.cc (process_startup_file): Use
8981 `config_macro_path'.
8982 (main): Select unsafe path if -U is given.
8984 * src/preproc/eqn/main.cc (main): Fixing search path for
8986 * src/preproc/eqn/eqn.man: Updated.
8988 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8991 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8992 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8993 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8994 src/devices/grotty/grotty.man: Updated.
8996 * Makefile.in: Fix comments.
8998 2000-11-17 Werner LEMBERG <wl@gnu.org>
9000 * tmac/safer.tmac: Empty file added (again) for compatibility
9002 * tmac/Makefile.sub: Updated.
9004 2000-11-16 Werner LEMBERG <wl@gnu.org>
9006 * src/devices/grodvi/dvi.cc (main),
9007 src/devices/grohtml2/post-html.cc (main),
9008 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9009 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9010 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9011 (main), src/preproc/html2/pre-html.cc (main),
9012 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9013 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9014 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9015 (main), src/utils/hpftodit/hpftodit.cc (main),
9016 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9017 (main), src/utils/lookbib/lookbib.cc (main),
9018 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9019 (main): Use stdout for -v.
9020 * src/roff/groff/groff.cc (run_commands),
9021 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9022 to make direct printing to stdout possible.
9023 * src/roff/groff/pipeline.h: Updated.
9025 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9026 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9027 * src/utils/afmtodit/afmtodit.man: Updated.
9029 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9030 (version): New function.
9032 * src/utils/addftinfo/addftinfo.man: Updated.
9034 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9035 Fixing copyright dates.
9037 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9040 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9043 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9045 2000-11-15 Werner LEMBERG <wl@gnu.org>
9047 In all programs, make -v return immediately with exit status 0 to
9048 be compliant with the GNU standard.
9050 * src/devices/grodvi/dvi.cc (main),
9051 src/devices/grohtml2/post-html.cc (main),
9052 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9053 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9054 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9055 (main), src/preproc/html2/pre-html.cc (main),
9056 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9057 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9058 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9059 (main): Implement it.
9062 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
9063 and postprocessors to the -v option.
9065 * src/roff/grog/grog.pl: Implement -v.
9066 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9067 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9069 * src/roff/nroff/nroff.sh: Implement -v.
9070 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9071 * src/roff/nroff/nroff.man: Updated.
9073 * src/preproc/eqn/main.cc (main): Fix comment typo.
9075 * MORE.STUFF: Added info about djgpp port of grap.
9077 2000-11-14 Werner LEMBERG <wl@gnu.org>
9079 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9080 mode (or rather, implemented non-compatibility mode).
9081 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9083 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9084 replacing it -- we don't find gxditview otherwise.
9085 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9087 * src/preproc/pic/depend: Removed. Unnecessary.
9089 Implemented dummy keyword `solid' in pic for compatibility with
9092 * lex.cc (lookup_keyword): Added `solid'.
9093 * pic.y: Added SOLID with dummy rule.
9094 * pic.cc, pic_tab.h: Regenerated.
9095 * doc/pic.ms: Updated.
9097 2000-11-13 Werner LEMBERG <wl@gnu.org>
9099 For security reasons, don't use the current directory but the home
9100 directory while searching and scanning troffrc and troffrc-end.
9101 Similarly, replace the current directory with the home directory
9104 * Makefile.in (fontpath, tmacpath): Remove current directory.
9106 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9107 two parameters `add_home' and `add_current'.
9108 (search_path::~search_path, search_path::command_line_dir,
9109 search_path::open_file): Remove tests for `dirs' being zero.
9110 * src/include/searchpath.h: Adjust.
9111 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9113 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9115 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9116 * src/roff/troff/input.cc: Use `mac_path', initialized with
9118 (process_startup_file): Set `mac_path' to `safer_macro_path'.
9119 * src/roff/troff/env.cc: Use `mac_path'.
9121 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9123 * NEWS, man/roff.man, src/roff/troff/troff.man,
9124 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9127 2000-11-12 Werner LEMBERG <wl@gnu.org>
9129 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9131 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9132 * configure.in: Fix typo in comment.
9133 * configure: Regenerated.
9135 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9138 2000-11-08 Werner LEMBERG <wl@gnu.org>
9140 Add system tmac directory (/usr/local/lib/groff/site-tmac).
9142 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9143 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9146 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9147 * tmac/Makefile.sub (install_data): Create
9148 $(systemtmacdir) and $(localtmacdir).
9149 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9150 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9151 NEWS, doc/groff.texinfo: Updated and minor fixes.
9153 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9154 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9155 $(systemtmacdir) since the wrapper files are platform-dependent.
9157 2000-11-01 Werner LEMBERG <wl@gnu.org>
9159 * doc/groff.texinfo: Fix typo.
9161 2000-10-26 Werner LEMBERG <wl@gnu.org>
9163 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
9164 tmac.doc.old -> doc-old.tmac
9165 tmac.an.old -> an-old.tmac
9167 * tmac/tmac.*: Moved to ...
9168 * tmac/*.tmac: this.
9169 * tmac/man.local: Fix comment.
9170 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9171 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
9172 Added some `FILES' sections. More use of @...@ directives. Other
9174 * arch/djgpp/README, font/devutf8/NOTES: Updated.
9175 * doc/homepage.ms, doc/groff.texinfo: Updated.
9176 * man/groff.man, man/roff.man: Updated.
9177 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9178 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9179 src/devices/grotty/grotty.man: Updated.
9180 * src/preproc/pic/pic.man: Updated.
9181 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9182 instead of -mdoc.old.
9183 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9184 * src/roff/nroff/nroff.man: Updated.
9187 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9189 * tmac/mm.diff: Removed -- it has no use now since the mm package
9192 * tmac/*: Removed trailing spaces.
9194 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9195 the tmac subdirectory also).
9197 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9198 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9199 stuff since it is no longer needed.
9201 * README, PROBLEMS: Updated.
9203 2000-10-25 Werner LEMBERG <wl@gnu.org>
9205 Invert current behaviour: Search first FOOBAR.tmac, then
9208 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9209 (open_mac_file, macro_source): Implement it.
9210 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9211 doc/groff.texinfo, NEWS: Document it.
9213 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9214 Small documentation improvements.
9216 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9219 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9221 2000-10-24 Werner LEMBERG <wl@gnu.org>
9223 Add local tmac directory (groff/site-tmac).
9225 * Makefile.in: Add $(localtmacdir).
9226 (uninstall_dirs): Add $(localtmacdir).
9227 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9228 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9229 in $(localtmacdir). Create $(localtmacdir).
9230 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9231 Updated and minor fixes.
9233 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9235 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9237 2000-10-23 Werner LEMBERG <wl@gnu.org>
9239 Move hyphen.us to tmac directory.
9241 * src/roff/troff/hyphen.us: Removed.
9242 * src/tmac/hyphen.us: Added.
9243 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9245 Change installation structure for data files from .../groff/... to
9246 .../groff/<version><revision>/... to be conform with other GNU
9249 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9250 doc/Makefile: Implement it.
9251 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9252 * configure: Updated.
9253 * arch/djgpp/README, font/devutf8/NOTES: Use it.
9254 * NEWS: Document it.
9255 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9256 @MACRODIR@ instead of hard-coded directories.
9258 2000-10-22 Werner LEMBERG <wl@gnu.org>
9260 Implement $GROFF_BIN_PATH environment variable (which defaults to
9261 $bindir) used for child programs of groff and similar wrappers.
9263 * gendefs.sh: Improve documentation.
9264 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9265 src/preproc/eqn/Makefile.sub (neqn),
9266 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9267 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9269 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9270 $GROFF_PATH__ (the latter for communication with troff).
9271 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9273 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9274 doc/groff.texinfo: Document it.
9276 * doc/groff.texinfo: Improve documentation of troff's -a option.
9278 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
9280 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9281 non-intrusive eol marker.
9282 (troff_output_file::determine_line_limits): New function.
9283 (troff_output_file::draw): Use it.
9284 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9285 output_pending_lines() instead of output_line().
9286 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9287 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9288 createImage): Small fixes.
9290 2000-10-14 Werner LEMBERG <wl@gnu.org>
9292 Replace tmac.safer with a real secure solution.
9294 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9295 system_request, pipe_output): Disable requests if in safer mode.
9296 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9297 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9298 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9299 doc/groff.texinfo, src/roff/groff/groff.man,
9300 src/roff/troff/troff.man, arch/djgpp/README: Updated.
9302 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9303 (resource_manager::output_prolog): Replace setenv() with putenv().
9305 2000-10-09 Werner LEMBERG <wl@gnu.org>
9307 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9308 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9309 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9310 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9311 compilation errors with some compilers. It seems that this code
9312 is no longer necessary -- if yes, it is easy to add some #ifdef's
9313 for that particular old-fashioned compiler.
9315 * MORE.STUFF: Added info about Meta-tbl.
9317 * doc/groff.texinfo: Added more info about `.if "..."..."'.
9319 2000-10-07 Werner LEMBERG <wl@gnu.org>
9321 Adding a new escape sequence \B'...': If the string between
9322 the delimiters is a valid numeric expression, return the character
9323 `1', and `0' otherwise. This is an analogon to \A.
9325 * src/roff/troff/input.cc (do_expr_test): Implement it.
9326 (token::next): Use it.
9327 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9329 * tmac/tmac.trace: Made independent from escape character.
9331 2000-10-06 Werner LEMBERG <wl@gnu.org>
9333 Adding a new request .dei: define indirect. The first and second
9334 parameter of .dei are taken from string registers instead directly;
9335 this very special request is needed to make tmac.trace independent
9336 from the escape character (which might even be disabled).
9338 * src/roff/troff/input.cc (do_define_macro): Implement it.
9339 (define_macro_indirect): New function.
9340 (init_input_requests): Use it.
9342 Adding two requests .ecs and .ecr: Save and restore the escape
9343 character. These two requests are needed to make tmac.trace
9344 independent from the escape character (which might even be
9347 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9349 (init_input_requests): Use it.
9351 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9353 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
9355 Adding a new option -P and new environment variable GROPS_PROLOGUE
9356 to grops, selecting a different prologue file (minor modifications
9359 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9360 src/devices/grops/ps.cc (main): Implement it.
9361 * src/devices/grops/grops.man, NEWS: Document it.
9363 2000-09-22 Werner LEMBERG <wl@gnu.org>
9365 * INSTALL: Add info about selecting paper format.
9367 2000-09-21 Werner LEMBERG <wl@gnu.org>
9369 * src/roff/troff/input.cc (main): Fixing compiler warning.
9370 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9371 strings.h from the former to the latter.
9372 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9373 stuff from the former to the latter.
9375 2000-09-11 Werner LEMBERG <wl@gnu.org>
9377 Implementing two new requests .tm1 and .tmc: The former is similar
9378 to .tm but can output leading spaces; its syntax is similar to
9379 defining a string, i.e., a `"' can be used to mark the beginning of
9380 the string to be written to stderr: `.tm1 " test'. The latter is
9381 similar to .tm1 but doesn't write out a final newline character.
9383 * src/roff/troff/input.cc (terminal1, terminal_continue,
9384 do_terminal): New functions.
9385 (init_input_requests): Use them.
9386 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9388 2000-09-09 Werner LEMBERG <wl@gnu.org>
9390 * tmac/groff_mdoc.samples.man: Small fixes.
9392 2000-09-08 Werner LEMBERG <wl@gnu.org>
9394 * tmac/groff_mdoc.man: Fixing typo.
9396 2000-09-02 Werner LEMBERG <wl@gnu.org>
9398 Implementing a .nop request which does nothing.
9400 * src/roff/troff/input.cc (nop_request): New function.
9401 (init_input_requests): Use it.
9402 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9404 2000-09-01 Werner LEMBERG <wl@gnu.org>
9406 * doc/groff.texinfo: Added some comments.
9408 2000-08-30 Werner LEMBERG <wl@gnu.org>
9410 * src/roff/troff/TODO: Updated.
9412 2000-08-25 Werner LEMBERG <wl@gnu.org>
9414 * doc/groff.texinfo: Fix comment how to compile the DVI file.
9416 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9418 * font/devps/generate/Makefile (SHELL): Define explicitly to
9419 "/bin/sh", for non-Unix platforms.
9420 (extraclean): Use a more portable "" quoting instead of a
9421 backslash (which doesn't work on DOS/Windows).
9423 * font/devlj4/generate/Makefile (extraclean): Ditto.
9425 * font/devdvi/generate/Makefile (extraclean): Ditto.
9427 2000-08-25 Werner LEMBERG <wl@gnu.org>
9429 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9430 src/roff/troff/troff.man: Document Eli's latest changes.
9432 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9434 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9435 macro file names of the form NAME.tmac as well as tmac.NAME.
9437 2000-08-25 Werner LEMBERG <wl@gnu.org>
9439 * src/include/posix.h: Remove definition of FILENAME_MAX.
9441 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9442 `sys_fatal' and `stop' function().
9444 * test-groff: Updated.
9446 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
9448 Added the new troff command .output <arg> to suppress output (while
9449 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9450 registers (for passing the output dimensions to the output device).
9452 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9454 * src/roff/troff/node.h, src/roff/troff/node.cc
9455 (troff_output_file::really_print_line,
9456 ascii_output_file::really_print_line,
9457 supress_output_file::really_print_line): Use `width' parameter.
9458 (troff_output_file::really_on, troff_output_file::really_off,
9459 output_file::on, output_file::off, real_output_file::on,
9460 real_output_file::off, real_output_file::really_on,
9461 real_output_file::really_off): New functions.
9462 (real_output_file:public output_file): New variable `output_on'.
9463 (real_output_file::begin_page, real_output_file::copy_file,
9464 real_output_file::transparent_char, real_output_file::print_line):
9466 (real_output_file::print_line): Use check_output_limits.
9467 * src/roff/troff/reg.h, src/roff/troff/request.h,
9468 src/roff/troff/input.cc (assign_registers): New function to remove
9470 (do_ps_file): Use it.
9471 (check_output_limits, reset_output_registers, output_request,
9472 init_output_requests): New functions.
9473 (init_input_requests): Updated.
9475 Added new grohtml2 device and html2 preprocessor (coding
9476 not yet finished) which will eventually replace grohtml.
9478 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9480 * src/include/htmlindicate.h, src/include/htmlindicate
9481 (html_begin_suppress, html_end_suppress): New functions.
9482 * src/preproc/tbl/main.cc: Use it.
9483 * src/roff/groff/groff.cc: Add support for html2 device (which will
9484 automatically invoke the html2 preprocessor).
9485 * src/roff/troff/input.cc (is_html2): New variable.
9486 * src/roff/troff/troff.h, src/roff/troff/env.h,
9487 src/roff/troff/env.cc (environment::add_html_tag): New function
9489 (environment::do_break): Use it.
9490 * font/devhtml2/*: New files.
9491 * src/devices/grohtml2: New device.
9492 * src/preproc/html2: New preprocessor.
9493 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9495 2000-08-23 Werner LEMBERG <wl@gnu.org>
9497 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9499 2000-08-22 Werner LEMBERG <wl@gnu.org>
9501 * src/include/lib.h: Provide a fix for IRIX to not include
9504 2000-08-18 Werner LEMBERG <wl@gnu.org>
9506 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9507 since some non-GNU sed programs can't handle null regexps.
9508 * configure, src/preproc/eqn/Makefile.sub,
9509 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9511 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9512 bug (string.h and strings.h are both needed according to latest
9515 * MORE.STUFF: Added info about unroff and troffcvt.
9517 2000-08-08 Werner LEMBERG <wl@gnu.org>
9519 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9522 * tmac/tmac.man.old: Remove unused number register.
9524 * tmac.doc: Minor documentation fix.
9526 2000-08-07 Paul Eggert <eggert@twinsun.com>
9528 * src/roff/groff/pipeline.c (is_system_shell):
9529 Fix typo: "monocased_shell" no longer exists.
9531 2000-08-07 Paul Eggert <eggert@twinsun.com>
9533 Remove FILENAME_MAX limits.
9535 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9536 that the argument length is less than FILENAME_MAX.
9537 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9538 Use struct hack to allocate and free file name.
9539 (struct xtmpfile_list): fname is now part of the structure,
9540 not a pointer to another string.
9542 2000-08-07 Tom Schmidt <tschmidt@micron.com>
9544 * src/include/posix.h: Add a default value for FILENAME_MAX.
9546 2000-08-06 Paul Eggert <eggert@twinsun.com>
9548 Add support for new BSD-style man pages (with ".Dd" instead of
9549 ".TH"), so that "groff -man" understands both styles, even
9550 when running "groff -man" on a host whose system man page
9551 macros don't support ".Dd".
9553 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9554 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9555 in case the system man macros don't define Dd or TH.
9557 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9558 * tmac/tmac.an: New one-line file.
9559 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9561 2000-08-06 Werner LEMBERG <wl@gnu.org>
9563 * src/roff/troff/troff.man: Fixing typos.
9565 Version 1.16.1 released
9566 =======================
9568 2000-07-31 Werner LEMBERG <wl@gnu.org>
9570 Preparing release 1.16.1.
9572 * REVISION: Revision number set to 1.
9573 * MORE.STUFF: Added info about port to DOS.
9574 * NEWS, win32-diffs: Updated.
9576 * src/include/nonposix.h: Remove first line -- this file is used
9579 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9582 2000-07-30 Werner LEMBERG <wl@gnu.org>
9584 * doc/texinfo.tex: Update to latest version.
9586 2000-06-28 Paul Eggert <eggert@twinsun.com>
9588 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9589 commands that fail. Don't assume that "export a=b" is valid shell
9590 syntax. This is needed for Solaris 2.5.1.
9592 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9593 comment about missing Solaris headers.
9595 * PROBLEMS: Add section about problems with Sun Make and VPATH.
9597 2000-06-25 Werner LEMBERG <wl@gnu.org>
9599 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9602 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9604 * win32-diffs: Updated.
9605 * README.WIN32: Added CRs to make all Windows editors happy.
9607 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9608 src/roff/groff/pipeline.c).
9610 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9612 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9613 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9615 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
9617 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9618 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9620 (main): Support non-Posix systems with several different styles of
9621 slash characters in file names.
9623 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9624 (main) [SET_BINARY]: Switch stdin into binary mode.
9626 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9627 (main): Support file names with several possible slash-type
9628 characters, as given by DIR_SEPS[] in nonposix.h.
9629 (main) [__MSDOS__]: If renaming the temporary index file fails
9630 because it has more than one dot in its trunk, replace the dot
9631 with an underscore and try again.
9632 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
9634 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9636 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9637 (File::File): Open the input file in binary mode. Strip CR
9638 characters from each CR-LF pair.
9639 (xbasename): Support file names with several possible slash-type
9640 characters, as given by DIR_SEPS[] in nonposix.h.
9642 * src/include/Makefile.sub (HDRS): Add nonposix.h.
9644 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9645 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9646 [!_POSIX_VERSION]: Define for traditional Unix systems.
9647 (real_output_file::real_output_file): Remove the MSVC-specific
9648 call to popen, use instead POPEN_WT, appropriately defined on
9649 nonposix.h. #include nonposix.h.
9650 (real_output_file::~real_output_file): Remove the MSVC-specific
9651 call to pclose, a suitable macro is now defined on nonposix.h.
9652 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9653 and WEXITSTATUS instead of assuming traditional Unix
9654 interpretation of the status returned by pclose.
9656 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9657 call to popen, use POPEN_RT instead (appropriately defined on
9658 nonposix.h). #include nonposix.h.
9659 (ps_bbox_request): Open the PostScript file in binary mode.
9660 Close the file after processing it.
9661 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9664 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9665 A version of run_pipeline that doesn't use `fork'.
9666 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9667 (system_shell_name, system_shell_dash_c)
9668 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9669 the ugliness of testing DOS/Windows file names for equality, and
9670 support both stock shells and ports of Unix shells.
9672 * src/roff/groff/groff.cc: #include nonposix.h.
9673 (BSHELL): Definition moved to nonposix.h.
9674 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
9675 instead of a literal "-c".
9676 (xbasename): Support file names with several possible slash-type
9677 characters, as given by DIR_SEPS[] in nonposix.h.
9678 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9681 * src/preproc/soelim/soelim.cc: #include nonposix.h.
9682 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9684 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9687 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9689 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9692 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9694 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9695 P_tmpdir is defined, use it instead of the literal "/tmp".
9696 (remove_tmp_files, add_tmp_file): New functions.
9697 (xtmpfile): Record temporary files and register an atexit function
9698 to delete them explicitly, instead of relying on the OS to do
9699 that, which doesn't work on non-Unix systems.
9701 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9702 (search_path::search_path): Use PATH_SEP instead of a literal
9704 (search_path::command_line_dir): Ditto.
9705 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9706 to support non-Posix systems.
9708 * src/libs/libbib/search.cc: #include nonposix.h.
9709 (search_list::add_file): Open the file in binary mode.
9711 * src/libs/libbib/linear.cc: #include nonposix.h.
9712 (file_buffer::load): Remove \r characters preceding \n from the
9715 * src/libs/libbib/index.cc: #include nonposix.h.
9716 (make_index_search_item): Open index_filename in O_BINARY mode.
9717 (index_search_item_iterator::get_tag): Ditto. Remove \r
9718 characters before \n characters.
9719 (index_search_item::check_files): Open files in binary mode.
9720 (index_search_item::munge_filename): Support DOS-style file names
9721 with backslashes and drive letters, use IS_ABSOLUTE.
9723 * src/devices/grops/ps.cc: #include nonposix.h.
9724 (main) [SET_BINARY]: Switch stdout to binary mode.
9726 * src/devices/grolj4/lj4.cc: #include nonposix.h.
9727 (main) [SET_BINARY]: Switch stdout to binary mode.
9729 * src/devices/grolbp/lbp.cc: #include nonposix.h
9730 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9732 * src/devices/grodvi/dvi.cc: #include nonposix.h.
9733 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9735 (main) [SET_BINARY]: Switch stdout to binary mode.
9736 [_MSC_VER]: Remove an explicit call to _setmode.
9738 * src/include/nonposix.h: New file.
9740 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9741 operation when building with DJGPP.
9742 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9743 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9746 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9748 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9749 etc. can include a semi-colon on DOS/Windows.
9750 (depend.temp): Use depend1.temp instead of depend.temp1, to
9751 prevent files from overerwiting each other on 8+3 filesystems.
9753 * gendef.sh (t): Change definition to work with DOS/Windows.
9755 doc/groff.texinfo: Apart of some typo corrections, I also changed
9756 some index entris, to make them more non-ambiguous, and also put
9757 @ignore around some parts that are not yet written, to allow the
9758 Info output be readable.
9760 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
9762 Replaced specific checks for function declarations with a generic
9763 routine taken from GNU bfd.
9765 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9766 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9767 * configure.in: Use it.
9768 * src/devices/grolbp/lbp.cc, src/include/lib.h,
9769 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9770 src/roff/groff/groff.cc: Use it.
9771 * Makefile.in, configure: Updated.
9773 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
9775 * src/devides/grolbp/lbp.h: Removed unused variables.
9777 2000-05-31 Keith Thompson <kst@sdsc.edu>
9779 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9782 2000-05-31 Werner LEMBERG <wl@gnu.org>
9784 * aclocal.m4 (GROFF_SRAND): New function to test the return value
9785 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9786 * configure.in: Use it.
9787 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9788 * configure, Makefile.in: Updated.
9790 * configure.in: Add test for strncasecmp().
9791 * src/include/lib.h: Use it.
9793 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
9795 * src/preproc/grn/Makefile.sub: Add MLIB.
9797 2000-05-29 Nix <nix@esperi.demon.co.uk>
9799 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9801 2000-05-29 Werner LEMBERG <wl@gnu.org>
9803 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9805 * PROBLEMS: Small update.
9807 * src/devices/grolbp/lbp.cc: Various small fixes.
9809 2000-05-28 Keith Thompson <kst@sdsc.edu>
9811 * src/roff/nroff/nroff.sh: Fix main loop syntax.
9813 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9815 2000-05-25 Werner LEMBERG <wl@gnu.org>
9817 * man/roff.man: Removed unused macro.
9819 2000-05-24 Werner LEMBERG <wl@gnu.org>
9821 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
9822 This is needed e.g. if you do
9823 `make distclean; ./configure; make dist'.
9825 Version 1.16 released
9826 =====================
9828 2000-05-23 Werner LEMBERG <wl@gnu.org>
9830 Adding font CWI (constant width italic) to devdvi.
9832 * font/devdvi/CWI: New file.
9833 * font/devdvi/generate/Makefile: Add generating rule.
9834 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9835 tmac/tmac.dvi: Use it.
9836 * NEWS: Announce it.
9838 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9839 * font/devlj4/generate/Makefile: Cosmetic changes only.
9841 * man/groff.man: Removed most of the redundant description of
9842 special characters (which is in groff_char.man). Added font
9843 translation CB->CR for devdvi. Other minor fixes.
9845 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9846 (registered) symbols.
9848 2000-05-22 Werner LEMBERG <wl@gnu.org>
9850 * doc/Makefile: Added rule for creating info files.
9852 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
9854 * font/devdvi/generate/Makefile: Fixed dependencies.
9856 * font/devps/*: Regenerated. Heavy changes for Bookman and
9857 NewCentury Schoolbook!
9858 * font/devps/generate/afmname: Will now run with GNU awk.
9859 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9860 * font/devps/generate/Makefile: Cosmetic changes only.
9862 2000-05-21 Werner LEMBERG <wl@gnu.org>
9864 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9865 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
9866 `.SS' now produces a heading with a smaller size than `.SH'.
9867 Completely formatted.
9868 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9870 * man/groff.man: Improved table appearance. Use of `eo' request
9871 to reduce number of doubled backslashes in macro definitions.
9872 Replacing `\e' with `\(rs'. Other minor fixes.
9874 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9875 to have correct line number.
9877 * INSTALL: Small improvement.
9879 2000-05-20 Bernd Warken <bwarken@mayn.de>
9881 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9884 2000-05-19 Bernd Warken <bwarken@mayn.de>
9886 * man/groff.man: Complete update (with a lot of corrections by WL).
9888 2000-05-18 Werner LEMBERG <wl@gnu.org>
9890 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9892 * font/*/*: Implement it.
9893 * man/groff_char.man, NEWS: Document it.
9895 * src/include/unix.h: Removed. It isn't used.
9897 * doc/groff.texinfo: Slight improvements.
9899 2000-05-17 Werner LEMBERG <wl@gnu.org>
9901 * README, win32-diffs: Small fixes and improvements.
9903 2000-05-16 Werner LEMBERG <wl@gnu.org>
9905 * FDL: New file (the Free Documentation License version 1.1).
9907 * doc/groff.texinfo: Added many start-up values for gtroff.
9908 Some structural improvements of the source code.
9910 2000-05-15 Werner LEMBERG <wl@gnu.org>
9912 * src/roff/troff/input.cc: Added small comment about troffrc-end.
9913 * src/roff/troff/troff.man: Added info about troffrc-end.
9915 2000-05-14 Werner LEMBERG <wl@gnu.org>
9917 * Makefile.in (EXTRADIRS): Fix typos.
9918 (dist): Handle deletion of old .tar.gz file correctly.
9919 (DISTDIRS): Include all tty output devices.
9921 * doc/groff.texinfo: Adding more cross references; countless other
9924 2000-05-13 Werner LEMBERG <wl@gnu.org>
9926 * MORE.STUFF: Added Robert Marks's utilities.
9928 2000-05-12 Werner LEMBERG <wl@gnu.org>
9930 Added win32 port contributed by Blake McBride
9931 <blake@florida-software.com>.
9933 * README.WIN32, win32-diffs: New files.
9936 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9937 (tmove, tmove2): Added parentheses to avoid compiler warnings.
9938 (change): Removed unused variables.
9940 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9941 (savebounds): Changed return value from `int' to `void'.
9942 * src/preproc/grn/hdb.cc: Ditto.
9944 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9945 final backslash in comment to avoid compiler warning.
9947 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9949 * doc/groff.texinfo: More fixes.
9951 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
9953 * tmac/tmac.doc: Documentation fix.
9955 2000-05-11 Werner LEMBERG <wl@gnu.org>
9957 * doc/groff.texinfo: Reading the source code shows up a lot of
9958 omissions and incorrect data... More conversion to @Deffn macros.
9960 2000-05-10 Werner LEMBERG <wl@gnu.org>
9962 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9965 * src/roff/troff/request.h: Removing unused `no_break_flag'.
9967 2000-05-09 Werner LEMBERG <wl@gnu.org>
9969 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9972 * doc/groff.texinfo: Extended history section. More conversion to
9973 @Deffn macros. More .tr documentation.
9975 2000-05-07 Werner LEMBERG <wl@gnu.org>
9977 * doc/groff.texinfo: Completed tab section. Added info about
9980 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
9982 * PROBLEMS: Describe configure script fix for OS/390 Unix.
9984 2000-05-05 Werner LEMBERG <wl@gnu.org>
9986 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9988 * NEWS: Document it.
9990 * man/troff.man: Minor optical improvements.
9992 2000-05-03 Werner LEMBERG <wl@gnu.org>
9994 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9996 * font/*/*: Implement it.
9997 * man/groff_char.man, NEWS: Document it.
9999 2000-05-02 Werner LEMBERG <wl@gnu.org>
10001 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10003 * NEWS: Document the three new man pages.
10005 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10006 * configure: Updated.
10008 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10010 2000-05-01 Werner LEMBERG <wl@gnu.org>
10012 Added grap support to grog.
10014 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10015 * src/roff/grog/grog.man: Document it.
10017 * doc/groff.texinfo, NEWS: Add info about grap support.
10019 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10020 (with slight fixes by me).
10022 * tmac/groff_tmac.man: New file documenting tmac mechanism.
10023 * tmac/Makefile.sub: Add groff_tmac.man.
10024 * man/roff.man: New file giving overview of roff system.
10025 * man/troff.man: A short reference of troff.
10026 * man/Makefile.sub: Add roff.man and troff.man.
10028 2000-04-30 Werner LEMBERG <wl@gnu.org>
10030 Added grap support to groff.
10032 * src/roff/groff/groff.cc: Implement it.
10033 * src/roff/groff/groff.man: Document it.
10035 * src/devices/grotty/grotty.man: Add cp1047 device.
10036 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10038 * src/roff/groff/groff.man: Ditto.
10039 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10040 * doc/groff.texinfo: Ditto.
10042 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10045 2000-04-29 Werner LEMBERG <wl@gnu.org>
10047 * man/groff_char.man: Add `pc' glyph.
10048 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10049 * tmac/tmac.tty: Add `pc' glyph.
10050 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
10051 we use cp1047 output device.
10053 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10054 there are still hardcoded latin1->unicode values in utf8's font
10056 * configure: Updated.
10057 * NEWS: Minor clarification. Updated.
10059 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
10062 2000-04-28 Werner LEMBERG <wl@gnu.org>
10064 Adding EBCDIC code page 1047.
10066 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10067 font/devcp1047/DESC.proto: New files.
10069 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10070 either ascii/latin1 or cp1047.
10071 * Makefile.in: Use it.
10072 * configure: Updated.
10074 Replacing and/or adding `md' (mathdot) glyph with `pc'
10075 (periodcentered) in all text fonts.
10077 * font/*/*: Change it.
10079 2000-04-27 Werner LEMBERG <wl@gnu.org>
10081 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10083 * configure.in: Add check for strings.h.
10084 * src/include/driver.h: Use HAVE_STRINGS_H.
10085 * src/devices/grolbp/lpb.cc: Remove string.h.
10087 * src/include/groff-getopt.h: New file. It will be used instead of
10088 getopt.h (to be included in lib.h) to avoid endless problems with
10089 picky C++ compilers.
10090 * src/include/lib.h: Use groff-getopt.h.
10091 * src/include/Makefile.sub: Updated.
10093 * configure: Updated.
10094 * Makefile.in: Updated.
10096 * NEWS: Mention EBCDIC support.
10098 2000-04-26 Werner LEMBERG <wl@gnu.org>
10100 * TODO: Some additions.
10102 2000-04-25 Werner LEMBERG <wl@gnu.org>
10104 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10107 2000-04-23 Werner LEMBERG <wl@gnu.org>
10109 * src/roff/troff/troff.man: Minor fixes.
10111 2000-04-22 Werner LEMBERG <wl@gnu.org>
10113 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10114 `.T' string register and the incompatible definition of the `.T'
10115 number register (compared to Unix troff).
10117 * man/groff_char.man: Add some missing characters.
10118 * font/devutf8/NOTES: Update.
10120 2000-04-21 Werner LEMBERG <wl@gnu.org>
10122 * src/include/htmlindicate.h, src/include/lib.h,
10123 src/include/posix.h: Fix copyright.
10125 * src/include/Makefile.sub: Update.
10127 2000-04-20 Werner LEMBERG <wl@gnu.org>
10129 * src/roff/troff/input.cc (input_char_description): Removing
10130 superfluous space char.
10132 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10134 * doc/groff.texinfo: Document EBCDIC.
10136 2000-04-19 Werner LEMBERG <wl@gnu.org>
10138 Introducing `shc' as the glyph name for the soft hyphen character.
10140 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10141 font/devlatin1/R.proto: Use it.
10145 2000-04-18 Werner LEMBERG <wl@gnu.org>
10147 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10148 dependency on ASCII order.
10150 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
10152 * src/libs/libgroff/illegal.c: Added EBCDIC table.
10153 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10155 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10156 to increase portability.
10158 2000-04-15 Werner LEMBERG <wl@gnu.org>
10160 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10161 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10162 the generic `\n' if under OS/390 Unix.
10164 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10166 * configure: Regenerated.
10168 2000-04-14 Werner LEMBERG <wl@gnu.org>
10170 * doc/groff.texinfo: More conversions to @Deffn.
10172 2000-04-12 Werner LEMBERG <wl@gnu.org>
10174 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10177 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10179 2000-04-10 Werner LEMBERG <wl@gnu.org>
10181 * doc/groff.texinfo: More conversions to @Deffn.
10183 2000-04-08 Werner LEMBERG <wl@gnu.org>
10185 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10186 Updated to latest version (glibc 2.1.3).
10188 2000-04-07 Werner LEMBERG <wl@gnu.org>
10190 * doc/Makefile (clean): Include more index files.
10191 Add rule texinfo->dvi.
10193 2000-04-05 Werner LEMBERG <wl@gnu.org>
10195 * doc/groff.texinfo: Added new index `op' for operators. More
10196 info on end of sentence characters. More use of @Deffn.
10198 2000-03-30 Werner LEMBERG <wl@gnu.org>
10200 * */*.man: Adding a note that a whitespace can be inserted between
10201 a command line option and its parameter -- we are using GNU getopt.
10203 * src/roff/groff/groff.man: Add example of `-m mandoc'.
10205 2000-03-28 Werner LEMBERG <wl@gnu.org>
10207 Correct anachronism of calling the man macro file with `-man'
10208 instead of `-m man' etc.
10210 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10211 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10212 load tmac.<package>.
10214 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
10218 * doc/groff.texinfo: Updated.
10220 * tmac/groff_man.man: Copyright added.
10222 2000-03-27 Werner LEMBERG <wl@gnu.org>
10224 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10225 typeset the request resp. escape name with a tt font -- due to a
10226 bug in texinfo.tex it is necessary to use the `-e' switch with
10229 Improving info about usage of groff units.
10233 2000-03-20 Werner LEMBERG <wl@gnu.org>
10235 * doc/groff.texinfo: Added section about man macro package
10236 (I've basically taken groff_man.man). Introducing new indices `ma'
10237 for macros/strings and `gl' for glyph names. Other minor fixes.
10239 * tmac/groff_man.man: Fixed some typos.
10241 2000-03-19 Werner LEMBERG <wl@gnu.org>
10243 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10246 * doc/texinfo.tex: New file.
10248 2000-03-18 Werner LEMBERG <wl@gnu.org>
10250 * doc/groff.texinfo: Improved section on number registers. Other
10253 2000-03-16 Werner LEMBERG <wl@gnu.org>
10255 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
10258 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10259 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10260 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10261 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10263 * src/preproc/grn/grn.man: Better synopsis; added copyright.
10265 * src/roff/grog/grog.man: Updated copyright date.
10267 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
10269 * configure.in: Added test for strdup.
10271 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10274 Replaced dynamic allocation of arrays `[...]' with `new' operator.
10278 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
10280 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10282 2000-03-11 Werner LEMBERG <wl@gnu.org>
10284 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10286 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10287 * src/include/lib.h: Remove some spaces.
10289 2000-03-10 Werner LEMBERG <wl@gnu.org>
10291 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10292 initializers from arguments (some compilers don't like this).
10294 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
10296 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10297 used by pic and eqn to tell grohtml where the graphic regions start
10299 * src/libs/libgroff/Makefile.sub: Use it.
10300 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10301 graphic_start() and graphic_end() from htmlindicate.cc.
10303 2000-03-09 Werner LEMBERG <wl@gnu.org>
10305 * tmac/tmac.safer: Will now work correctly in compatibility mode.
10306 * tmac/groff_man.man: More fixes.
10308 2000-03-08 Werner LEMBERG <wl@gnu.org>
10310 * doc/Makefile: Added texput.log to the `clean' target.
10311 * doc/groff.texinfo: Added info about delimiters for escapes.
10313 2000-03-08 Bernd Warken <bwarken@mayn.de>
10315 * src/preproc/pic/pic.man: Add info on conversion of pic images to
10316 other graphic formats.
10318 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
10320 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10321 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10322 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10325 2000-03-07 Werner LEMBERG <wl@gnu.org>
10327 * doc/groff.texinfo: Spelling fixes.
10329 2000-03-06 Werner LEMBERG <wl@gnu.org>
10331 * tmac/groff_man.man: Completely revised to cover everything in
10334 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10335 Other minor fixings.
10336 * src/roff/troff/env.cc (environment_copy): Improve error message and
10338 * src/roff/troff/TODO: Updated.
10340 * doc/Makefile: Bug fixes -- this is still provisional, though...
10342 * tmac/eqnrc: Small fixes.
10344 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
10346 Adding a request `evc' to copy environments.
10348 * src/roff/troff/env.cc (environment::copy, environment_copy):
10350 * src/roff/troff/env.h: Add prototype.
10352 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
10354 Adding strsep() -- Solaris 8 doesn't have it.
10356 * configure.in: Test it.
10357 * src/devices/grolbp/lbp.cc: Add code.
10359 2000-03-05 Werner LEMBERG <wl@gnu.org>
10361 * src/roff/troff/div.cc (macro_diversion::output,
10362 top_level_diversion::output): Fixing an incompatibility with
10363 original troff: \x'0' updates the .a register also. Thanks to
10364 <Andries.Brouwer@cwi.nl> for pointing this out.
10365 * doc/groff.texinfo: Document it.
10367 * Makefile.in: Create Makefile.dep if necessary before calling the
10368 submake process to avoid warning about nonexistent file.
10370 * NEWS, PROJECTS: Updated.
10372 2000-03-04 Werner LEMBERG <wl@gnu.org>
10374 * tmac/troffrc: Add tmac.lbp.
10376 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
10378 * tmac/tmac.lbp: New file.
10379 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10382 2000-03-03 Werner LEMBERG <wl@gnu.org>
10384 * Makefile.in: Fixing $(subdir).
10386 * README, NEWS: Small fixes.
10388 * test-groff: Adding path to grolbp.
10390 * configure.in: The (new) file src/xditview/Imakefile.in will be
10391 also configured -- it is now possible to build gxditview in a
10392 directory different from $srcdir.
10394 2000-03-02 Blake McBride <blake@florida-software.com>
10396 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10398 * MORE.STUFF: Added website of bell labs and info about plot2dev.
10400 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
10402 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10405 2000-02-29 Werner LEMBERG <wl@gnu.org>
10407 Adding GNU getopt to the groff distribution.
10409 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10411 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10412 * aclocal.a4: Remove GROFF_GETOPT function.
10413 * configure.in, Makefile.in, PROBLEMS: Update.
10414 * src/include/lib.h: Replace getopt tests with getopt.h.
10415 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10417 * doc/groff.texinfo: Further checking/updating. Adding more index
10420 * man/groff_out.man: Fix nroff mode activation (for emacs).
10421 * man/groff_font.man: Add missing ligature.
10423 2000-02-28 Werner LEMBERG <wl@gnu.org>
10425 * doc/groff.texinfo: Further checking/updating. Adding more index
10428 * src/devices/grolbp/grolbp.man: Added a comment line at the
10429 beginning of the file (similar to shell scripts) which indicates
10430 that `tbl' should be used as a preprocessor.
10432 2000-02-27 Blake McBride <blake@florida-software.com>
10434 Adapting groff to MS Visual C++ 6.0 compiler (tested with
10435 Windows NT 4.0). Uses _MSC_VER define where necessary.
10437 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10438 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10439 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10440 src/include/lib.h, src/libs/libgroff/errarg.cc,
10441 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10442 src/preproc/refer/label.y, src/preproc/refer/label.cc,
10443 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10444 src/roff/troff/div.cc, src/roff/troff/env.cc,
10445 src/roff/troff/input.cc, src/roff/troff/node.cc,
10446 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10447 if_to_a() to avoid name clashes.
10448 * src/include/posix.h: Don't use unistd.h.
10449 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10450 clause for integrating non-Unix xtmpfile() code.
10451 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10452 structure; use "rt" for popen() in pipe_source(); add getpid()
10454 * src/roff/troff/node.cc: Use special versions of popen() in
10455 real_output_file() and pclose() in ~real_output_file().
10457 2000-02-27 Werner LEMBERG <wl@gnu.org>
10459 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10460 LBP-8 series laser printers). This code has been contributed by
10461 Francisco Andrés Verdú <pandres@dragonet.es>.
10463 * src/devices/grolbp/*: The grolbp output device.
10464 * font/devlpb/*: The font description files.
10465 * Makefile.in: Add grolpb and devlbp subdirectories.
10467 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10468 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10471 * doc/groff.texinfo: Further checking/updating. Adding more index
10476 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10478 * man/groff_font.man: Adding info about obsolete DESC keywords.
10479 * src/devices/grolj4/grolj4.man: Documenting additional DESC
10482 2000-02-26 Werner LEMBERG <wl@gnu.org>
10484 * src/preproc/grn/grn.man: Added info about the gremlin file format
10485 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10487 2000-02-25 Werner LEMBERG <wl@gnu.org>
10489 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10490 friends to be non-integer.
10492 * src/preproc/grn/grn.man: Document it.
10494 * doc/groff.texinfo: Further checking/updating. Adding more index
10497 2000-02-24 Werner LEMBERG <wl@gnu.org>
10499 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10500 line thicknesses to be integer multiples of this value.
10502 * src/preproc/grn/grn.man: Commenting out the -s option -- the
10503 corresponding code doesn't work (yet).
10505 * doc/groff.texinfo: Further checking/updating. Adding more index
10508 2000-02-23 Werner LEMBERG <wl@gnu.org>
10510 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10511 specify line thickness instead of base units. The new default
10512 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10513 thick lines respectively.
10515 Removed unused variable `prevval'.
10517 * src/preproc/grn/grn.man: Updated.
10519 2000-02-22 Werner LEMBERG <wl@gnu.org>
10521 * src/preproc/grn/main.cc: Slight formatting.
10523 * src/roff/groff/groff.man: Formatting fix.
10524 * src/preproc/grn/grn.man: Ditto.
10526 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10528 * doc/groff.texinfo: Further checking/updating.
10530 2000-02-21 Werner LEMBERG <wl@gnu.org>
10532 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10534 * test-groff: Added grn subdir to path.
10536 * doc/groff.texinfo: Some restructing and other small improvements.
10538 * src/roff/groff/groff.cc (help): Fixed info string.
10540 2000-02-20 Werner LEMBERG <wl@gnu.org>
10542 * doc/meref.me: Fix description of .GS request.
10544 * src/roff/troff/troff.man: Fixing typo.
10546 Adding the `grn' preprocessor for gremlin graphic files.
10548 * src/preproc/grn/*: This is the Berkeley distribution written by
10549 David Slattengren and Barry Roitblat, adapted to groff by Daniel
10550 Senderowicz and Werner Lemberg.
10552 * doc/grnexampl.{me,g}: A sample for grn.
10554 * Makefile.in: Added subdirectory entry for grn.
10556 * src/roff/groff/groff.cc: Added support for grn. It can be now
10557 called with the switch `-g'.
10559 * src/roff/groff/groff.man: Updated.
10561 * src/roff/grog/grog.{man,pl,sh}: Updated.
10565 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
10567 * src/include/lib.h: Added xtmptemplate and made xtmpfile
10568 parametrically polymorphic.
10570 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10571 and the alterations to xtmpfile.
10572 xtmpfile can be requested to return the filename created
10573 and asked not to unlink the temp file. The default behaviour
10574 if parameters are absent is exactly the same as before.
10576 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
10578 A new request `length' is available which returns the length of a
10579 string in a number register:
10581 * src/roff/troff/input.cc (length_macro): Implement it.
10582 * src/roff/troff/input.cc (init_input_requests): Register it.
10584 2000-02-11 Werner LEMBERG <wl@gnu.org>
10586 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10587 of the `substring' request.
10589 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10592 * src/roff/troff/TODO, NEWS: Updated.
10594 2000-02-09 Werner LEMBERG <wl@gnu.org>
10596 * src/roff/groff/groff.man: Added an example.
10598 2000-02-06 Werner LEMBERG <wl@gnu.org>
10600 I've considerably modified the directory structure of the
10601 distribution to get a more vertical layout. For example, the number
10602 of top level directories has been reduced from 42 to 6.
10604 As a consequence, many changes, especially to the makefiles, were
10607 * The makefile variables `top_builddir' and `top_srcdir' have been
10608 introduced. Virtually all relative paths have been replaced with
10609 absolute ones using these two variables.
10611 * Dependencies (in the files `Makefile.dep') are no longer part of
10612 the distribution. Instead, they are created during a `make install'
10613 in the build directory.
10615 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10616 make `top_srcdir' and `top_builddir' absolute.
10618 Some other changes:
10620 * Man pages now depend on the files `VERSION' and `REVISION'.
10622 * The added shell script `mkinstalldirs' will replace `mkdir' in
10625 * VERSION: Version number increased to 1.16.
10627 2000-02-04 Werner LEMBERG <wl@gnu.org>
10629 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10631 * Makefile.in: Removed $(tmac_m) since it is no longer needed
10632 (after an update of the mm stuff).
10634 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10636 2000-02-03 Werner LEMBERG <wl@gnu.org>
10638 The .psbb request will now also accept Mac PS images (i.e. using LF
10639 as the EOL character).
10641 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10642 (with slight modifications).
10643 * troff/input.cc (do_ps_file): Use it.
10645 * test-groff: Add grohtml and grolj4 output devices to PATH.
10647 2000-01-30 Werner LEMBERG <wl@gnu.org>
10649 * NEWS, MORE.STUFF: Updated.
10651 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
10653 Add the `srand' command to pic.
10655 * pic/lex.cc, pic/pic.y: Implement it.
10656 * pic/pic.man: Document it.
10657 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10659 2000-01-30 Werner LEMBERG <wl@gnu.org>
10661 Add a new request `.psbb'. This does exactly what the external
10662 program psbb did. It scans a PostScript image file for a
10663 %%BoundingBox comment and extracts the bounding box values (in
10664 PostScript units) which are then stored in the four new (read-only)
10665 number registers `llx', `lly', `urx', and `ury'.
10667 This will allow the usage of the .PSPIC macro without worrying
10668 about unsafe behaviour of groff, i.e., it will work without the
10669 `-U' switch of groff.
10671 * troff/input.cc: Implement it.
10672 * tmac/tmac.pspic: Use it.
10673 * troff/troff.man, grops/grops.man, NEWS: Document it.
10674 * psbb/*, Makefile.in: Remove it since it is no longer needed.
10676 This is bloody C code simply adapted from psbb.c! Any improvements
10679 2000-01-29 Werner LEMBERG <wl@gnu.org>
10681 * man/groff_font.man: Minor clarifications.
10685 2000-01-28 Werner LEMBERG <wl@gnu.org>
10687 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10689 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
10691 * man/groff_font.man: Brought up to date regarding tcommand
10693 * libgroff/font.cc: Handle everything after `--' as a comment
10695 * devps/*: Added comment delimiter inside devps font files.
10697 2000-01-28 Werner LEMBERG <wl@gnu.org>
10699 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10700 \fC...\fP (which now works as expected).
10702 * troff/troff.man: Fix typo.
10704 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
10706 Completed the pass_filenames implementation in troff.
10708 * libdriver/input.cc: Will read the new `F' tcommand.
10709 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10710 * troff/input.cc: Use it.
10712 2000-01-26 Werner LEMBERG <wl@gnu.org>
10714 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
10715 font will now be updated even if an invalid font is selected.
10717 2000-01-24 Werner LEMBERG <wl@gnu.org>
10719 * doc/homepage.ms: Updated for new tmac.arkup.
10721 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10723 * tmac/tmac.arkup: Cleanup.
10725 Added `\&' to .HTML macro to `leave vertical mode', so to say.
10727 Removed obsolete .LINK macro completely.
10729 The macros .URL, .FTP, and .MAILTO now accept a third argument which
10730 will be immediately appended to the second argument (to be used with
10731 punctuation, for example).
10733 Disabled .CDFTP macro temporarily for security reasons.
10735 * tmac/groff_markup.man: Complete revision for latest changes in
10736 tmac.arkup -- note that it does not yet format correctly with
10739 2000-01-23 Bruno Haible <haible@clisp.cons.org>
10741 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10742 * devutf8/R.proto: Add mappings for wp, lh, rh.
10743 * devutf8/NOTES: Updated.
10745 2000-01-23 Werner LEMBERG <wl@gnu.org>
10747 * doc/groff.texinfo: Updated version/copyright info.
10749 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
10751 Added support for two new directives in device descriptions:
10752 `pass_filenames' (to pass the input file name to the output device)
10753 and `use_charnames_in_special' (to support e.g. accented characters
10754 in the `X' request).
10756 * include/font.h, troff/charinfo.h: Declare it.
10758 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10760 * devhtml/DESC: Use it.
10762 * troff/input.cc: New function encoded_char.
10764 * troff/token.h: Add test for `specialness'.
10766 2000-01-21 Werner LEMBERG <wl@gnu.org>
10768 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10769 mistake from the list of files to be installed.
10771 2000-01-18 Werner LEMBERG <wl@gnu.org>
10773 * README: Added info how to apply patches.
10775 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
10777 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
10779 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
10781 * troff/input.cc: Add support for troffrc-end.
10783 * tbl/main.cc: Altered to issue table-start and table-end special
10784 characters if using the html device.
10786 * devhtml/*: Modified font files to incorporate html encoding of
10789 * tmac/groff_markup.man: New file documenting tmac.arkup.
10791 * tmac/troffrc-end: New file. This is invoked after all user
10792 specified macros. Currently used by the html device to include
10793 tmac.html. Thus no need for users to specify -mhtml anymore.
10795 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10796 (MAN7): Add groff_markup.man.
10798 * tmac/tmac.an, tmac/tmac.html: Small html updates.
10800 * tmac/troffrc: tmac.arkup will now be called for the html device.
10802 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10803 extra device specific information about fonts.
10805 * doc/homepage.ms: New file. It is an example how an HTML home page
10806 could look like with grohtml.
10808 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
10810 2000-01-12 Bruno Haible <haible@clisp.cons.org>
10812 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
10815 * devutf8/NOTES: Updated.
10817 2000-01-08 Bruno Haible <haible@clisp.cons.org>
10819 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10820 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10821 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10822 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10823 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10824 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10825 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10826 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10829 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10831 2000-01-12 Fabrizio Polacco <fab@prosa.it>
10833 grolj4: Paper size will be searched case-insensitively.
10835 * include/lib.h: Add check for strcasecmp().
10836 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10837 * configure.in: Check for strcasecmp().
10839 2000-01-11 Werner LEMBERG <wl@gnu.org>
10841 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10844 2000-01-10 Werner LEMBERG <wl@gnu.org>
10846 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10849 Add a new read-only register, `.Y', which contains the groff
10852 * troff/input.cc (init_input_requests): Define it.
10853 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10854 * doc/groff.texinfo, troff/troff.man: Document it.
10856 * libgroff/Makefile.sub (version.cc): Add definition of
10857 `Version_string[]', consisting of `<major>.<minor>.<revision>'
10858 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10859 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10860 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10861 troff/input.cc, pfbtops/pfbtops.c: Use it.
10863 2000-01-10 Fabrizio Polacco <fab@prosa.it>
10865 Add a revision scheme to the groff package.
10867 * REVISION: New file.
10868 * libgroff/Makefile.sub (version.cc): Use it to define
10869 `revision_string[]'.
10870 * grops/psrm.cc: Use revision_string (converted to an unsigned
10871 integer) in constructor of resource_manager.
10873 2000-01-10 Bruno Haible <haible@clisp.cons.org>
10875 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10877 * Makefile.in (DEVDIRS): Add devutf8.
10878 * grotty/tty.cc: Include device.h.
10879 (glyph): Change type of `code' to `unsigned int'.
10880 (tty_printer): New field is_utf8. Constructor takes device argument.
10881 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10882 (tty_printer::add_char): Change type of first arg to `unsigned int'.
10883 (tty_printer::put_char): New function.
10884 (tty_printer::end_page): Use put_char() instead of ::putchar().
10885 (make_printer): Pass device to tty_printer constructor.
10886 * nroff.sh: Determine default device by calling 'locale'. As a
10887 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10888 Recognize UTF-8 locales.
10889 * tmac/eqnrc: Recognize utf8 like latin1.
10890 * tmac/troffrc: Device utf8 needs tmac.tty.
10892 2000-01-07 Werner LEMBERG <wl@gnu.org>
10894 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10896 2000-01-07 Paul Eggert <eggert@twinsun.com>
10898 Add a new predefined writeable number register, `year',
10899 which contains the current year.
10901 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10902 * tmac/tmac.s: Use it.
10903 * troff/input.cc (init_registers): Initialize it.
10905 2000-01-06 Werner LEMBERG <wl@gnu.org>
10907 * PROBLEMS: Fixed typo.
10909 2000-01-04 Paul Eggert <eggert@twinsun.com>
10911 * PROBLEMS: Add Y2k advice for the yr number register.
10913 2000-01-03 Paul Eggert <eggert@twinsun.com>
10915 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10917 2000-01-02 Werner LEMBERG <wl@gnu.org>
10919 * tmac/tmac.arkup: Slight modification of macros to provide better
10920 appearance for non-HTML formats.
10922 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
10924 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10925 does not automatically translate to malloc(n) on all OSes
10926 (e.g., SunOS) so do it explicitly. Also, check the returned
10929 2000-01-01 Werner LEMBERG <wl@gnu.org>
10931 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
10933 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10934 expects this variable
10936 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
10938 * doc/Makefile: Added instructions to create HTML and text
10939 versions of some files.
10941 1999-12-31 Werner LEMBERG <wl@gnu.org>
10943 * Updated INSTALL.gen.
10945 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10946 better resp. correctly with non-HTML devices.
10948 Version 1.15 released
10949 =====================
10951 1999-12-28 Werner LEMBERG <wl@gnu.org>
10953 * NEWS, VERSION: Changed to 1.15
10955 1999-12-27 Paul Eggert <eggert@twinsun.com>
10957 * nroff/nroff.man: -S is safer, not safe.
10959 * groff/groff.cc (main): Use `safer', not `safe', in variable
10960 names. This does not change the behavior.
10962 * troff/input.cc (main): Likewise.
10964 * nroff/nroff.sh: Likewise.
10966 * troff/input.cc (prepend_string): New function.
10967 (main): Prepend -msafer, so that we check macro libraries for
10970 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10972 Version 1.14 released
10973 =====================
10975 1999-12-26 Werner LEMBERG <wl@gnu.org>
10977 * NEWS, VERSION: Changed to 1.14.
10979 1999-12-24 Werner LEMBERG <wl@gnu.org>
10981 * refer/refer.cc: Fixing the last fix.
10983 Version 1.13 released
10984 =====================
10986 1999-12-23 Werner LEMBERG <wl@gnu.org>
10988 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10993 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10995 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10996 document conventions, the version number must be a real.
10998 Version 1.12.1 released
10999 =======================
11001 1999-12-22 Werner LEMBERG <wl@gnu.org>
11003 * VERSION: Changed to 1.12.1.
11005 1999-12-22 Alan Rooks <arooks@istar.ca>
11007 * refer/refer.cc (do_file): Slight modification to satisfy the
11008 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11011 1999-12-20 Werner LEMBERG <wl@gnu.org>
11013 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11016 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11017 list of unsafe requests.
11019 * pic/pic.man: Fixed a typo.
11021 * man/groff_out.man: Fixed a typo.
11023 1999-12-18 Werner LEMBERG <wl@gnu.org>
11025 * Makefile.in: Doc fixes.
11027 1999-12-17 Fabrizio Polacco <fab@prosa.it>
11029 * groff/groff.cc: Missing `U' option added to getopt().
11031 * troff/troff.man: Missing `U' option added to synopsis.
11033 Version 1.12 released
11034 =====================
11036 1999-12-14 Werner LEMBERG <wl@gnu.org>
11038 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11041 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11042 with the more appropriate terms `safer' and `unsafe'.
11044 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11045 sys_nerr and sys_errlist[].
11047 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11049 * pic/pic.y, pic/pic.cc: Added check for fmod().
11051 1999-12-13 Werner LEMBERG <wl@gnu.org>
11053 * VERSION: Changed to 1.12.
11055 Here some patches from various sources; most of them taken from
11056 the Debian distribution.
11058 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11059 tmac/Makefile.sub: New files copied directly from the NetBSD
11060 distribution. Probably, some additional adaptation later on is
11063 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11064 of unsafe requests.
11066 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11067 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11068 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
11069 (`-S') is now the default.
11071 * README, NEWS: Updated.
11073 1999-12-09 Werner LEMBERG <wl@gnu.org>
11075 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11077 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11079 1999-12-06 Werner LEMBERG <wl@gnu.org>
11081 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11082 grief than relief today. Additionally, it is against the GNU
11085 * configure: Recreated.
11087 1999-12-05 Werner LEMBERG <wl@gnu.org>
11089 * configure.in: Added GROFF_LIBM.
11091 * configure: Recreated.
11093 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11096 * Makefile.in: Added definition of $(LIBM).
11098 * Makefile.comm (LIBM): Removed.
11100 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11102 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
11104 * doc/Makefile: Added rule for generation pic.html.
11106 (clean): Files produced by grohtml will be removed also.
11108 * doc/pic.ms: Small fix.
11110 * tmac/tmac.html: Fixed suppression of headers.
11112 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
11114 * tmac/tmac.html: Fixing horizontal arrows.
11116 Turning off hyphenation.
11118 * tmac/tmac.an: Improved support for grohtml; better indentation,
11119 no footers/headers.
11121 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
11123 * tmac/tmac.arkup: Added CDFTP macro
11125 * tmac/tmac.html: All headers are turned off for ms, me, and mm
11128 * tmac/troffrc: Some additions for HTML stuff.
11130 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
11132 * tmac/tmac.html: Small changes.
11134 1999-09-26 Werner LEMBERG <wl@gnu.org>
11136 * doc/groff.texinfo: Minor fixes.
11138 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
11140 * devhtml/TR: Changed spacewidth to 3.
11142 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11144 * tmac/tmac.html: Moved markup macros to tmap.arkup.
11146 * tmac/tmac.arkup: New file.
11148 * grohtml/ChangeLog: New file.
11150 1999-09-16 Werner LEMBERG <wl@gnu.org>
11152 * doc/groff.texinfo (Common Features): Added Copying chapter.
11153 Changed format to @smallbook.
11155 1999-09-15 Werner LEMBERG <wl@gnu.org>
11157 * NEWS: Added info about groff.texinfo.
11159 * doc/groff.texinfo: Will now compile (using texi2dvi) without
11162 1999-09-14 Werner LEMBERG <wl@gnu.org>
11164 * groff/groff.man: More updates.
11166 1999-09-13 Werner LEMBERG <wl@gnu.org>
11168 * doc/groff.texinfo: New file. This manual is still very
11169 rudimentary. It has been originally contributed by Trent
11170 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11173 * INSTALL: Added information about the `doc' subdir
11175 * troff/troff.man: Minor fixes.
11177 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11180 * troff/input.cc (usage): Added missing `-ffam' to usage message.
11182 * Makefile.in (dist): groff-$(version).tar.gz must be removed
11183 also, otherwise it is included itself in another call of `make
11186 * groff/groff.cc (synopsis): Removed superfluous space.
11188 * PROJECTS, PROBLEMS, NEWS: Updated.
11190 * VERSION: Updated to 1.12beta.
11192 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
11194 * README: Updated: Included documentation about CVS repository,
11195 mailing lists, and daily snapshots.
11197 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11199 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
11201 * tmac/tmac.an: If the tag didn't fit into the space that the
11202 macro `TP' specifies, the rest of the tag went into the space for
11205 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
11207 * grolj4/lj4.cc: Added duplex printing (option `-d').
11209 * grolj4/grolj4.man: Document duplex printing.
11211 1999-09-12 Werner LEMBERG <wl@gnu.org>
11213 * doc/Makefile (pic.ps): Fixed rule which caused problems with
11214 non-GNUish sed programs.
11216 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11219 * configure.in (LIBS): Added `-lc'
11221 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11223 * pic/tex.cc (solid_arc): Casting M_PI to double.
11225 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11227 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11228 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11229 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11231 * groff/groff_man.man: New file. This manual page was originally
11232 written for the Debian GNU/Linux system by Susan G. Kleinmann
11235 * eqn/list.cc (list_box::compute_metrics,
11236 list_box::compute_sublist_width): Removed variable declaration to
11237 avoid shadowing warnings.
11239 * grops/psrm.cc (resource_manager::process_file): Ditto.
11241 * tfmtodit/tfmtodit.cc (main): Ditto.
11243 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11244 to avoid shadowing warnings.
11246 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11247 shadowing loop variable.
11249 * groff/groff.man, troff/troff.man: Added doc about grohtml.
11251 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
11253 New grohtml frontend to convert groff input to html.
11255 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11257 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11259 * tmac/eqnrc: Added html device.
11261 * tmac/tmac.html: New file.
11263 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11264 (troff_output::start_picture, troff_output::finish_picture),
11265 tbl/main.cc (process_input_file):
11266 Surrounded output with `graphics_start' and `graphics_end' so that
11267 the html driver can identify non-text portions.
11269 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11270 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11271 grotty/tty.ps (tty_printer::set_char): Additional parameter
11274 * include/printer.h: Class printer: New function
11275 set_char_and_width; new variables (is_char_named, is_named_set,
11276 named_command, named_char_s, named_char_n) to hold information
11277 about named characters -- needed by the html driver.
11279 * libdriver/printer.cc (printer::set_ascii_char,
11280 printer::set_special_char): Use set_char_and_width.
11282 * devhtml/*: New device files for html driver.
11284 * grohtml/*: New driver grohtml.
11286 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
11288 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11291 1999-09-11 Luke Mewburn <lukem@netbsd.org>
11293 * libgroff/string.cc (search): Small fix to test against NULL
11296 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
11298 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11299 \b'abc') were stacked in reverse order when processed in a
11302 * troff/node.h: Added `*last' to struct `node' to make the above
11305 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11306 The default scale for the 'f' and 't' graphics functions were 'm'
11307 rather than 'u' (i.e., no scaling).
11309 1999-09-11 Peter Miller <peterm@jna.com.au>
11311 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11312 do_file), soelim/soelim.man: Added `-I file' option to soelim,
11313 defining include paths.
11315 * soelim/soelim.cc (include_path_append): New function.
11317 1999-09-11 Larry Jones <larry.jones@sdrc.com>
11319 * tbl/main.cc (process_options): Unix (at least Documenter's
11320 Workbench) tbl allows arbitrary non-alpha characters between
11323 1999-09-11 Paul Eggert <eggert@twinsun.com>
11325 Y2k fixes. Don't assume that the current year precedes 2000.
11327 * doc/meref.me: Add \n(y2, \n(y4.
11329 * tmac/doc-common (Yr): New number register.
11330 (Dd): Don't assume current year precedes 2000.
11332 * tmac/tmac.e (td): Likewise.
11333 (y2, y4): New number registers.
11335 * pic/pic.man: Update reference for pic paper to May, 1991
11338 1999-09-11 Werner LEMBERG <wl@gnu.org>
11340 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11341 Removed quotation marks which prevented correct expansion of
11344 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11346 1999-09-10 Werner LEMBERG <wl@gnu.org>
11348 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11351 * Removed configure.old.
11353 1999-08-31 Werner LEMBERG <wl@gnu.org>
11355 * VERSION: Updated to 1.11.1
11357 1999-05-27 Werner LEMBERG <wl@gnu.org>
11359 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11361 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11362 added quotations around $(tmac_wrap) to avoid syntax error if
11365 * configure: Newly generated using autoconf 2.13.
11367 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11369 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
11371 * README, PROJECTS, NEWS, INSTALL, VERSION,
11372 doc/Makefile. doc/pic.ms, groff/groff.man:
11373 Prepare for 1.11 release. No code changes.
11374 Documentation for pic added (doc/pic.ms).
11376 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
11378 * Version 1.10 released.
11380 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
11382 * afmtodit/afmtodit.pl: Avoid comment on first line.
11384 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
11386 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11387 * configure.in: Call it.
11389 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11390 (distfiles): Doesn't depend on config.log or config.cache.
11392 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
11394 * grog/grog.sh: Use print "" rather than print in END rule.
11396 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
11398 * tbl/main.cc (process_data): Don't give error for excess data
11399 entries that are comments.
11401 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
11403 * tbl/main.cc (process_data): Fix case where new for-scope rules
11404 silently change meaning of code.
11406 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
11408 * troff/env.cc (hyphenate): Loop over all consecutive sequences
11409 of non-zero hyphenation codes.
11411 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
11413 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11415 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
11417 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11419 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
11421 * tmac/tmac.andoc: Make it work in compatibility mode.
11423 * refer/token.h (token_info::is_range_sep): New function.
11424 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11425 * refer/ref.cc (reference::output): More sophisticated check for
11428 * devps/prologue.ps (MANUAL): New procedure.
11429 * grops/ps.cc (main): New -m option.
11430 (usage): Include -m.
11431 (ps_printer::~ps_printer): Implement -m.
11433 * aclocal.m4 (GROFF_G): New macro.
11434 * configure.in: Call it.
11435 * Makefile.in (g): Provided by configure.
11437 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11439 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
11442 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11443 (tmac_m, tmac_s): Deleted.
11444 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11445 tmac_s_prefix): New variables.
11446 (MDEFINES): Change accordingly.
11447 * Makefile.comm (.man.n): Use new TMAC_* variables.
11448 * configure.in (GROFF_TMAC): Call.
11449 * aclocal.m4 (GROFF_TMAC): Define.
11450 * tmac/Makefile.sub (stamp_wrap): New target.
11451 (install_data, uninstall_sub): Handle macro wrapping.
11453 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
11455 * tbl/main.cc (main): Ignore -T option.
11457 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
11459 * devlj4/generate/special.map: Add definition of \(nb.
11461 * tmac/tmac.dvi: Add definition of \(nb.
11463 * troff/dictionary.c (dictionary::dictionary): association::v gets
11464 initialized by association::association.
11466 * tmac/Makefile.sub: Avoid using temporary files when installing.
11468 * troff/env.cc (environment::set_font): Make bad font number a
11471 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11473 * Makefile.in (datadir): Use share rather than lib.
11475 * groff/groff.cc (basename): Rename to xbasename.
11477 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
11479 * Makefile (CCLIBS): Don't use.
11480 * Makefile.ccpg: Likewise.
11482 * acgroff.m4: Rename to...
11483 * aclocal.m4: Modify extensively for autoconf 2.
11484 * configure.in: Likewise.
11485 * Makefile.in: Likewise.
11487 * groff/pipeline.c (const): Declare as empty if __STDC__ not
11489 (xstrsignal): Check for definition of NSIG. Conditionalize
11490 on SYS_SIGLIST_DECLARED. Make return type const.
11492 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
11494 * troff/input.cc (interpolate_macro): Rephrase missing space
11497 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
11499 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11500 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11501 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11502 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11503 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11504 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11505 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11506 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11507 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11508 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11509 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11512 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
11514 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11516 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11518 (macro_iterator::macro_iterator): Add additional argument.
11520 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
11522 * troff/div.cc (vertical_size::vertical_size): In place of integer
11523 specifying line spacing use cunits specifying post vertical
11525 (macro_diversion::output, top_level_diversion::output): Likewise.
11526 * troff/div.h: Change declarations accordingly.
11527 * troff/env.cc (pending_output_line): Replace ls field by post_vs
11529 (pending_output_line::pending_output_line,
11530 pending_output_line::output, environment::output,
11531 environment::output_line, environment::output_title,
11532 environment::hyphenate_line): In place of
11533 integer specifying line spacing use cunits specifying post vertical
11535 (environment::environment): Add post_vertical_spacing and
11536 prev_post_vertical_spacing arguments.
11537 (environment::get_post_vertical_spacing): New function.
11538 (environment::total_post_vertical_spacing): New function.
11539 (environment::post_vertical_spacing): New function.
11540 (init_env_requests): Initialize pvs request and .pvs register.
11541 * troff/env.h: Change declarations.
11543 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
11545 * tmac/tmac.pspic: Immediately remove the temporary file.
11547 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
11549 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11550 height is specified.
11552 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
11554 * tbl/table.c (struct vertical rule, class table_entry): Use int
11555 not short for start_row and end_row.
11557 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
11559 * troff/input.cc (trapping_blank_line, blank_line_macro): New
11561 (diverted_space_node::reread, process_input_stack): Call
11562 trapping_blank_line() rather than blank_line().
11563 (init_input_requests): Bind "blm" to blank_line_macro().
11565 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11567 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
11569 * troff/env.cc (environment::possibly_break_line): Require that
11570 width total excluding width of final space node be greater than
11571 the target text length.
11573 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
11575 * troff/node.cc (kern_pair_node::vertical_extent): New function.
11577 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
11579 * troff/node.cc (charinfo_node): New class.
11580 (glyph_node, composite_node): Derive from charinfo_node. Change
11581 member functions accordingly.
11583 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
11585 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11587 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
11589 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11591 * devps/generate/textmap (notsubset): Add.
11593 * tmac/tmac.a4: New file.
11595 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
11597 * pic/main.cc (had_parse_error): New variable.
11598 (do_picture, do_whole_file): Set had_parse_error if yyparse()
11600 (main): Return 1 if had_parse_error is true.
11602 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
11604 * grolj4/lj4.cc (main): Avoid use of strtoul.
11606 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
11608 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11609 iso_8859_1 or $LESSCHARSET is latin1.
11611 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
11613 * hpftodit: New directory.
11614 * Makefile.in (CCPROGDIRS): Add hpftodit.
11615 * devlj4/generate: New directory.
11617 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
11619 * configure.in: Don't use AC_VFORK.
11620 * groff/pipeline.c (run_pipeline): Use fork() always.
11622 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
11624 * grops/ps.cc (main): Use %1 not %s in error message for -w.
11626 * Makefile.in (CCPROGDIRS): Add grolj4.
11627 (DEVDIRS): Add devlj4.
11628 * grolj4, devlj4: New directories.
11629 * tmac/troffrc: Handle lj4.
11630 * tmac/tmac.lj4: New file.
11632 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
11634 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11636 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
11638 * troff/input.cc (do_if_request): At end of second string, switch
11639 environments before getting next token.
11641 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
11643 * devps/psstrip.sed: Split rule that strips whitespace on either
11644 side of delimiters.
11646 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
11648 * troff/node.h (font_family::make_definition): Add return value to
11649 declaration. * troff/symbol.h (symbol::operator==,
11650 symbol::operator!=): Likewise.
11652 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
11654 * groff/groff.cc (main, help, synopsis): Handle -S.
11655 (possible_command::insert_arg): New function.
11657 * tmac/tmac.safer: New file.
11658 * tmac/msafer.man: New file.
11659 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11661 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
11663 * pic/pic.h, pic/main.cc (safer_flag): New variable.
11664 * pic/pic.y (placeless_element): Avoid unsafe operations if
11665 `safer_flag' is set.
11666 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11668 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
11670 * eqn/lex.cc (get_token): Put call to add_context() in block to
11671 work around Sun C++ 4.0 bug.
11673 * include/stringclass.h (operator +): Use ?: instead of `if' to
11674 work around Sun C++ 4.0 bug.
11676 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
11678 * tbl/main.cc (process_format): Accept - as a synonym for the _
11681 * libbib/index.cc (minus_one): Don't declare as const.
11683 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
11685 * troff/input.cc (get_char_for_escape_name): Push back a newline.
11687 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
11689 * troff/input.cc (write_macro_request): New function.
11690 (init_input_requests): Bind write_macro_request to writem.
11692 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
11694 * tmac/tmac.s (@EN): Turn filling back on even if there was no
11697 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11699 * tmac/tmac.s (@TS): Renamed from TS.
11700 (TS): Call LP then TS again.
11701 (cov*ab-init): Alias @TS to TS.
11703 * tmac/tmac.s: Allow QP or RS to initialize.
11705 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
11706 Move initializations of PS and LL here.
11707 (par@init): Don't initialize HY. Avoid changing environment 0.
11708 (par*env-init): Don't all par@reset.
11710 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
11712 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11714 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
11716 * Makefile.in (MDEFINES): Add LDFLAGS.
11717 (LDFLAGS): Add definition line.
11719 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
11721 * troff/input.cc (get_optional_char): Split off error check into...
11722 (check_missing_character): New function.
11723 * troff/token.h: Declare it.
11724 * troff/env.cc (margin_character): Don't call get_optional_char.
11725 Only call tok.next() after making the node.
11727 * include/lib.h (getopt): Make 2nd argument char *const *.
11729 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
11731 * nroff/conftest.sh: Deleted.
11733 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
11735 * pic/make-dos-dist: Deleted.
11737 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
11739 * devps/psstrip.sed: Strip comments before stripping trailing
11742 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
11744 * Version 1.09 released.
11746 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
11748 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11750 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
11752 * libgroff/font.cc (font::load_desc): Fix typo in error message.
11754 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
11756 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11757 about returning without a value.
11759 * troff/charinfo.h (charinfo::get_special_translation): Cast
11760 TRANSLATE_NONE to int.
11762 * refer/token.cc (lookup_token, store_token): Remove bogus loop
11763 test. Fix test so that it works with n unsigned.
11765 * pic/pic.y (defaults_table): Fully bracket initializer.
11766 * pic/lex.cc (lookup_keyword): Likewise.
11767 * eqn/lex.cc (token_table, def_table): Likewise.
11768 * eqn/box.cc (param_table): Likewise.
11769 * troff/input.cc (warning_table): Likewise.
11770 * libgroff/font.cc (table): Likewise.
11771 * grops/ps.cc (ps_printer::special): Likewise.
11772 * grops/psrm.cc (resource_manager::process_file): Likewise.
11773 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11774 * refer/command.cc (command_table): Likewise.
11775 * addftinfo/addftinfo.cc (param_table): Likewise.
11777 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11778 about temp's being unused.
11779 (unused): New function.
11781 * groff/pipeline.cc: Declare c_fatal.
11783 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11786 * libbib/index.cc (index_search_item::load): Prevent compiler
11787 warnings about fd_closer's being unused.
11788 (unused): New function.
11790 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
11792 * troff/input.cc (copy_mode_error): Make `prefix' static.
11795 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11797 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11798 HAVE_CC_OSFCN_H and modify accordingly.
11800 * troff/input.cc (init_charset_table): radicalex overlaps
11803 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11804 udodo!hans@relay.NL.net).
11805 * groff/configure.in: Call it.
11807 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11808 * groff/configure.in: Call it.
11809 * include/lib.h: Conditionalize declaration of pclose.
11811 * troff/div.cc (last_page_number): New global variable.
11812 (top_level_diversion::begin_page): Exit if we just printed the
11814 * troff/div.h (last_page_number): Declare it.
11815 * troff/input.cc (parse_output_page_list): Set last_page_number.
11817 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11818 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11819 tmac/tmac.X: Likewise.
11820 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11821 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11823 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
11825 * tmac/doc-ditroff (hK): Remove groff specific code which
11826 prevented page-breaks between separate manual entries. If this is
11827 the first page, don't set the page number to 1.
11829 * acgroff.m4 (GROFF_POSIX): New macro.
11830 * configure.in: Use it.
11832 * troff/node.cc (class real_output_file,
11833 real_output_file::real_output_file,
11834 real_output_file::~real_output_file): Conditionalize use of
11835 popen/pclose on POPEN_MISSING.
11836 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11837 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11838 (pipe_source): Similarily.
11840 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11842 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11843 presence of declarations by trying to compile example with
11844 conflicting declarations. (gcc only gives a warning for missing
11847 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
11849 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11850 (from Ulrich Lauther).
11852 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
11854 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11856 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
11858 * indxbib/indxbib.cc (write_hash_table): Add code for case where
11859 pointers and ints have different sizes.
11861 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
11863 * tmac/tmac.s (par*env-init): Call par@reset.
11865 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
11867 * tmac/tmac.s (@IP): Switch to a new environment when diverting
11869 (par*push-tag-env, par*pop-tag-env): New macros.
11871 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
11873 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11874 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
11876 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11877 comment. Include <time.h>.
11879 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
11881 * grops/ps.cc (is_small_h, is_small_v): Deleted.
11882 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11885 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
11887 * troff/input.cc (read_request): Only print a prompt if reading
11888 from the terminal. Also clearerr on EOF if reading from the
11889 terminal. Declare isatty.
11891 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
11893 * refer/label.y: Rename map_t to map_func and extractor_t to
11896 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
11898 * include/assert.h: Don't use volatile.
11899 * libgroff/assert.cc: Likewise.
11901 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
11903 * troff/input.cc (abort_request): Look at character in tok before
11904 calling get_copy().
11906 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
11908 * troff/troff.h (NO_RETURN): Deleted.
11909 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
11910 * troff/input.cc (exit_troff): Likewise
11912 * Makefile.in: Remove `Making ...' messages since GNU make now
11915 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11917 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
11919 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11920 to constant 1 inch.
11922 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
11924 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11926 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
11928 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11929 MARK_REG if there was no left delimiter.
11931 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
11933 * pic/troff.cc (troff_output::text): Set line thickness to
11934 relative before outputting text.
11936 * tmac/tmac.e (@k): Don't zero ?T.
11939 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
11941 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11943 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
11945 * troff/input.cc (decode_args): Warn about unquoted tabs (from
11948 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
11950 * troff/input.cc (ignoring): New variable.
11951 (ignore): Set ignoring during call to do_define_macro.
11952 (do_define_macro): Clear ignoring before interpolating terminating
11954 (copy_mode_error): New function.
11955 (get_char_for_escape_name, read_long_escape_name,
11956 interpolate_arg): Use copy_mode_error.
11957 (warning_table): Add WARN_IG.
11958 * troff/troff.h (WARN_IG): Declare.
11959 (WARN_TOTAL): Change accordingly.
11961 * groff/pipeline.c (strsignal): Rename to xstrsignal.
11962 * groff/groff.cc (strsignal): Delete declaration.
11964 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
11966 * troff/div.cc (page_offset): Use 'm' as default scaling.
11968 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
11970 * nroff/nroff.sh: Ignore -u.
11972 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
11974 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11976 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
11978 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11980 (B2): With -Tascii, leave additional vertical space before
11981 and after. Ensure that the left and right indent is restored to
11982 what it was even if the point size changes. Don't call
11983 par@finish. Change the indent, line length and title length
11984 directly. With -Tascii, make the width of the box 1n less.
11985 (B1): Remember 1n at the current point size. Don't call
11986 par@reset. Change the indent, line length and title length
11987 directly. Ensure that the temporary indent is preserved.
11988 (par*box-mark-top): Turn off no spacing mode.
11990 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
11992 * Makefile.in (dist): Use .gz suffix.
11994 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
11996 * troff/input.cc (main): Add return 0.
11997 * pic/main.cc (main): Use return instead of exit.
11998 * tbl/main.cc (main): Likewise.
11999 * eqn/main.cc (main): Likewise.
12000 * grops/ps.cc (main): Likewise.
12001 * grotty/tty.cc (main): Likewise.
12002 * groff/groff.cc (main): Likewise.
12003 * grodvi/dvi.cc (main): Likewise.
12004 * refer/refer.cc (main): Likewise.
12005 * indxbib/indxbib.cc (main): Likewise.
12006 * lkbib/lkbib.cc (main): Likewise.
12007 * soelim/soelim.cc (main): Likewise.
12008 * addftinfo/addftinfo.cc (main): Likewise.
12009 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12010 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12012 * troff/token.h (process_input_stack): Don't declare as static.
12013 * troff/input.cc: Likewise.
12015 * troff/node.c (invalidate_fontno): Make it a static member of
12016 class font_family. Change callers.
12017 * troff/node.c: Change declaration.
12019 * tbl/main.cc (struct input_entry_format): Add explicit public
12021 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12022 struct double_hline_stuff): Likewise.
12023 * tbl/table.h (struct entry_format): Likewise.
12024 * pic/object.h (struct saved_state): Likewise.
12026 * include/stringclass.h: Add forward declarations of friend
12027 functions that are later declared as inline. Don't include inline
12028 specifier in friend declaration.
12030 * libgroff/lib.h: Declare popen and pclose.
12031 * acgroff.m4 (GROFF_POPEN): New macro.
12032 * configure.in: Call it.
12034 * include/lib.h (PI): New constant. Undef first if necessary.
12035 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12036 * grops/ps.cc (degrees, radians): Likewise.
12037 * libgroff/font.cc (font::get_skew): Likewise.
12039 * grops/ps.cc (is_ascii): New function.
12040 (ps_output::put_string): Use is_ascii. Use csprint rather than
12042 (ps_printer::define_encoding): Use csspace.
12043 * libgroff/strtol.c (ISASCII): New macro.
12044 (strtol): Cast arguments to is*() and tolower() to unsigned char.
12045 Use ISASCII rather than isascii.
12046 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12047 * libgroff/cset.cc: Likewise.
12048 * libdriver/input.cc: Include cset.h.
12049 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12052 * refer/refer.cc (main): Use %ld rather than %d for longs.
12054 * libbib/index.cc (index_search_item_iterator::get_tag): Use
12057 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12059 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
12061 * troff/input.cc (hyphenation_code): Skip white space between
12064 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
12066 * tbl/table.h (table::entry_list_tailp): New member.
12067 (table::table): Initialize it.
12068 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12071 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
12073 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12074 with negative horizontal positions. Remove casts of glyph::hpos to
12076 (USHRT_MAX): Delete definition.
12077 (SHRT_MAX, SHRT_MIN): New definitions.
12078 (glyph::hpos): Change type to short.
12079 (tty_printer::end_page): Output multiple backspaces if necessary.
12080 Remove casts of glyph::hpos to int.
12082 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
12084 * tmac/tmac.s (@RT): New definition.
12086 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
12088 * refer/refer.cc (do_file): Make sure current_filename is set when
12091 * pic/common.cc (common_output::dot_line): Handle zero length
12094 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
12096 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12097 (par@init): Initialize \n[HY].
12099 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
12101 * troff/dictionary.cc (dictionary::remove): Continue when
12104 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
12106 * Makefile.com (.y.cc): Avoid ending up with two versions of
12109 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
12111 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12112 (\(,C): Likewise. Also fix typo.
12114 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
12116 * lib.h: Delete extraneous semi-colon.
12118 * Add pso request: `so' from a pipe.
12119 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12120 (file_iterator::close): New function.
12121 (file_iterator::~file_iterator, file_iterator::next_file): Use
12122 file_iterator::close.
12123 (file_iterator::backtrace): Say `process' rather than `file' when
12124 the stream is popened.
12125 (pipe_source): New function.
12126 (init_input_requests): Bind ".pso" to pipe_source.
12128 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
12130 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12132 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
12133 digits in lower case.
12135 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
12137 * Version 1.08 released.
12139 * Makefile.in (dist): Insert || true after ln -s commands that
12142 * mm: Update to mm 1.16.
12144 * acgroff.m4 (GROFF_CSH_HACK): New macro.
12145 * configure.in: Call GROFF_CSH_HACK. Substitute for
12147 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
12149 * nroff/Makefile.sub (nroff): New target.
12150 (install_data): Install nroff.
12151 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12152 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12154 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
12156 * eqn/Makefile.sub (neqn): Add chmod +x.
12158 * grog/Makefile.sub (grog): Remove spurious semi-colon.
12160 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
12162 * troff/input.cc (string_iterator::string_iterator()): Initialize
12165 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
12167 * troff/div.cc (macro_diversion::space,
12168 top_level_diversion::space): Don't set high_water_mark.
12169 (macro_diversion::output, top_level_diversion::output): Don't
12170 include post line space in high water mark.
12172 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
12174 * eqn/eqn.y: Don't define YYDEBUG.
12175 * pic/pic.y: Likewise.
12177 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
12179 * tmac/tmac.e ([3): Add space after comma following editors.
12180 Change double spaces to single spaces.
12181 ([4): Change double spaces to single spaces.
12183 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12184 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12185 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12186 after %!PS-Adobe- (for Newsprint).
12188 * troff/div.cc (top_level_diversion::begin_page): When
12189 before_first_page is 1, set page_number to 1.
12191 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
12193 * eqn/box.cc (box::top_level): Protect equation with \&.
12195 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
12197 * groff/groff.cc (possible_command::set_name): Delete old name.
12199 * groff/groff.cc (possible_command::~possible_command): Use
12202 * troff/node.cc (troff_output_file::begun_page): New member.
12203 (troff_output_file::troff_output_file): Initialize it.
12204 (troff_output_file::really_begin_page): Only output V command if a
12205 page has been begun.
12207 * pic/pic.y (placeless_element): Delete argument to PRINT after
12210 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
12212 * Make wrapman work.
12213 * troff/div.h (class top_level_diversion): Replace
12214 first_page_begun by before_first_page (with opposite sense).
12215 * Change first_page_begun to before_first_page inverting sense.
12216 * troff/div.cc (class nl_reg): New class.
12217 (init_div_requests): Use class nl_reg for \n(nl.
12218 (top_level_diversion::begin_page): Don't call
12219 output_file::begin_page if before_first_page is 2;
12220 reset before_first_page afterwards. If have_next_page_number is
12221 false, then always increment page_number.
12222 * tmac/tmac.an: Set traps within TH rather than at the top-level.
12223 Restore compatibility mode after loading, and then disable
12224 compatibility mode in TH.
12226 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
12228 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12230 * troff/node.h (output_file::trailer): Declare.
12231 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12232 * troff/node.cc (output_file::trailer): New function.
12233 (troff_output_file::~troff_output_file): Move most code into...
12234 (troff_output_file::trailer): New function.
12235 (class troff_output_file): Delete page_length member. Declare
12237 (troff_output_file::really_begin_page): Use current page length
12238 for final V command.
12240 * tbl/main.cc (struct options): New decimal_point_char member.
12241 (options::options): Initialize this.
12242 (process_options): Implement decimalpoint option.
12243 (process_data): Pass decimal_point_char option to table::table.
12244 * tbl/table.h (class table): New decimal_point_char member.
12245 (table::table): Add additional argument.
12246 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12247 second argument specifying decimal point character. Use this
12249 (table::table): Initialize decimal_point_char.
12250 (table::add_entry): Change call to find_dot.
12252 * troff/input.cc (get_copy, token::next): Implement \V.
12253 (interpolate_environment_variable): New function.
12255 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
12257 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12258 * pic/pic.y: Likewise.
12260 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12262 * refer/ref.cc (reference::insert_field, reference::delete_field):
12264 * troff/number.cc (parse_term): Likewise.
12266 * acgroff.m4 (GROFF_PROG_YACC): New macro.
12267 * configure.in: Use GROFF_PROG_YACC.
12269 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12271 * Makefile.in (OPTIMIZE): New define.
12272 (DEBUG): Empty by default.
12273 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12275 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12276 (GROFF_ARRAY_DELETE): Likewise.
12277 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12279 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12281 * devps/psstrip.sed: Use different delimiter on last line (so that
12282 it works with BSD 4.4 sed.)
12284 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
12286 * devps/psstrip.sed: Delete comments.
12288 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12289 optind, opterr, optarg.
12290 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12293 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
12295 * Makefile.in (check): Dummy target.
12297 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
12299 * Version 1.07 released.
12301 * Integrate mm 1.11.
12303 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12304 where start_col was meant.
12306 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
12308 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12310 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
12312 * troff/input.cc (token::next): Make \z\o'...' and similar things
12315 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12317 (environment): Add margin_character_flags member.
12318 * env.cc (environment::environment(symbol),
12319 environment::environment(const environment *): Initialize
12320 margin_character_flags.
12321 (margin_character): Rewrite.
12322 (environment::output_line): Add a margin character if
12323 margin_character_flags is non-zero. Turn off the
12324 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
12325 zero, use margin_character_node without copying and then set
12326 margin_character_node to 0.
12328 * devps/DESC.in: Change minimum size to 1000.
12330 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
12332 * troff/symbol.h (symbol::hash): Change return type to unsigned
12334 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12337 * test-groff: Use -r rather than -x.
12339 * grops/psfig.diff: Include in distribution again.
12341 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
12343 * Makefile.in (dist): Use gzip.
12345 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
12347 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12348 unistd.h as well as in stdlib.h.
12349 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12350 defined; otherwise include <sys/types.h> and <unistd.h> if
12351 UNISTD_H_DECLARES_GETOPT is defined.
12353 * configure.in: use builtin(include, ... rather than include(...
12354 * configure: Regenerate with autoconf 1.3.
12356 * libdriver/print.cc (printer::adjust_arc_center): Use new
12357 algorithm suggested by Andy Fyfe.
12359 * libdriver/printer.cc (printer::adjust_arc_center): New function.
12360 * include/printer.h: Declare this.
12361 * grops/ps.cc (ps_printer::draw): Use it.
12362 * grodvi/dvi.cc (dvi_printer::draw): Use it.
12364 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
12366 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12368 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
12370 * eqn/main.cc (main): Handle "eqn -".
12372 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
12374 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12376 * mm: Integrate version 1.08.
12378 * pic/troff.cc (troff_output::finish_picture): Set
12379 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12380 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12381 if it's not defined. Check whether the register is non-zero rather
12382 than whether it's not defined.
12383 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12385 * indxbib/indxbib.cc: Move all signal handling into...
12386 * indxbib/signal.c: New file.
12387 * configure.in: Call AC_RETSIGTYPE.
12389 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12390 * configure.in: Call GROFF_STRUCT_EXCEPTION.
12391 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12393 * troff/input.cc (token::token, token::operator=): Work round SGI
12395 * pic/object.cc (position::position): Likewise.
12397 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
12399 * pic/pic.h: Move declaration of hypot().
12401 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
12403 * pic/pic.h: Declare hypot().
12405 * pic/pic.h: Define M_PI if necessary.
12407 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
12409 * tmac/tmac.e (re): Add alternative version that doesn't use groff
12412 * devps/prologue.ps (RE): Handle the possibility that the old font
12413 doesn't have a FontName entry.
12415 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
12417 * tmac/tmac.e (fam): Redefine to set family in environment 2.
12418 (@C): Use @fam not fam.
12420 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
12422 * lookbib/lookbib.cc (main): Change type of start to const char *.
12423 * lkbib/lkbib.cc (main): Likewise.
12425 * eqn/lex.cc (definition::definition): Don't use member
12426 initializer syntax for members of anonymous unions.
12428 * troff/input.cc (input_stack::backtrace): Change type of to const
12431 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
12433 * include/stringclass.h (class string): Declare inline friend
12434 functions as inline in class declaration.
12435 * troff/hvunits.h (class hunits, class vunits): Likewise.
12436 * include/refid.h (class reference_id): Likewise
12437 * troff/troff.h (points_to_units(units), scale(units, double)):
12438 Delete declarations.
12439 * libdriver/input.cc (get_char): Delete declaration.
12440 * include/lib.h: Change 2nd argument of getopt from const char **
12442 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12443 char **' before assigning to a `const char **'.
12444 * tbl/table.cc: Delete extra declarations of prints().
12446 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
12448 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12449 char **' before assigning to a `const char **'.
12451 * libgroff/errarg.cc (errarg::errarg): Don't use member
12452 initializer syntax for members of anonymous unions.
12454 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
12456 * mm: Integrate version 1.07.
12458 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
12460 * troff/input.c (translate2): Rename to
12461 (translate_no_transparent).
12462 (init_input_requests): Rename tr2 to trnt.
12464 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
12466 * troff/charinfo.h (class charinfo): Add transparent_translate field.
12467 (charinfo::set_translation, charinfo::set_special_translation):
12468 Add second argument that specifies value for
12469 transparent_translate.
12470 (charinfo::get_translation, charinfo::get_special_translation):
12471 Add optional second argument that specifies whether translation is
12472 being used for transparent throughput.
12473 * troff/input.cc (charinfo::set_translation,
12474 charinfo::set_special_translation): Handle second argument.
12475 (charinfo::charinfo): Initialize transparent_translate.
12476 (translate): Split main part off into
12477 (do_translate): New function. Pass argument saying whether
12478 translation applies to transparent throughput.
12479 (translate2): New request.
12480 (init_input_requests): Bind translate2 to `tr2'.
12482 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
12484 * tbl/table.h (class table): Add `nokeep' flag.
12485 * tbl/main.cc (process_options): Handle `nokeep' option.
12486 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12487 table::do_bottom): Don't output keep/release macro definitions or
12488 calls when `nokeep' option has been specified.
12490 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
12492 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12494 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
12496 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12497 block_entry::divert, alphabetic_block_entry::divert): Add extra
12498 argument giving column separation.
12499 (table::compute_widths): Pass column separation to
12500 table_entry::divert().
12501 (block_entry::do_divert): If an entry spans multiple columns and a
12502 minimumum width has been specified for each column, then set the
12503 line length to the sum of the widths (plus possibly the column
12506 * troff/input.cc (set_escape_char): Don't set the escape_char
12507 until after calling has_arg().
12509 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
12511 * tbl/table.cc (table::do_top): Add missing \s0 for double box
12514 * tbl/table.cc (table::print_double_hline): Avoid extra new line
12515 in case where r > nrows - 1.
12517 * tbl/table.cc (BODY_HEIGHT): Deleted.
12518 (LINE_SEP): New definition.
12519 (table::print_single_hline, table::print_double_hline,
12520 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12521 table::do_row, table::do_top): Use LINE_SEP space before a line
12522 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12524 * tbl/table.cc (text_entry::print_contents): New function.
12525 (text_string_name, right_text_string_name): Deleted.
12526 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12527 (simple_text_entry::do_width, numeric_text_entry::do_width,
12528 alphabetic_text_entry::do_width): Don't store the contents of the
12530 (left_text_entry::simple_print, right_text_entry::simple_print,
12531 center_text_entry::simple_print,
12532 alphabetic_text_entry::simple_print,
12533 numeric_text_entry::simple_print): Print the entry directly
12534 instead of using the stored string.
12536 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
12538 * devps/Makefile: Strip PostScript files.
12539 * devps/prologue: Rename to...
12540 * devps/prologue.ps.
12541 * devps/psstrip.sed: New file.
12542 * devps/download: Use .pfa rather than .ps for installed versions
12545 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
12547 * troff/env.cc (input_trap): Give a warning if the argument is out
12550 * troff/env.cc (adjust): Treat negative argument as missing. Round
12551 argument > 5 down to 5.
12553 * troff/env.cc (center, right_justify): Make negative argument zero.
12555 * troff/div.cc (page_offset, vertical_position_traps): Treat
12556 invalid argument as missing.
12557 * troff/env.cc (line_spacing, line_length, title_length, indent,
12558 underline, hyphen_line_max_request, control_char,
12559 no_break_control_char, widow_control_request, adjust, input_trap,
12560 point_size): Likewise.
12561 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12562 constant_space): Likewise.
12563 * troff/input.cc (compatible, shift, warn_request,
12564 set_escape_char): Likewise.
12566 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12567 * tbl/table.cc (table::table): Likewise.
12569 * Makefile.dev (install_dev): depends on $(DEVFILES).
12571 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
12573 * devX75, devX75-12, devX100, devX100-12: New directories.
12574 * Makefile.in: Add these to DEVDIRS.
12576 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12577 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12578 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12579 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12581 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12582 (uninstall): New target.
12583 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12584 uninstall_prog, uninstall_dev): New targets.
12586 * troff/div.cc (return_request): Treat an invalid argument as
12589 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
12591 * tmac/tmac.e ((f): Set up the environment even when there's a
12592 current diversion. Transperently throughput a call to @N.
12595 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
12597 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12598 up to vertical resolution.
12600 * tbl/table.cc (table::do_row): Change row number after printing
12603 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12605 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
12607 * Rename CHANGES to NEWS.
12609 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
12611 * libgroff/new.cc (operator new): Avoid calling malloc(0).
12613 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
12615 * man.ultrix: Removed.
12617 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
12619 * Makefile.comm (extraclean): Delete files whose names begin with
12622 * pic/troff.cc (troff_output::text): Fix typo in implementation of
12625 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
12627 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12628 * troff/div.cc (page_length, need_space, space_request): Treat
12629 invalid optional argument as missing.
12630 * troff/env.cc (number_lines): If the first argument is present
12631 but not a number, turn on line numbering, don't change the next
12632 line number and parse the remaining arguments.
12634 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12636 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
12638 * eqn/box.h: Change declaration accordingly.
12639 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
12640 the specified size was bad but don't give an error. Check for
12642 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12643 * eqn/lex (do_size): Likewise.
12645 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
12647 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12648 compatible headers.
12650 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
12652 * tbl/table.cc (table::init_output): Improve error message when
12653 table won't fit on one page.
12655 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
12657 * pic/troff.cc (troff_output::start_picture): Generate line
12658 containing a horizontal motion equal to the width of the picture.
12660 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12661 using GROFF_COMMAND_PREFIX environment variable.
12663 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
12665 * mdate.sh: Use $NF rather than $(NF).
12667 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
12669 * pic/main.cc (main): Use %1 not %c in argument to warning.
12671 * eqn/main.cc (main): Output code to check that geqn was given the
12674 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
12676 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12677 `ln -s ../Makefile .; make; rm -f Makefile'.
12679 * troff/hyphen: Rename to...
12681 * troff/input.cc (main): Delete -H option. Don't call
12682 read_hyphen_file().
12683 * troff/env.cc: Include searchpath.h and macropath.h.
12684 (exception_dictionary): Deleted.
12686 (read_hyphen_file): Deleted.
12687 (hyphenation_language): New struct.
12688 (class trie, class hyphen_trie): Move declarations up.
12689 (trie_node::~trie_node): Deleted.
12690 (trie::delete_trie_node): New function.
12691 (trie::do_delete): New pure virtual function.
12692 (hyphen_trie::do_delete): New function.
12693 (trie::~trie): New function.
12694 (hyphen_trie::~hyphen_trie): New function.
12695 (trie::clear): No need to chcek that tp is not 0.
12696 (current_language, language_dictionary): New variables.
12697 (hyphen_word): Give an error if no current language. Use
12698 exceptions dictionary in current language.
12699 (hyphen_trie::read_patterns_file): Find file using macro_path.
12700 Allow comments (starting with %) in patterns file. Don't make it
12701 a fatal error if the file can't be found.
12702 (hyphenate): Return if no current language. Get the exceptions
12703 dictionary and the hyphenation patterns from the current language.
12704 (set_hyphenation_language): New variable.
12705 (hyphenation_patterns_file): New function.
12706 (hyphenation_language_reg): New class.
12707 (hyphenation_language_reg::get_string): New function.
12708 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12709 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
12711 * groff/groff.cc (main, help, synopsis): Delete -H option.
12712 * include/Makefile.sub: Don't define HYPHENFILE.
12713 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12714 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12715 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12716 hyphenation patterns.
12718 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
12720 * eqn/neqn.sh: New file.
12721 * eqn/Makefile.sub: Handle neqn.sh.
12723 * eqn/eqn.h: Declare `nroff' variable.
12724 * eqn/box.cc (param_table): Add `nroff' param.
12725 (nroff): Define it.
12726 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12728 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12730 * troff/troff.h (WARN_FONT): New warning.
12731 (WARN_TOTAL): Change accordingly.
12732 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12733 (warning_table): Add WARN_FONT.
12734 * troff/node.cc (mount_font_no_translate): Pass argument to
12735 font::load_font. If this is non-zero, give a warning.
12736 Don't give an error message when accessing a font that has already
12737 been found to be invalid.
12738 * include/font.h (font::load, font::load_font): Add additional
12739 optional argument which suppresses error message if the font is
12741 * libgroff/font.cc (font::load_font): Handle additional argument.
12742 (font::load): Add additional argument. If this is non-null, set it
12743 to 1 and don't give error message.
12745 * include/printer.h (printer::end_page): Add argument giving
12747 * libdriver/input.cc (do_file): Pass this.
12748 * grops/ps.cc (ps_printer::end_page): Add argument.
12749 * grodvi/dvi.cc (dvi_printer::end_page,
12750 draw_dvi_printer::end_page): Add argument.
12751 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12752 columns_per_page members. New member nlines.
12753 (DEFAULT_LINES_PER_PAGE): Deleted.
12754 (tty_printer::tty_printer): Don't compute lines_per_page from
12755 font::paperlength. Don't compute columns_per_page from
12757 (tty_printer::add_char): Don't check horizontal position against
12758 columns_per_page. Grow glyphs vector if neccessary.
12759 (tty_printer::end_page): Add argument giving page_length in units.
12760 Discard lines past end of page.
12762 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
12764 * tmac/tmac.tty-char: Fix definition of \(/l.
12766 * tmac/tmac.X: Define \(en.
12768 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
12770 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12771 lpq, then use lp rather than lpr.
12773 * tmac/tmac.s (par@reset): Don't call `ad'.
12774 (par*env-init): Call `ad'.
12776 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
12778 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12781 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12782 * indxbib/indxbib.cc: Likewise.
12784 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
12786 * libgroff/putenv.c: New file.
12787 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12788 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12789 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12790 stdlib.h with AC_HAVE_HEADERS.
12792 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
12794 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12797 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
12799 * eqn/box.cc (gsize): Make it an int.
12800 (set_gsize): Parse argument handling increment or decrement.
12801 (box::top_level): Convert gsize to a string.
12803 * troff/input.cc (exit_troff): Make buf unsigned char [].
12804 Call to make_temp_iterator casts buf to char*.
12806 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12808 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12809 * Makefile.cpg (depend.temp): Likewise.
12811 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12813 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12815 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
12817 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12819 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
12821 * Version 1.06 released.
12823 * Integrate mm 1.04.
12825 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
12827 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12829 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
12831 * afmtodit/afmtodit.pl: Add -n option that disables generation of
12833 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12834 afmtodit. Regenerate.
12836 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12837 @f back past the current position.
12839 * tmac/tmac.e: Change calls to @R so that comments are not part of
12842 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
12844 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12846 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12847 check that we can link a call to a function declared in <stdio.h>.
12848 (GROFF_UNISTD_H): New macro.
12849 * configure.in: Call it.
12850 * Makefile.in: Document it.
12851 * include/posix.h: New file.
12852 * troff/troff.h: Don't include <osfcn.h>
12853 * troff/input.cc: Include posix.h.
12854 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12856 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12857 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12859 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12860 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12861 * libbib/search.cc (O_RDONLY): Delete definition.
12862 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12863 Don't include <osfcn.h>.
12865 * acgroff.m4 (GROFF_TIME_T): New macro.
12866 * configure.in: Call it.
12867 * Makefile.in: Document it.
12869 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12870 * configure.in: Call it.
12871 * Makefile.in: Document -DTRADITIONAL_CPP.
12872 * include/ptable.h: Don't include generic.h.
12873 (name2): Define it.
12875 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12876 Afterwards remove [T1 and [T2.
12877 (ref*spec!0, ref*spec!2): Use T1 rather than T.
12878 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12879 (ref*add-T2): Renamed from ref*add-T.
12880 (ref*add-T1): New macro.
12882 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
12884 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12886 * libbib/index.cc: Include <fcntl.h>.
12887 (O_RDONLY): Define if necessary.
12888 (make_index_search_item, index_search_item_iterator::get_tag,
12889 index_search_item::check_files): Use O_RDONLY.
12890 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12891 (O_RDONLY): Define if necessary.
12892 (search_list::add_file): Use O_RDONLY.
12893 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12895 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12898 * libbib/index.cc (S_ISREG): Define it if necessary.
12899 (index_search_item::load): Use S_ISREG.
12901 * include/driver.h: Include <errno.h>.
12903 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
12905 * eqn/box.cc (body_height): Increase default value to 85.
12906 (body_depth): Increase default value to 35.
12908 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
12910 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12911 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12912 protected from expansion with \E.
12914 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12916 * Makefile (Makefile): New target.
12918 * Makefile.sub (configure, distfiles): New targets.
12920 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12923 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
12925 * eqn/box.cc (param_table): Add body_height and body_depth.
12927 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12929 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
12931 * psbb/Makefile.sub: Don't link with libgroff.a.
12933 * acgroff.m4 (GROFF_PUTENV): New macro.
12934 * configure.in: Call GROFF_PUTENV.
12935 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12936 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12939 * troff/env.cc (distribute_space): Rename force_forward argument
12940 to force_reverse. Reverse the list if force_reverse is true.
12942 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
12944 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12946 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12947 height or depth to be negative. Guard against SUP_RAISE quantity
12950 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
12952 * devps/generate/textmap: Add `an' (arrowhorizex).
12953 * tmac/tmac.ps: \(an overlaps horizontally.
12954 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12956 * devps/symbolchars: Add arrowverttp, arrowvertbt.
12957 * devps/textmap: Add arrowvertex.
12958 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12959 updownarrow delimiters.
12960 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12962 * tbl/table.cc (simple_entry::position_vertically,
12963 block_entry::position_vertically): For a centered entry, perform
12964 the motion in two stages.
12966 * refer/refer.cc (split_punct): Don't call lookup_token if there
12969 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
12971 * troff/input.cc (token::next): Delete token_node after copying
12974 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12977 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12979 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12981 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
12983 * grops/ps.cc (usage): -b option takes an argument.
12985 * devps/prologue (PLG): New procedure.
12986 * grops/ps.cc (main, usage): New -g option.
12987 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
12990 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
12992 * include/cset.h: Include <limits.h> if we have it.
12994 * libgroff/illegal.cc: New file.
12995 * include/lib.h (illegal_input_char): Use table.
12996 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12997 * pic/lex.cc (ARG1): Renumber to 14.
12998 * eqn/lex.cc (ARG1): Likewise.
13000 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13001 (eg 1.05.90) correctly.
13003 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
13005 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13006 Rename $r and $R registers to $v and $V.
13007 ($r, $R): Initialize to 0.
13008 (@v, @V): New macros.
13012 * troff/input.cc (main, usage): Add -R option that says not to
13014 * eqn/main.cc (main, usage): Rename -n to -R.
13016 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
13018 * devps/DESC.in: Leave font positions 5-9 blank.
13019 * devdvi/DESC.in: Likewise.
13021 * grog/grog.pl: Handle `.PS <file' correctly.
13023 * troff/input.cc (input_stack::push): Improve error message when
13024 input stack limit exceeded.
13026 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
13028 * refer/refer.cc (main): Fix typo in handling of `a' option.
13030 * refer/refer.cc (do_bib): In state START after a newline remain
13033 * groff/groff.sh: Deleted.
13034 * groff/Makefile.sub: Delete handling of groff.sh.
13036 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13037 to determine whether to use \X'ps:...'.
13038 * tmac/troffrc: Set 0p register to 0.
13039 * tmac/tmac.ps: Set 0p register to 1.
13041 * groff/groff.cc: Support -X option. Give warning for -TXps and
13042 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13043 * tmac/troffrc: Support -r.X=1.
13045 * pic/troff.cc (troff_output::dot): Don't test
13046 zero_length_line_flag.
13048 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
13050 * include/lib.h: Declare getopt() and friends unless
13051 STDLIB_H_DECLARES_GETOPT is defined.
13053 * doc/chars.tr: Delete.
13054 * man/groff_char.man: New file.
13056 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
13058 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13059 user has changed register format.
13061 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
13063 * groff/groff.cc: Get rid of device_table. Get postprocessor from
13064 `postpro' command in DESC file. Get spooler command from `print'
13065 command in DESC file. Execute spooler command with /bin/sh.
13067 * groff/groff.cc: Split Unix-specific parts into...
13068 * groff/pipeline.c: New file.
13071 * COPYING: New file.
13072 * all files: Update copyright notices.
13074 * Rearrange files. Redo Makefiles. Use autoconf.
13076 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
13078 * troff/input.c (charinfo_to_node_list): Interpret character
13079 definition with escape_char of `\'.
13081 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
13083 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13084 Define INT_DIGITS as big enough for 64-bit integer.
13085 * lib/strtol.c: Don't include lib.h.
13086 * lib/lib.h: Delete ifdef __cplusplus stuff.
13088 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
13090 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
13091 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
13092 get DESC from current directory.
13094 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
13096 * tbl/main.c (main): Always reset the line number when reading
13099 * tbl/table.c (table::print_single_hline, table::print_double_hline,
13100 table::define_bottom_macro, table::do_row, table::do_top): Round
13101 vertical spacing up to vertical resolution.
13103 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
13105 * ps/ps.h (enum resource_type): Avoid comma at end of
13107 * dvi/dvi.c (class dvi_printer): Likewise.
13108 * dvi/tfmtodit.c (gf::load): Likewise.
13109 * refer/label.y (struct expression): Likewise.
13110 * refer/refer.c (class label_processing_state): Likewise.
13111 * refer/indxbib.c (do_file): Likewise.
13112 * troff/troff.c (enum warning_type): Likewise.
13113 * tbl/main.c (process_data): Likewise.
13114 * troff/charinfo.h (class charinfo):
13116 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
13118 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
13120 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
13122 * groff.c: Move to new groff subdirectory.
13123 * groff/Makefile: New file.
13124 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13126 * man/mdate.sh: Use ls -L if supported.
13128 * Consolidate all header files produced by gendef into lib/defs.h.
13129 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13130 Don't include path.h.
13131 * lib/Makefile (path.h): Don't generate.
13132 * troff/input.c: Include defs.h. Don't include config.h.
13133 * troff/Makefile (config.h): Don't generate.
13134 * refer/index.h: Don't include suffix.h.
13135 * refer/index.c: Include defs.h.
13136 * refer/indxbib.c: Include defs.h.
13137 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13139 * refer/Makefile (suffix.h, path.h): Don't generate.
13140 * groff.c: Don't include config.h. Include defs.h.
13141 * Makefile (config.h): Don't generate.
13142 (lib/defs.h): Generate.
13143 (topclean): Remove lib/defs.h.
13145 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
13147 * lib/malloc.c, lib/getpagesize.h: Deleted.
13148 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
13150 * lib/Makefile: Delete malloc-related stuff.
13151 * lib/new.c: Workaround COOKIE_BUG if necessary.
13153 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
13154 needed header files directly.
13155 * refer/refer.h: Omit definition of DEFAULT_INDEX.
13156 * Makefile: Include definition of DEFAULT_INDEX in path.h.
13158 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
13160 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13162 * lib/font (font::load_desc, font::load): Don't split argument of
13164 (font::handle_unknown_font_command): Change type.
13165 * ps/ps.c (ps_font::handle_unknown_font_command,
13166 handle_unknown_desc_command): Change type.
13167 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13169 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
13171 * lib/font.h (font::handle_unknown_font_command): Add file and
13173 * lib/font.c (font::handle_unknown_font_command):
13174 * ps/ps.c (ps_font::handle_unknown_font_command):
13175 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13176 lineno arguments. Use _with_file_and_line functions for error
13179 * lib/fontfile.c (font::unknown_desc_command_handler): New static
13181 * lib/font.c (font::set_unknown_desc_command_handler): New
13183 (font::load_desc): For unknown commands, call
13184 unknown_desc_command_handler if not null.
13185 * lib/font.h (class font): Declare them.
13186 (FONT_COMMAND_HANDLER): New typedef.
13187 * ps/ps.c (handle_unknown_desc_command): New function.
13188 (main): Set bflag if we had a -b option. Call
13189 font::set_unknown_desc_command_handler.
13190 (broken.h): Don't include.
13191 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
13193 * ps/devps/Makefile: Add `broken' command to DESC file using
13194 BROKEN_SPOOLER_FLAGS.
13196 * macros/tmac.e ([, ]): Add as synonyms for { and }.
13198 * macros/tmac.e ($p): Only exdent if \$3 > 0.
13200 * macros/tmac.e (@R, @S): New macros.
13201 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13202 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13203 Declare $H, $[0-9], .. macros with @S.
13204 Declare |0, |1, |2, |3 strings with @S.
13206 * macros/tmac.e (@S): Rename to @U.
13208 * macros/tmac.e (@z): Define @b and bp as empty instead of
13211 * macros/tmac.e (@m): Deleted.
13212 (@h): Don't call @m.
13213 (@z): Don't set @m trap.
13215 * macros/tmac.e ($h, $f): Define |z as empty string.
13217 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13220 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13222 ()f): Likewise for * register.
13224 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13225 argument is missing, don't change $R. Call sr with three
13226 arguments when initializing.
13228 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
13230 * macros/tmac.e (sr): New macro.
13231 Initialize $r and $R using sr.
13233 * macros/tmac.e (,): Delete \*(#[.
13235 * troff/env.c (set_tabs): Read the tab type even if the position
13236 is bad. Allow the position of the first tab stop to be negative.
13238 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
13240 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13242 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13243 rather than -DPATHCONF_MISSING.
13244 * Makefile: Get rid of PATHCONF_MISSING.
13246 * refer/map.c: New file.
13247 * refer/index.c: Interface to mmap through map.c. Rename map_size
13249 * refer/Makefile: Handle map.c.
13250 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13252 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
13254 * Makefile: RANLIB should be `true' if there is no ranlib.
13255 * lib/Makefile (libgroff.a): Simplify.
13256 * driver/Makefile (libdriver.a): Simplify.
13258 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13259 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
13262 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
13264 * troff/env.c (compare_ranges): Declare as extern "C".
13266 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13268 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13270 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
13272 * pic/troff.c (troff_output::text): Merge in grops_output::text,
13273 but conditionalize use of \X based on \*(.T.
13274 (grops_output::*): Deleted.
13275 * pic/output.h: Delete declaration of make_grops_output.
13276 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
13277 by default. -n sets it to 0.
13278 (usage): Corresponding changes.
13279 * groff.c (main): Don't pass -x or -p to pic.
13280 * groff.sh: Likewise.
13282 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13285 * ps/devps/afmtodit: Change calculation of asc_boundary and
13286 desc_boundary. Make these bounds inclusive.
13287 * ps/devps: Regenerate font files.
13289 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
13291 * macros/tmac.latin1: New file.
13292 * macros/tmac.tty-char: Use tmac.latin1.
13293 (tmac.tty-tr): Deleted.
13294 * macros/Makefile: Install tmac.latin1.
13295 * macros/tmac.dvi: Use tmac.latin1.
13296 * macros/troffrc: Translate \[char160] onto no-break space here.
13297 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13299 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
13301 * macros/tmac.Xps: Use `do' request.
13303 * macros/tmac.ps: Use `do' request.
13305 * macros/tmac.e (@C): Use `do' request.
13307 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13308 * macros/Makefile: Install tmac.X*.
13310 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13311 * tty/Makefile: Don't install tmac.tty*.
13312 * macros/Makefile: Install tmac.tty*.
13314 * dvi/tmac.dvi: Move to macros.
13315 * dvi/Makefile: Don't install tmac.dvi.
13316 * macros/Makefile: Install tmac.dvi.
13318 * ps/tmac.ps*: Move to macros.
13319 * ps/Makefile: Don't install tmac.ps*.
13320 * macros/Makefile: Install tmac.ps*.
13322 * eqn/box.c: Provide draw_lines parameter corresponding to -D
13324 * macros/eqnrc: Set draw_lines parameter based on device.
13325 * groff.c: Don't pass -D flag to eqn.
13326 * groff.sh: Likewise.
13327 * eqn/main.c: Warn about use of -D.
13329 * troff/input.c (process_startup_file): New function.
13330 (main): Call process_startup_file().
13331 * macros/troffrc: New file.
13332 * macros/Makefile: Install troffrc.
13333 * groff.c (main): Don't pass extra -m option to troff. For a
13334 pseudo device pass the name of the pseudo device to troff using
13336 * groff.sh: Likewise.
13337 * groff.c (possible_command::prepend_arg): Deleted.
13339 * troff/input.c (do_request): New function.
13340 (init_input_requests): Bind "do" to do_request.
13342 * eqn/main.c (main): Instead of loading eqnchar from device directory,
13343 load eqnrc from macro directory.
13344 * macros/eqnrc: New file.
13345 * macros/Makefile: Install eqnrc.
13346 * ps/devps/eqnchar: Deleted.
13347 * ps/devps/Makefile: Don't install eqnchar.
13348 * dvi/devdvi/eqnchar: Deleted.
13349 * dvi/devdvi/Makefile: Don't install eqnchar.
13350 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13353 * lib/device.[ch]: New files.
13354 * lib/font.h (font::set_device_name, font::get_device_name):
13356 * lib/fontfile.c: Use device.h.
13357 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13358 * troff/input.c: Delete definition of `device'.
13359 (main): Don't initialize device.
13360 * troff/troff.h: Include device.h rather than declaring device.
13361 * troff/Makefile: No need to handle DEVICE.
13362 * driver/input.c: Include device.h. Don't use
13363 font::{set,get}_device_name.
13364 * groff.c, Makefile: Rename device.h to config.h.
13365 * groff.c: Use library device variable.
13366 * eqn/main.c: Use library device variable.
13367 * eqn/Makefile: No need to handle DEVICE.
13369 * lib/searchpath.[ch]: New files.
13370 * lib/Makefile: Handle searchpath.[ch].
13371 * troff/input.c (open_file, init_dirs): Deleted.
13372 (macro_dirs): Deleted.
13373 (open_mac_file, macro_source): Use class search_path.
13374 (add_string, struct string_list): Move definition.
13375 (main): Change -M option to use macro_path. Delete call to
13377 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13378 Rewrite to use class search_path.
13379 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13380 * lib/Makefile: fontfile.c depends on searchpath.h.
13381 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13383 * lib/macropath.[ch]: New files.
13384 * troff/Makefile: No need to handle MACROPATH.
13386 * troff/input.c: Delete DUMP code.
13387 * lib/fontfile.c, lib/font.h: Delete
13388 font::forget_command_line_font_dirs.
13390 * troff/input.c (push_token): New function.
13391 (handle_first_page_transition): Use push_token().
13392 (process_input_stack): Change handling of a space at the beginning
13395 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
13397 * troff/input.c (font_dirs): Delete unused variable.
13399 * eqn/lex.c (do_set): Correct error messages.
13401 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
13403 * troff/input.c (do_define_string): Allow the string name to be
13404 followed immediately by a tab.
13405 (define_character): Likewise.
13407 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
13409 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13412 * troff/input.c (input_iterator::is_file): New virtual function.
13413 (file_iterator::is_file): New function.
13414 (input_stack::end_file): New function.
13415 (input_stack::next_file): Handle the situation where there is no
13416 file on the input stack correctly. Avoid making two passes over
13418 (next_file): Make the filename optional; in this case call
13419 input_stack::end_file().
13421 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
13423 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13424 produce a real _ charater when the current font is CW and _
13427 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13428 expression to work around gcc 2.2 bug.
13430 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
13432 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13434 * troff/env.c (environment::add_padding): New function.
13435 (environment::add_char): Use add_padding().
13436 (environment::space): Likewise.
13437 (environment::wrap_up_field): Add some padding if there is none
13438 and there's no current tab.
13439 * troff/env.h: Declare environment::add_padding.
13441 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
13443 * pic/pic.y: undef fmod and rand before declaring them.
13445 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
13447 * troff/input.c (main): If the DESC file specifies a font name of
13448 0, then leave the corresponding font position empty.
13450 * nroff.sh: New file.
13451 * Makefile (install.nobin): Install nroff.sh.
13453 * tty/devlatin1/R.proto: Add ao as synonym for de.
13454 * tty/tmac.tty-char: Define ao as o.
13456 * tty/dev{ascii,latin1}/R.proto: Add aq.
13457 * tty/tmac.tty-char: Delete definition of aq.
13459 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
13461 * troff/input.c (init_charset_table): Don't translate 0240.
13462 * ps/tmac.ps: Translate char160 to space.
13463 * dvi/tmac.dvi: Likewise.
13464 * tty/tmac.tty: Likewise.
13466 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
13468 * dvi/tmac.dvi: Add support for all Latin-1 characters.
13470 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13471 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13474 * tty/tmac.tty-char: Add \(ah.
13476 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13477 No need to define \(FM and \(!/. Conditionalize all character
13480 * ps/devps/lgreekmap: Add +h, +f, +p.
13482 * ps/tmac.psnew: New file.
13483 * ps/Makefile: Install tmac.psnew.
13485 * troff/input.c (charinfo_to_node_list): Don't ever interpret
13486 character definitions in compatible mode.
13488 * troff/input.c (remove_character): New function.
13489 (init_input_requests): Bind remove_character to "rchar".
13491 * ps/tmac.psold: New file.
13492 * ps/Makefile: Install tmac.psold.
13493 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13494 characters into tmac.psold. Make these definitions unconditional.
13496 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13498 * ps/tmac.ps: Don't define \('c and \('C.
13500 * ps/devps/textmap: Move Greek characters to...
13501 * ps/devps/symbolchars:
13503 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
13505 * ps/devps/text.enc: Add quotesingle.
13506 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13507 * tty/tmac.tty-char: Likewise.
13508 * dvi/devdvi/texmi.map: Add +h, +f, +p.
13509 * dvi/devdvi/texi.map: Add Fn.
13510 * dvi/devdvi/msam.map: Add lz.
13511 * dvi/tmac.dvi: Handle Bq, bq, aq.
13513 * pic/lex.c (get_token): Recognize 'th.
13514 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13516 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
13518 * ps/devps/textmap: Move di, mu, +- to...
13519 * ps/devps/symbolchars:
13521 * macros/tmac.s (@XS): Don't call par@reset or fi.
13522 (XA): Call LP. Turn off adjustment. Reduce line length.
13524 * macros/tmac.s: Initially alias XS to LP.
13525 (XS): Rename to @XS.
13526 (cov*ab-init): Alias XS to @XS.
13528 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
13530 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13531 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13532 (token::is_size, token::changes_env): Deleted.
13533 * troff/number.c (parse_term): No need to process \s explicitly.
13534 Call tok.next() only after scale indicator has been processed.
13535 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13537 (token::next): Handle \s, \f, \S, \H immediately rather than
13538 returning them as tokens.
13539 (token::operator==, token::description, token::add_to_node_list,
13540 token::process): Remove handling of deleted tokens.
13542 * troff/env.c (environment::add_char): When adding padding
13543 indicator character, call start_line() if necessary.
13545 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
13547 * ps/devps/afmtodit: Don't output 0 kerns.
13549 * ps/devps/afmtodit: Remove directory from name of encoding in
13550 font description file.
13552 * ps/devps/afmtodit: Improve error messages.
13554 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13556 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13557 * ps/devps/FontMakefile: Deleted.
13558 * ps/devps/afmname: New file.
13560 * ps/devps/symbol.sed: New file.
13561 * ps/devps/symbol.diff: Deleted.
13562 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13563 Generate zapfdr.afm from zapfd.afm.
13565 * tty/tmac.tty (tty-char): Prefix definition with ".
13567 * macros/tmac.an (TP): Don't start a diversion if one has already
13570 * tty/tmac.tty-char: Add Latin-1 characters.
13572 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13574 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
13576 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13577 Move declaration of struct horizontal_span.
13579 * tbl/table.c (table::table): Initialize span_list.
13580 (table::~table): Delete span_list.
13582 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13584 * ps/devps/Makefile: Avoid dependency on GNU make.
13586 * ps/tmac.ps: Check that character does not already exist before
13589 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13590 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13591 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13594 * tty/tmac.tty-char: New file.
13595 * tty/Makefile: Install tmac.tty-char.
13596 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13599 * tty/tmac.tty: Fix definition of \(34.
13601 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13602 bracket-drawing characters onto |. Add *o.
13604 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13605 only if current_field.
13607 * troff/dictionary.c (dictionary::lookup): Free old_table after
13610 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
13612 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13613 whose glyphs are identical to glyphs of some Roman character.
13615 * tty/devlatin1/R.proto (bu): Deleted.
13616 * tty/devascii/R.proto (bu): Deleted.
13617 * tty/tmac.tty: Add definition of \(bu.
13619 * eqn/main.c (do_file): Pass FILE as argument.
13620 (main): Automatically load eqnchar. New options -F and -n.
13621 Pass do_file an opened FILE.
13622 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13623 No need to include font.h.
13624 * groff.sh: Likewise. Don't need to use - for standard input.
13625 Prefix files with -- if first file starts with -.
13627 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13629 * troff/env.c (environment::possibly_break_line): Don't set line
13630 to 0 across call to output_line(). Don't call output_line() until
13631 after discarding nodes after break.
13633 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
13635 * request.h (macro::empty): Declare it.
13636 * input.c (macro::empty): New method.
13637 (interpolate_macro): Don't give a WARN_SPACE if the two-character
13640 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
13642 * troff/env.c (environment::start_field): Decrement space_total
13643 when a space is frozen.
13645 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
13647 * macros/tmac.an (R): Delete macro.
13649 * troff/input.c (get_copy, token::next): Support \# (like \" but
13650 newline is ignored).
13652 * troff/input.c (token::next): Fix error message in 'Y' case.
13654 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
13656 * eqn/delim.c (define_extensible_string): Recognize any prefix of
13659 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
13661 * c++test.c: Include <osfcn.h>.
13663 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13666 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
13668 * tbl/table.c (table::divide_span): Don't count column separation
13669 if expand was specified.
13671 * tbl/main.c (process_format): Don't ignore width specs in
13672 continued format. Give warning for changing equal widths or
13673 column separation in continued format.
13674 (process_data): Set column separation, minimum width, equal
13675 columns at end of table.
13677 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
13679 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13680 node::add_discretionary_hyphen): Use soft_hyphen_char.
13681 (set_soft_hyphen_char): New function.
13682 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
13684 * Makefile (c++tested): Give more helpful message if test fails.
13686 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
13688 * troff/input.c (init_charset_table): Translate 0240 to
13689 an unbreakable space.
13691 * troff/token.h (token::hyphen_indicator): New function.
13692 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13694 * troff/input.c (translate): Allow translation to \%.
13695 * troff/node.c (node::add_char): Handle
13696 TRANSLATE_HYPHEN_INDICATOR.
13697 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13699 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13702 * tty/devlatin1/R.proto: \(hy and - should print as 055.
13704 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
13706 * groff.c (run_commands): If the last command gets a SIGPIPE send
13707 a SIGPIPE to all children than haven't yet terminated. When
13708 command terminates, set pid field to -1.
13710 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
13712 * groff.c (main): Pass an appropriate -filename option to gxditview.
13714 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
13716 * Makefile.bd (install): Remove existing program before copying.
13718 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13719 programs which have Unix counterparts to be installed with
13720 user-specified prefix.
13722 * troff/input.c (exit_troff): Don't check if exit_started.
13723 (exit_request): Don't call exit_troff if exit_started.
13725 * Makefile.bd (install.mm): Rename to install.dwbmm.
13727 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
13729 * driver/input.c (do_file): Add missing break for '#' case.
13731 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
13733 * troff/input.c (input_stack::clear): Clear past any boundaries and
13734 then add the boundaries back.
13736 * troff/input.c (exit_troff): Return immediately if already
13739 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
13741 (pg*end-page): If the text has ended and there are no more
13742 footnotes or keeps, exit.
13744 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13746 * troff/input.c (init_charset_table): Make \(rq transparent by
13749 * macros/tmac.an: Define lq and rq strings.
13751 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13753 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
13755 * troff/env.c (environment::final_break): New function.
13756 (environment::newline): Set prev_line_interrupted to 2 if
13758 * troff/env.h: Declare environment::final_break.
13759 * troff/input.c (exit_troff): Call environment::final_break()
13760 instead of environment::do_break().
13762 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13763 doesn't already exist.
13764 * macros/man.local: New file.
13765 * macros/tmac.an: Load man.local.
13766 * macros/man.ultrix: New file.
13768 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
13770 * troff/input.c (exit_groff): Rename to...
13771 (exit_troff): New function.
13773 * troff/div.c (exit_started, done_end_macro,
13774 seen_last_page_ejector): New global variables.
13775 (began_page_in_end_macro): New static variable.
13776 (exit_flag): Deleted.
13777 (top_level_diversion::top_level_diversion): Initialize
13779 (top_level_diversion): More elaborate test for whether
13780 cleanup_and_exit() should be called.
13781 Set began_page_in_end_macro if the end macro isn't yet finished.
13782 * troff/div.h (top_level_diversion::last_page_count): New data
13784 (top_level_diversion::set_last_page): New function.
13785 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13786 * troff/env.c (do_break): Zero prev_line_interrupted.
13787 * troff/input.c (exit_flag): Delete declaration.
13788 (LAST_PAGE_EJECTOR): New magic cookie.
13789 (token::next): Handle LAST_PAGE_EJECTOR.
13790 (exit_groff): Set exit_started and done_end_macro instead of
13791 exit_flag. Call top_level_diversion::set_last_page. Push a
13792 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
13793 another ejection after setting seen_last_page_ejector.
13795 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
13797 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13799 * macros/tmac.e (TH): Make sure there's room for the initial
13802 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13803 Set FVS in points rather than units.
13805 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
13807 * troff/div.c (top_level_diversion::add_trap): Don't consider the
13808 position of empty slots.
13810 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
13812 * ps/devps/S: Fix height and depth of parenrightex.
13813 * ps/devps/symbol.diff: Regenerate.
13815 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
13817 * tmac.e (u): Do underlining as in -mgs.
13819 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
13821 * tty/tty.c (tty_printer::end_page): If overstriking is
13822 suppressed, still turn overstruck horizontal and vertical lines
13825 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13828 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13830 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
13832 * Version 1.05 released.
13834 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
13836 * tty/tty.c: Instead of keeping an array of glyphs and then
13837 sorting it, keep a ordered linked list of glyphs for each line.
13839 * driver/driver.h: Include stddef.h.
13841 * tty/tty.c (compare_glyph):
13842 * refer/refer.c (rcompare):
13843 * troff/env.c (compare_ranges): Arguments of qsort comparison
13844 function should be const void *.
13846 * troff/number.c (parse_term):
13847 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13850 * refer/label.y (consider_authors): Don't access variables
13851 constructed under a condition outside that condition: put braces
13852 round for statement containing declaration; redeclare use of same
13855 * pic/pic.y (text_expr): Delete production that allows
13856 parenthesised text_expr.
13857 (expr): Allow a conditional_expr to appear in parentheses.
13858 (conditional_expr): Rename to any_expr.
13860 * mm: Install new version 1.01 from jh.
13862 * lib/font.c (font::get_width): Cache scaled widths.
13863 (font::font): Initialize widths_cache.
13864 (font::~font): Destroy widths_cache.
13865 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13867 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
13869 * c++test.c, c++test.ref: New files.
13870 * Makefile: Check that the C++ compiler works.
13872 * ps/tmac.pspic (PSPIC): Do a break.
13874 * ps/tmac.ps: Move definition of PSPIC into...
13875 * ps/tmac.pspic: New file.
13876 (PSPIC): Draw box around picture, but make it invisible to grops.
13877 * ps/tmac.ps: Load tmac.pspic.
13878 * ps/Makefile: Install tmac.pspic.
13880 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
13882 * lib/font.c (scale_round): If n is negative,
13883 subtract .5 before truncating floating point result.
13885 * lib/fontfile.c: Include <errno.h>.
13887 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
13889 * driver/input.c (get_char): Inline. Don't update current_lineno.
13890 Change callers to up date current_lineno if necessary.
13891 Use get_char() instead of getc(current_file).
13893 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
13895 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13897 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
13899 * tty/tty.c (tmac.tty): Define \(rg as (R).
13901 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
13903 * lib/lib.h: New define a_delete.
13904 * Use a_delete instead of delete when deleting an array of objects
13905 without destructors.
13907 * lib/lib.h: Rename adelete to ad_delete.
13908 * Change uses of adelete.
13910 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
13912 * eqn/eqn.y: Include lib.h.
13914 * troff/node.c (grow_font_table): Delete old_font_table.
13916 * mm: Install new version from jh.
13918 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
13920 * tbl/table.h (format_type): Make global instead of local to class
13921 entry_format. Prefix enumerators with FORMAT_.
13922 * tbl/table.c, tbl/main.c: Corresponding changes.
13923 * refer/token.h (token_type): Make global. Prefix enumerators
13925 * refer/token.[ch]: Corresponding changes.
13926 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13928 * troff/div.c (node::set_vertical_size): Don't name argument.
13930 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
13932 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13933 * lib/lib.h: Define adelete accordingly.
13934 * pic/object.c (graphic_object::graphic_object):
13935 * tbl/main.c (format::~format):
13936 * tbl/table.c (table::~table):
13937 * refer/ref.c (reference::~reference, reference::merge,
13938 reference::insert_field, reference::delete_field): Use adelete.
13940 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13942 * tbl/table.h: Corresponding changes.
13944 * common.c (common_output::dashed_arc, common_output::dotted_arc):
13945 Ensure total_angle is positive.
13947 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
13949 * refer/ref.c (reference::merge, reference::insert_field,
13950 reference::delete_field): Avoid delete[0].
13952 * refer/token.c (init_special_chars): Move calls to cmupper
13953 outside calls to init_two_char_letter to work around bug in gcc
13956 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
13958 * lib/new.c (operator new): Use __builtin_new for g++.
13960 * pic/object.c (graphic_object::~graphic_object): Don't use
13963 * pic/object.c (output::compute_scale): Initialize max_width and
13966 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
13968 * troff/input.c (write_request): Call fflush.
13970 * troff/node.h (class composite_node): Move declaration to node.c
13971 * troff/input.c (charinfo_to_node): Rename to ...
13972 (charinfo_to_node_list): Return node list rather than composite
13974 * troff/node.c (make_composite_node): New function.
13975 (make_node, add_char): Call make_composite_node instead of
13977 (class composite_node): Add a tfont * member. Delete font_size
13979 (composite_node::composite_node, composite_node::copy,
13980 composite_node::size): Corresponding changes.
13981 (composite_node::tprint): Provide constant spacing, emboldening
13982 and track kerning as specified in tfont.
13983 (composite_node::width): Change width calculation accordingly.
13984 * troff/env.h (environment::composite): New member.
13985 (environment::is_composite, environment::set_composite): New
13987 * troff/env.c (environment::environment): Initialize composite.
13988 * troff/input.c (charinfo_to_node): Call
13989 environment::set_composite.
13990 * troff/node.c (make_composite_node, make_glyph_node): Use the
13991 plain version of the tfont if the environment is composite.
13993 * troff/node.c (font_info::get_space_width): Additional argument
13994 giving space_size. Handle constant space correctly. Scale by
13995 space_size unless constant spaced.
13996 (env_sentence_space_width): New function.
13997 * troff/node.h: Declare it.
13998 * troff/env.h (environment::get_space_size,
13999 environment::get_sentence_space_size,
14000 environment::get_narrow_space_width,
14001 environment::get_half_narrow_space_width): Make inline.
14002 (environment::get_space_width): Make inline. Just call
14004 * troff/env.c: Delete definitions for funtions made inline.
14005 (environment::space_newline, environment::space): Use
14006 env_sentence_space_width(). Don't scale by space_size.
14007 * troff/node.h: Move declarations of env*space_width() functions
14010 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
14012 * macros/tmac.s (PS): Don't try to set negative indent.
14014 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
14016 * pic/pic.y: Fix min function.
14018 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
14020 * man/mdate.sh: Clear LANGUAGE.
14022 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
14024 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14025 * pic/lex.c: New COMMAND keyword.
14026 * pic/pic.y (print_args, print_arg): New rules.
14027 (placeless_element): Use print_args for PRINT.
14028 New COMMAND element.
14030 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
14032 * troff/input.c (terminal): Handle missing argument correctly.
14034 * pic/pic.y (text_expr): New rule.
14036 * pic/pic.y: Implement := operator.
14038 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
14040 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14043 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
14045 * ps/devps/dingbatsrmap: Include this in the distribution.
14047 * macros/tmac.doc: Replace with new version from 2nd Networking
14048 Release. Fix loading of doc-* files.
14049 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14050 * macros/tmac.doc.old: New file. Apply fixes that had been
14051 applied to old tmac.doc.
14052 * macros/tmac.andoc: Check that we're running under groff.
14053 * macros/Makefile: Rework.
14055 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
14057 * tbl/table.h (format_type):
14058 * refer/token.h (token_type): If NESTED_TYPES is defined, use
14059 typedef to make these types visible at file scope.
14060 * Makefile: Add NESTED_TYPES configuration option.
14062 * troff/div.c (mark): At the top level use the value of
14063 nl_reg_contents rather than the current vertical position.
14065 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
14067 * tty/tty.c: Implement \D for horizontal or vertical lines.
14068 (tty_printer::set_char): Use vec_used+2 as serial number.
14069 Don't allow size of vector to exceed USHRT_MAX-2.
14070 Split off part into...
14071 (tty_printer::add_char): New function.
14072 (tty_printer::draw): New function.
14073 (compare_glyph): Handle equal serial numbers.
14074 (tty_printer::end_page): Handle overstruck characters from \D.
14075 (main, usage): Implement -d option.
14077 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
14079 * tbl/main.c (process_format):
14080 * eqn/text.c (split_text):
14081 * troff/input.c (token::next): Use inner block for declarations
14082 with initializers in switch statement.
14084 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
14086 * pic/common.c (common_output::dash_line): Cope with zero-length
14089 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
14091 * Version 1.04 released.
14093 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
14095 * macros/tmac.an (TH): Define a macro an-init to define variables
14096 based on command line arguments.
14097 (an-header): Call it.
14099 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
14101 * Makefile (install.mm): Rename to install.dwbmm.
14103 * Makefile: Integrate mm.
14104 * mm: New directory.
14106 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
14108 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14111 * pic/troff.c (troff_output::simple_spline,
14112 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14113 shadowing parameter.
14115 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14117 * lib/ptable.h: Add explicit casts when converting from unsigned
14120 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14121 * dvi/devdvi/Makefile: Install SA, SB.
14123 * refer/indxbib.c: Add declaration of mktemp.
14125 * refer/lookbib.c: Add declaration of isatty.
14127 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
14129 * pic/lex.c (interpolate_macro_with_args): While collecting
14130 arguments, keep track of whether we're in a string.
14132 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
14134 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14135 down with \v, so as to avoid problems with top of page trap
14136 setting no space mode.
14138 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
14140 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14142 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
14144 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14145 Improve error message.
14147 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
14149 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14152 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
14154 * groff.c (possible_command::execp): Always use _exit() after a
14157 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14158 NO_SYS_WAIT_H configuration options.
14159 * groff.c: Use these options. Use POSIX-style macros to extract
14160 fields from the status returned by wait().
14162 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
14164 * tbl/table.c (table::compute_separation_factor): Allow the
14165 separation factor to drop to 0.
14167 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
14169 * refer/search.c: Include <errno.h>.
14171 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
14173 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14175 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14178 * pic/lex.c (input_stack::bol): Move definition out of class body.
14180 * pic/main.c: On MSDOS munge argv[0].
14182 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14184 * lib/ptable.c (hash_string): Use unsigned long rather than
14186 (next_ptable_size): Use unsigned rather than int. Give an error
14187 message if we've hit the largest table size.
14188 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
14191 * pic/object.h (object_spec): Make flags unsigned long. Declare
14192 flags as const unisgned long rather than as enums.
14194 * pic/output.c: Deleted.
14196 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14198 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14199 Add additional argument.
14200 (line_entry::note_double_vrule_on_{left,right}): Set value of
14201 douvle_vrule_on_{right,left} flag according to argument.
14202 (simple_line_entry::simple_print,
14203 simple_line_entry::double_line_print): If adjacent to double vrule
14204 on a corner extend rather than shorten the rule by half the double
14207 * troff/number.c (parse_term): In checking for overflow, handle the
14208 case where the current horizontal position is negative.
14210 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
14212 * pic/object.c (draw_arrow): Check for object having zero length.
14214 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
14216 * eqn/main.c (do_file): Split off inline equation handling into...
14217 (inline_equation): New function. Search for starting delimiter
14219 (delim_search): New function. Don't recognize a delimiter that
14220 occurs in the name of an escape sequence, number register, string
14223 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
14225 * eqn/delim.c (delim_box::compute_metrics): Don't call
14226 define_extensible_string if left is 0.
14227 (delim_box::output): Don't print the left delimiter if left is 0.
14228 (delim_box::debug_print): Check for left == 0 before calling printf.
14230 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
14232 * troff/Makefile (majorminor.c): Include only digits in
14235 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
14237 * refer/dirnamemax.c: new file.
14238 * refer/genlimits.c: Deleted.
14239 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14240 Don't check path length.
14241 * refer/Makefile: Add dir_name_max.o; delete genlimits.
14242 * Makefile: Add PATHCONF_MISSING option.
14244 * refer/indxbib.c (get_cwd): New function.
14245 (main): Use get_cwd().
14246 * lib/getcwd.c: New file.
14247 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14248 GETCWD in SUBFLAGS.
14249 * lib/Makefile: Compile getcwd.o.
14251 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14254 * refer/indxbib.c (main): Check success of mktemp.
14256 * lib/tmpfile.c: New file.
14257 * lib/Makefile: Add tmpfile.c.
14258 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14259 * ps/ps.h: Delete declaration of mktemp().
14260 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14261 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14262 * driver/driver.h: No need now to include errno.h.
14264 * everywhere: Set errno to 0 before calling fopen().
14266 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14267 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14268 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14270 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
14272 * troff/env.h (translate_space_to_dummy): Declare it.
14273 * troff/env.c (environment::space_newline, environment::space):
14274 If translate_space_to_dummy is set then make the width of spaces 0.
14275 * troff/input.c (translate): If the second character of a
14276 translation is a space, translate to unbreakable space. If the
14277 first character is a space, set or clear translate_space_to_dummy
14278 according to whether the second character is \&. Weird!
14280 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
14282 * groff.c (run_commands): Don't use non-zero exit code because a
14283 command gets SIGPIPE.
14285 * groff.c, groff.sh: Use -mXps with -TXps.
14287 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14288 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14289 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14290 (ps_printer::special): New specials invis and endinvis.
14291 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14292 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
14293 (ps_printer::end_page): Check that invis_count == 0.
14294 (ps_printer::invis_count): New member.
14295 (ps_printer::ps_printer): Initialize invis_count to 0.
14297 * troff/env.c (environment::hyphenate_line): Hyphenation
14298 indicator at beginning of word inhibits splitting after -, \(em
14301 * pic/pic.y (element): Allow another element to follow } without
14302 any intervening separator.
14304 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
14306 * pic/lex.c (get_delimited): Allow tabs before delimiter.
14308 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
14310 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
14311 declaration of wait() in header files.
14312 * Makefile: Get rid of -DHAVE_UNION_WAIT.
14314 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14316 * lib/lib.h: Declare return type of strerror as char *.
14318 * man/Makefile: Add g flag to sed substitutions.
14319 * Makefile (shgroff, bindist): Likewise.
14321 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
14323 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14324 * ps/devps/prologue (PBEGIN): Define showpage after pushing
14327 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
14329 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14332 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
14334 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14337 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
14339 * troff/input.c (define_number_reg): If currently undefined,
14340 don't define it if the argument is an invalid expression.
14342 * Makefile: Ignore return value of `if' commands without `else'
14345 * Makefile: Split up CPPDEFINES into a series of separate
14346 configuration options.
14348 * troff/input.c (init_registers): Use time_t instead of long
14349 unless LONG_FOR_TIME_T is defined. Use returned result rather
14350 than passing pointer.
14351 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14353 * lib/Makefile (fontpath.h): Use gendef.
14355 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
14357 * troff/input.c (input_iterator::shift): Delete argument name.
14358 * troff/node.c (suppress_output_file::really_begin_page,
14359 suppress_output_file::really_transparent_char, node::ascii_print,
14360 node::tprint): Delete names of unused arguments.
14362 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
14364 * refer/label.y (string): Pass $4 to command_error.
14366 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
14368 * Version 1.03 released.
14370 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
14372 * Makefile: Pass definition of SHELL in SUBFLAGS.
14374 * gendef: New file.
14375 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14376 ps/Makefile: Use gendef to construct header files that are
14377 constructed from the Makefile.
14379 * macros/Makefile: make all should build stripped version of tmac.e.
14381 * refer/Makefile (clean): Remove y.output.
14383 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
14385 * ps/pfbtops.c (main): Add -v option which prints out a version
14387 * ps/Makefile (pfbtops): Link with libgroff.a.
14389 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
14391 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14392 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14394 * refer/lkbib.c (main): Always terminate reference with blank
14396 * refer/lookbib.c (main): Likewise.
14398 * refer/linear.c (file_buffer::load): Check that the file is not a
14401 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14402 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14403 Delete second inclusion of <sys/param.h>.
14405 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
14407 * troff/token.h (token::special): Deleted.
14409 * tbl/main.c (process_format): Rework so that opt->tab_char is
14410 recognized only when appropriate.
14412 * ps/Makefile (clean): Remove pfbtops.
14414 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
14416 * lib/font.c (text_file::next): Don't return if we have got a
14419 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
14421 * refer/refer.c (store_reference): Get hash code from old_table[i]
14422 when rehashing the table.
14424 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
14426 * eqn/box.c (box::top_level): Save size and prev size using \R and
14427 restore it afterwards. Set the size to the size at the beginning
14429 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14430 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14432 * refer/Makefile (limits.h): Use ./genlimits.
14434 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
14436 * refer/index.c: Delete declarations of stat() and fstat().
14438 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
14440 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14442 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
14444 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14446 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
14448 * troff/input.c (token::get_char): Handle \e.
14450 * refer/linear.c: Delete declarations of fstat() and stat().
14452 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
14454 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14455 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14457 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
14459 * troff/input.c (do_define_macro): Improve error handling for end
14460 of file while defining macro.
14462 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
14464 * eqn/box.h: Fix declaration of set_gsize.
14465 * eqn/box.c (set_gsize): Make argument const char *.
14466 (gsize): Declare as char *.
14467 * eqn/main.c (main): Don't convert gsize to int.
14468 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14470 * Version 1.02 released.
14472 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
14474 * macros/tmac.andoc: New file.
14475 * macros/Makefile: Install tmac.andoc.
14477 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14478 operator new and delete on OP_DELETE_BROKEN not being defined.
14479 * Makefile: Mention OP_DELETE_BROKEN.
14481 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
14483 * Makefile (bindist): Pass SUBFLAGS.
14485 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
14487 * Makefile, groff.c: Pass definitions to groff.c via device.h.
14489 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14492 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14494 * ps/ps.h, ps/psrm.c: Make comment_table and
14495 header_comment_table local to resource_manager::process_file.
14497 * groff.sh: With -TXps pass -printCommand option to gxditview.
14499 * groff.c (possible_command::print): Implement using
14500 append_arg_to_string.
14502 * xditview: Merge in new implementation with own ChangeLog.
14504 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
14506 * groff.c (main): Implement PRINT_OPTION.
14507 (append_arg_to_string): New command.
14508 (device_table): Set PRINT_OPTION flag for Xps.
14510 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
14512 * troff/groff.h: Rename to troff.h.
14514 * pic/lex.c (lookup_keyword, docmp): New functions.
14515 (get_token): Use new lookup_keyword.
14516 Don't include key.h.
14517 * pic/key.[ch], pic/pic.gperf: Deleted.
14518 * pic/Makefile: Remove gperf stuff.
14520 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14522 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14524 * troff/Makefile, troff/node.c: Move definition of
14525 STORE_WIDTH into node.c.
14527 * etc/grog.pl, etc/grog.sh: Support -mdoc.
14529 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
14531 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14532 dvi/devdvi/texb.map: Add lq and rq.
14533 dvi/devdvi: Regenerate fonts.
14534 * ps/devps/textmap: Add lq and rq.
14535 * ps/devps: Regenerate fonts.
14536 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14537 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14539 * pic/object.c (position_rectangle): When checking radius
14540 cope with possiblity that width or height is negative.
14541 (box_object::box_object): Have separate xrad and yrad with
14542 signs matching signs of dim components.
14543 (box_object::{north,south}_{east,west}): Use xrad and yrad.
14544 (box_object::print): With rounded boxes use absolute values
14545 for dim and rad arguments.
14547 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14550 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14552 * various files: Add explicit destructors to keep Saber CC +d
14555 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
14557 * eqn/box.c (box::top_level): Restore fonts correctly after
14558 font changes in line containing inline equation. Also
14559 restore previous font as well as current font.
14560 * eqn/pbox.h: Define necessary string and register names.
14562 * troff/input.c (token::next): Case 'R' calls do_register.
14563 (do_register): New function.
14565 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
14567 * groff.c, groff.sh: Support Xps device. Allow each device
14568 to have a pseudo_name and a real_name.
14570 * groff.c (run_commands): Don't print `Broken pipe' messages.
14572 * ps/pfbtops.c: New file.
14573 * ps/Makefile: Add pfbtops.
14575 * troff/number.c (parse_term): Improved error message.
14577 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
14579 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14581 * Makefile: Integrate refer.
14582 * refer: New directory.
14583 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14584 man/lkbib.man: New files.
14585 * man/Makefile: Support refer man pages.
14587 * lib/lib.h: Declare is_prime.
14588 * lib/prime.c: New file.
14590 * troff/input.c (macro_source): New function.
14591 (init_input_requests): Bind "mso" to macro_source.
14593 * troff/env.c (environment::possibly_break_line): Maintain
14594 pointer to pointer to node to be split in ndp so as to avoid
14595 using address of freed node.
14597 * troff/env.c (environment::hyphenate_line): Maintain pointer to
14598 pointer to first node to be hyphenated in startp so as to
14599 avoid using address of freed node.
14601 * troff/env.c (class trie, class hyphen_trie): Make the
14602 elements of the trie be of type char not unsigned char.
14603 Declare arguments to be const char* instead of unsigned char *.
14605 * troff/env.c (hyphenate): Initialize hbuf[0].
14607 * troff/input.c (set_string): Declare p to be char * and cast
14608 *p to unsigned char when necessary.
14610 * troff/input.c (do_define_macro): Declare s to be const
14611 char*. Cast element to unisgned char when necessary, Declare
14612 d to be an int. Handle EOF better.
14614 * troff/Makefile, troff/input.c: Different scheme for passing
14615 definitions of MACROPATH, HYPHENFILE and DEVICE.
14617 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
14619 * tty/devascii/R.proto: Delete entry for em.
14620 * tty/devlatin1/R.proto: Likewise.
14622 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
14624 * troff/input.c (translate): Stop when we get a space. Treat eof
14627 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14629 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
14631 * tbl/main.c (process_format): A font name following a `f'
14632 modifier that starts with a digit can be only one character long.
14633 Also deal with EOF on the second character of the font name.
14635 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
14637 * troff/input.c (token::next): Turn \~ into an
14638 unbreakable_space_node.
14639 * troff/node.c (unbreakable_space_node): New class.
14640 * troff/node.h: Declare it.
14642 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
14644 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
14645 it's >= 0, before outputting it as a single byte.
14647 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
14649 * lib/font.c: Make font_char_metric::code an int.
14650 (font::get_code): Change return type to int.
14651 (font::load): Allow code to be arbitrary integer.
14652 * lib/font.h (font::get_code): Change return type to int.
14653 (font::number_to_index): Change argument type to int.
14654 * troff/input.c (token::next): In case 'N', allow any value.
14655 Store value in token::val.
14656 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14657 (token::get_char, token::add_to_node_list, token::process): Get
14659 (charinfo::set_number): Change argument to int.
14660 (charinfo::get_number): Require that NUMBERED flag be set.
14661 (get_charinfo_by_number): Store numbered characters not between 0
14662 and 255 in a dictionary.
14663 * troff/charinfo.h (get_charinfo_by_number): Change argument type
14665 (charinfo::number): Change type to int.
14666 (charinfo::set_number): Change type of set_number to int.
14667 * troff/node.c (troff_output_file::put_char_width,
14668 troff_output_file::put_char): Test whether character is numbered
14669 using charinfo::numbered().
14670 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14672 * lib/nametoindex.c: New implementation to cope with arbitrary
14675 * troff/input.c (token::operator==): Test val for
14676 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14679 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14680 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
14682 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
14684 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
14687 * all Makefiles: rm targets of cp and >.
14689 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14692 * eqn/lex.c (def_table): Add dollar.
14694 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
14696 * troff/input.c (do_width): Push back newline before closing delim
14699 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
14701 * groff.c (possible_command::prepend_arg): New function.
14702 (main): Prepend device -m option.
14703 * groff.sh: Put device -m options before command-line options.
14705 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
14707 * macros/tmac.an (IP): Quote argument to TP.
14709 * ps/ps.c (main): New option -b, which sets...
14710 (broken_flags): New variable.
14711 (ps_printer::~ps_printer): Incorporate the setup section in the
14712 prolog if (broken_flags & NO_SETUP_SECTION).
14713 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14714 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14715 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14716 ps_printer::print_needed_font_comment,
14717 ps_printer::print_supplied_font_comment,
14718 ps_printer::print_include_font_comments,
14719 ps_printer::lookup_doc_font, ps_printer::download_fonts,
14720 ps_printer::read_download_file, read_document_fonts, add_font,
14721 skip_line, parse_fonts_arg, document_font::document_font,
14722 document_font::~document_font, document_font::download,
14723 ps_output::include_file): Deleted.
14724 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14725 rather than %!PS-Adobe-2.0. Make calls to
14726 resource_manager::need_font for each font that we used. Replace
14727 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14728 print_supplied_font_comment, print_needed_font_comment by call to
14729 resource_manager::print_header_comments. Output %%Orientation
14730 comment. Output %%Requirements: numcopies comment if ncopies > 1.
14731 Don't output the prolog directly. Instead call
14732 resource_manager::output_prolog. Only define #copies when ncopies
14733 > 1. Delete calls to print_include_font_comments and
14734 download_fonts. Add call to resource_manager::document_setup.
14735 (ps_printer::do_file): Call resource_manager::import_file instead
14736 of including it ourselves.
14737 (ps_printer::do_import): Likewise. Also don't call
14738 merge_import_fonts. Push userdict on the dictionary stack before
14739 and pop it afterwards.
14740 Move declaration of ps_output into ps.h.
14741 * ps/psrm.c: New file implementing resource_manager class.
14742 * ps/ps.h: New file declaring ps_output and resource_manager
14744 * ps/devps/zapfdr.ps:
14745 * ps/devps/symbolsl.ps:
14746 * ps/devps/prologue: Use 3.0 conventions.
14747 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14748 Add default definition of BROKEN_SPOOLER_FLAGS.
14749 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
14750 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14752 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
14754 * etc/grog.pl: New file.
14755 * Makefile (GROG): New variable.
14756 Add GROG to SUBFLAGS.
14757 * etc/Makefile (GROG): New variable.
14758 (install.nobin): Install $(GROG) rather than grog.sh.
14760 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
14762 * eqn/special.c (special_box::compute_metrics): Make the input and
14763 output strings the same. Get the new height and depth from the
14764 predefined height and depth registers. Also make subscript kern
14765 and skew available.
14766 (special_box::compute_subscript_kern, special_box::compute_skew):
14769 * eqn/box.c (pointer_box::compute_skew,
14770 simple_box::compute_metrics, box::top_level)
14771 * eqn/text.c (prime_box::compute_metrics,
14772 prime_box::comput_subscript_kern)
14773 * eqn/limit.c (limit_box::compute_metrics):
14774 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14775 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14776 negative numbers in `nr' requests with a leading 0.
14778 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
14780 * eqn/special.c: New file.
14781 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
14782 Add new rule for simple.
14783 * eqn/lex.c (token_table): Add SPECIAL.
14784 * eqn/box.h: Declare make_special_box.
14785 * eqn/Makefile: Add special.[co].
14787 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
14789 * ps/devps/prologue: Possibly set packing to true while defining.
14790 Create grops dictionary here. Initialize local variables before
14791 defining procedures.
14792 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14793 the dictionary stack. Set strokeadjust and overprint to false if
14794 the relevant operators are defined.
14795 (PEND): New procedure.
14796 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14797 prologue. Do everything else in the setup section.
14798 (ps_printer::do_import): Just call PBEGIN and PEND around the
14799 picture. Also push userdict before, and pop it afterwards.
14801 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
14803 * troff/node.c (bracket_node::tprint): Brackets were being printed
14806 * macros/tmac.an (SH, SS): Set fill mode.
14808 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
14810 * troff/div.c (top_level_diversion::begin_page): Set
14811 high_water_mark to 0.
14813 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
14815 * man/mdate.sh: New file.
14816 * man/mdate.c: Deleted.
14817 * man/Makefile: Use mdate.sh instead of mdate.
14820 * eqn/lex.c (do_gsize): Supply missing argument to error message.
14822 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
14824 * man/mdate.c: New file.
14825 * man/*.man: Replace modification date by @MDATE@.
14826 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14827 (mdate): New target.
14829 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14830 Remove illegal input characters.
14832 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
14834 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14836 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
14838 * troff/div.c (begin_page): Change behaviour when
14839 !first_page_begun and !break_flag.
14841 * troff/input.c (do_name_test): Return 0 if argument is empty.
14843 * troff/input.c (read_long_escape_name): Require closing ] to be
14844 at same input level as opening [.
14846 * troff/input.c (read_increment_and_escape_name): New function.
14847 (get_copy, process_input_stack): Use this for \n.
14849 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
14851 * troff/div.c (top_level_diversion::begin_page): Ignore the
14852 current value of page_number if !first_page_begun.
14854 * groff.c (main): Fix declaration of buf.
14856 * troff/input.c (do_name_test): New function.
14857 (token::next): Implement \A.
14858 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14859 (token::description, token::add_to_node_list, token::process):
14860 Handle TOKEN_ESCAPE.
14861 * troff/token.h: New token TOKEN_ESCAPE.
14863 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
14865 * pic/main.c (do_picture): Allow space before and after filename
14866 following `<'. Check that the filename is not empty.
14868 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
14870 * Version 1.01 released.
14872 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14874 * dvi/tmac.dvi: ftr HR to H.
14876 * macros/tmac.e: Round up computation of $r.
14878 * xditview/tmac.X: Don't give up completely in compatibility mode.
14879 Use \n(.s instead of \n[.s].
14881 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14882 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14883 Add u to factors inside \s[...]. Rename frac to dvi-frac.
14884 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14885 short names in the char definitions.
14887 * ps/tmac.ps: Don't give up completely in compatibility mode.
14888 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14889 quote in front of \n(.s. Add u to factors inside \s[...].
14891 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
14893 * tty/tmac.tty: Call the nroff request.
14895 * macros/tmac.e ((x, )x): Better definitions that work properly
14897 (@0, @1): Helper macros for (x.
14899 * macros/tmac.e ($s, hl): Use \l rather than \D.
14901 * tty/tmac.tty: Make it work better in compatibility mode.
14902 (pchar): Rename to tty-char.
14904 * macros/tmac.e (@E): New macro.
14905 (r, i, b, rb, bi): Use @E.
14907 * macros/tmac.e (@F): Don't use (;...) syntax.
14909 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
14910 it was modified for groff.
14912 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14914 * macros/tmac.e (<., .>): Removed.
14915 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14917 * macros/tmac.e: Remove check that groff is being used.
14919 * macros/tmac.e (@C): Change families only if using groff; turn
14920 compatibility mode off while changing familes. Save compatibility
14921 mode before changing families and restore it afterwards.
14923 * macros/tmac.e (@h): Remove test for offset + line length.
14925 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
14926 (lo, th, ac): Define to call @S instead of using als.
14928 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14929 the ratio of the vertical spacing to the point size in units
14930 expressed as a percentage. Use these instead of $10r and $10R,
14931 Delete $10r and $10R.
14933 * lib/font.c (font::load): In default computation of space_width,
14934 divide by sizescale. Use scale_round.
14936 * macros/tmac.an (TP): Don't call `nf'.
14937 (an-do-tag): Don't call `fi'.
14939 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
14941 * troff/input.c (process_input_stack): Handle the case where
14942 spaces at the beginning of an input line are followed by a
14945 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
14947 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14948 * groff.sh: Use pic -x with the dvi device.
14950 * dvi/devdvi/FontMakefile (H): Don't use -s.
14952 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14953 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14954 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14957 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
14959 * ps/psfig.diff: New file.
14960 * ps/tmac.psfig: New file.
14962 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
14964 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14965 (]-): Don't call ref*do-tl.
14967 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14969 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14970 (fn@do-FS): Rename to fn*do-FS.
14972 * troff/input.c (transparent_translate): New function.
14973 (process_input_stack): Apply transparent_translate before calling
14974 diversion::transparent_output(unsigned char).
14976 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
14978 * troff/input.c (do_define_macro): Define the macro before calling
14981 * xditview/Makefile: Add DEVICES variable. Change install target
14984 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
14986 * groff.c (run_commands): Handle the possibility that there are
14987 child processes other than those forked by us.
14989 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
14991 * lib/string.c (string::append): New function.
14992 * lib/stringclass.h: Declare it.
14994 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
14996 * eqn/main.c (main): New option -N which sets
14997 no_newline_in_delim_flag.
14998 (do_file): If no_newline_in_delim_flag is set don't allow newlines
15000 * groff.c (main): Pass -N on to eqn.
15001 (help, synopsis): Mention -N.
15002 * groff.sh: Implement -N.
15004 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
15006 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15007 (]-): Call ref*do-tl if ref*need-tl is non-zero.
15008 (XP): Allow as initializer.
15010 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
15012 * troff/env.c (environment::wrap_up_field): If field_spaces are
15013 non-zero and we have a current_tab, subtract padding from
15014 tab_distance. If this makes tab_distance <= 0, use the next tab
15015 stop instead. If there isn't any next tab or it's a left tab,
15016 wrap up the current tab.
15017 (environment::start_field): Initialize tab_precedes_field.
15018 (environment::wrap_up_tab): If there's a current field, update
15019 pre_field_width, field_distance and tab_precedes_field.
15020 * troff/env.h (environment::tab_precedes_field): New member.
15022 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
15024 * ps/ps.c (ps_printer::do_file): New function.
15025 (ps_printer::special): Bind to `file' special.
15026 (ps_printer::do_exec): Set ndefined_styles to 0.
15028 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
15030 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15031 Avoid stripping first character from the start of unrecognized
15032 escapes. Use lex_error instead of error to report errors.
15033 * eqn/lex.c (get_token): Rework handling of escapes.
15034 (lex_error): Move declaration into...
15037 * xditview/xditview.c (main): Make -page option work.
15039 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15041 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
15043 * macros/tmac.s (B2): Correct size of box.
15045 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
15047 * macros/tmac.s (B2): Postpone drawing the box until in the
15048 top-level diversion.
15050 * tty/tmac.tty: Add font translations for C, CR, CW.
15052 * groff.c (synopsis, help): Document -i.
15053 * groff.sh: Implement -i.
15055 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15056 Simplify the construction of SN.
15058 * troff/number.c (parse_term): Give `|' a higher precedence.
15059 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15062 * macros/tmac.s (B2): Use par@finish instead of par@reset.
15064 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
15066 * lib/string.c (string::move): New function.
15067 * lib/stringclass.h: Declare it.
15069 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
15071 * troff/env.c (distribute_space): Add optional argument
15073 (environment::wrap_up_field): Call distribute_space with
15074 `force_forward' argument of 1.
15076 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
15078 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15079 Inline it. Move reallocation into...
15080 (string::grow1): New function.
15081 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15082 dependencies to include library header files.
15083 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15085 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
15087 * macros/tmac.s (@NH): Use the same number registers than -ms does
15088 for the heading level counters. Use the same string that -ms does
15089 for the number for this heading.
15091 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
15093 * lib/new.c (operator new): Cast result of malloc to char *.
15095 * troff/input.c (spring_trap, lookup_request): Add assert that nm
15098 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
15100 * groff.c (main): Support -i.
15102 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
15104 * pic/pic.h: Include <osfcn.h>.
15106 * ps/ps.c: Add declaration of mktemp.
15108 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15109 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15110 argument as union wait *.
15111 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15112 argument to union wait *.
15114 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
15116 * tty/tmac.tty: Add definition of \(co.
15118 * pic/object.c (make_arc): Only increase radius when radius
15119 strictly less than d.
15120 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15123 * troff/env.c (environment::environment(symbol),
15124 environment::environment(const environment *)): Initialize
15127 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
15129 * tbl/main.c (main): Add exit(0).
15131 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15133 * pic/main.c (main):
15134 * eqn/main.c (main):
15135 * tbl/main.c (main):
15136 * etc/soelim.c (main):
15137 * driver/printer.c (printer::~printer):
15138 * troff/node.c (real_output_file::~real_output_file,
15139 real_output_file::flush): Check for errors on stdout.
15141 * most files: Add 1991 to copyright notice.
15143 * macros/tmac.s: Don't test \n(.x and \n(.y.
15145 * troff/input.c (token::next): Rename `escape_char' label to
15146 `handle_escape_char' and `normal_char' label to
15147 `handle_normal_char'.
15149 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
15151 * groff.c (main, synopsis, help): Support -a option.
15152 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
15153 to trflags while parsing options.
15155 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
15157 * troff/number.c (parse_term): With `m', `M' and `n' scale
15158 indicators, convert scale factor to hunits before scaling.
15160 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
15162 * lib/font.c (scale_round): Better test for overflow when n is
15165 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
15167 * tbl/main.c (process_format): Add second argument of type
15168 options*. Change callers. Allow opt->tab_char as well as '\t'
15169 between format items.
15171 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
15173 * macros/tmac.an (PD): With no arguments, make sure register PD is
15175 (TH): Call PD with no argument, instead of setting register PD
15178 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
15180 * Version 1.00 released.
15182 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
15184 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15186 * dvi/devdvi/DESC: Mount CW instead of CR.
15188 * dvi/tmac.dvi: Add definition of \(tm.
15190 * dvi/devdvi/texsy.map: Add lh, and rh.
15191 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15192 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15194 * dvi/devdvi/FontMakefile: Generate H from cmss10.
15195 * dvi/devdvi/Makefile: Install H.
15196 * dvi/devdvi/H: New file.
15198 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
15200 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15203 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
15205 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15207 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15209 * macros/tmac.s (@EN): Handle the case where the equation is empty
15210 but the label is not.
15212 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
15214 * troff/groff.h: New warning category WARN_SPACE.
15215 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15216 WARN_SPACE to warning_table.
15217 (interpolate_macro): Give a warning of type WARN_SPACE if the name
15218 is longer than two characters and is not defined, but the first
15219 two characters do make a defined name.
15221 * PROBLEMS: New file.
15223 * CHANGES: New file.
15224 * README-0.6, README-1.00: Deleted.
15226 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15227 * xditview/devX75/Makefile: Make devX75-12.
15228 * xditview/devX100/Makefile: Make devX100-12.
15230 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15231 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15233 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
15235 * README-0.7: Rename to README-1.00.
15237 * macros/tmac.pic: New file.
15238 * macros/Makefile (install.nobin): Install tmac.pic.
15240 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
15242 * troff/env.c (hyphen_word): Correct the test for whether the
15243 token is a hyphen. Reset npos to 0.
15245 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15247 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
15249 * macros/tmac.s (ds*common-end): Call par*reset.
15251 (par@reset-indent): Deleted.
15253 * macros/tmac.s (@IP): Divert the label.
15255 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
15257 * xditview/draw.c (setGC): Use a line width of .1m rather than
15258 .04m by default; round rather than truncate value.
15260 * tbl/table.c (class empty_entry): New class.
15261 (empty_entry::empty_entry, empty_entry::line_type): New functions.
15262 (table::add_entry): Represent empty entries by objects of type
15264 (table_entry::line_type): Return -1.
15265 (table::determine_row_type): Ignore entries with line_type 0.
15266 Treat type -1 as non-lines.
15268 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
15270 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15271 macros/tmac.s: Rename \(-d to \(Sd.
15273 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
15275 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15276 * xditview/libXdvi/DviChar.c: Likewise.
15277 * dvi/devdvi/texsy.map: Add `<<', `>>'.
15279 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
15281 * troff/div.c (top_level_diversion::begin_page): Call
15282 init_output() if the_output is 0.
15284 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
15286 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15288 (get_copy): Turn \E into ESCAPE_E.
15289 (token::process, asciify): Handle ESCAPE_E.
15291 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15293 (DS): Implement `.DS R'.
15295 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
15297 * macros/tmac.s (FS): New macro.
15299 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15301 * macros/tmac.s (cov*tl-init): Remove after first execution
15302 instead of aliasing to @nop. Call top of page macro explicitly
15303 instead of setting trap; call @init first. Set pg@top as top of
15305 (cov*auto-init): Deleted. Set cov*tl-init instead of
15306 cov*auto-init as top of page trap.
15307 (TL, LP): Do a break instead of calling cov*tl-init.
15308 (cov*print): With RP format but no TL, alias FS and FE to @FS and
15309 @FE; in this case also give a warning and always start another
15310 page. No need to set pg@top here.
15311 (cov*tl-init): Rename to cov*first-page-init.
15313 * macros/tmac.s (RP): Do `.pn 0'.
15314 (cov*tl-init): With RP format don't do `.pn 0'.
15316 * macros/tmac.s (pg@cs-top): Set no space mode.
15318 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15319 (cov*ab-init): Alias TL, AU and AI to these.
15321 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
15323 * macros/tmac.s (@EQ): Move the space before the equation into @EN
15324 (@EN): Do nothing unless \n[dl] is > 0.
15326 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
15328 * pic/object.c (ellipse_object::radius): New function.
15330 * VERSION: Change version to 0.7.
15332 * tbl/table.c (block_entry::do_divert): Declare return type as
15334 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15336 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
15338 * troff/column.c: New file.
15339 * troff/Makefile: Corresponding changes.
15341 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
15344 * troff/div.c (top_level_diversion::space): If the space causes
15345 the first-page transition and springs a trap, truncate the space
15348 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
15350 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15353 * pic/troff.c (troff_output::line_thickness,
15354 troff_output::set_fill): Do a horizontal motion to compensate for
15355 the width of the \D escape sequence.
15357 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
15359 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15362 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
15365 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15366 Supply empty definition.
15367 (text_entry::simple_print, simple_text_entry::simple_print):
15368 Delete declarations.
15369 (table::add_entry): Represent empty entries by objects of type
15372 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
15374 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15376 * tbl/table.c (left_text_entry::add_tab): New function.
15378 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
15379 initialize like LP.
15381 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
15383 * troff/env.c (environment::start_field): Give an error message if
15384 there is no next tab.
15386 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
15388 * troff/env.c (hyphenate): Skip initial elements with zero
15391 * macros/tmac.s (par@init): Keep VS in points rather than units.
15393 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
15395 * pic/main.c (main): Implement `-c' option.
15396 * pic/output.h: Declare make_tpic_output().
15397 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15399 (tpic_output): New class.
15400 (tpic_output::tpic_output, tpic_output::set_pen_size,
15401 tpic_output::command, make_tpic_output): New functions.
15403 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
15405 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
15406 if they're not already defined.
15407 * tbl/table.c (init_output): Don't test \n(.g.
15409 * troff/input.c (do_if_request): Delete `g' condition. Recognize
15410 `d', `r' and `c' conditions even in compatibility mode.
15412 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
15414 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15417 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
15419 * troff/env.h (environment::prev_line_interrupted): New member.
15420 (environment::get_prev_line_interrupted): New function.
15421 * troff/env.c (environment::newline): Set prev_line_interrupted.
15422 (environment::environment(const environment *),
15423 environment::environment(symbol)): Initialize
15424 prev_line_interrupted.
15425 * troff/input.c (process_input_stack): Don't give special
15426 treatment to space and newline at the beginning of the line if the
15427 previous line was interrupted.
15429 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
15431 * eqn/eqn.y: Disallow PRIME by itself.
15432 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15434 (def_table): Remove definition of '. Define prime to be `.
15436 * eqn/eqn.y: Split off part of rule `script' into a new rule
15439 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
15441 * macros/tmac.s ({, }): New string aliases.
15443 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
15445 * README-0.7: New file.
15447 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
15449 * macros/tmac.s: New file.
15450 * man/groff_ms.man: New file.
15451 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15452 * Makefile.bd: Similarily.
15453 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15454 definition of TMAC_S.
15455 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15456 * macros/TODO: New file.
15458 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
15460 * troff/env.c (right_justify): New function.
15461 (init_env_requests): Bind this to request "rj".
15462 (center_lines): Set right_justify_lines to 0. If we get a bad
15463 integer, center 1 line.
15464 (environment::environment(symbol), environment::environment(const
15465 environment *)): Initialize right_justify_lines.
15466 (environment::get_right_justify_lines): New function.
15467 (init_env_requests): Bind this to number_register ".rj".
15469 * troff/env.c (environment::choose_breakpoint): Implement
15470 hyphenation_margin and hyphenation_space.
15471 (environment::get_hyphenation_space,
15472 environment::get_hyphenation_margin): New functions.
15473 (init_env_requests): Bind these to .hys and .hym.
15474 (hyphenation_space_request, hyphenation_margin_request): New
15476 (init_env_requests): Bind these to hys and hym.
15477 (environment::environment(symbol), environment::environment(const
15478 environment *)): Initialize hyphenation_margin and
15480 * troff/env.h: Corresponding changes to class environment.
15482 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
15484 * troff/div.c (blank_line): Always do a break.
15486 * eqn/box.c (do_text): Turn off escapes while appending text to
15489 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
15491 * troff/input.c (while_break_request, while_continue_request): New
15493 (init_input_requests): Bind these to "break" and "continue".
15494 (while_depth, while_break_flag): New variables.
15495 (while_request): Update while_depth. Break out of loop if
15496 while_break_flag is set.
15498 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
15500 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15503 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
15505 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
15507 * stringify: New file.
15508 * Makefile (groff.o): Use stringify.
15510 * xditview/tmac.X: Remove definition of \(rn.
15511 * xditview/libXdvi/DviChar.c: Remove radicalex from
15514 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
15516 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15517 (alphabetic_block_entry::alphabetic_block_entry,
15518 alphabetic_block_entry::divert, alphabetic_block_entry::print):
15520 (block_entry::divert): Split off body into ...
15521 (block_entry::do_divert): If the block is alphabetic, subtract 2n
15522 from the line length; also update the span width to dl+2n, and the
15523 alphabetic span width to dl.
15525 * driver/input.c (do_file): While reading argument to D command,
15526 when expanding buffer, multiply szp by sizeof(int) rather than 2
15527 in the argument to memcpy.
15529 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15530 width of alphabetic columns.
15532 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
15534 * troff/node.c (lookup_family): Supply second argument to lookup.
15536 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15537 search, return immediately if v is 0.
15539 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15540 (troff_output::start_picture): Set this reg.
15541 (troff_output::end_picture): Remove this reg
15542 * eqn/box.c (box::extra_space): Don't produce `\x's if
15543 EQN_NO_EXTRA_SPACE_REG is defined.
15545 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15546 * eqn/text.c (split_text): Map ' to \(fm when it's the first
15549 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
15551 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15554 * troff/div.c (top_level_diversion::top_level_diversion):
15555 Initialize page_number to 0.
15557 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
15559 * groff/troff (environment::environment(const environment *)):
15560 Initialize name to e->name, rather than "anonymous".
15562 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
15564 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15565 requested_page. Split middle part into ...
15566 (FindPage): New function.
15567 (SetValues): If we don't yet know the last page, and the requested
15568 page is greater than the current page, call FindPage.
15569 Update the font_map_string before doing this.
15571 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15572 Translate \(lh and \(rh into left and right double arrows.
15574 * troff/node.c (class hyphen_inhibitor_node): New class.
15575 (hyphen_inhibitor_node::hyphen_inhibitor_node,
15576 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15577 hyphen_inhibitor_node::type,
15578 hyphen_inhibitor_node::get_hyphenation_type): New functions.
15579 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15580 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15583 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
15585 * troff/node.h (dummy_node::get_hyphenation_type,
15586 transparent_dummy_node::get_hyphenation_type): Declare them.
15587 * troff/node.c: (dummy_node::get_hyphenation_type,
15588 transparent_dummy_node::get_hyphenation_type): New functions.
15590 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
15592 * xditview/libXdvi/draw.c: If M_PI not defined after including
15593 math.h, then define it.
15595 * xditview/Makefile: Add definition of AR. Pass it to the submake
15597 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15599 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
15601 * troff/dictionary.h (object_dictionary::alias): Declare return
15603 * troff/dictionary.c (object_dictionary::alias): Return non-zero
15604 if the old name was defined.
15605 * troff/input.c (alias_macro): Give a warning if the old name was
15607 * troff/reg.c (alias_reg): Likewise.
15609 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
15611 * troff/input.c (token::next): Delete implementation of \R.
15613 * macros/Makefile: Strip comments from tmac.e while installing it.
15615 * troff/input.c: New variable `nroff_mode'.
15616 (troff_request, nroff_request): New functions.
15617 (init_input_requests): Bind `troff' and `nroff' to troff_request
15619 (do_if_request): Compute results of t and n conditions from
15622 * text/text.c (split_text): Fix typo in >=.
15624 * eqn/lex.c: Add definition of `==' to def_table.
15626 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
15628 * pic/tex.c (tex_output::start_picture): Change the definitions of
15629 \graph and \graphtemp so that they work properly with Plain TeX.
15631 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15632 argument to `ar' is not less than the first.
15634 * pic/pic.y: Allow a comma between elements of the variable list
15635 in the argument to `reset'.
15637 * pic/object.c (arc_object::arc_object): Fix computation of
15640 * eqn/main.c (main): Add exit(0).
15642 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
15644 * troff/div.c (begin_page): Test no_space_mode after doing the
15645 break, but still push the page ejector cookie before doing the
15646 break. Also set the next page number after doing the break.
15648 * xditview/xditview.c (NewFile): Don't set the title and icon name
15649 if this is the first file and its name is `-'.
15650 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
15651 the X75 and X100 devices.
15652 (main): If a device has the XT_OPTION flag set and there's exactly
15653 one file argument, pass the driver -xrm and -title options to set
15654 the icon name and window title to the name of the file.
15656 * troff/env.c (environment_switch): If there was an argument but
15657 it wasn't a valid number or name, then pop an environment but
15658 don't give an error message on underflow.
15660 * troff/number.c (start_number): Correct spelling in error message.
15662 * troff/input.c (token::delimiter): Don't print an error message
15665 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15666 ParseDrawFunction if dw->display_enable is true.
15668 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
15670 * pic/pic.y: Parse text positioning like normal attributes, so as
15671 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
15672 positioning attribute.
15674 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
15676 * tbl/main.c (process_data): When in state START while reading a
15677 text block, don't change to state MIDDLE if c is a newline.
15679 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
15681 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15682 so as to avoid shadowing parameter.
15684 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
15686 * tbl/table.c (trim_space): Deleted.
15687 (table::add_entry): Don't call trim_space.
15689 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
15691 * VERSION: Change version to 0.6.
15693 * troff/number.c (parse_expr): Make == work.
15695 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
15697 * man/grog.man: New file.
15698 * man/Makefile: Add grog.n to MAN1PAGES.
15699 * etc/grog.sh: New file.
15700 * etc/Makefile: Install grog.sh as grog.
15702 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
15704 * troff/input.c (token::next): Implement \E.
15706 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
15708 * xditview/tmac.X: Change font translations to match tmac.ps.
15710 * troff/input.c (non_empty_name_warning): Don't give a warning if
15711 `\{' terminates the name.
15713 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
15715 * ps/devps/symbol.diff: New file.
15716 * ps/devps/FontMakefile: Mention symbol.diff.
15718 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
15720 * troff/node.c (font_position): Use get_long_name to read the
15723 * troff/env.c (environment_switch): If we get a number that's < 0
15724 or >= NENVIRONMENTS, treat it like a name.
15725 Change NENVIRONMENTS to 10.
15727 * troff/groff.h: Remove definition of FONTS_MAX.
15728 * troff/node.h (class font_family): Make map a pointer instead of
15729 an array. Add a map_size member. Make it a class. Make nm const
15730 and public. Make invalidate_fontno a friend.
15731 * troff/node.c: Define font_table_size. Make font_info a pointer
15732 rather than an array.
15733 (class troff_output_file): Allocate font_position dynamically. Add
15734 nfont_positions member.
15735 (troff_output_file::set_font): Grow font_position if necessary.
15736 (troff_output_file::~troff_output_file): Delete font_position.
15737 (troff_output_file::troff_output_file): Allocate font_position.
15738 (grow_font_table): New function.
15739 (troff_output_file::really_begin_page,
15740 troff_output_file:really_copy_page): Use nfont_positions rather
15742 (mount_font_no_translate, mount_style): Call grow_font_table if
15744 (font_family::font_family): Allocate map.
15745 (font_family::make_definite): Grow map if necessary. Use
15746 font_table_size instead of FONTS_MAX.
15747 (font_family::~font_family): New function.
15748 (invalidate_fontno): Use font_family::map_size.
15749 (get_fontno, env_space_width, env_half_narrow_space_width,
15750 env_narrow_space_width, symbol_fotno, is_good_fontno,
15751 get_bold_fontno, make_glyph_node): Use font_table_size rather than
15753 (next_available_font_position): Never return 0.
15755 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
15757 * ps/tmac.ps: Add font translations for compatibility with dpost.
15759 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
15761 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15762 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15763 Move definitions baseline_sep, shift_down, column_sep,
15764 matrix_side_sep into...
15765 * eqn/box.c: Add them to param_table.
15766 * eqn/pbox.h: Add declarations to pbox.h.
15768 * troff/input.c (set_string): Cast value to unsigned char *.
15770 * troff/token.h (process_input_stack): Declare it static before
15771 declaring it a friend.
15773 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
15775 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15777 * dvi/devdvi/EX: Regenerate.
15779 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15782 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
15784 * eqn/lex.c: In defaults_table, make definition of `dot' call
15785 `dot_def'. Don't explicitly make it roman. Similarily for other
15788 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15790 (for_input::get, for_input::peek): Use this.
15791 (do_for): Add by_is_multiplicative argument.
15792 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15793 Change semantic value of optional_by to be a double plus a flag
15794 saying whethet the by clause is multiplicative.
15796 * eqn/lex.c (get_delimited_text): Remember location of start of
15797 definition. Improve error handling when EOF is encountered.
15799 * lib/font.h: Rename handle_x_command to
15800 handle_unknown_font_command.
15801 * lib/font.c (font::load): Call handle_unknown_font_command for
15802 any unknown command in the font description file. Don't call
15803 handle_x_command. Include the name of the command in the argv.
15804 Improve message for unknown command after kernpairs or charset
15806 * ps/ps.c (ps_font::handle_x_command): Rename to
15807 handle_unknown_font_command. Remove message about `x download'
15808 command. Give error message for wrong number of arguments.
15809 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15810 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15811 handle_unknown_font_command. Give an error message for wrong
15812 number of arguments. Rename design_size to designsize.
15813 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15814 checksum', `designsize' instead of `design_size'.
15816 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
15818 * eqn/*.[chy]: Change underaccent to uaccent.
15820 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
15821 give it the same precedence as ACCENT.
15822 * eqn/other.c (make_underaccent_box): New function.
15823 * eqn/box.h: Declare it.
15824 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15827 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
15829 * pic/pic.y (reset_all): New function. Called in rule for RESET.
15830 (parse_init): Call reset_all.
15831 (define_variable): When defining scale reset only those
15832 pre-defined variables that are scaled.
15833 (defaults_table): Add `scale' as non-scaled value.
15835 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15836 together with the text; allow any number of positioning words;
15837 allow center as a positioning word.
15839 * pic/object.c (output::compute_scale): Get picture maximum height
15840 and width from variables called maxpswid and maxpsht.
15841 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15843 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
15845 * pic/object.c (object_spec::make_text): Multiply textht by number
15848 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15850 (do_sprintf): New function.
15851 (pic.gperf): Add sprintf token.
15852 (text, sprintf): New rules.
15854 * pic/pic.y: `rand()' with no arguments returns a random number
15855 in the range [0,1).
15857 * pic/pic.y: Allow a bare expression to be an attribute: change
15858 precedences to support this. Change optional_ordinal rule to
15859 optional_ordinal_last to avoid reduce/reduce conflict.
15860 * pic/object.c (object_spec::object_spec): Initialize direction.
15862 * pic/pic.y: Implement ^ operator meaning exponentiation.
15864 * troff/node.h: Add default argument to mount_font.
15865 * troff/node.c (font_position): Read an optional third argument
15866 giving the external_name.
15867 (mount_font): Add optional argument giving the external_name.
15868 (mount_font_not_translate): Have additional argument giving
15869 external name. Use this name to load the font. Pass both names
15870 to font_info::font_info.
15871 (font_info::font_info): Have additional argument giving
15873 (class tfont): New member external_name.
15874 (font_info::get_tfont): Use external name to construct tfont_spec.
15876 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
15878 * eqn/lex.c (init_table): Add argument giving device. Define
15879 name of device to be "1".
15880 (do_ifdef): Counts as true if the argument has been defined with
15882 * eqn/main.c (main): Call init_table with device argument. Make
15883 device local to main.
15884 * eqn/eqn.h: Change declaration of init_table. Remove declaration
15887 * pic/lex.c (get_delimited): Allow text to be delimited by
15888 matching {}s. Don't recognize ending delimiter within a string.
15890 * troff/input.c (get_delim_name): New function.
15891 (token::next): Implement \C.
15893 * lib/font.c (font::load): Grok ---. Add an alias for each
15894 character based on its code.
15895 (font::get_code_width): Deleted.
15896 * lib/font.h (class font): Declare font::number_to_index().
15897 Remove declaration of font::get_code_width.
15898 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15899 to indices of named characters.
15900 (font::number_to_index): New function.
15901 * troff/input.c (font::number_to_index): New function.
15902 (get_charinfo_by_number, charinfo::get_number,
15903 charinfo::set_number): New functions.
15904 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15905 (token::process, token::description, token::get_char,
15906 token::add_to_node_list, token::operator==): Handle
15907 TOKEN_NUMBERED_CHAR.
15908 * troff/charinfo.h: Declare get_charinfo_by_number,
15909 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
15911 (charinfo::numbered): New function.
15912 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15913 * troff/env.h (class environment): Remove declaration of ...
15914 * troff/env.c (environment::make_numbered_char_node): Deleted.
15915 * troff/node.c (make_numbered_node): Deleted.
15916 (class numbered_glyph_node): Remove.
15917 (troff_output_file::put_char_width, troff_output_file::put_char):
15918 Handle numbered chars.
15919 (troff_output_file::numbered_char): Removed.
15920 (tfont::get_code_width): Removed.
15921 (make_glyph_node): Don't search special fonts for numbered
15923 * troff/node.h: Remove declaration of make_numbered_node.
15924 * driver/input.c (do_file): Handle N command.
15925 * driver/printer.h: Add declaration of ...
15926 * driver/printer.c (printer::set_numbered_char): New function.
15927 * dvi/tfmtodit.c (main): Generate unnamed entries.
15928 * ps/devps/afmtodit: Likewise.
15929 * xditview/xtotroff.c (MapFont): Likewise.
15930 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15932 * tbl/main.c (process_format): If multiple widths are specified
15933 for a column but all the widths are the same, don't give an error
15936 * tbl/table.c (table::do_row): If the current row is all lines and
15937 the stuff doesn't contains a line, mark the top of the row after
15938 printing stuff before the row. If the current row is not all
15939 lines and the stuff doesn't contain a line, don't unnecessarily
15940 mark the top of the row before printing the stuff.
15942 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
15944 * troff/groff.h: Remove MAX_PATH.
15945 * troff/input.c (open_file): Dynamically allocate space for the
15947 (open_mac_file, process_macro_file): Corresponding changes.
15949 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
15951 * troff/node.h (class output_file): Make copy_file pure. Add
15952 vspace method ifdef COLUMN. Add is_printing method.
15953 * troff/node.c: Add class printing_reg. Add class
15954 real_output_file. Derive other output_file classes from
15955 real_output_file; in these classes rename begin_page to
15956 really_begin_page, print_line to really_print_line, copy_file to
15957 really_copy_file, transparent_char to really_transparent_char.
15958 Move output_file::flush to real_output_file. Add printing member
15959 to class output_file.
15960 * troff/div.h: Remove printing member from top_level_diversion.
15961 Add vspace member function to class diversion ifdef COLUMN. Add
15962 some declarations ifdef COLUMN.
15963 * troff/div.c (top_level_diversion::copy_file,
15964 top_level_diversion::transparent_output,
15965 top_level_diversion::output): Don't test printing member before
15967 * troff/input.c: Handle initial variable_space_request ifdef
15969 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15970 but comment it out.
15972 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
15974 * troff/div.c (diversion::need): Make any space forced. If we
15975 sprung a trap, set truncated_space to minus the distance to the
15976 trap and set needed_space to the amount that was needed.
15977 (top_level_diversion::space): A forced space turns no_space_mode
15979 (class constant_vunits_reg): New class.
15980 (init_div_requests): Implement number registers .trunc and .ne
15981 using constant_vunits_reg.
15982 (class truncated_space_reg): Deleted.
15984 * troff/div.h: Don't have a no_space_mode member in diversion.
15985 Instead have it in top_level_diversion.
15986 * troff/div.c (diversion::diversion): Don't initialize
15988 (top_level_diversion::top_level_diversion): Initialize
15990 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15991 (macro_diversion::output): Don't clear no_space_mode.
15993 * troff/input.c (diverted_space_node::reread): Don't call
15994 environment::do_break. In fill mode, act like a blank line.
15995 (diverted_copy_file_node::reread): Don't call
15996 environment::do_break.
15998 * troff/div.c (blank_line): New function.
15999 * troff/div.h: Declare it.
16000 * troff/input.c (process_input_stack): Call it.
16002 * troff/div.c (truncated_space_reg::get_string): New function.
16003 (init_div_requests): Bind to .trunc.
16004 (space_request, top_level_diversion::space,
16005 top_level_diversion::output, macro_diversion::space,
16006 macro_diversion::output): Update truncated_space.
16007 (macro_diversion::output): Redo calculations when trap sprung.
16008 (macro_diversion::output, macro_diversion::space): No need for
16011 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16012 after truncating post line spacing.
16014 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
16016 * ps/devps/prologue (MF, SF): Make them work even if setfont is
16017 defined as a procedure rather than as an operator.
16019 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
16021 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16023 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
16025 * troff/div.c (top_level_diversion::output): Merge
16026 output_file::print_line and output_file::end_of_line member
16028 * troff/div.h (class output_file):
16029 * troff/node.c (troff_output_file::print_line,
16030 troff_output_file::end_of_line, output_file::end_of_line,
16031 ascii_output_file::print_line, suppress_output_file::print_line):
16032 Corresponding changes.
16034 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
16036 * troff/input.c (token::next): Don't give a warning for `\.'.
16038 * troff/env.c (environment::get_center_lines): New function.
16039 (init_env_requests): Bind number register .ce to it.
16040 * troff/env.h: Declare it.
16041 * tbl/table.c (table::init_output): Define reset macro to restore
16042 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
16044 (table::print): If center option not given, then imply center
16045 option if SAVED_CENTER_REG > 0.
16047 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
16049 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16050 Troff.ps from DOWNLOAD.
16052 * troff/Makefile: Change comment in DEFINES to avoid confusing
16055 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16056 code. Don't try to catch errors with stopped.
16057 (check_line_lengths): New function.
16058 * ps/devps/prologue (EXEC): Deleted.
16059 (EBEGIN, EEND): New procedures.
16061 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
16063 * troff/input.c: Include request.h before node.h.
16064 * troff/node.c: Likewise.
16065 * troff/env.c: Likewise.
16066 * troff/div.c: Likewise.
16067 * troff/node.h (class special_node): Store argument as a macro
16068 rather than a char *.
16069 * troff/node.c (special_node::special_node, special_node::copy):
16071 (special_node::~special_node): Deleted.
16072 (special_node::tprint): Deleted.
16073 (special_node::tprint_start, special_node::tprint_end,
16074 special_node::tprint_char): New functions.
16075 (troff_output_file::special): Deleted.
16076 (troff_output_file::start_special, troff_output_file::end_special,
16077 troff_output_file::special_char): New functions.
16078 * troff/input.c (special_node::tprint): New function.
16079 (do_special): Use macro not char *.
16080 (do_transparent_macro): Deleted.
16081 (token::next): Don't call do_transparent_macro.
16083 * troff/input.c (token::next): Add 'Y' case.
16084 (do_transparent_macro): New function.
16085 * troff/node.c (troff_output_file::special): Handle newlines with
16086 argument using new continuation convention.
16087 * driver/input.c (get_string): Cope with continuation convention.
16088 (do_file): Don't call skip_line after calling get_string(1).
16089 * ps/ps.c (ps_printer::special, ps_printer::do_import,
16090 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16092 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16095 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
16097 * troff/input.c (asciify): By default, illegal input characters
16098 should return empty string.
16100 * troff/input.c (copy_file): Handle first page transition like title.
16101 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16103 * troff/input.c (token::next): Improve error message for EOF after
16105 (input_char_description): New function.
16106 (get_char_for_escape_name): Use input_char_description.
16107 (token::next): Warn about unrecognized escape sequences.
16108 (warning_table): Add WARN_ESCAPE.
16109 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16112 * troff/token.h: Remove declaration of process_input_stack.
16114 * troff/input.c: Remove declaration of init_hyphen_requests.
16115 * troff/request.h: Correct spelling in declaration of same.
16117 * troff/input.c (token::next): Check whether escape_char is 0.
16119 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
16121 * groff.c (main, usage, help): Implement -P and -L options.
16122 * groff.sh: Likewise.
16124 * troff/input.c (token::next): Use some gotos to avoid code
16127 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16128 Avoid calling symbol::symbol if name empty.
16130 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
16132 * troff/input.c (init_input_requests): Make \n(.x return the major
16133 version number and \n(.y return the minor version number.
16134 * troff/Makefile: Construct file majorminor.c defining
16135 major_version and minor_version automatically from ../VERSION.
16137 * troff/node.c (class glyph_node): Make operator new and operator
16139 (class ligature_node): Similarily.
16141 * troff/input.c (operator==(const macro &, const macro &)): New
16143 (non_interpreted_node::same): Use this.
16144 (string_iterator::string_iterator): Make macro& argument const.
16146 * troff/input.c (input_iterator::get): New function. Don't make
16147 asciify_macro or class non_interpreted_node friends of class
16149 (non_interpreted_node::interpret): Use input_iterator::get.
16150 (asciify_macro): Likewise.
16152 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16153 ~non_interpreted_node): Deleted.
16154 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16157 * troff/symbol.h: Make all symbol member functions const.
16159 * lib/strtol.c: New file.
16160 * lib/Makefile: Add strtol.c.
16161 * Makefile: Define STRTOL as strtol.o to include strtol in
16164 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
16166 * pic/troff.c (troff_output::simple_circle): Divide by scale.
16168 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
16170 * troff/input.c (do_special): Use input_level.
16172 * troff/token.h (TOKEN_BACKSPACE): New token.
16173 (token::backspace): New function.
16174 * troff/input.c (token::description, token::next, token::process):
16175 Grok TOKEN_BACKSPACE.
16176 (do_special): Turn TOKEN_BACKSPACE back into \b.
16178 * troff/token.h (token::leader): New function.
16179 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16181 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16183 * troff/input.c (do_special): Use token::description in error
16186 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
16188 * troff/input.c (decode_args): Combine quoted and
16189 quote_input_level variables. Make it a for (;;) loop.
16191 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16193 * troff/input.c (read_long_escape_name): The test for whether to
16194 expand buffer was off by 1.
16195 (read_string): Similarily.
16197 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
16199 * troff/input.c: Use `const int' rather than `static const int'.
16201 * troff/div.h (diversion::copy_file): Declare as pure virtual.
16202 (macro_diversion::copy_file): New function.
16203 * troff/node.h: New class diverted_copy_file_node.
16204 * troff/node.c: Implement it.
16205 * troff/input.c (copy_file): Use diversion::copy_file. Handle
16206 first page transition by pushing a diverted_copy_file_node.
16207 * troff/input.c (token::next, process_input_stack): Don't handle
16210 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
16212 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16213 whether space widths need adjusting.
16215 * troff/charinfo.h: Generalize translated_to_space to
16216 special_translation so as to allow translation to \&.
16217 * troff/input.c (translate): Allow translation to \&.
16218 (charinfo::*): Corresponding changes.
16219 * troff/node.c (make_node, node::add_char): Corresponding changes.
16220 * troff/node.h (dummy_node::dummy_node): Allow optional first
16223 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16224 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16226 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16227 TOKEN_REQUEST with an argument of TITLE_REQUEST.
16228 (token::process): Grok that.
16229 * troff/input.c (copy_file): Handle first page transition like
16230 title by pushing a COPY_FILE_REQUEST cookie.
16231 (token::next, process_input_stack): Grok that.
16232 * troff/node.h (output_file::copy_file): Add x and y arguments.
16234 * troff/div.c (top_level_diversion::copy_file): Supply them.
16235 * troff/node.c (troff_output_file::copy_file): Add x and y
16236 arguments; moveto specified position. Invalidate font_position
16237 array after copying file.
16238 (output_file::copy_file): New function.
16239 (suppressed_output_file::copy_file, ascii_output::copy_file):
16241 * troff/input.c (transparent_file): New function.
16242 (init_input_requests): Bind to "trf".
16243 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16244 (process_input_stack): Likewise.
16246 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16248 * troff/node.c (init_node_requests): New number registers .kern
16249 pointing to global_kern_mode, and .lg pointing to
16250 global_ligature_mode.
16252 * troff/node.c (ligature): Don't change it if we get a bad
16255 * troff/input.c (do_define_string): Don't strip tabs.
16257 * troff/input.c (asciify_macro): Make the string_iterator auto.
16259 * troff/node.c (init_font_requests): Rename to...
16260 (init_node_requests):
16261 * troff/node.h: Change declaration.
16262 * troff/input.c (main): Change call.
16264 * troff/input.c (node::reread, diverted_space_node::reread): New
16266 (process_input_stack): Call reread rather than
16267 get_diverted_space_node.
16268 * troff/node.c (node::get_diverted_space_node,
16269 diverted_space_node::get_diverted_space_node): Removed.
16270 * troff/node.h: Declare reread methods instead of
16271 get_diverted_space_node methods. Make `n' member private.
16272 * troff/input.c: (token::diverted_space): Removed.
16273 * troff/token.h: Removed declaration.
16276 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
16278 * eqn/script.c (script_box::compute_metrics): Don't let
16279 SUP_RAISE_FORMAT become negative.
16281 * tbl/table.c (table::do_row): Entries that don't end in the
16282 this row shouldn't make the row non-blank.
16284 * tbl/table.c (table::make_columns_equal): Only set the width of
16285 columns which are marked as equal.
16287 * tbl/main.c (process_data): Before issuing excess data error,
16288 if last character was a newline unget it; then get it again after
16289 the error. Also include the contents of the entry in the message.
16291 * groff.c: New file.
16292 * Makefile: Build groff from groff.c. Make it possible to use
16293 either groff.sh or groff.c as groff.
16294 * Makefile.bd: Similarily.
16296 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
16298 * groff.sh: Don't delay expansion of $@ in assignment to files.
16299 Remove occurrences of \".
16301 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
16303 * all Makefiles: Simplify and rearrange.
16305 * Makefile: Handle fmod like malloc.
16306 * lib/Makefile: Similarily.
16307 * lib/fmod.c: Remove #ifdef NEED_FMOD.
16309 * Makefile: Rename OPTIMISE to OPTIMIZE.
16311 * groff.sh: Remove assignment to PATH.
16312 * Makefile: Remove SHPATH variable.
16313 * Makefile.bd: Similarily.
16315 * groff.sh: Add -V option to print the pipeline instead of
16318 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
16320 * lib/font.c: Split off file searching into ...
16321 * lib/fontfile.c: New file.
16323 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16325 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
16327 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16328 Also change misleading comment.
16329 (table::do_vspan): Change similarily misleading comment.
16330 * tbl/main.c (process_data): A format row with an explicit `s'
16331 uses up a data line, even if all the other columns are `_' or `='.
16333 * troff/input.c (token::description): Fix description of
16334 TOKEN_DUMMY and TOKEN_EMPTY.
16336 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
16338 * groff.sh: Fix description of -Z in help message.
16340 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
16342 * pic/object.c (object_spec::make_object): Allow negative and zero
16344 * pic/pic.y: Give linethick default value of -1.0.
16345 * pic/troff.c (troff_output::troff_output): Initialize
16346 last_line_thickness to BAD_THICKNESS.
16347 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16348 (troff_output::line_thickness): Canonicalize negative thicknesses
16349 to RELATIVE_THICKNESS.
16350 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16351 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16353 (tex_output::start_picture): Set pen_size to -2.0.
16355 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16356 0, then use 0 linewidth.
16357 (ps_printer::ps_printer): Initialize line_thickness to -1.
16359 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16361 * ps/devps/symbolchars: Remove `or'.
16362 * ps/tmac.ps: Implement \(or with .char.
16364 * ps/devps/symbolchars: Move most characters into textmap.
16365 * ps/devps/textmap: Add names for troff bracket characters. Remove
16368 * ps/devps/TSymbol.ps: Removed.
16369 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16370 * ps/tmac.ps: Do with .char what TSymbol did.
16371 * ps/devps/download: Remove TSymbol.
16373 * ps/devps/T: Removed.
16374 * ps/devps/Troff.ps: Removed.
16375 * ps/devps/Troff.afm: Removed.
16376 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16377 * ps/devps/download: Remove Troff.
16378 * ps/devps/FontMakefile: Remove T target.
16379 * ps/devps/DESC-A4: Remove T from font list.
16380 * ps/devps/DESC-letter: Likewise.
16382 * troff/input.c (macro_to_node): Rename to ...
16383 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
16384 character's definition while processing it.
16385 * troff/node.c (node::add_char, make_node): Change calls to
16386 macro_to_node accordingly.
16388 * troff/input.c (token::next): Translate \_ to \(ul.
16390 * tty/devascii/R.proto: Add `|'.
16391 * tty/devlatin1/R.proto: Likewise.
16393 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
16395 * man: Put the version number in all the man pages.
16397 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
16399 * Makefile.bd: New file.
16400 * README.bd: New file.
16402 * VERSION: New file.
16403 * lib/version.c: Removed.
16404 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16407 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16408 environment variable.
16410 * all Makefiles: Split install target into install.bin for
16411 binaries, and install.nobin for everything else.
16412 * Makefile: Add bindist target.
16414 * man/afmtodit.man: New file.
16415 * man/Makefile: Add afmtodit.n to MAN1PAGES.
16416 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16418 * ps/Makefile: Pass BINDIR to make install in devps.
16420 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16421 the space character.
16423 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16425 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
16427 * ps/ps.c: Redo font downloading.
16428 * ps/devps/download: New file.
16429 * ps/devps/Makefile: Add download to DEVICEFILES.
16430 * ps/devps/afmtodit: Remove -d option.
16431 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16432 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16433 * ps/devps/zapfdr.ps: Likewise.
16434 * ps/devps/TSymbol.ps: Likewise.
16436 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
16438 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16440 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
16442 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16443 then strip the first line if it starts with %.
16444 * Makefile: Add a comment about this.
16446 * man/tfmtodit.man: New file.
16447 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16448 * dvi/Makefile: Install tfmtodit in BINDIR.
16450 * dvi/tfmtodit.c (usage): Mention -v option.
16452 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
16454 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16455 * troff/node.c (troff_output_file::transparent_char): Don't call
16458 * eqn: Add check_tabs method to most box classes.
16459 * eqn/box.c (box::top_level): Call check_tabs.
16461 * eqn/script.c (script_box::output): Use \Z.
16462 * eqn/limit.c (limit_box::output): Use \Z.
16464 * eqn/box.c (box::top_level): Use itoa.
16466 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
16468 * dvi/tmac.dvi: Add font translations for CR, C, TT.
16469 * dvi/devdvi/Makefile: Don't make links to CW.
16471 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16473 * xditview/tmac.X: Likewise.
16475 * troff/node.c: Add font translation feature.
16476 (get_font_translation): New function.
16477 (symbol_fontno): Translate the font name.
16478 (mount_font_no_translate): Rename to mount_font to this.
16479 (mount_font): New function.
16480 (font_family::make_definite): Call mount_font_no_translate instead
16482 (mount_style): Translate the font name.
16483 (font_translate): New function.
16484 (init_font_requests): Bind "ftr" to font_translate.
16486 * ps/devps/prologue (SN): New procedure that rounds a position to
16487 the nearest (pixel + (.25,.25)).
16488 (DL): Use SN to round endpoints.
16490 * lib/version.c: Changed version to 0.5.
16492 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
16494 * Makefile: Move definition of PAGE to the very beginning, so that
16495 people are less likely to miss it.
16497 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
16499 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16501 * troff/env.c (environment::choose_breakpoint): Make `can't find
16502 breakpoint' error a warning of type WARN_BREAK. Change message to
16503 `can't break line'.
16504 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16506 * troff/input.c: Add WARN_BREAK to warning_table. Include
16507 WARN_BREAK in DEFAULT_WARNING_MASK.
16509 * tty/tmac.tty: Add definition of \(+-.
16511 * groff.sh: Remove `--' option to set command.
16513 * dvi/devdvi/texsy.map: Remove duplicate md entry.
16515 * ps/devps/eqnchar: Better definition of cdot using md.
16516 * dvi/devdvi/eqnchar: Likewise.
16517 * xditview/devX100/eqnchar: Likewise.
16518 * xditview/devX75/eqnchar: Likewise.
16519 * eqn/lex.c: Add definition of cdot.
16521 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
16523 * troff/input.c (get_optional_char): New function.
16524 * troff/input.c (set_page_character): Use get_optional_char(),
16525 rather than has_arg() and tok.get_char(1).
16526 * troff/env.c (tab_character, leader_character, hyphen_char,
16527 field_characters): Likewise.
16528 (margin_character): Likewise. Also always delete the
16529 margin_character_node.
16531 * troff/input.c (token::get_char): Use token::description.
16533 * troff/input.c (has_arg): Don't skip over tab and \}.
16534 * troff/number.c (start_number): Give a warning if the number
16535 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16537 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
16539 * troff/input.c (empty_name_warning, non_empty_name_warning): New
16541 (get_name, get_long_name): Use these. Rename `warn' argument to
16544 * troff/node.c (get_fontno): Test that the symbol is not null.
16546 * troff/input.c (token::description): New function.
16547 * troff/number.c (parse_term): Use token::description in `numeric
16548 expression expected' message.
16549 * troff/groff.h: Add WARN_MISSING.
16550 * troff/number.c (start_number): New function.
16551 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16552 get_incr_number): Use start_number().
16553 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16555 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16556 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16558 * troff/input.c (token::get_char): Use WARN_MISSING.
16559 * troff/input.c (token::delimiter): Use token::description.
16560 * troff/env.c (environment_switch): Back out Aug 3 change.
16561 * troff/input.c (has_arg): Skip over \}s and tabs but give a
16563 * troff/token.h (token::tab): New function.
16564 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16565 * troff/reg.c (alter_format): Likewise.
16566 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16568 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
16570 * troff (most files): Redo warnings. Divide warnings into various
16571 categories; warning() has an additional first argument indicating
16572 the category it falls into.
16573 * troff/input.c (main): -w now takes an argument. New option -W.
16574 (enable_warning, disable_warning): New functions.
16576 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16577 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16579 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
16581 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16582 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16583 * xditview/devX75/eqnchar: Likewise.
16584 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16586 * eqn/other.c: When bar or over applies to a single character
16587 don't produce an overline_box or an underline_box. Instead produce
16588 an accent_box or an underaccent_box, with the accent a line
16589 whose width is accent_width. New classes underaccent_box,
16590 overline_char_box and underline_char_box.
16591 * eqn/box.h: Move overline_box, underline_box, accent_box class
16592 declarations into eqn/other.c. Add declarations of
16593 make_underline_box, make_overline_box, make_accent_box.
16594 * eqn/eqn.y: Call make_overline_box, make_underline_box
16595 make_accent_box instead of constructors.
16596 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16598 * eqn/other.c: Add accent_box::~accent_box.
16599 * eqn/box.h: Declare it.
16601 * groff.sh: With -Tps, use eqn -D.
16603 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16605 (underline_box::output): Similarily.
16606 (accent_box::output): Use \Z.
16608 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16611 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
16613 * troff/div.c (top_level_diversion::transparent_output(unsigned
16614 char)): Use asciify.
16615 * troff/input.c (asciify): Don't make it static.
16616 * troff/token.h (asciify): Declare it.
16618 * troff/input.c (get_name, get_long_name, token::get_char,
16619 token::delimiter): Add an extra default argument which says
16620 whether a warning should be printed.
16621 * troff: Pass a non-zero argument to one of these rather than
16622 printing a warning directly.
16624 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
16626 * troff: Consistently use symbol::is_null.
16628 * troff/dictionary.h: Move some inline functions into
16631 * troff/request.h: Move inline functions into input.c.
16632 (request_or_macro::invoke): Make it pure.
16634 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16635 * troff/input.c (init_input_requests): Use class constant_int_reg.
16636 (class compatible_reg): Deleted.
16637 * troff/div.c (init_div_requests): Use class constant_int_reg.
16638 (class last_post_line_extra_space_reg): Deleted.
16640 * troff/env.c (tab_character): Don't change the tab character if
16641 we get an invalid argument.
16642 (hyphen_char): Similarily.
16644 * troff/reg.c (alter_format): Check that nm is not null.
16646 * Makefile, groff.sh: Make it possible to customize the commands
16647 used for printing PostScript and dvi files. Also make it possible
16648 to customize the path used by groff.sh.
16650 * eqn/eqn.y: Make `left' right associative.
16652 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
16654 * pic/pic.h: Added definition of M_SQRT2 for those systems that
16657 * pic/pic.h: Removed definition of INT_MAX.
16659 * troff/node.c (italic_corrected_node::vertical_extent): Omit
16662 * troff/input.c (token::next): Handle \R like \n.
16664 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
16666 * ps/tmac.pc (PSPIC): Simplify.
16668 * troff/env.c (tab_stops::to_string):
16669 * pic/pic.y (object_type_name):
16670 * pic/troff.c (simple_output::line):
16671 * pic/tex.c (tex_output::spline):
16672 * pic/object.c (object_spec::make_object):
16673 * tbl/main.c (process_data): Add cases to switch statements to
16674 avoid cfront warnings. (Some of these are spurious, since the
16675 switch already has a default case.)
16677 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
16678 `ps-'. Don't test systat; instead check number of arguments to
16681 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
16683 * macros/tmac.e: Do not decrease the page offset by 0.5i.
16685 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16686 Unlink the file as soon as we have opened it, so that we don't
16687 have to bother with signal handlers.
16688 (handler): Deleted.
16689 (fatal_error_exit): Deleted.
16690 (main): Don't call signal.
16692 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16694 * dvi/devdvi/Makefile: Use the -k option with S and MI.
16696 * pic/pic.y: If there is a label, or an nth construction before
16697 the first `.' in the argument to `with', ignore it and generate a
16699 * pic/lex.c (lex_warning): New function.
16701 * tbl/table.c (table::init_output): In section keep and release
16702 macro, use 0 indent when diverting and the correct indent when
16705 * troff/input.c (interpolate_number_format): Do not interpolate
16706 anything if the number register is not defined.
16708 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16710 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
16712 * ps/devps/prologue (PICTURE): Set components of graphics state to
16713 their default values.
16715 * ps/devps/text.enc: Add trademark
16716 * ps/devps/textmap: Add names for club, spade, heart, diamond,
16717 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16718 * ps/devps/symbolchars: Add names for summation and product.
16720 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16721 suchthat. Add pp. Add upper-case letters.
16723 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16724 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16727 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16728 rA (right angle bracket) to ra. Introduce names for double-headed
16729 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16730 * ps/devps/textmap: Likewise for ps device.
16731 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16732 * tty/devascii/R.proto: Rename lA to la and rA to ra.
16733 * tty/devascii/R.proto: Likewise.
16734 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16736 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16738 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16740 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16743 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
16745 * troff/div.c (when_request): Use symbol::is_null rather than
16746 has_arg to determine whether we have an argument.
16747 (change_trap): Remove the trap if we get an invalid number. Give
16748 an error if we don't get at least the macro name.
16749 (diversion_trap): Remove trap if we get an invalid name or number.
16751 * troff/env.c (environment_switch): Pop if we get an invalid
16752 symbol or numeric expression.
16754 * troff/input.c (do_define_macro): If EOF is encoutered while
16755 defining the macro, do tok.next() before returning.
16757 * troff/token.h (has_arg): Move definition from here, to ...
16758 * troff/input.c (has_arg): ... here
16760 * troff/env.c (space_size): Do nothing if we get an invalid argument.
16761 * troff/input.c (shift): Likewise.
16763 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
16766 * pic/troff.c (troff_output::start_picture): Comment out calls to
16769 * eqn/main.c (do_file): Subtract 1 from current_lineno if
16770 interpret_lf_args succeeds.
16772 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16773 \\. This avoids problems with \$N.
16775 * groff.sh: Pass -C to preprocessors.
16777 * lib/lf.c (interpret_lf_args): Be more flexible.
16779 * tbl/main.c (main): Add -C option.
16780 (table_input::get): Do not recognize TE if followed by character
16781 other than a space or newline unless -C option given.
16782 (process_input_file): Likewise for lf, TS.
16783 (process_data): Likewise for lf in text blocks.
16785 * eqn/main.c (main): Add -C option.
16786 (do_file): Don't recognize EQ, EN or lf if followed by character
16787 other than space or newline unless -C option given.
16788 * eqn/lex.c (file_input::read_line): Similarily.
16789 * eqn/eqn.h: Declare compatible_flag.
16791 * etc/soelim.c (main): Add -C option.
16792 (interpret_lf_args): Use version in libgroff.
16795 * pic/main.c (main): Add -C option, which sets compatible_flag.
16796 (top_input::get), (top_input::peek): If -C option not given,
16797 do not recognize .PS/.PE/.PF/.lf if followed by a character
16798 other than space or newline.
16799 * pic/lex.c (file_input::read_line): Similarily.
16800 * pic/pic.h: Add declaration of compatible_flag.
16802 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
16804 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16806 * troff/node.c, troff/node.h: Add `asciify' methods to classes
16807 derived from node. New class space_char_hmotion_node.
16808 * troff/input.c (asciify_macro): New function.
16809 * troff/input.c (init_input_requests): New request `asciify' bound
16811 * macros/mm.diff: New file.
16812 * Makefile: In install.mm target use `patch' to apply
16815 * troff/input.c (macro::print_size): Just print the size in bytes.
16817 * troff/div.c (return_request): Correct the argument
16820 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
16822 * troff/node.h (class composite_node): Add sz member.
16823 * troff/node.c (composite_node::size): Return sz.
16824 * troff/input.c (macro_to_node): Use the initial size in the
16825 environment as the size of the composite_node.
16827 * troff/node.c (node::zero_width_tprint): Provide a reasonable
16830 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
16832 * troff/div.c (change_trap): If we get a bad number expression,
16835 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
16837 * lib/matherr.c (matherr): Define this only if math.h defines
16840 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
16842 * troff/div.c (macro_diversion::distance_to_next_trap): If there
16843 no diversion trap return vunits(INT_MAX - vresolution).
16845 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
16847 * troff/input.c (do_zero_width): New implementation that doesn't
16848 use a temporary environment. Use instead:
16849 (token::add_to_node_list): New function.
16850 * troff/env.c (environment::get_prev_char_height),
16851 (environment::get_prev_char_height),
16852 (environment::get_prev_char_skew): New functions.
16853 (environment::get_prev_char): New function.
16854 (environment::get_prev_char_width): Change to use get_prev_char.
16855 (init_env_request): Implement new registers .cht, .cdp, .csk.
16856 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16857 \Z being processed in a separate environment.
16859 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
16861 * tbl/table.c: Removed TABLE_BOTTOM_REG.
16863 * tbl/table.c (table::init_output): In the section release macro,
16864 give a warning message if the section won't fit on one page.
16866 * tbl/table.c (table::do_top): Emit table keep only if table is
16868 (table::do_bottom): Likewise for table release.
16869 (table::table), (table::add_vertical_rule): Remove reference to
16871 * tbl/table.h: Remove keep member.
16873 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16874 SECTION_RELEASE_MACRO, if there's not enough space before the next
16875 trap to output the diversion, call T# ourselves, set
16876 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16877 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
16878 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
16879 vertical position and return to it before turning traps on again.
16881 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
16883 * troff/node.c, troff/node.h: In classes derived from node,
16884 replace prev_char_width method by last_char_node method.
16885 * troff/env.c (environment::get_prev_char_width): Use
16886 node::last_char_node rather than node::get_prev_char_width.
16888 * Makefile: Added comment about -fno-inline on 68030-based
16891 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16892 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16893 expressions using sizeof to int.
16894 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16896 * macros/tmac.e (TS): Don't move @f back past the current
16899 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
16901 * ps/ps.c (main): Buffer stderr.
16902 * dvi/dvi.c (main): Likewise.
16903 * tty/tty.c (main): Likewise.
16905 * ps/ps.c (ps_printer::do_import): Improve error handling.
16907 * troff/input.c (abort_request): Use asciify.
16909 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16910 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16911 type of first argument int rather than char. This works around a
16912 bug on the 68030 based Apollo using g++ 1.37.1.
16914 * tbl/table.h (class table): Add `keep' member.
16915 * tbl/table.c (table::table): Initialize `keep'.
16916 (table::add_vertical_rule): Set `keep' to 1.
16917 (table::do_top): Only emit table keep macro is `keep' is non-zero.
16918 (table::do_bottom): Likewise for table release macro.
16919 (table::do_row): Emit section keep macro even if the row is 0.
16921 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
16923 * macros/tmac.e (@C): Preserve the font family across the change
16926 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
16928 * lib/font.c: Initialize font::hor and font::vert to 1.
16929 (font::load_desc): Check the values of font::hor and font::vert.
16931 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16932 be included in a C compilation.
16933 (iftoa): Use INT_DIGITS. Include lib.h.
16935 (as_string): Likewise.
16936 * tbl/table.c: Removed definition of INT_DIGITS.
16937 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16938 * troff/input.c (input_input_requests): Likewise.
16939 * ps/ps.c (make_encoding_name): Likewise.
16940 (ps_printer::set_style): Likewise.
16941 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16943 * tty/devascii/R.proto: Map fm onto '.
16944 * tty/devlatin1/R.proto: Likewise.
16946 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
16948 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16949 argument to \w is at a different input level.
16951 * tbl/table.c (table::init_output): Define a new macro
16952 REPEATED_VPT_MACRO, like vpt but if in a diversion also
16953 transparently outputs itself.
16954 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16956 (table::do_row): Likewise.
16958 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16959 TRANSPARENT_STRING_NAME.
16961 * tbl/table.c (table::init_output): In the table release macro
16962 print an error message and don't produce any output if after
16963 issuing the need request the table still will not fit. Also
16964 remove the diversion after bringing it back.
16966 * tbl/table.c (table::init_output): Define a new macro
16967 REPEATED_MARK_MACRO, like mk but if in a diversion also
16968 transparently outputs itself.
16969 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16970 is necessary because .TH might not call .T#.
16971 (table::do_top): Likewise TOP_REG.
16972 (table::define_bottom_macro): If TOP_REG is no longer valid, use
16973 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16974 table header might contain just the two top rules.
16976 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
16978 * troff/div.c: Implement new request `ptr' to print all traps.
16980 * troff/env.c (init_env_requests): Implement `.tabs' reg with
16981 init_string_env_reg.
16982 * troff/env.c (class tab_reg): Deleted.
16984 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
16986 * troff/div.c: New number register .pn returns the number of the
16987 next page as set by the pn request.
16989 * macros/tmac.an: Redid headers and footers. Number each manual
16990 entry starting from 1 unless \nC is > 0, like Sun. Added an
16991 optional 5th argument to .TH which specifies the manual name and
16992 appears in the center of the header. Understand the X, P and D
16993 registers like Sun.
16995 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
16997 * troff/env.c (init_env_requests): New number register `.lt' to
16998 return the title length.
17000 * troff/node.h (class transparent_dummy_node): New class.
17001 * troff/node.c (class transparent_dummy_node): Provide member
17003 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17006 * troff/input.c (token::next): New escape sequence \).
17007 * troff/input.c (get_copy): Recognize \) in copy mode.
17009 * troff/input.c (input_stack::clear): New function.
17010 * troff/input.c (exit_request): Use input_stack::clear.
17012 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17013 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17015 * troff/env.c: Move set_page_character to input.c. Move
17016 page_character to input.c also.
17017 * troff/env.c (title): Split off the reading of the parts of the
17018 title into read_title_parts.
17019 * troff/input.c (read_title_parts): New function. Check the
17020 input_level when testing whether a token matches the delimiter.
17022 * troff/input.c (exit_request): New function.
17023 * troff/input.c (init_input_requests): Bind ex request to
17024 exit_request rather than exit_groff.
17026 * troff/input.c (exit_groff): Call tok.next() before
17027 process_input_stack().
17029 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
17031 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17032 * troff/env.h: ditto.
17033 * troff/input.c: ditto.
17035 * troff/env.c (environment::is_empty): Test pending_lines.
17037 * troff/env.c (environment::have_pending_lines): Removed.
17039 * troff/input.c: Add request to flush pending lines from the
17042 * troff/env.c, troff/env.h: Add automatic widow control feature.
17044 * troff/input.c (exit_groff): Do process_input_stack() after
17045 do_break() but before setting exit_flag to 2.
17047 * troff/input.c: Remove FLUSH_PENDING_LINES and
17048 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17049 environment after END_TRAP token seen, but only if there aren't
17050 any more traps still unfinished.
17051 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17053 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
17055 * troff/env.c: Rename the `retain_size' member of class
17056 pending_output_line to `no_fill'.
17058 * troff/env.c (title): When the line is output, make the
17059 retain_size argument !fill.
17061 * troff/node.h: Add `hyphenated' member to struct breakpoint.
17062 * troff/node.c (space_node::get_breakpoints),
17063 (dbreak_node::get_breakpoints): Fill this in.
17064 * troff/env.c: Allow specification of maximum number of
17065 consecutive hyphenated lines.
17067 * troff/env.c (environment::is_empty): Add test for !current_tab.
17069 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
17071 * troff/env.c (environment::hyphenate_line): Don't completely give
17072 up if the word is not to be hyphenated; continue so that breaks
17073 can be made at break_char_node's.
17075 * lib/lib.h: Only define INT_MAX if it's not already defined;
17076 undef INT_MIN if it's already defined.
17078 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17080 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17081 This works around a bug in AT&T C++ 2.0 used with an ANSI C
17084 * macros/tmac.an (an-header): Set no-space mode.
17086 * macros/tmac.an (TH): Start a new page if necessary.
17088 * Started using ChangeLog at version 0.4.
17091 version-control: never