* NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
[s-roff.git] / ChangeLog
blob659887ed84ef0063a1d7e57d37ca812681bd9624
1 2004-05-10  Werner LEMBERG  <wl@gnu.org>
3         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4         tmac/TODO: Updated.
6         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
7         doc-str-Lb-librt): Reset font.
8         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
9         Provide `doc-str-Lb' to reset font.
10         * tmac/groff_mdoc.man: Updated.
12 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
14         * src/preproc/html/pre-html.cpp (make_message): Make it work for
15         snprintf versions which don't conform to ANSI C 99 (this is,
16         counting the string's trailing null byte in the return value).
18 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
20         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
21         that all implementations of sprintf handle null pointers correctly.
23 2004-05-04  Werner LEMBERG  <wl@gnu.org>
25         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
26         Document `.U' register.
28         * src/roff/troff/env.cpp (environment::mark_last_line)
29         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
31 2004-05-04  Larry Kollar  <kollar@alltel.net>
33         New read-only register `.U'; it returns 1 in safer mode and 0
34         otherwise.
36         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
37         register.
39 2004-05-03  Werner LEMBERG  <wl@gnu.org>
41         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
43 2004-04-17  Werner LEMBERG  <wl@gnu.org>
45         * src/include/font.h (font): Use `int' for ch_index.
46         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
47         font::compact): Updated.
49         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
50         warnings.
52         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
53         (hyphen_word): Fix compiler warnings.
54         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
55         `char'.
56         Update all callers.
57         (get_delim_number, get_line_arg): Change second argument type to
58         `unsigned char'.
59         (macro_header::copy, token::next, do_define_string,
60         do_define_character, substring_request, asciify_macro,
61         unformat_macro, read_size, non_interpreted_node::interpret,
62         while_request, main: Fix compiler warnings.
63         (read_color_draw_node): Initialize `col'.
65         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
66         `start_col' and `end_col' of type `int'.
67         (vertical_rule): Make `col' of type `int'.
69         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
70         for EOF.
72         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
73         New arrays.
74         (format_serial): Use them to remove dependency on ASCII.
76         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
77         compiler warning.
78         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
79         Ditto.
81         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
82         compiler warnings.
83         (glyph): Change type of `hpos' to `int'.
85         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
86         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
88         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
90         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
92 2004-04-16  Werner LEMBERG  <wl@gnu.org>
94         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
95         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
96         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
97         `double' instead of `float' everywhere.
98         * src/preproc/grn/main.cpp: Use `double' instead of `float'
99         everywhere.
100         (main): Add return value.
101         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
102         everywhere.
103         Update all user functions.
105         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
106         src/preproc/eqn/box.h, src/preproc/pic/object.h,
107         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
108         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
109         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
110         src/roff/troff/input.cpp, src/roff/troff/request.h,
111         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
112         declarations.
114         * src/utils/indxbib/signal.c: Include stdlib.h.
116 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
118         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
119         before the first page.
121 2004-04-14  Thomas Klausner <wiz@netbsd.org>
123         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
124         (doc-operating-system-*): Updated.
125         * tmac/doc-syms (doc-str-St-*): Various small fixes.
126         (doc-str-Lb-*): Add more library names.
128 2004-04-10  Art Haas  <ahaas@airmail.net>
130         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
131         use anonymous type.
133 2004-04-09  Art Haas  <ahaas@airmail.net>
135         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
137 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
139         * arch/misc/shdeps.sh: Generate better comment for sed script.
141 2004-04-08  Art Haas  <ahaas@airmail.net>
143         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
144         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
145         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
146         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
147         (polyfill), src/preproc/grn/main.cpp (polyfill),
148         src/preproc/refer/command.cpp (command_table),
149         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
150         gcc 3.5 doesn't like).
152 2004-04-08  Werner Lemberg  <wl@gnu.org>
154         Removing many compiler warnings.  groff should now compile with
155         a C++ compiler used for C files also.  [Simple variable renamings
156         to avoid shadowing aren't logged in detail.]
158         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
159         (draw_dvi_printer::draw) ['c']: Enclose in block.
161         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
162         (page::add_line): Fix typos.
163         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
165         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
166         Some local variable renamings.
167         * src/devices/grolbp/lbp.h: Some local variable renamings.
169         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
170         variable renamings.
172         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
173         Remove redundant local variable declaration.
174         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
175         Don't use `caddr_t' but `void *'.
176         Enclose functions with `extern "C"' for C++.
178         * src/libs/libdriver/input.cpp (remember_filename,
179         remember_source_filename): Use cast for string constant.
181         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
182         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
183         src/libs/libgroff/geometry.cpp: Some local variable renamings.
184         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
185         style.
186         Enclose functions with `extern "C"' for C++.
187         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
188         (needs_quoting): Return `int'.
189         (quote_arg): Add proper casts to malloc and realloc.
190         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
191         various MS Windows environments.
192         (spawnvp_wrapper): Add proper cast to malloc.
194         * src/preproc/eqn/box.h: Remove redundant declarations of
195         `make_script_box', `make_mark_box' and `make_lineup_box'.
196         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
197         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
198         variable renamings.
200         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
201         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
202         (dx, dy): Renamed functions to...
203         (deltax, deltay): This.
204         * src/preproc/grn/main.cpp: Some local variable renamings.
205         (deffont): Add `const'.
206         (initpic, conv): Use cast for string constant.
208         * src/preproc/html/pre-html.cpp: Some local variable renamings.
209         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
210         (char_buffer::run_output_filter): Second argument is unused.
211         * src/preproc/html/pushback.cpp: Some local variable renamings.
213         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
214         * src/preproc/pic/object.cpp: Some local variable renamings.
216         * src/preproc/refer/label.y (lookup_label): Remove redundant
217         declaration of local variable.
219         * src/preproc/soelim.cpp: Remove redundant declaration of
220         `interpret_lf_args'.
222         * src/preproc/tbl/main.cpp: Some local variable renamings.
224         * src/roff/groff/groff.cpp (main): Use cast for string constant.
225         * src/roff/groff/pipeline.c: Enclose declarations of `error',
226         `c_fatal', and `i_to_a' with `extern "C"' for C++.
227         Don't use C++-style comments.
229         * src/roff/troff/env.h: Remove redundant declaration of `title'.
230         * src/roff/troff/node.h, src/roff/troff/env.cpp,
231         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
232         renamings.
233         * src/roff/troff/div.h: Remove redundant declaration of
234         `end_diversions'.
235         * src/roff/troff/troff.h: Remove redundant declaration of
236         `cleanup_and_exit'
237         * src/roff/troff/input.cpp: Remove redundant declaration of
238         `handle_first_page_transition' and `process_input_stack'.
240         * src/utils/hpftodit.cpp: Some local variable renamings.
242         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
243         for C++.
244         Don't define RETSIGTYPE.
245         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
247         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
248         (error): Use `const' in argument.
249         (main): Remove redundant declaration of `optind'.
250         Move declaration of `Version_string' to top-level.
252         * PROBLEMS: Document difficulties compiling signal.c if a C++
253         compiler is used for C.
255 2004-04-07  Werner Lemberg  <wl@gnu.org>
257         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
259 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
261         Make scripts like nroff.sh and neqn.sh portable across various
262         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
263         non-POSIX path separators.  The idea is to extend those scripts to
264         decide at run-time (of the script) which path separator to use.
266         * arch/misc/Makefile.sub: New file.
267         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
268         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
269         a proper definition of the variable `GROFF_RUNTIME'.
271         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
272         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
273         (PROGDEPDIRS): New variable.
274         `FORCE' it.
275         (PROGDIRS): Add PROGDEPDIRS.
277         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
278         Don't substitute @SEP@ and @BINDIR@.
279         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
280         (PATH): Use GROFF_RUNTIME.
282         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
283         Don't substitute @SEP@ and @BINDIR@.
284         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
285         (PATH): Use GROFF_RUNTIME.
287 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
289         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
290         Cygwin which doesn't handle stderr correctly.
292 2004-03-08  Werner LEMBERG  <wl@gnu.org>
294         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
295         against empty argument.  Problem reported by <cgd@broadcom.com>.
297 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
299         * Makefile.in (SEP): Replaced with...
300         (RT_SEP, SH_SEP): Separators for the target platform's native path
301         separator and the build environment, respectively.
302         (fontpath, tmacpath): Use RT_SEP.
303         (MDEFINES): Updated.
305         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
306         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
307         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
308         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
310 2004-03-05  Werner LEMBERG  <wl@gnu.org>
312         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
313         reduce alignment problems with newer printers which use built-in
314         TrueType fonts (instead of the older Intellifonts).  The ideal
315         solution is to provide a second set of groff metric files, but this
316         is extremely time-consuming to produce, given that HP's metric
317         files are very rudimentary.
319 2004-03-01  Werner LEMBERG  <wl@gnu.org>
321         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
322         s/operand/argument/ in error message.
324 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
326         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
327         is in use.
329 2004-03-01  Antti Kantee  <pooka@netbsd.org>
331         * tmac/s.tmac (XE): Fix error message.
333 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
335         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
336         New macros.
338         * src/roff/groff/pipeline.c: Declare strcasecmp.
339         (run_pipeline) [_WIN32]: Use function name variants which don't
340         start with `_'.
341         Fix stream handling.
343 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
345         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
346         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
347         for platforms which use the native Win32 runtime libraries.
348         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
350         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
351         QUOTE_ARG_REALLOC_ERROR): Fix string.
353         * src/preproc/html/pre-html.cpp: Remove declaration of
354         `spawnvp_wrapper'.
355         Don't use __MINGW32__.
356         s/DEBUG_FILE/DEBUG_FILE_DIR/.
357         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
358         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
359         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
360         calls to `set_redirection' and `WAIT'.
361         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
362         Fix calls to `set_redirection' and `save_and_redirect'.
363         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
364         to `set_redirection' and `save_and_redirect'.
365         (usage): Fix message.
366         (makeTempFiles, main): Use `DEBUG_FILE'.
368 2004-02-21  Werner LEMBERG  <wl@gnu.org>
370         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
372 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
374         * src/libs/libgroff/quotearg.c: New file, providing proper argument
375         quoting for MSVC's spawn* and exec* functions.
376         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
377         spawnvp with proper quoting for MSVC.
379         * src/libs/libgroff/assert.cpp (program_name),
380         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
381         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
383         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
385         * src/include/error.h (program_name): Declare as `extern "C"'.
386         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
388 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
390         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
391         spawnvp_wrapper.
392         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
394 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
396         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
397         variable.
398         (sbasename) [__MSDOS__ || ...]: New function.
399         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
400         generic algorithm.
401         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
402         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
403         of XXX.
404         Use STDOUT_FILENO instead of hardcoded file handle.
405         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
407 2004-02-19  Werner LEMBERG  <wl@gnu.org>
409         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
410         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
412 2004-02-18  Werner LEMBERG  <wl@gnu.org>
414         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
415         new font and mapping files.
417 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
418             Keith Marshall  <keith.d.marshall@ntlworld.com>
420         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
421         an input pipe.  This is needed for the MSVC compiler to make troff's
422         `-o' option work.
424         * src/roff/troff/div.cpp: Include nonposix.h.
425         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
427 2004-02-17  Werner LEMBERG  <wl@gnu.org>
429         * font/devlj4/generate/special.awk: New script.
430         * font/devlj4/generate/Makefile (S): Use special.awk.
431         * font/devlj4/*: Regenerated, including the following new files:
432         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
433         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
434         * NEWS: Document new lj4 fonts and revised hpftodit.
436 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
438         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
440 2004-01-25  Werner LEMBERG  <wl@gnu.org>
442         * src/libs/libgroff/progname.cpp: Replaced with...
443         * src/libs/libgroff/progname.c: New file.
444         * src/libs/libgroff/Makefile.sub: Updated accordingly.
446 2004-01-17  Werner LEMBERG  <wl@gnu.org>
448         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
450 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
452         * font/devlj4/generate/wingdings.map,
453         font/devlj4/generate/symbol.map: Include unnamed glyphs.
454         Use groff glyph names where possible.
455         * src/devices/grolj4/lj4_font.man: Minor updates.
457 2004-01-13  Werner LEMBERG  <wl@gnu.org>
459         * tmac/www.tmac (DC): Handle TTY devices.
461         * doc/webpage.ms: Document viewCVS from ffii.org.
462         * NEWS, README: Updated.
464         * src/roff/groff/groff.man: Mention lj4_font man page.
466         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
467         variables.
468         (FONTS): Add SYMBOL and WINGDINGS.
469         (SYMBOL, WINGDINGS): New targets.
471 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
473         * src/devices/grolj4/lj4_font.man: New man page.
474         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
475         * src/devices/grolj4.man: Mention lj4_font man page.
477         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
478         * src/utils/hpftodit/hpftodit.man: Document it.
479         (CW): New macro.
480         Remove details about fonts (which are now in lj4_font.man).
482         * font/devlj4/generate/symbol.map,
483         font/devlj4/generate/wingdings.map: New files.
485 2004-01-12  Werner LEMBERG  <wl@gnu.org>
487         * README: Mention ffii's viewcvs access.
489 2004-01-09  Werner LEMBERG  <wl@gnu.org>
491         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
493 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
495         Revert most of the change from 2004-01-03 to better control used
496         symbol sets.
498         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
499         (text_symbol_sets, special_symbol_sets): New arrays.
500         (symbol_set_table): New global variable.
501         (read_symbol_sets): Use search order given in the text_symbol_sets
502         and special_symbol_sets arrays.  If command line flag -a is not
503         given, search both arrays.
504         (output_charset): Require x_height_tag only for command line flag -i.
506 2004-01-06  Werner LEMBERG  <wl@gnu.org>
508         Implement string-valued registers \n[.m] and \n[.M] to return the
509         name of the current drawing and background color, respectively.
511         * src/roff/troff/symbol.h: Moved to...
512         * src/include/symbol.h: Here.
513         Small fixes to make it work outside of the `troff' directory.
514         * src/roff/troff/symbol.cpp: Moved to...
515         * src/libs/libgroff/symbol.cpp: Here.
516         Small fixes to make it work outside of the `troff' directory.
518         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
519         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
520         Updated.
522         * src/include/color.h: Include symbol.h.
523         (color): Add new field `nm'.
524         * src/libs/libgroff/color.cpp (color::color): Updated.
526         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
527         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
528         src/roff/troff/reg.cpp: Don't include symbol.h.
530         * src/roff/troff/env.cpp: Don't include symbol.h.
531         (environment::get_glyph_color_string,
532         environment_get_fill_color_string): New member functions.
533         (init_env_requests): Handle `.m' and `.M' registers.
534         * src/roff/troff/input.cpp: Don't include symbol.h.
535         (default_symbol): Moved to symbol.cpp/symbol.h.
536         (do_glyph_color, do_fill_color, define_color): Pass symbol name
537         to color constructor.
538         * src/roff/troff/env.h: Updated.
540         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
541         Document new registers.
543 2004-01-05  Werner LEMBERG  <wl@gnu.org>
545         * src/roff/troff/nroff.cpp (space_node::get_breakpoints,
546         space_node::nbreaks): Protect against zero `next' field.
548 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
550         In hpftodit, use the symbol sets offered in the TFM.
552         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
553         (symbol_set, text_symbol_sets, special_symbol_sets,
554         symbol_set_table): Removed.
555         (get_printcode): Removed.
556         (read_symbol_sets): Initialize `symbol_set' field with
557         `NO_SYMBOL_SET'.
558         Simplify code to just use the `kind' value.
559         (output_charset): Improve output formatting.
560         (dump_symbols): Simplified.
562 2004-01-02  Werner LEMBERG  <wl@gnu.org>
564         * font/devlj4/generate/text.map: Add more MSL numbers.
566 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
568         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
569         (text_symbol_sets): Add more symbol sets.
570         (debug_flag): New static variable (moved from `main').
571         (get_printcode, show_symset): New functions.
572         (main): Remove `debug_flag'.
573         (output_charset): Use `show_symset'.
574         (dump_symbols):  Use `show_symset'.
575         Print symsets for all glyphs.
576         (read_map): Actually call `unicode_to_ucode_make' but this time
577         correctly.
579 2004-01-01  Werner LEMBERG  <wl@gnu.org>
581         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
582         Fix placement of comments.
584 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
586         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
587         option `-d' is given.
588         (output_charset): Improve warning messages to give more information.
589         (dump_symbols): Make information more precise.
590         (usage): Updated.
591         (read_map): Don't call unicode_to_ucode_name; the glyph names must
592         appear as-is and shouldn't be decomposed.
594 2003-12-31  Werner LEMBERG  <wl@gnu.org>
596         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
597         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
598         (FONTS): Add TrueType font families Arial and Times New Roman.
599         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
600         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
601         `fl'.
603 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
605         * test-groff.in (SEP): Quote value.
606         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
607         `tem' to `char*' to avoid deallocation of a pointer to a constant
608         object which some compilers don't like.
610 2003-12-31  Werner LEMBERG  <wl@gnu.org>
612         * font/devlj4/generate (text.map, special.map): Rewritten to work
613         with the new hpftodit version.
615 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
617         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
618         set and 8bit character code for all glyphs also.
620 2003-12-30  Werner LEMBERG  <wl@gnu.org>
622         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
624 2003-12-29  Werner LEMBERG  <wl@gnu.org>
626         More fixes for MSVC compiler.
628         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
629         $(SEP).
631         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
632         STDERR_FILENO) [_MSC_VER]: Define conditionally.
633         (getpid) [_MSC_VER]: Remove.
634         Include direct.h and process.h conditionally.
636         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
637         parentheses for a_delete.
639         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
641         * test-groff: Replaced with...
642         * test-groff.in: This new template to handle path separator
643         properly.
645         * configure.ac: Check for direct.h and process.h.
646         Generate test-groff script.
647         * configure, src/include/config.hin: Regenerated.
649 2003-12-28  Werner LEMBERG  <wl@gnu.org>
651         Add integral extension glyph.
652         Add new option `-x' to afmtodit to suppress use of built-in AGL.
654         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
656         * font/devps/generate/textmap: Provide entry for `integralex' to
657         override (old) PUA value of the AGL.
658         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
659         * font/devps/*: Regenerated.
661         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
662         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
664 2003-12-27  Werner LEMBERG  <wl@gnu.org>
666         Add forgotten `coproduct' symbol (already available for DVI).
668         * font/devhtml/R.proto, font/devps/generate/textmap,
669         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
670         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
671         U+2210 (\[coproduct]).
673 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
675         hpftodit has been extended to handle TrueType metric files and
676         more glyphs.  See hpftodit.man for more details.
678         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
679         ctype.h, and unicode.h.
680         s/msl/charcode/ everywhere since we now handle Unicode values also.
681         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
682         Use it where appropriate.
683         (MULTIPLIER): Replaced with...
684         (multiplier): New global static variable.
685         (scale): Updated.
686         (tag_type): Add more TFM tags.
687         (tag_name): New array.
688         (ENUM_TYPE, FLOAT_TYPE): Removed.
689         (BYTE_TYPE): New value assigned.
690         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
691         (text_symbol_sets, special_symbol_sets): Extended to cover more
692         sets.
693         (check_type): Add return value.
694         (check_units): Add parameters to get ppi and upem values.
695         Handle TrueType TFM data.
696         (output_font_name): New function.
697         (output_charset): Add parameter to handle TFM type.
698         Handle TrueType TFMs also.
699         (em_fract): New macro.
700         (dump_tags): Be much more verbose and handle more tags.
701         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
702         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
703         functions.
704         (read_map): Add parameter to handle TFM type.
705         Handle both MSL and Unicode mappings.
706         (main): Add two new command line options `-a' and `-q'.
707         Updated to make use of new functions.
708         (usage): Updated.
710         * src/utils/hpftodit/hpuni.cpp: New file.
712         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
713         Updated.
715 2003-12-25  Werner LEMBERG  <wl@gnu.org>
717         * src/include/nonposix.h (read) [_MSC_VER]: Define.
719 2003-12-24  Werner LEMBERG  <wl@gnu.org>
721         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
722         by Michail Vidiassov <master@iaas.msu.ru>.
724 2003-12-20  Werner LEMBERG  <wl@gnu.org>
726         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
727         and u0049_0307.
728         Add missing latin-2 glyphs.
729         * font/devutf8/R.proto: Add missing latin-2 glyphs.
731         * tmac/troffrc: Load `composite.tmac' earlier.
733         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
734         u00{53,73}_0327, and u0049_0307.
735         * tmac/X.tmac: Add u00{47,67}_0306.
736         * tmac/tty-char.tmac: Use composite glyph names for readability.
738         * NEWS: Updated.
740         * src/include/unicode.h: Remove `extern' keywords.
742 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
744         * tmac/latin5.tmac: New file.
746 2003-12-19  Werner LEMBERG  <wl@gnu.org>
748         Add some glyphs needed for Turkish.
750         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
751         and u0049_0307.
753         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
754         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
755         u00{53,73}_0327, and u0049_0307.
757 2003-12-18  Werner LEMBERG  <wl@gnu.org>
759         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
760         from 2001-10-04.
761         Remove trailing zeros.
763 2003-12-17  Werner LEMBERG  <wl@gnu.org>
765         Make \? transparent to end-of-sentence recognition.
767         * src/roff/troff/input.cc (non_interpreted_node): Add
768         `ends_sentence' member function.
770 2003-12-16  Werner LEMBERG  <wl@gnu.org>
772         * doc/groff.texinfo: Document `dt' request correctly.
773         Other minor typographical improvements.
775 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
777         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
779 2003-12-10  Richard Stallman  <rms@gnu.org>
781         * LICENSE: Better wording.
783 2003-12-09  Werner LEMBERG  <wl@gnu.org>
785         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
786         * configure, NEWS: Updated.
788 2003-12-08  Werner LEMBERG  <wl@gnu.org>
790         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
792 2003-12-07  Bernd Warken  <bwarken@mayn.de>
794         * LICENSE: Updated.
796 2003-12-07  Werner LEMBERG  <wl@gnu.org>
798         * INSTALL: Improved.
800 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
802         Use path separator character of target platform for compiled-in
803         default paths.
805         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
806         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
807         * configure: Regenerated.
808         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
810 2003-12-05  Werner LEMBERG  <wl@gnu.org>
812         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
813         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
815 2003-12-04  Bernd Warken  <bwarken@mayn.de>
817         * LICENSE: New file.
819 2003-12-03  Werner LEMBERG  <wl@gnu.org>
821         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
822         ligatures present in AFM files since groff currently only
823         understands some standard ligatures and nothing else.
825 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
827         * src/roff/groff/groff.cpp (main): Don't run the spooler if
828         option -v is given.
830         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
831         messages.
832         Close stdout copy.
833         Don't use Unix wait flags.
835 2003-12-02  Werner LEMBERG  <wl@gnu.org>
837         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
838         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
839         src/roff/troff/uniuni.cpp: Moved to...
840         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
841         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
842         src/libs/libgroff/uniuni.cpp: Here.
844         * src/include/Makefile.sub.old (HDRS),
845         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
846         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
848 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
850         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
851         `DEBUG_FILE'.
852         Updated all users.
854 2003-12-01  Werner LEMBERG  <wl@gnu.org>
856         * groff.texinfo: Document special behaviour of `.vs 0'.
857         Improve documentation of `cflags' request.
858         * NEWS: Updated.
860 2003-11-29  Werner LEMBERG  <wl@gnu.org>
862         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
863         * font/devlj4/CORONET: Regenerated.
865 2003-11-24  Werner LEMBERG  <wl@gnu.org>
867         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
868         if processing hyphenation patterns in traditional mode.
869         Improve error messages.
871 2003-11-20  Werner LEMBERG  <wl@gnu.org>
873         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
874         troff_output_file::put_char): Fix type of local variable `c'.
876 2003-11-19  Werner LEMBERG  <wl@gnu.org>
878         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
879         declarations.
880         (i_to_a): Removed.  libgroff already provides this function.
881         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
883 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
885         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
886         HAVE_DECL_SYS_LIST.
888 2003-11-17  Werner LEMBERG  <wl@gnu.org>
890         * COPYING: Use correct version.
892 2003-11-11  Werner LEMBERG  <wl@gnu.org>
894         LynxOS 4.0.0 doesn't declare vfprintf.
896         * configure.ac: Check for vfprintf.
897         * configure: Regenerated.
898         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
899         * src/include/config.hin: Regenerated.
901 2003-11-10  Werner LEMBERG  <wl@gnu.org>
903         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
905         * configure.ac: Check for vsnprintf.
906         * configure: Regenerated.
907         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
908         `HAVE_VSNPRINTF'.
909         * src/include/config.hin: Regenerated.
911 2003-11-09  Werner LEMBERG  <wl@gnu.org>
913         * aclocal.m4: Updated syntax to autoconf 2.59.
914         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
915         Don't check for gsos2.
916         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
917         working abs_top_srcdir and abs_top_builddir.
919         * configure.ac: Updated syntax to autoconf 2.59.
920         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
921         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
922         * configure: Regenerated.
924         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
925         s/@groff_top_builddir@/@abs_top_builddir@/.
927         * src/roff/groff/pipeline.c (xstrsignal):
928         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
930 2003-11-07  Werner LEMBERG  <wl@gnu.org>
932         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
933         make start angle smaller than end angle to circumvent a bug in tpic
934         handling of some versions of dvipdfm (and dvipdfmx).
936 2003-10-30  Werner LEMBERG  <wl@gnu.org>
938         * src/devices/grops/grops.man: Improve section on creating EPS.
940 2003-10-29  Werner LEMBERG  <wl@gnu.org>
942         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
943         -P-pletter).
945 2003-10-28  Werner LEMBERG  <wl@gnu.org>
947         * doc/groff.texinfo: Fix documentation of `.if'.
949 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
951         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
952         the form `uniXXXX' also.
954 2003-10-27  Werner LEMBERG  <wl@gnu.org>
956         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
957         contrib/pic2graph/pic2graph.sh: Implement secure management of
958         temporary files.
959         Pass `-P-pletter' to groff to avoid data outside of the converted
960         area -- some versions of `convert' (for example 5.3.8) don't check
961         the bounding box of the image but always use a fixed image size
962         (letter paper format).
963         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
964         contrib/pic2graph/pic2graph.man: Updated.
966         * src/roff/groff/groff.man: Document $TMP and $TEMP.
968 2003-10-26  Werner LEMBERG  <wl@gnu.org>
970         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
971         troff_output::simple_ellipse, troff_output::simple_arc,
972         troff_output::simple_line, troff_output::simple_spline,
973         troff_output::simple_polygon): Insert a space before arguments.
974         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
975         latter doesn't produce a node, so the following `.sp -1' would do
976         the wrong thing.
977         Don't emit `.sp -1' after \M.  This also doesn't produce a token
978         (and we don't have to care about compatibility mode).
979         (troff_output::set_color, troff_output::reset_color): Don't emit
980         `.sp -1' after \M and \m.
982         * src/roff/troff/input.cpp (old_have_input): New global variable.
983         (input_stack::get): Handle `old_have_input'.
984         (process_input_stack) <token::TOKEN_NEWLINE>: Call
985         `trapping_blank_line' depending on `old_have_input', not
986         `have_input'.
988 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
990         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
991         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
992         default directory names for temporary files.
993         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
995         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
996         [__MSDOS__] (run_pipeline): Honour environment variables.
997         Don't use `tmpnam' but `tempnam' to work around messy
998         implementation.
1000         * README.MinGW: New file.
1002 2003-10-16  Werner LEMBERG  <wl@gnu.org>
1004         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1005         `(*t)->next' without testing validity of `*t'.
1006         (usage): Make it more readable.
1008 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
1010         Make html device run under both MS-DOS and Win32.
1012         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1013         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1014         spawn or fork+exec has to be used, and whether parent must sleep
1015         until the child process terminates.  Used in
1016         `char_buffer::run_output_filter'.
1017         (copyofstdoutfd): Removed.
1018         (char_buffer): Replace `write_file_html' and `write_file_troff'
1019         member functions with `emit_troff_output' and `run_output_filter'.
1020         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1021         macros.
1022         (replaceFd): Replaced with...
1023         (set_redirection): New auxiliary function.
1024         (waitForChild): Replaced with...
1025         (save_and_redirect): New auxiliary function for.
1027         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1028         functions.
1030 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1032         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1033         (GROFF_LIBC): New function.
1034         * configure.ac: Call GROFF_LIBC.
1035         Check for `kill'.
1036         * configure: Regenerated.
1038         * src/include/lib.h: Handle __MINGW32__.
1039         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1040         Add macro for `pipe'.
1041         Define P_tmpdir.
1043         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1044         correctly.
1046         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1047         Implement.
1049 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1051         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1052         <chuq@chuq.com>.
1054         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1055         directory.
1057 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1059         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1060         src/roff/troff/input.cc (usage): Updated.
1062         * NEWS, doc/groff.texinfo: Updated.
1064 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
1066         * src/libs/libgroff/searchpath.cpp
1067         (search_path::open_file_cautious): New function which also handles
1068         `-' as stdin and stdout depending on the access mode.
1069         * src/include/searchpath.h (search_path): Updated.
1071         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1072         * src/devices/grops/ps.h: Include `searchpath.h'.
1073         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1074         Open resource file with `include_search_path.open_file_cautious'.
1075         * src/devices/grops/grops.man: Document new `-I' switch.
1077         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1078         (main), src/devices/grolj4/lj4.cpp (main),
1079         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1081         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1082         Replaced with...
1083         (include_search_path): New global variable.
1084         (include_path_append): Removed.
1085         (main): Use `include_search_path.command_line_dir' to handle `-I'.
1086         (do_file): Simplify, using new
1087         `include_search_path.open_file_cautious'.
1089         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1090         parameter.
1091         (main): Pass arguments to `-I' to both troff and devices.
1092         Improve handling of `-V'.
1093         * src/roff/groff/groff.man: Document changes to -I and -V.
1095         * src/roff/troff/input.cpp (include_search_path): New global
1096         variable.
1097         (next_file, source, ps_bbox_request, transparent_file,
1098         process_input_file): Use new
1099         `include_search_path.open_file_cautious'.
1100         (main) Handle `-I' switch.
1101         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1102         Use new `include_search_path.open_file_cautious'.
1103         * src/roff/troff/node.h: New extern symbol `include_search_path'.
1104         * src/roff/troff/troff.man: Document new `-I' switch.
1106 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
1108         Support multiple calls of .Lb in LIBRARY section.
1110         * tmac/doc-common (doc-in-library-section): New register.
1111         (doc-section-library): New string.
1112         (Sh): Set `doc-in-library-section'.
1113         (Rd): Updated.
1114         * tmac/doc-syms (Lb): Insert breaks before and after arguments
1115         if in LIBRARY section.
1116         * tmac/doc.tmac (doc-save-global-vars): Updated.
1117         * NEWS, tmac/groff_mdoc.man: Updated.
1119 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
1121         * tmac/doc-common (doc-default-operating-system): New variable.
1122         (Os): Use it.
1124 2003-09-08  Werner LEMBERG  <wl@gnu.org>
1126         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1128 2003-08-31  Werner LEMBERG  <wl@gnu.org>
1130         * contrib/mom/Makefile.sub: Fix last change to make it really work.
1131         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1132         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1133         $(DEVFILES) are not empty.
1134         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1136 2003-08-26  Chuck Silvers  <chuq@chuq.com>
1138         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1139         with parallel runs of `make'.
1141 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
1143         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1144         insert SORT_SEP.  With certain combinations of sort specifications,
1145         refer sorted entries in the wrong order.  In particular, entries
1146         with a missing field should be be sorted before all entries that
1147         have that field, before refer looks to the next field.
1149 2003-08-23  Werner LEMBERG  <wl@gnu.org>
1151         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1152         g++ linker is used.  Reported by Mark J. Reed
1153         <mark.reed@turner.com>.
1155 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1157         Add key character `x' to tbl which makes tbl call a user-defined
1158         macro on a table cell.
1160         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1161         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1162         `set_modifier' after printing the compatibility request.
1163         (set_modifier): Print call to `m->macro' if not empty.
1164         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1165         `macro'.
1166         (process_format): Implement cases `x' and `X'.
1167         * src/preproc/tbl/tbl.man, NEWS: Updated.
1169 2003-08-15  Werner LEMBERG  <wl@gnu.org>
1171         * doc/groff.texinfo: Minor fixes.
1173 2003-08-09  Werner LEMBERG  <wl@gnu.org>
1175         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1177 2003-08-07  Werner LEMBERG  <wl@gnu.org>
1179         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1180         argument list to nothing if there is no file to match.  Use `ls' as
1181         a protection, similar to autoconf.
1183         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1184         empty argument lists.
1186         * doc/groff.texinfo: Improve documentation how vertical spacing
1187         and line breaks interact.
1188         Other minor fixes.
1190         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1192 2003-08-03  Werner LEMBERG  <wl@gnu.org>
1194         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1195         EPS (using eps2eps or similar programs to compute the bounding box).
1197 2003-07-24  Werner LEMBERG  <wl@gnu.org>
1199         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1200         * doc/texinfo.tex: Updated from texinfo 4.6.
1201         * README.CVS: From now on we need texinfo 4.6.
1203 2003-07-23  Werner LEMBERG  <wl@gnu.org>
1205         Add requests `dei1' and `ami1' for completeness.
1207         * src/roff/troff/input.cc (calling_mode): Remove
1208         CALLING_DISABLE_COMP.
1209         (comp_mode): New enumeration.
1210         (do_define_string, define_string, define_nocomp_string,
1211         append_string, append_nocomp_string): Updated.
1212         (do_define_macro): Add third parameter.
1213         (define_macro, define_nocomp_macro, define_indirect_macro,
1214         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1215         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1216         functions.
1217         (ignore): Updated.
1218         (init_input_requests): Add `dei1' and `ami1'.
1220         * tmac/trace.tmac: Handle de1 and am1.
1221         (de): Improve tracing message.
1222         (am): Add missing `do'.
1223         (return): Use de1.
1225         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1226         Document new requests.
1228 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1230         Add option -G to .MPIMG to insert a gap between text and the image.
1232         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1233         www-finish-left-ll): Updated.
1234         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1235         (MPIMG): Make option -L and -R optional.
1236         Implement option -G.
1238 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
1240         * src/devices/grohtml/post-html.cpp
1241         (html_printer::do_file_components): Don't use `stdout' as lvalue
1242         since it can be a macro.
1244 2003-07-22  Werner LEMBERG  <wl@gnu.org>
1246         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1247         the corresponding test in aclocal.m4.
1249 2003-07-21  Werner LEMBERG  <wl@gnu.org>
1251         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1252         names but RGB values directly.  Otherwise pnmtopng depends on
1253         an external file `rgb.txt' which maps colour names to values.
1255 2003-07-20  Werner LEMBERG  <wl@gnu.org>
1257         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1258         * configure, src/include/config.hin: Regenerated.
1260         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1262 2003-07-19  Werner LEMBERG  <wl@gnu.org>
1264         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1266 2003-07-18  Werner LEMBERG  <wl@gnu.org>
1268         * *.man: Switch to non-compatibility mode temporarily if GNU
1269         syntax extensions are used in the particular man page.
1271         * PROBLEMS: Add solutions for SGR problems.
1273 2003-07-17  Werner LEMBERG  <wl@gnu.org>
1275         Don't ignore grotty's command line options if \X'tty: sgr ...' is
1276         used to change the drawing scheme.
1278         * src/devives/grotty/tty.cpp (bold_flag_option,
1279         underline_flag_option, italic_flag_option, reverse_flag_option,
1280         bold_underline_mode_option): New global variables.
1281         (update_options): New function.
1282         (tty_printer::special): Call update_options.
1283         (main): Don't set xxx_flag but xxx_flag_option, then call
1284         update_options.
1286 2003-07-14  Werner LEMBERG  <wl@gnu.org>
1288         Make grotty emit proper Unicode box drawing characters for -Tutf8.
1290         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1291         values.
1292         (hline_char, vline_char): New global variables.
1293         (tty_printer::tty_printer): Initialize them.
1294         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1295         horizontal and vertical lines.
1296         (crossings): New global array.
1297         (tty_printer::end_page): Use it to determine the proper crossing
1298         character for -Tutf8.
1300 2003-07-12  Werner LEMBERG  <wl@gnu.org>
1302         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1303         (HTMLDOCFILES): Revert to `pic.html'.
1304         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1306 2003-07-11  Werner LEMBERG  <wl@gnu.org>
1308         * doc/pic.ms: Improve documentation of absolute coordinates.
1309         Document absolute positioning of pictures.
1311         * NEWS: Add new pic capability.
1313 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
1315         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1316         Rewritten.
1318 2003-07-07  Werner LEMBERG  <wl@gnu.org>
1320         Implement support for dashed and dotted ellipses in pic.  Based on
1321         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1323         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1324         common_output::dashed_ellipse, common_output::dotted_ellipse): New
1325         functions.  Ellipse arcs are approximated with circle arcs.
1326         * src/preproc/pic/common.h (common_output): Updated.
1327         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1328         functions.
1329         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1331         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1333 2003-07-06  Werner LEMBERG  <wl@gnu.org>
1335         Make grotty work on platforms which have unsigned char as the
1336         default for char.  Based on a patch by Thomas Klausner
1337         <wiz@netbsd.org>.
1339         * src/devices/grotty/tty.cpp (schar): New typedef.
1340         Updated calls to declare_ptable and implement_ptable.
1341         (glyph): Use schar for back_color_idx and fore_color_idx.
1342         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1343         (tty_printer::tty_color, tty_printer::tty_printer,
1344         tty_printer::color_to_idx, tty_printer::put_color): Updated.
1346 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1348         * src/roff/nroff/nroff.sh: Add option -d for completeness.
1349         * src/roff/nroff/nroff.man: Updated.
1351 2003-07-05  Werner LEMBERG  <wl@gnu.org>
1353         * NEWS, tmac/groff_www.man: Updated.
1354         * doc/Makefile.sub: Updated.
1356 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
1358         Implement support for multiple HTML output files.
1360         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1361         -j command line option.
1363         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1364         global variables.
1365         (file): New fields `new_output_file', `require_links',
1366         `output_file_name'.
1367         (file::file): Updated.
1368         (files::set_file_name, files::set_links_required,
1369         files::are_links_required, files::is_new_output_file,
1370         files::file_name, files::next_file_name): New functions.
1371         (header_desc): New fields `no_of_level_one_headings',
1372         `header_filename'.
1373         (header_desc::header_desc): Updated.
1374         (header_desc::write_headings): Handle multiple files.
1375         (html_printer::write_header): Save file name in which header occurs.
1376         (html_printer::determine_header_level): Possibly split files on
1377         level one headings.
1378         (html_printer::do_links, html_printer::troff_tag): Updated.
1379         (html_printer::insert_split_file, html_printer::do_job_name,
1380         html_printer::emit_link, html_printer::write_navigation,
1381         html_printer::do_file_components): New functions.
1382         (html_printer::~html_printer): Handle multiple files.
1383         (main): Handle command line option `-j'.
1385         * src/devices/grohtml/grohtml.man: Updated.
1387         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1388         which splits file.
1390         * tmac/www.tmac (JOBNAME): New macro.
1391         * tmac/s.tmac (SH-NO-TAG): New macro.
1392         (@SH): Call SH-NO-TAG.
1393         (@NH): Updated.
1395 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1397         * tmac/groff_mdoc.man: Improve documentation of punctuation
1398         characters.
1400 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
1402         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1404 2003-07-03  Werner LEMBERG  <wl@gnu.org>
1406         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1408 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
1410         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1411         after `/*' and `*/'.
1412         Fix spacing.
1413         (Fn, Fo): Reduce indentation in synopsis.
1415         * tmac/doc-common (doc-check-depth): New macro.
1416         (doc-end-macro, Sh, Ss): Use it.
1417         (Cd): Fix behaviour in synopsis.
1418         (In): Make it parsed and callable.
1419         If not in the synopsis, represent the C header file enclosed in
1420         angle brackets.
1421         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1422         Use minus, not hyphen.
1424         * tmc/groff_mdoc.man: Updated.
1426 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1428         Integrated grap2graph, contributed by Eric S. Raymond.
1430         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1431         New files.
1432         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1433         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1435 2003-07-01  Colin Watson  <cjwatson@debian.org>
1437         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1438         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1440 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1442         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1444 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1446         * doc/Makefile.sub (CLEANADD): Remove all files created by
1447         running `make groff.{pdf,dvi}'.
1449         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1450         src/xditview also.
1452 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1454         * Makefile.in (SHELL): Define as @SHELL@.
1455         (mkinstalldirs): Use $(SHELL).
1456         (MDEFINES): Add $(SHELL).
1457         * Makefile.comm (SHELL): Removed.
1459 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1461         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1462         The X11 documentation files use them.
1463         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1465 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1467         * tmac/e.tmac (@C): Handle .ad also.
1469 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1471         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1473         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1474         Assign `n' even here.  It is possible to construct a node
1475         immediately following an escape character:
1477           .di xx
1478           \?\\\?a
1479           .br
1480           .di
1481           .xx
1483 2003-06-10  Werner LEMBERG  <wl@gnu.org>
1485         * README.WIN32: Removed.
1486         * MANIFEST: Updated.
1488 2003-06-07  Werner LEMBERG  <wl@gnu.org>
1490         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1492 2003-06-05  Werner LEMBERG  <wl@gnu.org>
1494         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1495         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1497 2003-06-03  Werner LEMBERG  <wl@gnu.org>
1499         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1500         is done by the calling function.
1502 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
1504         * tmac/X.tmac: Fix definition of `em'.
1506 2003-05-22  Werner LEMBERG  <wl@gnu.org>
1508         * src/roff/troff/input.cc (return_macro_request): Fix detection of
1509         argument.
1511 2003-05-18  Werner LEMBERG  <wl@gnu.org>
1513         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1514         to make items work which consist only of a tag.
1516 2003-05-17  Werner LEMBERG  <wl@gnu.org>
1518         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1519         aren't stretched in a tag (this can fail with unformatted boxes).
1520         Instead, insert a break and go back one line.
1522 2003-05-16  Werner LEMBERG  <wl@gnu.org>
1524         * src/roff/troff/input.cc (return_macro_request): If called with
1525         argument pop macro twice.  We need this to trace `return'.
1527         * tmac/trace.tmac: Handle `return'.
1528         Fix typos.
1530         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1531         Document.
1533 2003-05-15  Larry Kollar  <kollar@alltel.net>
1535         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1536         registers `FPS', `FVS', and `FPD'.
1538 2003-05-15  Werner LEMBERG  <wl@gnu.org>
1540         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1541         correctly.
1543 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
1545         * tmac/groff_mdoc.man: Slight improvements.
1547 2003-05-03  Werner LEMBERG  <wl@gnu.org>
1549         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1550         `doc-header-space' after header line if register `cR' is set.
1552 2003-05-02  Werner LEMBERG  <wl@gnu.org>
1554         * TODO: Updated.
1556 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
1558         * tmac/doc-common (Nd): Use \[em].
1560 2003-05-01  Werner LEMBERG  <wl@gnu.org>
1562         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1563         doc-footer-space): Initialize to 0.5i.
1564         (doc-setup-page-layout): Don't set doc-header-space and
1565         doc-footer-space.
1567 2003-04-30  Werner LEMBERG  <wl@gnu.org>
1569         * REVISION: Set to 1.
1571         * doc/pic.ms: Document possible problems with `figname'.
1573 2003-04-29  Werner LEMBERG  <wl@gnu.org>
1575 Version 1.19 released
1576 =====================
1578         * VERSION: Set to 1.19.
1579         * REVISION: Set to 0.
1580         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1582         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1583         Define charset as `US-ASCII' in html output.
1585         * tmac/www.tmac (ULE): Add missing scaling indicator.
1587         * win32-diffs: Removed.
1589 2003-04-28  Werner LEMBERG  <wl@gnu.org>
1591         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1592         `.da' and `.boxa'.
1593         Document how to insert discardable whitespace with `.ss'.
1595 2003-04-27  Werner LEMBERG  <wl@gnu.org>
1597         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1598         work with plain TeX also.
1600         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1602 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
1604         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1605         Use a loose DTD.
1607 2003-04-24  Werner LEMBERG  <wl@gnu.org>
1609         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1610         vbox with positive height and zero depth if in TeX mode.
1612         * NEWS: Document glyph name changes for grodvi and grolj4.
1614 2003-04-23  Werner LEMBERG  <wl@gnu.org>
1616         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1617         * doc/pic.ms: Fixed.
1619 2003-04-21  Werner LEMBERG  <wl@gnu.org>
1621         HP-UX 10.20 has `snprintf' but it isn't declared.
1623         * configure.ac: Add declaration test for snprintf.
1624         * configure: Regenerated.
1625         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1626         * src/include/config.hin: Regenerated.
1628 2003-04-19  Werner LEMBERG  <wl@gnu.org>
1630         Add keyword `figname' to pic, specifying the name of the picture
1631         box in TeX mode.  Based on a patch from William J Poser
1632         <wjposer@unagi.cis.upenn.edu>.
1634         * src/preproc/pic/pic.y: New token `FIGNAME'.
1635         (macro_name): New rule of type <str>.
1636         (placeless_element): Handle `FIGNAME'.
1637         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1638         * src/preproc/pic/main.cpp (graphname): New global variable.
1639         (do_picture): Initialize `graphname'.
1640         * src/preproc/pic/pic.h: Updated.
1641         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1642         `graphname'.
1643         Simplify TeX code.
1644         (tex_output::text): Beautify output.
1645         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1646         `shaded' and `outlined' unconditionally.
1647         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1648         Minor improvements.
1650         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1651         greater is necessary.
1653 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
1655         Add option -r to soelim to avoid emission of `.lf' lines.
1656         Add option -t to produces TeX comment lines instead of `.lf' lines.
1658         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1659         and `tex_flag'.
1660         (usage): Updated.
1661         (main): Handle `-r' and `-t'.
1662         (set_location): Handle `raw_flag' and `tex_flag'.
1663         * src/preproc/soelim/soelim.man, NEWS: Updated.
1665 2003-04-17  Werner LEMBERG  <wl@gnu.org>
1667         * tmac/hyphenex.sh: Replaced with...
1668         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1669         nightmares.
1671         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1672         if --quiet is used for the configure script.
1673         * configure: Regenerated.
1675 2003-04-16  Werner LEMBERG  <wl@gnu.org>
1677         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1678         Add `const' to second argument.
1679         (html_printer::add_table_end): Add `const' to argument.
1680         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1681         `const' to arguments.
1682         * src/devices/grohtml/html-text.h: Updated.
1684         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1685         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1686         argument.
1688         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1689         cast for integer constant.
1691         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1692         (writeNbytes): Add `const' to first argument.
1693         (writeString): Add `const' to argument.
1694         (char_buffer::can_see): Add `const' to third argument.
1695         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1696         `const' to argument.
1697         * src/preproc/html/pushback.h: Updated.
1699         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1700         (include_path_append): Add `const' to argument.
1701         (do_file): Updated.
1703         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1704         for `value'.
1705         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1706         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1707         for `value'.
1708         (unicode_decompose_init::unicode_decompose_init): Updated.
1709         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1710         for `value'.
1711         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1712         * src/roff/troff/input.cc (process_startup_file): Add `const' to
1713         argument.
1715         * tmac/hyphenex.sh: Make script more portable by using a here
1716         document.
1718 2003-04-15  Werner LEMBERG  <wl@gnu.org>
1720         Renamed all `*.cc' files to `*.cpp'.
1721         Updated all configuration files, makefiles, and documentation.
1723 2003-04-14  Werner LEMBERG  <wl@gnu.org>
1725         * tmac/hyphenex.sh: Slight improvements.
1727 2003-04-13  Werner LEMBERG  <wl@gnu.org>
1729         * font/devascii/R.proto, font/devcp1037/R.proto,
1730         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1731         character slots with unnamed glyphs.
1733         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1734         (an-first): New global variable.
1735         (an-header): Emit vertical space between multiple man pages.
1737 2003-04-11  Werner LEMBERG  <wl@gnu.org>
1739         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1740         values.
1742 2003-04-10  Werner LEMBERG  <wl@gnu.org>
1744         * PROBLEMS: Revised.
1746 2003-04-10  Bernd Warken  <bwarken@mayn.de>
1748         * doc/webpage.ms: Improved.
1750 2003-04-09  Werner LEMBERG  <wl@gnu.org>
1752         Add register \n[.height] which returns the value of \H.
1753         Add register \n[.slant] which returns the value of \S.
1755         * src/roff/troff/env.cc (init_env_requests): Implement.
1756         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1757         Document.
1759 2003-04-08  Werner LEMBERG  <wl@gnu.org>
1761         * tmac/html.tmac: Move some of the data into html-end.tmac.
1762         Remove most of the character translations for eqn since html fonts
1763         now cover those characters.
1764         Load www.tmac.
1765         * tmac/html-end.tmac: New file.
1766         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1767         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1768         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1770 2003-04-07  Werner LEMBERG  <wl@gnu.org>
1772         * man/groff_out.man: Document negative values of `N' if -Thtml is
1773         used.
1775 2003-04-06  Werner LEMBERG  <wl@gnu.org>
1777         * Makefile.comm (depend.temp): Check location of YTABC.
1779 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1781         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1782         binary path.
1783         (groff_bin_path): Rename to GROFF_BIN_PATH.
1784         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1785         * doc/Makefile.in (TROFFBIN): New variable for troff
1786         binary path.
1787         (GROFFBIN): New variable for groff binary path.
1788         (groff_bin_path): Rename to GROFF_BIN_PATH.
1789         (TROFF): Use TROFFBIN.
1790         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1791         * doc/Makefile.sub (GROFFBIN): New variable for groff
1792         binary path.
1793         (groff_bin_path): Rename to GROFF_BIN_PATH.
1794         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1796         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1797         with INSTALL_SCRIPT.
1798         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1799         * Makefile.dev (all): Depend on DEVSCRIPTS.
1800         (install_dev): Likewise.
1801         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1802         scripts.
1803         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1804         (DEVGENSCRIPTS): New variable to hold generated scripts.
1806 2003-04-05  Werner LEMBERG  <wl@gnu.org>
1808         * src/libs/libdriver/input.cc (IntArray::operator[],
1809         IntArray::get_data): Remove meaningless `const' in return value.
1811         * README.CVS: New file.
1813 2003-04-04  Werner LEMBERG  <wl@gnu.org>
1815         Check for stdint.h in C++, not in C.
1817         * aclocal.m4 (GROFF_STDINT_H): New function,
1818         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1819         AC_CHECK_HEADERS.
1820         * configure, src/include/config.hin: Regenerated.
1821         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1824         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
1825         with a negative value, representing the width of the unbreakable
1826         space (only for -Thtml).  grohtml then converts this back to
1827         &nbsp; and uses the value of N as its width.
1829         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1830         unbreakable_space_node::tprint): Emit `N-<width>'.
1831         * src/include/printer.h (printer::set_numbered_char): Make it
1832         virtual.
1833         Make members `font_table' and `nfonts' protected instead of private.
1834         * src/devices/grohtml/post-html.cc
1835         (html_printer::set_numbered_char): New member function.
1838         * src/libs/libgroff/maxfilename.cc:
1839         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1841         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1842         emit word marker.
1844 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
1846         * man/roff.man: Small fixes.
1848 2003-04-03  Werner LEMBERG  <wl@gnu.org>
1850         Make groff independent from locale's numeric settings.
1852         * configure.ac: Check for `setlocale'.
1853         * configure, src/include/config.hin: Regenerated.
1855         * src/include/lib.h: Handle HAVE_SETLOCALE.
1857         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1858         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1859         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1862         * doc/groff.texinfo: Change dir category to `Typesetting'.
1863         (Man font macros): Mention that there is no space between arguments
1864         of .BI and friends.
1866         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1867         (*printer::change_color, *printer::change_fill_color): Add missing
1868         `const'.
1870 2003-04-02  Werner LEMBERG  <wl@gnu.org>
1872         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1873         html_table::is_gap): Compute table widths after converting border
1874         positions to avoid rounding errors.
1876 2003-04-01  Werner LEMBERG  <wl@gnu.org>
1878         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1879         `space_emitted' properly.
1881 2003-03-31  Werner LEMBERG  <wl@gnu.org>
1883         * src/devices/grohtml/html-table.cc: Fix column width calculation.
1884         (html_table::set_linelength): Don't add 1.
1885         (html_table::add_indent): Don't subtract 1.
1887         * tmac/html.tmac: Set default page offset to zero.
1889 2003-03-30  Werner LEMBERG  <wl@gnu.org>
1891         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
1893         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1894         unbreakable_space_node::tprint): New functions.
1895         (troff_output_file): Make space_char_hmotion_mode::tprint and
1896         unbreakable_space_node::tprint to friends.
1897         * src/roff/troff/node.h: Updated.
1899         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
1900         in the HTML standard).
1902 2003-03-29  Werner LEMBERG  <wl@gnu.org>
1904         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1905         Otherwise, the following code
1907           .di xxx
1908           .ps 10
1909           a
1910           .br
1911           .di
1912           x\*[xxx]
1914         produces `x a' instead of `xa'.  This is a temporary fix, disabling
1915         font changes in diversions for -Thtml.
1917         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1918         `HTML-TAG'.
1919         (an-do-tag-html): Merge with ...
1920         (an-do-tag): This macro.
1921         Change code slightly to circumvent grohtml bug.
1922         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1924         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1925         html_table::is_gap): Round `width' properly.
1927         * tmac/html.tmac: Provide some default layout parameters for
1928         grohtml.
1930         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1931         command.
1933 2003-03-28  Werner LEMBERG  <wl@gnu.org>
1935         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1937 2003-03-27  Werner LEMBERG  <wl@gnu.org>
1939         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1940         defined.
1942 2003-03-20  Werner LEMBERG  <wl@gnu.org>
1944         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1945         `.vs'.
1946         * doc/groff.texinfo: Updated.
1948 2003-03-19  Werner LEMBERG  <wl@gnu.org>
1950         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1951         TOKEN_END_TRAP>: Reset `have_input'.
1953 2003-03-18  Werner LEMBERG  <wl@gnu.org>
1955         * src/roff/groff/groff.man: Mention groff_trace man page.
1957 2003-03-16  Werner LEMBERG  <wl@gnu.org>
1959         * Makefile.in (LIBEXT): New variable to indicate the file extension
1960         of library files.  Computed heuristically from $(OBJEXT).
1961         (MDEFINES): Add $(LIBEXT).
1962         * Makefile.lib, Makefile.comm: Use it.
1964         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
1965         overlong lines into smaller chunks.
1966         (get_binary): New function.
1967         (main): Use them.
1968         * src/utils/pfbtops/pfbtops.man: Updated.
1970 2003-03-15  Colin Watson  <cjwatson@debian.org>
1972         * src/roff/groff/groff.man: Minor syntax fix.
1974 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
1976         * src/devices/grops/ps.cc (ps_printer::media_set,
1977         ps_printer::~ps_printer): Handle zero paper width and length.
1979 2003-03-13  Werner LEMBERG  <wl@gnu.org>
1981         Add options -p and -l to grodvi.
1983         * src/devices/grodvi/dvi.cc: Include paper.h.
1984         (landscape_flag, user_paper_length, user_paper_width): New global
1985         variables.
1986         (dvi_printer::begin_page): Emit `papersize' special.
1987         Set color after initialization of `cur_h' and `cur_v'.
1988         (main): Add options `-l' and `-p'.
1989         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1990         * src/devices/grodvi/grodvi.man, NEWS: Updated.
1992         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1994 2003-03-12  Werner LEMBERG  <wl@gnu.org>
1996         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1997         * man/groff_tmac.man: This man page.
1998         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1999         deprecated.
2001         * tmac/X.tmac: Don't load pspic.tmac.
2003 2003-03-11  Werner LEMBERG  <wl@gnu.org>
2005         Make variable `pr' local to libdriver/input.cc.  Based on a patch
2006         by Bernd Warken <bwarken@mayn.de>.
2008         * src/include/driver.h (pr): Removed.
2010         * src/libs/libdriver/input.cc (pr): New global variable.
2011         (do_file): Deallocate `pr'.
2012         * src/libs/libdriver/printer.cc (pr): Removed.
2014         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2015         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2016         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2017         (main): Don't delete `pr'.
2019 2003-03-10  Werner LEMBERG  <wl@gnu.org>
2021         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2022         * tmac/papersize.tmac: New file.
2023         * tmac/troffrc: Include `papersize.tmac'.
2024         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2025         * tmac/an-old.tmac: Set LT to LL by default.
2027         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2028         doc/groff.texinfo: Updated.
2030         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2031         bug which caused all odd iso papers to have wrong dimensions.
2033         * src/devices/grops/ps.cc (user_paper_width): New global variable.
2034         (main) <'p'>: Set `user_paper_width' also.
2035         (ps_printer::media_width, ps_printer::media_height): Use values
2036         given with option `-p'.
2038 2003-03-09  Werner LEMBERG  <wl@gnu.org>
2040         * src/include/nonposix.h: Provide default for SET_BINARY.
2042         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2043         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2044         unconditionally.
2046         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2047         (main): Treat \r\n as \n.
2049 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2051         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2052         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2054 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2056         Added support to access more than 256 glyphs in Type 1 fonts.
2058         * src/devices/grops/ps.cc (subencoding): New structure.
2059         (style): Add `sub' field.
2060         Updated all users.
2061         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2062         Add `set_subencoding', `get_subfont' and `encode_subfont' member
2063         functions.
2064         Updated all users.
2065         (ps_printer::set_char): Use `set_subencoding'.
2066         (make_subencoding_name): New function.
2067         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2068         (ps_printer::~ps_printer): Emit subencoding definitions.
2070         * src/devices/grops/psrm.cc (valid_input_table): New array to
2071         properly support EBCDIC.
2072         (white_space): Add `\f'.
2073         (ps_get_line): Change first argument to be of type `string &'.
2074         Updated all callers.
2075         This allows to get lines of arbitrary length.
2076         Use `valid_input_table'.
2077         Remove warning about non-conforming PS line length.  This seems
2078         not to be of great importance -- for example, dvips don't emit
2079         a warning either.
2080         (PS_LINE_MAX): Removed.
2081         (matches_comment): Change first argument to be of type `string &'.
2083         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2085         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2086         %AGL_to_unicode, %default_ligatures): New hash tables.
2087         Read all map entries.
2088         Add unencoded characters.
2089         Check for default ligatures if there are no `L' entries.
2090         Print all kern entries.
2091         Print all characters in charset.
2092         * src/utils/afmtodit/afmtodit.man: Updated.
2094         * font/devps/*: Regerated all fonts.
2096         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2097         of characters, just use `.trin'.  Otherwise the mapping depends
2098         on the font encoding.
2099         * tmac/ps.tmac: Add `fi' and `fl'.
2100         Improve `Fi' and `Fl'.
2101         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2102         * tmac/Xps.tmac: Fix `em'.
2104         * NEWS: Updated.
2106 2003-03-04  Werner LEMBERG  <wl@gnu.org>
2108         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2109         `have_input'.
2111 2003-03-03  Werner LEMBERG  <wl@gnu.org>
2113         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2115         * font/devps/generate/textmap: Remove entry `similarequal'.
2116         * font/devps/symbolmap: Updated.
2118 2003-03-02  Werner LEMBERG  <wl@gnu.org>
2120         * src/libs/libgroff/font.cc (font::load): Fix error message for
2121         bad character type.
2123         * src/devices/grops/grops.man: Improve documentation of the -b
2124         flag.
2126         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2127         `ascii' and `cp1047'.
2129 2003-03-01  Werner LEMBERG  <wl@gnu.org>
2131         Document composite glyphs and the `composite' request.
2133         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2135 2003-02-28  Werner LEMBERG  <wl@gnu.org>
2137         * font/devdvi/generate/ec.map: Add some more Unicode entities.
2138         * font/devdvi/*EC: Updated.
2140         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2141         * tmac/latin1 (latin1-tr): Undo any previous mapping.
2142         * tmac/troffrc: Load `composite.tmac'.
2143         * tmac/Makefile.sub (NORMALFILES): Updated.
2145         * doc/groff.texinfo (Input Encodings): New section.
2146         * NEWS: Updated.
2148 2003-02-27  Werner LEMBERG  <wl@gnu.org>
2150         * doc/texinfo.tex: New version 2003-02-11.06.
2152         * tmac/doc-common (Dt): Don't emit warning for unknown section.
2153         * tmac/groff_mdoc.man: Fix description of `Dt'.
2155 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
2157         * font/devps/prologue.ps: Fix for included Postscript that does
2158         a setpagedevice -- which is now safely ignored.
2160         * NEWS: Updated.
2162         * src/devices/grops/ps.cc: Now sets the page size in the generated
2163         document.  This is done in two ways: Via a %%-comment for gv and
2164         the like, and via a PageSize and setpagedevice for programs that
2165         understands Postscript proper, like ps2pdf.
2167         * src/devices/grops/ps.h: New broken-flag to avoid page size
2168         definition, if required.
2170         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2172         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2173         Not really necessary due to the fix in prologue.ps, but cleaner:
2174         Such information does not belong in an .eps file.
2176         * doc/Makefile.sub: See doc/Makefile.in.
2178 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
2180         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2181         instead of P1 since the latter is broken in some versions of netpbm.
2182         * configure: Updated.
2184 2003-02-26  Larry Kollar  <kollar@alltel.net>
2186         Make man pages more customizable.
2188         * tmac/an-old.tmac (FT): New register holding footer distance from
2189         bottom.
2190         (HF): New string holding the default heading font.
2191         (TH): Handle registers `IN' and `SN' set on the command line.
2192         Use `FT'.
2193         (PT, BT): New strings to customize header and footer lines.
2194         (an-header, an-footer): Use them.
2195         (SH, SS): Use `HF'.
2196         * tmac/groff_man.man: Document changes.
2198         * doc/groff.texinfo: Document man changes.
2199         Document Ultrix extensions of man.
2201 2003-02-26  Werner LEMBERG  <wl@gnu.org>
2203         * src/roff/troff/input.cc (do_width, do_if_request): Reset
2204         `have_input' after changing back to old environment.
2206         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2207         function up to be defined before first call.  This is necessary to
2208         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2210         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2211         the default font directory also.  Based on a patch from James
2212         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2213         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2214         * src/utils/afmtodit/afmtodit.man: Document it.
2216         * NEWS: Updated.
2218         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2220 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
2222         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2223         (GROFF_PNMTOPS_NOSETPAGE): New macro.
2224         * configure.ac: Use it.
2225         * configure: Regenerated.
2226         * Makefile.in: Updated.
2228         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2229         (CLEANADD): Add www.tmac-sed.
2230         (pnmtops_nosetpage): Define default.
2231         (install_data): Handle www.tmac-sed and substitute
2232         @PNMTOPS_NOSETPAGE@.
2233         (stamp-sed): Add www.tmac.
2234         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2235         It now breaks URLs at suitable places.
2236         (www:substring_ok): New register set by...
2237         (www:@test_substring): New macro.
2238         (www:error): New alias to www-error.
2239         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2240         New macros.
2241         (URL): Use www:url_breaks.
2242         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2243         (CDS, CDE): New macros.
2245 2003-02-25  Werner LEMBERG  <wl@gnu.org>
2247         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2248         buffer overflow.
2250 2003-02-24  Werner LEMBERG  <wl@gnu.org>
2252         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2253         can be negative also.
2255         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2256         `int16'.
2257         (read_char_table): Avoid negative ascenders.
2258         (output_charset): Add cast.
2259         * font/devlj4/*: Regenerated.
2261         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2262         possible.
2264         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2265         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2266         of `<>'.
2267         * font/devdvi/*: Regenerated.
2269         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
2270         normal width, while the previously used characters (U+2329 and
2271         U+232A) are classified as wide due to canonical equivalence with the
2272         CJK punctuation characters U+3008 and U+3009.
2274         * font/devutf8/R.proto: Updated.
2275         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2277         * man/groff_char.man: Simplify handling of table traps by
2278         introducing `start block' and `end block' macros.
2279         (Ns, Ne, 2s, 2e, Ds, De): New macros.
2280         (DL): Make it work with Unix troff also.
2281         Fix code values of `la' and `ra'.
2283         * tmac/dvi.tmac: Define `<>' for CW and CWI.
2285 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
2287         * src/devices/grohtml/post-html.cc (element_list::~element_list):
2288         New destructor, fixing a major memory leak.
2290 2003-02-22  Werner LEMBERG  <wl@gnu.org>
2292         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2293         to be in conformance with Unicode 3.0 and newer.
2295         * font/devlj4/generate/text.map: Add `Eu'.
2296         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2297         * font/devlj4/S: Regenerated.
2299         * man/groff_char.man: Completely rewritten.
2301         * doc/groff.texinfo: Fix description of request and macro arguments.
2303 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
2305         Valgrind fixes.
2307         * src/devices/grohtml/html-table.cc (html_table::~html_table):
2308         Deallocate `columns' list.
2309         * src/devices/grohtml/post-html.cc (char_block::~char_block):
2310         New destructor.
2311         (text_glob::text_glob_html, text_glob::text_glob_special,
2312         text_glob::text_glob_line, text_glob::text_glob_auto_image,
2313         text_glob::text_glob_tag): Avoid memory leaks.
2314         (text_glob::remember_table): Free memory before reassigning.
2316 2003-02-19  Werner LEMBERG  <wl@gnu.org>
2318         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2319         alias `hbar'), the Planck constant over two pi.
2321         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2322         `+e' for position 34.
2323         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2324         `u2662' and `u2661'.
2325         * font/devdvi/{MI,S}: Regenerated.
2326         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2327         * font/devlbp/*: Add `hbar' alias.
2328         * font/devlj4/generate/special.map: Ditto.
2329         * font/devlj4/S: Regenerated.
2330         * font/devps/generate/symbolchars: Add `+e'.
2331         * font/devps/generate/textmap: Fix PS name for `-h'.
2332         Add `hbar' alias.
2333         * font/devps/symbolmap: Regenerated.
2335         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2337         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2338         `-h', `hbar'.
2339         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2340         `-h'.
2342         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2343         `hbar'.
2344         * tmac/tty-char.tmac: Add `+e'.
2346 2003-02-17  Werner LEMBERG  <wl@gnu.org>
2348         Another round trying to really fix problems with `have_input'.
2350         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2351         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2353         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2354         handling if both foreground and background colors are default.
2356         * doc/groff.texinfo (Debugging): Document .lf differences to
2357         AT&T troff.
2359 2003-02-16  Werner LEMBERG  <wl@gnu.org>
2361         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2362         null-bytes in created string.
2364         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2365         alias_macro, lookup_request): Improve warning messages.
2367         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2368         not `strdup'.
2369         Free `last_image_filename'.
2371         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2372         `buffer'.
2373         (imageList::createPage, imageList::createImage): Use `free', not
2374         `a_delete'.
2375         (imageItem::~imageItem): Free `imageName'.
2376         (addRegDef): Use `strsave', not `strdup'.
2377         (get_resolution): Free `pathp'.
2379 2003-02-15  Werner LEMBERG  <wl@gnu.org>
2381         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2382         to `dummy'.
2384 2003-02-14  Werner LEMBERG  <wl@gnu.org>
2386         Add memory management for colors to deallocate unnamed colors
2387         properly.
2389         * src/include/color.h (color): New members `free_list' and `next'.
2390         New member functions `new' and `delete'.
2391         Add destructor.
2392         * src/libs/libgroff/color.cc: Implement it.
2394         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2395         for array size of new operator.
2397         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2398         redundant comparison.
2400         * src/roff/troff/input.cc (word_space_node::reread,
2401         hmotion_node::reread): Avoid warning about unused parameter.
2402         (reset_output_registers): Remove redundant parameter.
2403         (define_color): Undo change 2003-02-12.
2405         * src/roff/troff/reg.h: Updated.
2407         * src/roff/troff/node.cc (troff_output_file::really_print_line,
2408         output_file::put_filename, real_output_file::really_put_filename,
2409         ascii_output_file::really_print_line,
2410         break_char_node::get_hyphen_list): Avoid warning about unused
2411         parameter.
2412         (suppress_node::tprint): Updated.
2414         * configure.ac: Check declaration for rand() and srand().
2415         * configure: Regenerated.
2417         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2418         conditionally.
2419         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2420         and srand().
2422         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2423         to avoid compiler warnings.
2425         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2426         unused.
2428         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2429         is unused.
2430         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2431         (unused) parameter.
2432         Updated all callers.
2434         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2435         is unused.
2436         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2437         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2439         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2440         Parameter is unused.
2441         (html_printer::add_table_end): Define parameter conditionally.
2442         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2443         is unused.
2445         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2446         (lbp_printer::set_char): Last parameter is unused.
2448         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2450 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2452         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2453         Make \D'f ...' move horizontally again for backwards compatibility.
2454         Replace it with \D'Fg ...' where appropriate to avoid dependency
2455         on horizontal resolution.
2457         * src/roff/troff/input.cc (do_get_long_name): New function.
2458         (get_long_name): Call it.
2460         (read_draw_node): Handle `\D'Fx ...' by calling ...
2461         (read_color_draw_node): New function.
2463         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2464         `end'.
2465         Pass it to `do_get_long_name' which is used instead of
2466         `get_long_name'.
2468         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2469         unnecessary value guard.
2470         (parse_D_command) <'f'>: Add horizontal shift.
2472         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2473         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2474         (FILL_MAX): Removed.
2476         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2477         Updated.
2479 2003-02-12  Werner LEMBERG  <wl@gnu.org>
2481         * src/roff/troff/input.cc (do_name_test, do_expr_test,
2482         do_zero_width): Push `\n' if closing delimiter is missing.
2484         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2485         <'F'>: Make \F non-transparent at the beginning of line.
2486         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2487         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2488         `have_input'.
2490         (define_color): Free color in case of reassignment.
2492         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2493         @DefescListEnd): Use @Var, not @var.
2494         Fix all calls.
2496         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2498         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2499         `shaded' and `outlined' arrays.
2500         (object_spec::object_spec): Initialize `shaded' and `outlined'.
2501         (graphic_object::set_fill_color, graphic_object::set_outline_color):
2502         Use strsave.
2503         (closed_object::set_fill_color): Ditto.
2504         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2505         instead of strdup.
2506         (troff_output::reset_color): Use a_delete instead of free.
2507         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2509 2003-02-11  Werner LEMBERG  <wl@gnu.org>
2511         * doc/groff.texinfo: Improve documentation of `ad'.
2512         Document that \D'f...' is dependent on the horizontal resolution.
2513         * man/groff_diff.man: Improve documentation of \D'f...'.
2515         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2516         compensating \h'...' for \D'f ...' since the latter no longer moves
2517         current position.
2518         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2520 2003-02-10  Werner LEMBERG  <wl@gnu.org>
2522         Improve error messages for `x F' (and `F') commands.
2524         * src/include/error.h: Add declaration for
2525         `current_source_filename'.
2526         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2527         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2528         parameter for source file string.
2529         Updated all callers.
2531         * src/libs/libdriver/input.cc: Add `current_source_filename'.
2532         (remember_source_filename): New function.
2533         (parse_x_command <'F'>, do_file <'F'>): Use it.
2535 2003-02-09  Werner LEMBERG  <wl@gnu.org>
2537         Make grotty not emit warnings about unknown colors more than
2538         necessary.
2540         * src/devices/grotty/tty.cc: Include `ptable.h'.
2541         (TTY_MAX_COLORS): Removed.
2542         (DEFAULT_COLOR_IDX): Defined to -1.
2543         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2544         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2545         Change `tty_colors' to be a ptable.
2546         First arg of `put_color' is now `char'.
2547         New functions `make_rgb_string' and `tty_color'.
2548         (tty_printer::tty_printer): Use `tty_color'.
2549         (tty_printer::color_to_idx): Return value is now `char'.
2550         Use `tty_color'.
2552         * src/include/color.h (color): Add `print_color' member function.
2553         * src/libs/libgroff/color.cc (color::print_color): Implement it.
2555 2003-02-08  Werner LEMBERG  <wl@gnu.org>
2557         Valgrind fixes.
2559         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2560         encoding file.
2562         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2563         assume that value has been allocated with `new[]', thus use
2564         `a_delete' for deallocation.
2566         * src/libs/libdriver/input.cc (get_integer_arg,
2567         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2568         where appropriate.
2570         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2571         * src/libs/libgroff/nametoindex.cc
2572         (character_indexer::named_char_index): Use `new <type>[1]'.
2574         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2575         <type>[1]'.
2576         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2577         (split_text): Use `a_delete'.
2579         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2580         <type>[1]'.
2582         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2583         harmless memory leak.
2584         (hyphen_trie::read_patterns_file): Initialize `buf'.
2585         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2586         Initialize `current_fill_color'and `current_glyph_color'.
2587         * src/roff/troff/glyphuni.cc
2588         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2589         * src/roff/troff/uniuni.cc
2590         (unicode_decompose_init::unicode_decompose_init): Ditto.
2591         * src/roff/troff/uniglyph.cc
2592         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2594 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2596         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2597         `access' before calling `unlink'.
2598         (do_file): Handle __EMX__.
2600         * src/include/nonposix.h: Handle __EMX__.
2602         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2603         (fontpath,tmacpath): Use it.
2604         (MDEFINES): Add it.
2605         Sorted alphabetically.
2607         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2608         @SEP@.
2609         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2610         @SEP@.
2612 2003-01-27  Werner LEMBERG  <wl@gnu.org>
2614         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2615         New files, copied from gnulib.
2616         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2617         * configure.ac: Updated.
2618         * configure: Regenerated.
2620         * src/include/config.hin: Regenerated.
2621         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2622         Don't define `strcasecmp' as `strcmp'.
2623         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2624         Dont define `strncasecmp' as `strncmp'.
2626         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2627         Removed.
2629 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2631         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2632         s/unline/unlink/.
2634 2003-01-25  Werner LEMBERG  <wl@gnu.org>
2636         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2638 2003-01-24  Werner LEMBERG  <wl@gnu.org>
2640         Add US-english hyphenation exceptions (converted from Barbara
2641         Beeton's hyphenation exception log reports which appear irregularly
2642         in TUGBoat).
2644         * tmac/hyphen.us: Updated to latest version.
2645         * tmac/README: Updated.
2646         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2647         * tmac/troffrc: Load `hyphenex.us'.
2648         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2649         * doc/groff.texinfo: Updated.
2651 2003-01-23  Werner LEMBERG  <wl@gnu.org>
2653         Improve hyphenation slightly.  This is a first step in redesigning
2654         the hyphenation algorithm to make it more flexible (e.g. allowing
2655         kerns and ligatures between the hyphenation character and the
2656         following character -- while not used normally in English, other
2657         languages like German would benefit).
2659         * src/roff/troff/env.cc (environment::hyphenate_line): Use
2660         assertion instead of if-clause.
2661         Let `get_hyphen_list' return the number of involved characters in
2662         the hyphenation pattern instead of computing it directly (which
2663         often yields too small values).
2664         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2665         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2666         parameter.
2668 2003-01-22  Werner LEMBERG  <wl@gnu.org>
2670         Fixing a bug which caused groff to hang if the hyphenation exception
2671         dictionary tried to grow.
2673         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2674         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2675         pointer to dictionary.
2677 2003-01-20  Werner LEMBERG  <wl@gnu.org>
2679         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2680         negative left italic correction.
2681         * src/utils/afmtodit/afmtodit.man: Document it.
2683         * font/devps/generate/Makefile (RFLAG): Add `-m'.
2684         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2685         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2687         * NEWS: Updated.
2689 2003-01-16  Werner LEMBERG  <wl@gnu.org>
2691         * NEWS: Updated.
2693 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
2695         * src/preproc/refer/refer.man: Mention REFER environment variable.
2697 2003-01-05  Werner LEMBERG  <wl@gnu.org>
2699         Similar to \[is], the square root glyph (\[sr]) and the square root
2700         extension glyph (\[radicalex]) are now text symbols.  The new
2701         mathematical versions are called \[sqrt] and \[sqrtex],
2702         respectively.
2704         * font/devX*/S: Regenerated.
2705         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2706         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2707         * font/devdvi/EX, font/devdvi/S: Regenerated.
2708         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2709         * font/devlj4/generate/special.map: Add `sqrt'.
2710         * font/devlj4/S: Regenerated.
2711         * font/devps/generate/textmap: Add `sqrt'.
2712         * font/devps/S, font/devps/symbolmap: Regenerated.
2714         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2715         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2716         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2717         overlap horizontally.
2719         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2720         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2721         Fix `radicalex'.
2723         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2724         and `sqrtex' are overlapping glyphs.
2726 2003-01-04  Werner LEMBERG  <wl@gnu.org>
2728         * font/devdvi/generate/texsy.map: Add `is'.
2729         * font/devps/symbolmap: Regenerated.
2730         * font/devdvi/*TC, MI, S: Regenerated.
2732         * tmac/dvi.tmac: Remove `is'.
2734 2003-01-03  Werner LEMBERG  <wl@gnu.org>
2736         `is' is now a text symbol (only relevant for dvi).  The math variant
2737         can be accessed with `integral'.
2739         * font/devX*/S: Regenerated.
2740         * font/devdvi/generate/texex.map: Remove `is'.
2741         * font/devdvi/EX: Updated.
2742         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2743         * font/devlj4/generate/special.map: Ditto.
2744         * font/devlj4/S: Regenerated.
2745         * font/devps/generate/textmap: Add `integral'.
2746         * font/devps/S: Regenerated.
2748         * tmac/dvi.tmac: Define `is'.
2750         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2752         * src/preproc/tbl/main.cc (process_format): Fix error message.
2754 2003-01-02  Werner LEMBERG  <wl@gnu.org>
2756         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2757         * font/devps/textmap: Fix entries for `ne' and `nc'.
2758         * font/devps/symbolmap: Regenerated.
2760         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2761         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2762         `38', `58', `78', `-+', `|=', `nc', `ne'.
2764         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2765         Use `schar' for `aq'.
2766         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2767         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2768         * tmac/tty.tmac: Add `ne'.
2770         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2771         for fallback glyphs.
2773 2002-12-29  Werner LEMBERG  <wl@gnu.org>
2775         Add glyph `|='.
2777         * font/devX*/*: Regenerated.
2778         * font/devdvi/generate/ec.map: Remove `eq'.
2779         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2780         Assign `|=' to position 39.
2781         * font/devdvi/*EC, S: Regenerated.
2782         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2783         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2784         Assign `|=' to position 549.
2785         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2786         `equalmath'.
2787         Add `uni2243' for `|='.
2789         * tmac/ec.tmac: Add `eq'.
2790         * tmac/dvi.tmac: Add `=~'.
2791         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2792         `|='.
2794 2002-12-21  Werner LEMBERG  <wl@gnu.org>
2796         * font/devdvi/generate/tc.map: Remove `**'.
2797         * font/devdvi/*TC: Regenerated.
2798         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2799         `78', `<<', `>>'.
2800         * font/devutf8/NOTES: Updated.
2802         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2803         Don't give default parameter to `set_macro'.
2804         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2805         instead of `set_macro'.
2806         (charinfo::setx_macro): Implement it.
2807         (charinfo::set_macro): Don't change `mode'.
2809         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2810         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2811         * tmac/dvi.tmac: Define `!=' with `.schar'.
2813 2002-12-20  Werner LEMBERG  <wl@gnu.org>
2815         * font/devX*/S: Regenerated.
2816         * font/devdvi/generate/ec.map: Remove `pl'.
2817         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2818         * font/devdvi/*{TC,EC}: Regenerated.
2819         * font/devhtml/R.proto: Add `-+'.
2820         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2821         * font/devlbp/*: Remove `or'.
2822         * font/devlj4/generate/special.map: Remove `or'.
2823         * font/devlj4/S: Regenerated.
2824         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2825         `seveneighths', `threeeighths'.
2826         Remove `plusmath'.
2827         Replace `minusplus' with `uni2213'.
2828         * font/devps/symbolmap: Regenerated.
2829         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2830         Add `-+'.
2832         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2833         function.
2834         * src/roff/troff/node.cc (troff_output_file::put_char_width):
2835         Call glyph_color and fill_color even if tcommand_flag isn't set.
2836         (make_node, node::add_char): Check not ci->is_fallback but
2837         ci->is_normal.
2839         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2840         * tmac/ec.tmac: Add .rchar entry for `f/'.
2841         Don't remove `12', `14', `34'.
2842         Define `pl' to be always roman.
2843         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2844         Define `18', `38', `58', `78'.
2845         * tmac/tty.tmac: Add `-+'.
2846         * tmac/dvi.tmac: Define `f/'.
2847         (dvi-frac): Use `f/'.
2848         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2849         Define `18', `38', `58', `78'.
2851 2002-12-15  Colin Watson  <cjwatson@debian.org>
2853         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2855 2002-12-10  Werner LEMBERG  <wl@gnu.org>
2857         Add glyph `tno', a textual variant of `no'.
2859         * font/devX*/*: Regenerated.
2860         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2861         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2862         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2863         * font/devdvi/*: Regenerated.
2864         * font/devlbp/*: Add `tno'.
2865         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2866         * font/devlj4/*: Regenerated.
2867         * font/devps/generate/textmap: Replace `no' with `tno'.
2868         * font/devps/generate/symbolchars: Add `no'.
2869         * font/devps/*: Regenerated.
2871         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2873         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2874         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2876         * NEWS: Updated.
2878         * tmac/dvi.tmac: Replace most `\\' with `\E'.
2879         Add definition for `sd'.
2880         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2882         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2884 2002-12-08  Werner LEMBERG  <wl@gnu.org>
2886         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2887         mode to avoid rounding errors.
2888         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2890         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2891         src/roff/troff/troff.man: Improve documentation of -T.
2893 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
2895         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2896         (run_pipeline) [_WIN32]: Provide working function without `fork'.
2898 2002-12-06  Werner LEMBERG  <wl@gnu.org>
2900         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2901         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2902         Scaling Euro.sansserif glyphs down to have the same height as
2903         digits.
2904         Removed unnecessary points; added some extrema.
2906         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2907         Regenerated.
2909 2002-12-04  Werner LEMBERG  <wl@gnu.org>
2911         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2912         and `Euro.symbol.bold.slanted'.
2913         Improve some glyph offsets and widths.
2914         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2915         Regenerated.
2916         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2917         typo.
2918         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2919         direcory.
2921         * tmac/europs.tmac: Updated to new glyph indices.
2922         Use Euro.symbol for font familiy `A'.
2924         * doc/groff.texinfo: Minor improvements.
2926 2002-12-02  Werner LEMBERG  <wl@gnu.org>
2928         * font/devdvi/generate.tc.map: s/%O/%0/.
2929         * font/devdvi/*TC: Regenerated.
2931         * src/roff/troff/div.cc (init_div_requests): Sorted.
2933         * tmac/dvi.tmac: Remove `Ye'.
2934         * tmac/ec.tmac: Remove `Ye'.
2935         Add .rchar entry for `de'.
2937         * man/groff.man, man/groff_diff.man: Document register `.pe'.
2938         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2939         * NEWS: Updated.
2941 2002-11-30  Werner LEMBERG  <wl@gnu.org>
2943         Add PS font for various Euro glyphs.
2945         * font/devps/generate/freeeuro.sfd: New master font file for
2946         pfaedit.
2947         * font/devps/generate/sfdtopfa.pe: New conversion script for
2948         pfaedit.
2949         * font/devps/generate/Makefile (FONTS): Add `EURO'.
2950         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2951         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2952         `freeeuro.sfd'.
2953         * font/devps/EURO: Generated from `freeeuro.afm'.
2954         * font/devps/download: Add `freeuro.pfa'.
2955         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2956         `freeeuro.pfa'.
2958         * tmac/europs.tmac: New file.
2959         * tmac/ps.tmac: Include `europs.tmac'.
2960         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2962 2002-11-29  Werner LEMBERG  <wl@gnu.org>
2964         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2965         * font/devdvi/S: Regenerated.
2966         * font/devhtml/R.proto: Fix `CR' and `ci'.
2967         Add `OK'.
2968         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2969         Remove `bs'.
2970         * font/devps/symbolmap: Regenerated.
2971         * font/devutf8/R.proto: Fix `CR' and `ci'.
2972         Add `OK'.
2973         * font/devutf8/NOTES: Updated.
2975         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2976         `ci'.
2977         Add `OK'.
2978         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2980         * tmac/dvi.tmac: Add `lh' and `rh'.
2981         * tmac/Xps.tmac: Fix `lh' and `rh'.
2982         * tmac/X.tmac: Add `OK'.
2983         * tmac/lj4.tmac: Ditto.
2985 2002-11-24  Werner LEMBERG  <wl@gnu.org>
2987         * font/devX*/S: Regenerated.
2988         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2989         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2990         * font/devdvi/generate/texsy.map: Remove `or' glyph.
2991         * font/devdvi/S: Regenerated.
2992         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2993         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2994         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2995         `bracketleftbt', `bracketrighttp', `bracketrightex',
2996         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2997         `braceex', `braceleftex', `bracerightex', `bracerighttp',
2998         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2999         `rb', and `bv'.
3000         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3001         * font/devutf8/NOTES: Updated.
3002         * font/devlj4/generate/special.map: Add glyph `braceex'.
3003         * font/devlj4/S: Regenerated.
3005         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3007 2002-11-14  Werner LEMBERG  <wl@gnu.org>
3009         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3010         and `vA'.
3011         Fix code for `an'.
3012         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3014         * doc/texinfo.tex: New version from texinfo 4.3.
3015         * doc/groff.texinfo: Updated for texinfo 4.3.
3016         Use @tie{} where appropriate.
3017         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3018         * font/devdvi/generate/tc.map: Remove `rn'.
3019         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3020         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3021         Fix code for `an'.
3022         * font/devX100/*, font/devX100-12/*, font/devX75/*,
3023         font/devX75-12/*: Regenerated.
3025         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3026         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3027         Improve definition of `an'.
3028         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3029         `ru'.
3030         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3031         * tmac/X.tmac: Add definition for `or'.
3032         * tmac/Xps.tmac: Undo change 2002-11-05.
3033         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3035 2002-11-11  Werner LEMBERG  <wl@gnu.org>
3037         * src/roff/troff/node.cc (troff_output_file::put_char): Always
3038         call flush_tbuf.
3040 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3042         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3043         defines a glyph which is searched after the check for fonts declared
3044         with `.special' (and before the check for all mounted special
3045         fonts).  `fschar' defines a glyph for a particular font which is
3046         searched after the check for fonts declared with `.fspecial' (and
3047         before the check for fonts declared with `.special').  `rfschar'
3048         removes glyphs defined with `fschar'.
3050         * src/roff/troff/token.h (char_mode): New enum.
3051         Declare do_define_character.
3052         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3053         `mode'.
3054         (charinfo::is_fallback): Updated.
3055         (charinfo::is_special): New method.
3056         * src/roff/troff/input.cc (do_define_character): Add and use
3057         optional second parameter used as a prefix for font-specific glyph
3058         names.
3059         (define_character, define_fallback_character): Updated.
3060         (define_special_character): New function.
3061         (init_input_requests): Add `schar'.
3062         (charinfo::charinfo, charinfo::set_macro): Updated.
3063         * src/roff/troff/node.cc: Include `stringclass.h'.
3064         (make_glyph_node): Handle special glyphs defined with `.schar' and
3065         `.fschar'.
3066         (define_font_special_character, remove_font_special_character): New
3067         functions.
3068         (init_node_requests): Sorted.
3069         Add `fschar' and `rfschar'.
3070         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3071         Document new requests.
3073         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3074         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3076 2002-11-08  Werner LEMBERG  <wl@gnu.org>
3078         Added new font `SC' (cmtex10) to devdvi.
3080         * devdvi/generate/Makefile (FONTS): Add `SC'.
3081         (SC): New rule.
3082         * devdvi/generate/textex.map: New map file for cmtex.
3083         * devdvi/SC: New.
3084         * devdvi/Makefile.sub (DEVFILES): Updated.
3085         * tmac/dvi.tmac: Add fspecial entries for SC.
3086         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
3087         found before `S' since the font position of `SC' is lower due to the
3088         gaps in DESC's `font' line.
3089         * tmac/ec.tmac: Add a `special' call.
3090         * NEWS: Updated.
3092         * font/devhtml/R.proto: Remove double entry for `ti'.
3093         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3094         * tmac/tty-char.tmac: Remove entry for `bq'.
3095         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3096         * tmac/ec.tmac: Don't remove `aq' glyph.
3097         * tmac/X.tmac: Fix entry for `em'.
3098         Add entries for `fo' and `fc'.
3099         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3101         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3102         documentation of `special' and `fspecial' requests.
3104 2002-11-05  Werner LEMBERG  <wl@gnu.org>
3106         * font/devascii/R.proto, font/devcp1047/R.proto,
3107         font/devlatin1/R.proto: Remove entry for `.i'.
3108         * font/devdvi/generate/textt.map: Add entry for `ad'.
3109         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3110         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3111         We need this for getting kerning values to compose `/l' and `/L'.
3112         * font/devdvi: Regenerated font definition files for CM fonts.
3113         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3114         * font/devutf8/R.proto: Ditto.
3115         Remove double entry for `ti'.
3117         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3118         for (groff) ligatures, `la', and `ra'.
3119         Add "'C", "'c", `IJ', and `ij'.
3120         Remove double entry for `ti'.
3121         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3122         double entries.
3123         Add "'C", "'c", `IJ', and `ij'.
3124         Fix entries for (groff) ligatures, `la', and `ra'.
3126         * tmac/ps.tmac (ps-achar): New macro.
3127         Define "'c" and "'C".
3128         * tmac/tty.tmac: Add entry for `.i'.
3129         * tmac/X.tmac (X-achar): New macro.
3130         Define "'c", "'C", and `:Y'.
3131         Add entries for `IJ' and `ij'.
3132         * tmac/Xps.tmac (Xps-achar): New macro.
3133         Define "'c" and "'C".
3134         Add entries for `IJ' and `ij'.
3135         * tmac/lbp.tmac (lbp-achar): New macro.
3136         Add fallback characters for all groff ligatures and many other
3137         glyphs.
3138         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3139         Add entries for `/l' and `/L'.
3140         Define "'c" and "'C".
3141         Add entries for `IJ' and `ij'.
3143 2002-11-02  Larry Kollar  <kollar@alltel.net>
3145         * PROBLEMS: Document how to solve Mac OS X compilation problems.
3147 2002-11-02  Werner LEMBERG  <wl@gnu.org>
3149         Adding support for composite glyphs: \[xxx yyy ...] and the
3150         `composite' request.
3152         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3153         to Unicode-based glyph names.
3154         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3155         glyph names to groff glyph names.
3156         * src/roff/troff/uniuni.cc: New file for canonically decomposing
3157         Unicode-based glyph names.
3158         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3159         for handling Unicode glyph names.
3160         * src/roff/troff/input.cc: Include unicode.h.
3161         (composite_glyph_name): New function.
3162         (token::next) <'['>: Handle Unicode glyph names and composite
3163         glyphs.
3164         (composite_dictionary): New dictionary for the `composite' request.
3165         (composite_request): Implement `composite' request.
3166         (init_input_requests): Add `composite'.
3167         Alphabetically sorted.
3168         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3169         commented out).
3170         (init_env_requests): Alphabetically sorted.
3171         Removed `tas' and `tar' (already commented out).
3172         * src/roff/troff/Makefile.sub: Updated.
3174 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
3176         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3177         of options.
3179 2002-10-29  Werner LEMBERG  <wl@gnu.org>
3181         Fix computation of .trunc register.  Additionally, its value (and
3182         the value of the .ne register) is now always set before entering the
3183         trap.
3185         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3186         `needed_space' before calling `space'.
3187         (top_level_diversion::space): Remove special code for 'sp before the
3188         first page.
3189         Call `begin_page' with the discarded space as a parameter.
3190         (top_level_diversion::begin_page): Add optional parameter to set
3191         `truncated_space'.
3192         * src/roff/troff/div.h: Updated.
3194         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3195         \n[.ne].
3197         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3198         (LP): Remove superfluous call to `br'.
3199         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3200         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3202 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3204         * tmac/doc-ditroff: Remove useless switch/variable -rC.
3205         (doc-setup-header): Don't set page register `%'.
3206         * tmac/doc-nroff: Remove variable `C'.
3207         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3208         (doc-setup-header): Don't set page register `%'.
3209         Don't call `bp'.
3210         * tmac/doc-common (doc-header): Call `ns'.
3211         (doc-paragraph): Protect .sp with .br so that it survives traps
3212         possibly set by the user.
3213         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3215         * tmac/doc*: Replace ' with . for consistency if no effect.
3217 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3219         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3220         so that it survives traps possibly set by the user.
3222         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3223         (troff_output_file::set_font): Call flush_tbuf if necessary.
3224         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3225         flush_tbuf and do_motion only if necessary.
3226         (troff_output_file::start_special,
3227         troff_output_file::put_char_width, troff_output_file::put_char,
3228         troff_output_file::draw): Updated.
3229         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3230         vmotion_node::tprint): Undo change 2002-10-23.
3232 2002-10-25  Werner LEMBERG  <wl@gnu.org>
3234         * tmac/www.tmac (DC): Fix case of overlapping images.
3236 2002-10-23  Werner LEMBERG  <wl@gnu.org>
3238         * src/roff/troff/node.cc (troff_output_file::fill_color,
3239         troff_output_file::glyph_color): Set current color before testing
3240         color_flag.
3241         (troff_output_file::put_char_width, troff_output_file::put_char,
3242         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3243         before glyph_color.
3244         (troff_output_file::file_color, troff_output_file::glyph_color):
3245         Call do_motion.
3246         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3247         vmotion_node::tprint): Move first, then call fill_color.
3249 2002-10-20  Werner LEMBERG  <wl@gnu.org>
3251         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3252         possible to use multiple main macro packages.
3254 2002-10-19  Werner LEMBERG  <wl@gnu.org>
3256         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3257         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3258         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3259         is set.
3260         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3261         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3263 2002-10-16  Werner LEMBERG  <wl@gnu.org>
3265         * NEWS, doc/webpage.ms: Updated.
3267 2002-10-14  Werner LEMBERG  <wl@gnu.org>
3269         * src/roff/troff/node.cc (troff_output_file::put_char_width,
3270         troff_output_file::put_char, troff_output_file::fill_color,
3271         troff_output_file::glyph_color): Handle case where color pointer
3272         is null.
3274 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
3276         Add the new -r option to grotty.  It is similar to the -i option
3277         except it tells grotty(1) to use the "reverse video" attribute to
3278         render italic fonts.
3280         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3281         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3282         (tty_printer::make_underline, tty_printer::put_color,
3283         tty_printer::end_page): Use it.
3284         (main): Add -r switch.
3285         (usage): Updated.
3286         * src/devices/grotty/grotty.man: Document it.
3288 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
3290         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3291         cast to `unsigned char' to properly read patterns with 8bit
3292         characters.
3294 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3296         * REVISION: Increased to 2.
3298 Version 1.18.1 released
3299 =======================
3301 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3303         * doc/webpage.ms, NEWS: Updated.
3305 2002-10-07  Werner LEMBERG  <wl@gnu.org>
3307         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3308         suppress additional whitespace after the header.
3310         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3311         with NetBSD.
3313         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3315 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
3317         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3318         (Dt): Use it to improve language localization (especially Russian
3319         and French).
3321 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
3323         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3324         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3325         drawing commands.
3326         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3327         curve type.
3328         Call `picurve' for BSPLINE.
3329         (HGPrintElt): Handle BSPLINE.
3330         * src/preproc/grn/README: Document it.
3332 2002-10-03  Werner LEMBERG  <wl@gnu.org>
3334         * src/roff/troff/node.cc (break_char_node::col): New variable.
3335         Updated constructor.
3336         (space_node::tprint, word_space_node::tprint): Call `fill_color'
3337         unconditionally.
3338         (space_node::space_node): Remove assertion.
3339         (break_char_node::add_self): Pass color argument to space node.
3340         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3341         Ditto.
3342         * src/roff/troff/env.cc (environment::do_break,
3343         environment::add_padding): Ditto.
3345 2002-10-02  Werner LEMBERG  <wl@gnu.org>
3347         Redesigning color support in troff.  Colors are no longer
3348         represented as separate nodes but are now part of glyph nodes and
3349         friends.  This fixes the current formatting misbehaviour due to the
3350         changes introduced on 2002-09-20.  Some extra code is necessary for
3351         proper grotty support: Without adding color variables to
3352         space-related nodes, the background color would be changed too late.
3354         * src/roff/troff/node.h, src/roff/troff/node.cc:
3355         s/current_pagecolor/current_fill_color/.
3356         s/current_glyphcolor/current_glyph_color/.
3357         (glyph_color_node, fill_color_node): Removed.
3358         (node::get_glyph_color, node::get_fill_color): New virtual member
3359         functions.
3360         (space_node::col): New variable.
3361         Updated constructors of space_node and derived classes accordingly.
3362         (hmotion_node::col): New variable.
3363         Updated constructors of hmotion_node and space_char_hmotion_node
3364         accordingly.
3365         (vmotion_node::col): New variable.
3366         Updated constructor accordingly.
3367         (draw_node::gcol, draw_node::fcol): New variables.
3368         Updated constructor accordingly.
3369         (special_node::gcol, special_node::fcol): New variables.
3370         Updated constructors accordingly.
3371         (troff_output_file::put_char, troff_output_file::put_charwidth,
3372         troff_output_file::draw): Set glyph and fill color.
3373         (troff_output_file::start_special): Set glyph and fill color.
3374         Always set current font.
3375         (troff_output_file::fill_color, troff_output_file::glyph_color):
3376         Don't call `do_motion'.
3377         (glyph_node::gcol, glyph_node::fcol): New variables.
3378         Updated constructors of glyph_node and ligature_node accordingly.
3379         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3380         member functions.
3381         (glyph_node::merge_glyph_node,
3382         kern_pair_node::add_discretionary_hyphen,
3383         node::add_discretionary_hyphen): Updated.
3384         (break_char_node::merge_self): Updated.
3385         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3386         vmotion_node::tprint): Handle color.
3387         (make_glyph_node, make_node, node::add_char): Updated.
3389         * src/roff/troff/env.cc (environment::space_newline,
3390         environment::space, environment::output_line, environment::do_break,
3391         environment::make_tab_node, environment::add_padding, title):
3392         Updated.
3393         (environment_switch, environment_copy): Don't add color nodes.
3395         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3396         nothing.
3397         (token::next): Updated.
3398         \m and \M now are as transparent as \s.
3399         (process_input_stack, token::add_to_node_list, token::process,
3400         read_draw_node): Updated.
3401         (charinfo_to_node_list): Don't add color nodes.
3403         * doc/groff.texinfo: Updated.
3405 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
3407         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3408         strings.
3410 2002-09-27  Colin Watson  <cjwatson@debian.org>
3412         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3414 2002-09-23  Werner LEMBERG  <wl@gnu.org>
3416         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3417         appropriate.
3418         (DEFAULT_LINEWIDTH_FACTOR): New macro.
3419         (linewidth_factor): New global variable.
3420         (lbp_printer::set_line_thickness): Fix case for size < 0, using
3421         linewidth_factor.
3422         (long_options): Add -w/--linewidth option.
3423         (usage): Updated.
3424         (main): Handle -w option to set linewidth_factor.
3425         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3426         line_thickness.
3428         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3430 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3432         Fixed a bug in the line thickness setting code.
3434         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3435         variable.
3436         (lbp_printer::set_line_thickness): Pass environment as second
3437         parameter.
3438         Implement it actually.
3439         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3440         and `set_line_thickness, depending on the current font size.
3442 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3444         Some Debian patches.
3446         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3447         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3448         `list->last'.
3450 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3452         * configure: Regenerated with autoconf 2.54.
3454 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3456         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3457         glyph_color.
3458         Rename cur_fill_color to fill_color.
3459         * src/roff/troff/env.cc: Updated.
3461 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3463         * src/roff/troff/env.cc (title): Copy color status after processing
3464         title.
3465         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3466         fill color nodes to reset colors properly.
3468         * tmac/www.tmac (DC): Fix color handling.
3470         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3471         * doc/groff.texinfo: Fixing documentation of `tl' request.
3472         * doc/webpage.ms: Updated.
3474 2002-09-19  Werner LEMBERG  <wl@gnu.org>
3476         * src/roff/troff/env.cc (environent_switch, environment_copy):
3477         Emit glyph and fill color nodes to initialize colors properly.
3479 2002-09-17  Colin Watson  <cjwatson@debian.org>
3481         * src/roff/troff/env.cc (environment::set_glyph_color,
3482         environment::set_fill_color): Fix typo which prevented \m[] work
3483         correctly.
3485 2002-09-17  Werner LEMBERG  <wl@gnu.org>
3487         Add left and right italic correction to non-slanted PS fonts.  This
3488         is an experimental feature to improve image rendering of grohtml.
3490         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3491         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3492         * font/devps/*: All non-slanted fonts regenerated.
3493         * NEWS: Updated.
3495 2002-09-16  Werner LEMBERG  <wl@gnu.org>
3497         Add a site-specific font directory.
3499         * Makefile.in (localfontdir, legacyfontdir): New variables.
3500         (fontpath): Use them.
3501         (MDEFINES, uninstall_dirs): Updated.
3502         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3503         Remove `FONTPATH' and `MACROPATH'.
3505         * src/roff/troff/troff.man, NEWS: Updated.
3506         * doc/groff.texinfo (Font Directories): New section.
3507         Other minor fixes.
3509         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3510         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3511         src/preproc/grn/grn.man: Minor fixes.
3513         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3514         Remove unused variable.
3516 2002-09-11  Werner LEMBERG  <wl@gnu.org>
3518         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3519         * man/groff_out.man: Fix documentation of 'N'.
3521 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
3523         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3524         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3525         set.
3526         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3527         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3528         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3529         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3530         PRE_TAG>: Call `begin' with `FALSE'.
3532 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3534         * src/libs/libgroff/string.cc (string::extract): Fix position of
3535         terminating null byte.
3537 2002-09-08  Werner LEMBERG  <wl@gnu.org>
3539         Add global option `nospaces' to tbl so that leading and trailing
3540         spaces in data items are ignored.
3542         * src/libs/libgroff/string.cc (string::remove_spaces): New member
3543         function to remove leading and trailing spaces.
3544         * src/include/stringclass.h: Updated.
3546         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3548         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3549         option.
3550         Fix typo in error messages.
3551         (process_data): Implement `nospaces' option.
3552         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3554 2002-09-07  Werner LEMBERG  <wl@gnu.org>
3556         * src/include/config.hin: Add `HAVE_ISATTY'.
3557         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3558         `fname' member.
3559         * src/libs/libgroff/tmpname.cc: Include `time.h'.
3560         * src/libs/libdriver/input.cc (Char): Add `operator==' and
3561         `operator!=' for `char'.
3562         * doc/groff.texinfo: Replace @ifnottex block for top node with
3563         @ifhtml block.
3565 2002-09-06  Werner LEMBERG  <wl@gnu.org>
3567         * doc/Makefile.in (.texinfo.html): Add -I switch.
3568         * doc/groff.texinfo: Add @ifnottex block for top node to make
3569         translation to HTML work.
3571 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
3573         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3574         (get_papersize, determine_vertical_offset): Removed.
3575         (char_buffer::do_image): Always specify letter size.
3576         (main): Updated.
3577         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3578         -sPAPERSIZE.
3580 2002-09-05  Werner LEMBERG  <wl@gnu.org>
3582         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3583         default indentation.
3585 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
3587         * src/preproc/html/pre-html.cc (imageList::createPage): Use
3588         -sPAPERSIZE for gs.
3589         (generateImages): Clean up push-back buffer.
3591 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3593         * doc/groff.texinfo: Minor fixes.
3595 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3597         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3598         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3599         (gsPaper): Removed.
3600         (determine_vertical_offset): Use LETTER_LENGTH.
3601         (createPage): Moved to ...
3602         (imageList::createPage): This.
3603         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3604         (imageList::getMaxX): New function.
3605         (createImage): Moved to ...
3606         (imageList::createImage): This.
3607         (imageList::createImages): New function.
3608         (generateImages): Read `maxx' directly.
3609         Updated.
3610         (scanArguments): Don't specify `gsPaper' for `-o'.
3611         (makeTempFiles): Call `xtmpfile' with the last argument set to
3612         `TRUE'.
3614 2002-08-24  Werner LEMBERG  <wl@gnu.org>
3616         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3617         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3618         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3619         * src/preproc/html/pushback.cc: Include nonposix.h.
3620         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3621         conditionally.
3623 2002-08-23  Werner LEMBERG  <wl@gnu.org>
3625         Use $(OBJEXT) for the object file extension.
3627         * Makefile.comm (.SUFFIXES): Add .obj.
3628         (.cc.obj, .c.obj): New implicit rules.
3629         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3630         (MDEFINES): Add EXEEXT and OBJEXT.
3631         * */Makefile.sub: s/.o/.$(OBJEXT)/.
3633 2002-08-22  Werner LEMBERG  <wl@gnu.org>
3635         * INSTALL: Mention texinfo 4.2 as a prerequisite.
3637 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3639         * src/devices/grohtml/post-html.cc (colType): Make enum global to
3640         the file.
3641         (html_printer::update_min_max, html_printer::add_table_end): New
3642         methods.
3643         (html_printer::lookahead_for_tables): Use them.
3644         Reset page offset correctly.
3645         (html_printer::~html_printer): Add creation of creator comment up.
3647 2002-08-20  Werner LEMBERG  <wl@gnu.org>
3649         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3650         * man/groff_tmac.man: Fix typos.
3651         * man/groff_font.man: Minor reordering.
3652         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3653         * contrib/groffer/groffer.man: Fix typos.
3655 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3657         Avoid endless loops while scanning for tables.
3659         * src/devices/grohtml/post-html.cc (list::insert): Set
3660         ptr->right->left.
3661         (html_printer::next_horiz_pos): Add `text_glob' argument; update
3662         all callers.
3663         Return immediately if that argument is NULL.
3664         (html_printer::calc_nf): Don't test if `g' is NULL.
3665         (html_printer::lookahead_for_tables): Use
3666         `glyphs.move_right_get_data'.
3667         Don't test if `g' is NULL.
3669 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3671         A better fix, replacing fix 2002-08-15, for increasing SIZE.
3673         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3674         a pointer.
3675         (char_block::char_block): Allocate `buffer'.
3676         (char_buffer::add_string): Use it.
3678 2002-08-15  Werner LEMBERG  <wl@gnu.org>
3680         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3681         src/devices/grodvi/grodvi.man: Document default line thickness.
3683 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
3685         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3686         8192.
3688 2002-08-14  Werner LEMBERG  <wl@gnu.org>
3690         * doc/webpage.ms: Updated.
3692 2002-08-09  Werner LEMBERG  <wl@gnu.org>
3694         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3695         unbreakable space.
3697 2002-08-08  Aaron Campbell  <aaron@monkey.org>
3699         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3700         (&& -> &).
3702 2002-08-08  Werner LEMBERG  <wl@gnu.org>
3704         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3705         tok.next().
3706         (read_gray): Ditto.
3707         Don't push back a space but a newline onto the stack.
3709 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
3711         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3712         inadvertently.
3714         * src/devices/grohtml/post-html.cc (html_printer::end_font,
3715         html_printer::start_font): Handle them.
3716         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3717         reset bold and tt.
3718         (html_text::do_bold): Don't reset italic and tt.
3719         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3720         * font/devhtml/DESC.proto: Add those fonts.
3721         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3723 2002-08-07  Werner LEMBERG  <wl@gnu.org>
3725         * MORE.STUFF: Added gpresent.
3727         * tmac/trace.tmac: Show nesting level by a corresponding amount of
3728         whitespace before printing the logging message.
3730 2002-07-31  Colin Watson  <cjwatson@debian.org>
3732         * src/devices/grohtml/html-table.cc (html_table::finish_row):
3733         Initialize `n' to zero.  This fixes a segfault on ARM.
3735 2002-07-30  Werner LEMBERG  <wl@gnu.org>
3737         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3739 2002-07-29  Werner LEMBERG  <wl@gnu.org>
3741         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3742         final semicolon.
3744 2002-07-28  Colin Watson  <cjwatson@debian.org>
3746         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3747         `.ps'.
3748         (html_printer::html_printer): Initialize `pointsize'.
3750 2002-07-26  Werner LEMBERG  <wl@gnu.org>
3752         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3753         gnu.png.
3754         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3755         (gnu.eps): Add -rle switch to pnmtops.
3756         (distfiles): Add gnu.eps and gnu.png.
3758 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
3760         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3761         Add `operator!='.
3763 2002-07-24  Werner LEMBERG  <wl@gnu.org>
3765         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3766         ' \+' but '  *' for sed.
3767         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3769 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3771         * doc/groff.texinfo: Document `papersize' keyword.
3772         * NEWS, man/groff_font.man: Updated.
3774 2002-07-23  Colin Watson  <cjwatson@debian.org>
3776         Extend papersize keyword to accept more than a single entry.  The
3777         first valid will be used.
3779         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3780         (font::scan_papersize): Really skip final newline.
3781         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3783 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3785         * configure.ac: Test for isatty.
3786         * configure: Regenerated.
3787         * src/include/posix.h: Check HAVE_ISATTY.
3788         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3789         * src/utils/lookbib/lookbib.cc: Include posix.h.
3790         Don't declare isatty.
3792 2002-07-21  Werner LEMBERG  <wl@gnu.org>
3794         * NEWS: Add `output' request.
3796         * REVISION: Increased to 1.
3798 Version 1.18.0 released
3799 =======================
3801 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
3803         Allow internal glyph indices > 0xFF in grohtml for input characters.
3805         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3806         as parameter.
3807         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3808         Updated all callers.
3809         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3810         (html_printer): Updated.
3812 2002-07-19  Werner LEMBERG  <wl@gnu.org>
3814         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3815         * font/devutf8/R.proto: Adding some missing glyphs.
3816         * font/devutf8/NOTES: Updated.
3818         * tmac/dvi.tmac: Add more composite glyphs.
3819         * tmac/html.tmac: Updated.
3821         * man/groff_char.man: Add `sum' and `product' entities.
3823         * NEWS: Updated.
3825 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
3827         Improved table, tab, and indenting support.
3829         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3830         string_iterator::suppress_newline_flag): Removed.  Updated all
3831         function which have used it.
3833         * src/roff/troff/env.cc: Include `input.h'.
3834         (environment::add_node): Accept 0 as parameter.
3835         (environment::add_html_tag): Add `force' parameter.
3836         Updated all callers.
3837         (environment::add_html_tag_tabs): Ditto.
3838         For the moment, support left-aligned tabs only.
3839         (environment::make_html_tag): New function.
3840         (fill, no_fill): Set .br html tag additionally.
3841         (environment::newline): Emit `eol.ce' or `eol' tag for html.
3842         (environment::add_html_tag_eol): Removed.
3843         (tab_stops::distance_to_next_tab): Add variant for handling 
3844         nextpos'.
3845         (environment::distance_to_next_tab): Ditto.
3846         Updated all callers.
3847         (environment::handle_tab): Handle tabs for html.
3848         
3849         * src/roff/troff/env.h: Updated.
3851         * src/roff/troff/div.cc: Updated all callers of
3852         `environment::add_html_tag'.
3854         * src/devices/grohtml/html-table.cc,
3855         src/devices/grohtml/html-table.h: New files.
3857         * src/devices/grohtml/html-text.cc (html_text): New members
3858         `blank_para' and `start_space'.
3859         (html_text::issue_tag): Don't emit TABLE_TAG.
3860         Handle indentation for PRE_TAG and P_TAG.
3861         (html_text::end_tag): Updated.
3862         (html_text::table_is_void, html_text::issue_table_begin,
3863         html_text::issue_table_end): Removed.
3864         (html_text::do_push): Simplified.
3865         [DEBUGGING]: Small fix.
3866         (html_text::push_para): Add new parameter for indentation; updated
3867         all callers.
3868         Handle PRE_TAG.
3869         (html_text::do_indent, html_text::do_table, html_text::done_table,
3870         html_text::is_in_table): Removed.
3871         (html_text::do_pre): Handle P_TAG also.
3872         (html_text::shutdown): Handle p->indent.
3873         (html_text::check_emit_text): Simplified.
3874         (html_text::do_emittext): Reset `blank_para'.
3875         (html_text::do_para): Add new parameter for indentation; updated
3876         all callers.
3877         (html_text::remove_indent): New function.
3878         (html_text::do_space): Handle verbatim text properly.
3879         (html_text::ever_emitted_text, html_text::starts_with_space,
3880         html_text::remove_para_align): New functions.
3881         (html_text::dump_stack_element, html_text::dump_stack): Updated.
3883         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3884         Updated.
3886         * src/devices/grohtml/post-html.cc: Include html-table.h.
3887         (INDENTATION): Removed.
3888         (text_glob): Added many `is_<foo>' functions.
3889         Added table description `tab'.
3890         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3891         member functions.
3892         (list): Add `insert' and `move_to' member functions.
3893         (page): Add `insert_tag' member function.
3894         (page::dump_page) [DEBUG_TABLES]: Improved.
3895         (html_printer): Add `table' and `max_linelength' elements.
3896         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3897         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3898         `remove_tabs', `remove_courier_tabs'.
3899         (html_printer::emit_raw): Handle indentation.
3900         (html_printer::do_center, html_printer::write_header): Updated.
3901         (html_printer::is_courier_until_eol): Check for tag.
3902         (html_printer::do_linelength): Handle max_linelength.
3903         (html_printer::do_page_offset, html_printer::do_indentation): Handle
3904         fill_on.
3905         (html_printer::do_tempindent): Updated.
3906         (html_printer::do_indentedparagraph): Removed.
3907         (html_printer::do_indent): Simplified.
3908         (html_printer::do_eol): Use `ever_emitted_text'.
3909         (html_printer::do_flush, html_printer::do_links): Don't call
3910         done_table.
3911         (html_printer::do_break): Handle end_tempindent.
3912         (html_printer::troff_tag): Get argument.
3913         Don't handle `.ip'.
3914         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3915         (html_printer::flush_page): Call `lookahead_for_tables'.
3916         Don't call `done_table'.
3917         (html_printer::add_to_sbuf): Always call do_indent.
3919         * src/devices/grohtml/Makefile.sub: Updated.
3921         * tmac/an-old.tmac (TP): Don't handle html device specially.
3922         (an-do-tag-html): New function which will be used instead of
3923         `an-do-tag' if html device is used.
3925         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3927         * tmac/s.tmac (@IP): Don't handle html device specially.
3928         (@IP-html): New function which will be used instead of `@IP' if
3929         html device is used.
3931         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3932         is a hack which will eventually vanish again.
3933         (PIMG): Handle `-C' option correctly if not html.
3934         (HR): Use HTML-NS.
3936 2002-07-17  Werner LEMBERG  <wl@gnu.org>
3938         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3940 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3942         * contrib/pic2graph/pic2graph.*: Use convert(1).
3943         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3945 2002-07-14  Bernd Warken  <bwarken@mayn.de>
3947         * tmac/groff_trace.man: New file.
3948         * tmac/Makefile.sub: Updated.
3949         * NEWS: Updated.
3951 2002-07-13  Werner LEMBERG  <wl@gnu.org>
3953         * src/roff/groff/groff.man: Add some cross references.
3955 2002-07-12  Werner LEMBERG  <wl@gnu.org>
3957         * src/roff/troff/input.cc (substring_request): Add warnings for
3958         string indices out of range.
3960 2002-07-11  Werner LEMBERG  <wl@gnu.org>
3962         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3963         * font/devdvi/*EC: Regenerated.
3965 2002-07-10  Bernd Warken  <bwarken@mayn.de>
3967         * man/groff_char.man: Updated and extended.
3969 2002-07-10  Werner LEMBERG  <wl@gnu.org>
3971         * src/roff/troff/input.cc (length_macro): Renamed to...
3972         (length_request): This.
3973         Move call of `tok.next()' to the very end, otherwise the register
3974         value hasn't been updated yet.
3975         (init_input_requests): Updated.
3977 2002-07-09  Werner LEMBERG  <wl@gnu.org>
3979         * src/roff/troff/input.cc (substring_macro): Renamed to...
3980         (substring_request): This.
3981         (init_input_requests): Updated.
3982         * src/roff/troff/request.h: Updated.
3984 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
3986         * src/roff/grog/grog.sh: Fix typo.
3988 2002-07-08  Werner LEMBERG  <wl@gnu.org>
3990         * win32-diffs: Updated.
3992         Handle `papersize' keyword properly in DESC.
3994         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3995         type.
3996         Updated all callers.
3997         * src/libs/libgroff/paper.cc: Add four more paper formats used by
3998         grolj4.
3999         * src/include/paper.h: Updated.
4001         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4002         Other minor C syntax fixes.
4003         (papersize, paperlength, paperwidth): Renamed to `user_*'.
4004         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4005         members.
4006         (lbp_printer::lbp_printer): Pass three arguments.
4007         Set paper dimensions properly.
4008         (make_printer, main): Updated.
4009         (handle_unknown_desc_command): Fix error messages.
4010         (main): Handle papersize keyword in DESC properly.
4012         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4013         `user_paper_size'.
4014         (lbp_printer::lbp_printer): Pass an argument.
4015         Set paper_size properly.
4016         (handle_unknown_desc_command): Removed.
4017         (make_printer, main): Updated.
4018         * src/devices/grolj4/grolj4.man: Minor documentation fix.
4020         * man/groff_font.man, NEWS: Updated.
4022 2002-07-07  Werner LEMBERG  <wl@gnu.org>
4024         Integrated eqn2graph, contributed by Eric S. Raymond.
4026         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4027         files.
4028         * Makefile.in, NEWS: Updated.
4030 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4032         Changing the substring request to make it fit better with other
4033         string manipulation functions in other programming languages:
4034         Index 0 is now the first character in the string, and index -1
4035         indicates the last character.  Since this request didn't work
4036         properly anyway in the last release, it doesn't harm too much to
4037         change the syntax.
4039         * src/roff/troff/input.cc (substring_macro): Use loops to get
4040         the real string length (ignoring COMPATIBLE_SAVE and
4041         COMPATIBLE_RESTORE) and offsets.
4042         Implement change described above.
4044         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4045         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4047         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4049 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4051         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4052         COMPATIBLE_RESTORE are completely ignored.
4054         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4055         functions.
4056         (macro): `length' field renamed to `len'.
4057         Added new field `empty_macro' (1 if macro is empty), to be used
4058         instead of checking `len'.
4059         Updated all callers.
4060         (macro::empty): Updated.
4061         (macro::length, macro::set, macro::get): New functions.
4062         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4063         Set `empty_macro'.
4064         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4065         COMPATIBLE_RESTORE pairs.
4066         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4067         * src/roff/troff/request.h: Updated.
4069         * doc/groff.texinfo: Document .chop's behaviour better.
4071 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4073         * doc/pic.ms: Fix documentation for the addition of positions.
4075         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4077 2002-06-29  Werner LEMBERG  <wl@gnu.org>
4079         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4081         * src/roff/troff/input.cc (have_string_arg): New global variable.
4082         (read_mode): New enumeration.
4083         (read_escape_name): Use it.  Update all calls.
4084         (read_long_escape_name): Use it.  Update all calls.
4085         Set have_string_arg if appropriate.
4086         (get_char_for_escape_name): Add parameter for handling space
4087         character.
4088         (interpolate_string_with_args, decode_string_args): New functions.
4089         (get_copy, token::next): Call it if necessary.
4090         (interpolate_string): Fix error message.
4092         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4093         Document it.
4095 2002-06-24  Bernd Warken  <bwarken@mayn.de>
4097         * man/groff_tmac.man: Updated and extended.
4099 2002-06-24  Werner LEMBERG  <wl@gnu.org>
4101         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4103 2002-06-23  Werner LEMBERG  <wl@gnu.org>
4105         * doc/pic.ms: Improve documentation of composite block objects.
4107 2002-06-22  Werner LEMBERG  <wl@gnu.org>
4109         * src/roff/troff/input.cc (init_registers): Add three registers
4110         `seconds', `minutes', and `hours' to hold the current time.
4112         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4113         Updated.
4115 2002-06-20  Werner LEMBERG  <wl@gnu.org>
4117         Make \X accept both `\ ' and `\~', converting them to single space
4118         characters.
4120         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4121         (token::unstretchable_space): New inline function.
4122         * src/roff/troff/input.cc (token::next, token::delimiter,
4123         token::description, token::add_to_node_list, token::process): Handle
4124         TOKEN_UNSTRETCHABLE_NODE.
4125         (encode_char): Handle tok.stretchable_space and
4126         tok.unstretchable_space.
4128         * NEWS, doc/groff.texinfo: Document it..
4130 2002-06-19  Werner LEMBERG  <wl@gnu.org>
4132         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4134         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4135         keyword to enable/disable SGR output.
4136         (tty_printer::change_fill_color): New function.
4137         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4139         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4140         call.
4142 2002-06-18  Werner LEMBERG  <wl@gnu.org>
4144         Add a `color' request and a `.color' register to control usage of
4145         colours.
4147         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4148         (color_flag): This (which is the inverse).
4149         (activate_color): New function.
4150         (main, init_input_requests): Updated.
4151         * src/roff/troff/troff.h, src/roff/troff/node.cc
4152         (troff_output_file::fill_color, troff_output_file::glyph_color):
4153         Updated.
4155         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4156         Document the changes.
4158 2002-06-17  Colin Watson  <cjwatson@debian.org>
4160         Circumvent bug in autoconf 2.53 regarding top_builddir.
4162         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4163         * Makefile.in, doc/Makefile.in:
4164         s/@top_builddir@/@groff_top_builddir@/.
4165         * configure: Regenerated (with autoconf 2.53).
4167 2002-06-17  Werner LEMBERG  <wl@gnu.org>
4169         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4170         `paperwidth' and `paperlength' for the `papersize' keyword.
4172 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
4174         * src/devices/grops/grops.man: Add info about Type 42 fonts.
4176 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
4178         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4179         html_printer::do_linelength, html_printer::do_pageoffset,
4180         html_printer::do_indentation, html_printer::do_tempindent,
4181         html_printer::do_break, html_printer::begin_page): Clear indented
4182         text.
4183         * tmac/html.tmac: Disable hyphenation.
4185 2002-06-15  Werner LEMBERG  <wl@gnu.org>
4187         Don't produce HTML files if utility programs are missing.
4189         * Makefile.in (make_html, make_install_html): New variables.
4190         (MDEFINES): Updated.
4192         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4193         utility programs.
4194         * configure.ac: Use it.
4195         * configure: Regenerated.
4197         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4198         (HTMLEXAMPLESFILES): This new variable.
4199         (EXAMPLESIMAGEFILES): Renamed to...
4200         (HTMLEXAMPLEIMAGEFILES): This.
4201         (CLEANADD): Add HTMLEXAMPLEFILES.
4202         (all): Use `make_html'.
4203         (html): New target.
4204         (install_data): Use `make_install_html'.
4205         Move html stuff to...
4206         (install_html): This new target.
4207         (uninstall_sub): Updated.
4209 2002-06-14  Bernd Warken  <bwarken@mayn.de>
4211         * src/roff/grog/Makefile.sub (grog): Renamed to...
4212         (grog.old): This.
4213         (grog): New rule to always install grog.sh as grog.
4215 2002-06-08  Bernd Warken  <bwarken@mayn.de>
4217         * src/roff/grog/grog.pl: Fix typo.
4219 2002-06-07  Werner LEMBERG  <wl@gnu.org>
4221         * doc/groff.texinfo: Add more info on .tr arguments.
4223 2002-06-05  Werner LEMBERG  <wl@gnu.org>
4225         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4227         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4228         * configure: Regenerated.
4230 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4232         * src/roff/troff/symbol.cc (table_sizes): Add more values.
4234         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4236 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4238         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4239         is not initialized at the time we need it in case `--prefix' hasn't
4240         been set.  Check for `ac_default_prefix' also.
4241         Test for `papersize' keyword also and generalize allowed whitespace.
4242         * configure: Regenerated.
4244         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4245         `paperlength'.
4247         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4248         with...
4249         (src_version, src_revision): New variables to avoid overwriting
4250         from parent make process.
4251         (version.cc): Updated.
4253         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4254         (linebuf, linebufsize): New global variables.
4255         (sys_fatal): Use `fatal' to abort properly.
4256         (get_line): New function.
4257         (get_resolution): Use it.
4258         Improve error messages.
4259         (get_papersize): Check `papersize' also.
4260         Use `get_line'.
4261         Improve error messages.
4263 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4265         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4266         should be removed only if builddir is not srcdir.
4267         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4268         (clean): Depend on `mostlyclean'.
4269         (distclean): Depend on `clean'.
4270         (realclean, extraclean): Depend on `distclean'.
4271         (.y.cc, .y.o): Simplified.  The output files are no longer written
4272         to srcdir but to builddir.
4273         * Makefile.in (MDEFINES): Add `version' and `revision'.
4274         (uninstall_dirs): Fix order of directories.
4275         * doc/Makefile.sub (version, revision): Removed.
4276         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4277         Added `HTMLDOCFILES'.
4278         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4279         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4280         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4281         as prefix.
4283         * doc/texinfo.tex (\authortt): New macro.
4284         (\shortcontt): Define.
4285         (\titlepage): Set \tt to \authortt while defining \authorfont.
4286         (\appendixbox): New macro.
4287         (\chapmacro, \appendixentry): Use \appendixbox to get even
4288         indentation for letters.
4289         (\summarycontents): Set \tt.
4290         (\internalpagesize): Add two arguments for real paper width and
4291         height as needed by pdfTeX.
4292         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4293         Updated.
4294         (\tempdima, \tempdimb): New temporary dimensions.
4295         (\pagesizesyyy): Updated.
4297 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4299         Adding a new keyword `papersize' to the DESC file format (similar
4300         but not completely identical to grolbp's extension).  grops now has
4301         a -p command line option to override `papersize'.  Finally, grolbp
4302         has been adapted to the new syntax.
4304         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
4305         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4306         elements.
4307         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4308         (CCSRCS): Add `paper.cc'.
4310         * src/include/font.h (font): Add `papersize' element.
4311         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4312         (font::scan_papersize): New function.
4313         (font::load_desc): Use it for handling `papersize' keyword.
4314         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4316         * src/devices/grops/ps.cc: Include paper.h.
4317         (user_paper_length): New global variable.
4318         (ps_printer): Use paper length as initializer.
4319         (make_printer): Updated.
4320         (main): Handle new `-p' option.
4321         * src/devices/grops/grops.man: Updated.
4323         * src/devices/grolbp/lbp.cc: Include paper.h.
4324         s/papersizes/lbp_papersizes/.
4325         (set_papersize): Use new `papersizes' array.
4326         (handle_unknown_desc_command): Don't handle `papersize'.
4327         (main): Use `font::scan_papersize' for handling `-p' option.
4328         * src/devices/grolbp/grolbp.man: Updated.
4330         * man/groff_font.man: Document `papersize'.
4331         * NEWS: Updated.
4333 2002-05-30  Werner LEMBERG  <wl@gnu.org>
4335         * src/devices/grops/TODO: Updated.
4336         * src/devices/grops/grops.man: More info on paper formats.
4337         * man/groff_font.man: Document `paperheight' and `paperwidth'.
4339 2002-05-29  Werner LEMBERG  <wl@gnu.org>
4341         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4342         to list only if srcdir != currdir.
4343         (distfiles): New target.
4345         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4346         (NOMAKEDIRS): New variable.
4347         (DISTDIRS): Use it.
4349 2002-05-26  Werner LEMBERG  <wl@gnu.org>
4351         Add .output request, similar to \! at top-level.
4353         * src/roff/troff/input.cc (transparent): Remove unused declaration.
4354         (output_request): New function.
4355         (init_input_requests): Add it.
4356         Sorted.
4357         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4358         Document it.
4360         * Makefile.in (MDEFINES): Add INSTALL_INFO.
4361         (prepare_examples): Fix typo.
4362         * doc/groff.texinfo (@direntry): Fix it.
4364 2002-05-25  Werner LEMBERG  <wl@gnu.org>
4366         Including the doc subdir into groff's Makefile system.
4368         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4369         * configure.ac: Use it.
4370         Generate `doc/Makefile'.
4371         * configure: Regenerated.
4373         * Makefile.in (infodir, INSTALL_INFO): New variables.
4374         (MDEFINES, uninstall_dirs): Updated.
4375         (OTHERDIRS): Add `doc'.
4376         * Makefile.comm (CLEANDIRADD): New variable.
4377         (mostlyclean): Use it.
4379         * doc/Makefile.sub, doc/Makefile.in: New files.
4380         * doc/Makefile: Removed.
4382         * NEWS, INSTALL: Updated.
4384 2002-05-24  Werner LEMBERG  <wl@gnu.org>
4386         * doc/homepage.ms: Renamed to ...
4387         * doc/webpage.ms: This.
4388         Use `.NHR'.
4390 2002-05-23  Werner LEMBERG  <wl@gnu.org>
4392         Integrating the `mom' macro package, contributed by Peter Schaffter
4393         <df191@ncf.ca>.
4395         * contrib/mom/*: New subdirectory tree.
4396         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4397         be used for documentation files.
4398         (MDEFINES, uninstall_dirs): Use them.
4399         (OTHERDIRS): Add contrib/mom.
4400         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4401         @HTMLDOCDIR@.
4402         * MANIFEST, NEWS: Updated.
4404 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
4406         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4407         if at outer level; at start-up we are at outer level.
4409         * src/roff/troff/input.cc (do_suppress): Implement it.
4410         Simplify \O[3].
4412         Add option -p to show progress information.
4413         pre-grohtml will now render only one page at a time, reducing the
4414         size of needed disk resources enormously.
4416         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4417         (imagePageName): New global variable.
4418         (psPageName, show_progress, currentPageNo): New global variables.
4419         (html_system): Close saved stderr and stdout handles.
4420         (write_end_image): Accept a parameter to control \O escape.
4421         (write_start_image): Adapted to new \O meaning.
4422         (char_buffer::write_upto_newline): Updated.
4423         (createAllPages): Replaced with...
4424         (createPage): This new function to create a single page for images.
4425         It uses `psselect' from the psutils package.
4426         (removeAllPages): Removed.
4427         (createImage): Updated.
4428         Handle progress display.
4429         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4430         (scanArguments): Add option -p.
4431         (makeTempFiles): Updated to create temp files for psPageName and
4432         imagePageName.
4433         (removeTempFiles): Removed.
4434         (main): Updated.
4436         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4437         html_printer::write_header): Append `\0' to `buffer'.
4438         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4439         (main): Handle -p.
4440         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4441         Handle `text_emitted'.
4442         (html_text::table_is_void): Slightly rewritten.
4443         (stop): New external symbol.
4444         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4445         (html_text::shutdown): Call `dump_stack'.
4446         (html_text::do_space): Rewritten.
4447         * src/devices/grohtml/grohtml.man: Document -p and the need of
4448         `psselect'.
4450         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4451         new \O syntax.
4452         Call \O[0] if `ps4html' is active.
4453         * tmac/s.tmac (@EQ, @EN): Handle html better.
4454         (@TS, TE): Ditto.
4455         * tmac/html.tmac: Don't use black for background colour.
4457         * src/roff/troff/node.cc: Include `div.h'.
4458         (troff_output_file::really_print_line): Don't use `is_on'. 
4459         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4460         troff_output_file::check_charinfo,
4461         troff_output_file::put_char_width, troff_output_file::put_char,
4462         troff_output_file::determine_line_limits, troff_output_file::draw,
4463         real_output_file::begin_page, glyph_color_node::tprintf,
4464         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4465         Use `is_on'.
4466         (troff_output_file::really_on): Call `do_motion'.
4467         (suppress_node::tprint): Use `get_page_number' instead of `%'
4468         register.
4469         Call `reset_output_registers' conditionally on `is_on'.
4471         * doc/groff.texinfo: Document new syntax of \O.
4472         * NEWS, man/groff_diff.man: Updated.
4474 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4476         * MORE.STUFF: Add info about David Frey's deroff implementation.
4477         Mention troff.org.
4479 2002-05-16  Werner LEMBERG  <wl@gnu.org>
4481         Pic's `with' attribute now accepts positions.
4483         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4484         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4485         conflicts.
4486         (object_spec): Add rule for `WITH' and `position'.
4487         (relative_path): Give `corner' the precedence of `CHOP'.
4488         * src/preproc/pic/object.h (path): New members `pos' and
4489         `is_position'.
4490         * src/preproc/pic/object.cc: Updated initializers of `path'.
4491         (path::follow): Handle `is_position'.
4493         * doc/pic.ms: Completely updated grammar description.
4494         Many typographical improvements.
4496 2002-05-15  Werner LEMBERG  <wl@gnu.org>
4498         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4499         code of x in range 0-127) also.
4500         * doc/groff.texinfo, man/groff_diff.man: Updated.
4502         Added keywords `north', `south', `east', and `west' for corners
4503         in pic.
4505         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4506         and WEST.
4507         (yylex): Handle them.
4508         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4509         (corner): Handle them.
4511 2002-05-14  Werner LEMBERG  <wl@gnu.org>
4513         * src/devices/grops/grops.man: Clarify handling of `download' file.
4515 2002-05-11  Werner LEMBERG  <wl@gnu.org>
4517         Adding `warnscale' and `spreadwarn' requests, based on a patch from
4518         Jeffrey Friedl <jfriedl@yahoo.com>.
4520         * src/roff/troff/input.cc (spread_limit, warn_scale,
4521         warn_scaling_indicator): New global variables.
4522         (warnscale_request, spreadwarn_requests): New functions.
4523         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4524         (init_input_requests): Updated.
4525         (error_type): Add `OUTPUT_WARNING'.
4526         (do_error): Handle it.
4527         (output_warning): New warning function which shows output location.
4528         * src/roff/troff/env.h (spread_limit): New external variable.
4529         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4530         `output_warning'.
4531         (distribute_space): Emit warning if added space is larger than
4532         `spread_limit'.
4533         (environment::possibly_break_line): Emit warning if a line can't
4534         be adjusted on both sides.
4536         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4538 2002-05-08  Werner LEMBERG  <wl@gnu.org>
4540         * src/roff/troff/node.cc (special_node::special_node): Use
4541         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
4542         \X''\% crashes, for example.
4544         * doc/groff.texinfo: Document \! and \? used at top-level.
4546 2002-05-06  Werner LEMBERG  <wl@gnu.org>
4548         * src/preproc/pic/pic.man: Fix some keyword syntax.
4549         Other minor typographical fixes.
4551         * src/roff/groff/groff.man: Fix typos.
4553 2002-05-04  Werner LEMBERG  <wl@gnu.org>
4555         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4556         (ShortOpt[]): This to avoid problems with refer.
4558         * doc/pic.ms: Fix typo.
4559         Fix pic grammar description.
4561         * tmac/an-old.tmac (ne): Use de1, not de.
4563 2002-05-03  Werner LEMBERG  <wl@gnu.org>
4565         * doc/groff.texinfo: Finished separation of glyphs and characters.
4566         Don't use the string `Appendix' for appendix headers (both in
4567         the text and the table of contents).
4568         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4569         directories.
4571         Use registers LL and LT (similar to -ms) for controlling the
4572         length of title and line, respectively, in the -man and -mdoc
4573         macro packages.
4575         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4576         (doc-setup-page-layout): Use \n[LL] and \n[LT].
4577         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4578         (TH): Use \n[LL].
4579         (an-header, an-p-footer): Use \n[LT].
4580         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4581         doc/groff.texinfo: Document it.
4583 2002-05-02  Werner LEMBERG  <wl@gnu.org>
4585         * doc/fdl.texi: New file.
4586         * doc/groff.texinfo: Include it.
4587         Define and use @copying.
4588         Starting with separating glyph, symbol, and character.
4590 2002-04-27  Werner LEMBERG  <wl@gnu.org>
4592         * Makefile.in (EXEEXT): Set it.
4593         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4594         programs.
4596         * src/include/nonposix.h: Define GS_NAME.
4597         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4599         Some preliminary changes for EMX support under OS/2.
4601         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4602         __EMX__ similar to __MSDOS__.
4603         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4605 2002-04-25  Werner LEMBERG  <wl@gnu.org>
4607         * doc/groff.texinfo: Integrated groff_out.man.
4608         Some macro fixes.
4610 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4612         * man/groff_out.man: Minor fixes.
4614 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4616         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4617         correct page references.
4618         Fixed many index entries.
4620 2002-04-23  Bernd Warken  <bwarken@mayn.de>
4622         * man/roff.man: Enlarged.
4624 2002-04-22  Werner LEMBERG  <wl@gnu.org>
4626         * doc/groff.texinfo: More examples, other fixes.
4628 2002-04-20  Werner LEMBERG  <wl@gnu.org>
4630         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4631         will now form a chain, e.g.
4633           .pi foo
4634           .pi bar
4636         is now the same as
4638           .pi foo | bar
4640         This is for compatibility with plan 9's troff.
4642         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4643         with UNIX troff.
4644         * NEWS: Updated.
4646         * doc/groff.texinfo: Add documentation of remaining requests and
4647         registers.
4649 2002-04-19  Werner LEMBERG  <wl@gnu.org>
4651         * doc/groff.texinfo: Add documentation of remaining escapes.
4653         * font/devdvi/generate/tc.map: Remove entry for `sr'.
4654         * font/devdvi/*TC: Regenerated.
4656 2002-04-18  Werner LEMBERG  <wl@gnu.org>
4658         * src/roff/troff/input.cc (token::next): Make \H behave consistently
4659         if not in compatibility mode, i.e., increment relative to the
4660         previous height.
4661         * doc/groff.texinfo: Updated accordingly.
4663 2002-04-17  Werner LEMBERG  <wl@gnu.org>
4665         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4667 2002-04-16  Bernd Warken  <bwarken@mayn.de>
4669         * src/roff/groff/groff.man: Improve documentation of -P option.
4670         Other minor fixes.
4672 2002-04-15  Werner LEMBERG  <wl@gnu.org>
4674         Add new escape \F to switch font family.
4676         * src/roff/troff/input.cc (token::next): Handle \F.
4677         * src/roff/troff/env.cc (environment::set_family): Handle
4678         `interrupted' flag.
4679         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4680         Document it.
4682 2002-04-14  Werner LEMBERG  <wl@gnu.org>
4684         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4685         spaces in tags.
4687 2002-04-13  Werner LEMBERG  <wl@gnu.org>
4689         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
4690         \m[] and \M[], respectively.
4692         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4693         (symbol::symbol): Handle NULL string and empty string differently.
4694         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4695         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4696         Add optional parameter.
4697         Updated calling functions.
4698         (get_copy, do_glyph_color, do_fill_color, token::next): Use
4699         `symbol::is_empty'.
4700         * src/roff/troff/env.cc (environment::set_font): Ditto.
4702         * src/preproc/pic/troff.cc (troff_output::set_fill,
4703         troff_output::reset_color: Updated.
4705         * tmac/www.tmac: Updated.
4707         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4708         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4709         Updated.
4711         * tmac/Xps.tmac: Remove some redundant code.
4713         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4714         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4715         man/groff_out.man, man/groff.man, man/groff_diff.man,
4716         src/roff/groff/groff.man: Replace \f[P] with \f[].
4718 2002-04-13  Bernd Warken  <bwarken@mayn.de>
4720         * src/include/printer.h, src/libs/libdriver/printer.cc
4721         (printer::change_fill_color): New member function.
4722         * src/libs/libdriver/input.cc (parse_D_command): Use it.
4724 2002-04-12  Werner LEMBERG  <wl@gnu.org>
4726         * doc/groff.texinfo: Completed pass on gtroff reference.
4728 2002-04-11  Werner LEMBERG  <wl@gnu.org>
4730         * doc/groff.texinfo: More fixes.
4732 2002-04-11  Bernd Warken  <bwarken@mayn.de>
4734         * src/include/color.h: Decorate with `const'.
4735         Use `size_t'.
4736         Include `stddef.h'.
4737         * src/libs/libgroff.color.cc: Decorate with `const'.
4738         Use `size_t'.
4739         (color::color): Initialize members.
4740         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4741         command according to the documentation.
4743         * man/groff_out.man: Updated.
4744         Minor fixes.
4746 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
4748         * src/preproc/html/pre-html.cc (write_start_image): Remove
4749         redundant output.
4750         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4752         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4753         \C'hy' caused an assertion failure.
4755         * src/roff/troff/env.cc (environment::environment): Initialize
4756         `emitted_node'.
4757         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4759 2002-04-10  Werner LEMBERG  <wl@gnu.org>
4761         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4762         Document pvs request and .pvs register.
4764 2002-04-09  Werner LEMBERG  <wl@gnu.org>
4766         * doc/groff.texinfo: Improve and fix documentation of diversions
4767         and environments.
4769 2002-04-08  Werner LEMBERG  <wl@gnu.org>
4771         * doc/groff.texinfo: Fix documentation of drawing functions.
4772         Other minor fixes.
4774 2002-04-07  Werner LEMBERG  <wl@gnu.org>
4776         * doc/groff.texinfo: Better documentation of double quotes as
4777         arguments.
4778         Other minor fixes.
4780 2002-04-06  Werner LEMBERG  <wl@gnu.org>
4782         * man/groff_font.man: Document names of special characters better.
4783         * doc/groff.texinfo: Minor improvements.
4785         * tmac/lbp.tmac: Load latin1.tmac.
4786         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4788         * font/devX*/*: Regenerated (all chars > 0x80 removed).
4790 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4792         * tmac/tty.tmac: Don't use shc request.
4793         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4794         * NEWS: Updated.
4796         * man/groff_diff.man: Minor fixes.
4798         * font/devlbp/*: Remove all `charXXX' entities.
4800         * src/libs/libgroff/font.cc (font::~font): Deallocate
4801         `special_device_coding'.
4802         (font::load): Use `new' for allocating `special_device_coding'.
4803         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4804         Removed unused member.
4806 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4808         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4809         (resource_manager::do_begin_binary,
4810         resource_manager::do_begin_data): Use it.
4812         * doc/texinfo.tex: Updated to version 4.2.
4814         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4815         (token::zero_width_break): New inline function.
4816         * src/roff/troff/input.cc (token::next): Use it.
4817         (token::description): Updated.
4818         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4819         (token::add_to_node_list, token::process): Use it.
4820         * NEWS, doc/groff.texinfo: Updated.
4822         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4823         * tmac/tty.tmac: Add missing backslash.
4825 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
4827         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4828         `.ps' register instead of `.s' to handle fractional point sizes.
4829         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4830         limit_box::output): Ditto.
4831         * src/preproc/eqn/other.cc (size_box::compute_metrics,
4832         size_box::output): Ditto.
4833         * src/preproc/eqn/over.cc (over_box::compute_metrics,
4834         over_box::output): Ditto.
4835         * src/preproc/eqn/script.cc (script_box::compute_metrics,
4836         script_box::output): Ditto.
4837         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4838         sqrt_box::output): Ditto.
4840 2002-04-03  Michael Selway  <mas@ssl.co.uk>
4842         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4843         Fix typo.
4845 2002-04-03  Werner LEMBERG  <wl@gnu.org>
4847         * doc/homepage.ms: Reduce title size.
4848         * doc/groff.texinfo: Fix documentation of .t register.
4849         Fix handling of colon.
4850         Fix `\' vs. `\\'.
4852         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4853         only if page length is positive to avoid a loop.
4855         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4856         tbl.
4858 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
4860         * src/include/nonposix.h, src/roff/groff/pipeline.c:
4861         s/__CYGWIN32__/__CYGWIN__/.
4863 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
4865         * doc/gnu.xpm: New image contributed by Emily Mulley.
4866         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4867         (homepage.html): Be dependent on gnu.eps.
4868         * doc/homepage.ms: Updated to new image.
4870         * src/devices/grohtml/post-html.cc (html_printer): New member
4871         `sbuf_prev_hpos'.
4872         (html_printer::flush_sbuf, html_printer::set_char): Set it.
4873         (html_printer::sbuf_continuation): Use it.
4875 2002-03-28  Werner LEMBERG  <wl@gnu.org>
4877         * src/libs/libgroff/getopt.c: Updated to latest version.
4879         * tmac/README: More on hyphen.tex license.
4881 2002-03-26  Larry Kollar  <kollar@alltel.net>
4883         * doc/groff.texinfo: Add documentation of most missing requests.
4885 2002-03-25  Werner LEMBERG  <wl@gnu.org>
4887         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4888         of `+-', `mu', and `di', respectively.
4890         * font/devascii/R.proto, font/devutf8/R.proto,
4891         font/devlatin1/R.proto, font/devhtml/R.proto,
4892         font/devcp1047/R.proto, font/devlpb/*: Add them.
4893         * font/devps/generate/textmap: Ditto.
4894         * font/devps/*: Regenerated.
4895         * font/devlj4/generate/text.map: Add them.
4896         * font/devlj4/*: Regenerated.
4897         * font/devdvi/generate/tc.map: Use them.
4898         * font/devdvi/generate/texsy.map: Add them.
4899         * font/devdvi/*: Regenerated.
4900         * font/devX*/*: Regenerated.
4902         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4903         tmac/tty-char.tmac: Updated.
4905         * NEWS, man/groff_char.man: Updated.
4907 2002-03-24  Werner LEMBERG  <wl@gnu.org>
4909         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4910         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4911         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4912         we use `.fchar' in dvi.tmac.
4913         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4914         * tmac/Xps.tmac: Simplify some char definitions.
4915         Add definition for \[f/].
4916         * man/groff_char.man: Updated for new X.tmac.
4918         * tmac/README: New file.
4920 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
4922         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4923         internal .y.o rule took precendence over the .y.cc rule, compiling
4924         the yacc files with gcc instead of g++.
4926 2002-03-23  Werner LEMBERG  <wl@gnu.org>
4928         * tmac/dvi.tmac: Add replacement font for `CB'.
4930         * tmac/doc.tmac: s/request/macro/ in messages.
4931         (doc-generic-macro): Improve error message.
4932         * tmac/groff_mdoc.man: Minor improvements.
4934 2002-03-22  Werner LEMBERG  <wl@gnu.org>
4936         * doc/groff.texinfo: Document possible conflict between `tr' and
4937         `char' requests.
4939 2002-03-21  Werner LEMBERG  <wl@gnu.org>
4941         Improve handling of hyphenation patterns.  It is now possible to
4942         use most of TeX's pattern files unmodified.  To make the process
4943         more flexible, a new request `hpfcode' has been added which
4944         provides a character code mapping for the `hpf' request.  See
4945         comment before hpf_getc() for more details.
4947         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4948         functions.
4949         (read_patterns_file): Additional parameter for exception dictionary.
4950         Extended to recognize \pattern, \hyphenation, and \endinput.
4951         (do_hyphenation_patterns_file): Updated.
4952         * src/roff/troff/env.h (hpf_code_table): New extern.
4954         * src/roff/troff/input.cc (hpf_code_table): New array.
4955         (init_hpf_code_table, hyphenation_patterns_file_code): New
4956         functions.
4957         (hyphenation_code): Handle translation from `trin' correctly.
4958         (main, init_input_requests): Updated.
4959         (charinfo::set_translation): Handle hyphenation code also.
4961         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4962         inline function.
4964         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4965         char' is used for offsets in hyphenation exceptions.
4967         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4969         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4971 2002-03-20  Larry Kollar  <kollar@alltel.net>
4973         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4974         requests.
4976 2002-03-18  Werner LEMBERG  <wl@gnu.org>
4978         * tmac/html.tmac: Fix serious typo.
4980 2002-03-17  Larry Kollar  <kollar@alltel.net>
4982         * doc/groff.texinfo: Add documentation for `writec' request.
4984 2002-03-17  Werner LEMBERG  <wl@gnu.org>
4986         Added request `hpfa' to append hyphenation patterns.
4988         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4989         parameter `append'.
4990         (hyphenation_patterns_file): Renamed to...
4991         (do_hyphenation_patterns_file): This.
4992         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4993         functions.
4994         (init_hyphen_requests): Updated.
4995         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4997 2002-03-16  Werner LEMBERG  <wl@gnu.org>
4999         Added request `writec' in analogy to `tmc'.
5001         * src/roff/troff/input.cc (write_request): Renamed to...
5002         (do_write_request): This.
5003         Added one parameter.
5004         (write_request, write_request_continue): New functions.
5005         (init_input_requests): Updated.
5006         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5008         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5009         5-10000pt.
5010         * NEWS: Document it.
5012 2002-03-15  Werner LEMBERG  <wl@gnu.org>
5014         * man/groff.man: Add writem request.
5016         Add request `trin' (translate input) to make `.asciify' work
5017         correctly.  This is necessary since `charXXX' entity names are no
5018         longer hardcoded in font definition files.
5020         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5021         `translate_input' members.
5022         (charinfo::set_asciify_code, charinfo::get_asciify_code,
5023         charinfo::set_translation_input): New methods.
5024         (charinfo::set_translation): Add third argument.
5025         * src/roff/troff/input.cc (charinfo:set_translation): Set
5026         `asciify_code'.
5027         (do_translate): Add second argument.
5028         (translate_input): New function.
5029         (init_input_requests): Updated.
5030         * src/roff/troff/node.cc (glyph_node::asciify,
5031         composite_node::asciify): Use `get_asciify_code'.
5033         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5035         * NEWS, man/groff.man, man/groff_diff.man: Updated.
5037 2002-03-14  Larry Kollar  <kollar@alltel.net>
5039         * doc/groff.texinfo: Improve documentation of .RS and .RE.
5041 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5043         Add a new request `sizes' similar to the `sizes' command in DESC
5044         files.
5046         * src/roff/troff/env.cc (override_sizes): New function.
5047         (init_env_requests): Use it.
5048         * src/roff/troff/token.h: Export `read_string'.
5049         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5051 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5053         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5055 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5057         * tmac/pspic.tmac: Add support for -Tdvi.
5058         * tmac/dvi.tmac: Include pspic.tmac.
5059         * src/devices/grodvi/grodvi.man: Document it.
5060         * NEWS: Updated.
5062         * font/devlj4/generate/Makefile: Fix URL of metric files.
5064 2002-03-09  Werner LEMBERG  <wl@gnu.org>
5066         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5068 2002-03-09  Larry Kollar  <kollar@alltel.net>
5070         * tmac/groff_ms.man: Add documentation for RS and RE macros.
5072 2002-03-08  Werner LEMBERG  <wl@gnu.org>
5074         * doc/groff.texinfo: Fixes for texinfo 4.1.
5076 2002-03-07  Werner LEMBERG  <wl@gnu.org>
5078         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5079         included.
5080         Handle CYGWIN properly.
5082 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
5084         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5085         * tmac/lbp.tmac: Add some font translations.
5087 2002-03-02  Werner LEMBERG  <wl@gnu.org>
5089         * font/devcp1047/R.proto, font/devlatin1/R.proto,
5090         font/devhtml/R.proto: Remove `charXXX'  entries.
5091         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5092         where appropriate.
5094         * font/devlj4/generate/text.map: Remove `charXXX' entries.
5095         * font/devlj4/*: Regenerated all font definition files.
5096         * tmac/lj4.tmac: Load latin1.tmac.
5098         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5099         from 2000-06-17: LJ4 metric files are *not* text files.
5101         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5102         register to test for EBCDIC.
5104 2002-03-01  Werner LEMBERG  <wl@gnu.org>
5106         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5107         files (as grops already does).
5108         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5109         files.
5110         * src/devices/grops/grops.man: Document comment lines in encoding
5111         files.
5113         * tmac/cp1047.tmac: New file.
5114         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5115         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5116         * tmac/Makefile.sub (NORMALFILES): Updated.
5118         * tmac/ec.tmac: Don't load latin1.tmac again.
5120         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5121         font/devps/generate/dingbats.map,
5122         font/devps/generate/dingbats.rmap, font/devps/text.enc,
5123         font/devps/generate/Makefile (symbolmap): Add header comment.
5124         * font/devps/generate/textmap: Ditto.
5125         Remove `charXXX' entries.
5126         * font/devps/symbolmap: Regenerated.
5127         * font/devps/*: Regenerated all font definition files.
5129 2002-02-28  Werner LEMBERG  <wl@gnu.org>
5131         Add color support to grodvi (for drawing colors are currently
5132         translated to gray values).
5134         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5135         (dvi_printer): Add `cur_color' member.
5136         (dvi_printer::set_color): New function.
5137         (draw_dvi_printer): Remove `fill'.
5138         (draw_dvi_printer::fill_next): Pass environment as parameter.
5139         Update code for new color support translated to gray.
5140         (dvi_printer::set_char): Updated.
5141         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5142         changes crossing the page border.
5143         (dvi_printer::draw): Updated.
5144         Remove cases `f' and `F'.
5145         * tmac/dvi.tmac: Add color definitions.
5146         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5148         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5149         used incorrectly.
5151         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5152         versions of autoconf.
5153         * configure: Updated.
5155         * doc/homepage.ms: Use `.blm'.
5156         * tmac/www.tmac (www-depth): New auxiliary variable.
5157         (www-pop-level): Don't issue HTML tag.
5158         (ULS, ULE, LI): Use absolute indentation.
5160         * src/devices/grops/ps.cc (ps_printer::begin_page,
5161         ps_printer::end_page): Switch forth and back to default color while
5162         starting a new page.
5164 2002-02-27  Werner LEMBERG  <wl@gnu.org>
5166         Add EC and TC fonts to devdvi.
5168         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5169         * font/devdvi/generate/cork.map: Renamed to...
5170         * font/devdvi/generate/ec.map: This.
5171         Remove entry for `aq'.
5172         * font/devdvi/generate/tc.map: New file.
5173         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5174         EC and TC fonts.
5175         (FONTS): Updated.
5176         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5177         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5178         * tmac/ec.tmac: New file.
5179         * tmac/Makefile.sub (NORMALFILES): Updated.
5180         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5181         * man/groff_char.man: Check `ECFONTS' register.
5183         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5185 2002-02-26  Werner LEMBERG  <wl@gnu.org>
5187         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5188         * font/devdvi/generate/cork.map: Add 'y and 'Y.
5189         * font/devdvi/*: Updated.
5190         * tmac/dvi.tmac: Formatting.
5192         Add font `HBI' for the dvi output.
5193         Add support for font families `T' and `H'.
5195         * font/devdvi/HBI: New file.
5196         * font/devdvi/B: Renamed to ...
5197         * font/devdvi/TB: This.
5198         * font/devdvi/BI: Renamed to ...
5199         * font/devdvi/TBI: This.
5200         * font/devdvi/I: Renamed to ...
5201         * font/devdvi/TI: This.
5202         * font/devdvi/R: Renamed to ...
5203         * font/devdvi/TR: This.
5204         * font/devdvi/H: Renamed to ...
5205         * font/devdvi/HR: This.
5206         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5207         * font/devdvi/generate/Makefile (HBI): New rule.
5208         (FONTS): Updated.
5209         (R, I, B, BI, H): Renamed to ...
5210         (TR, TI, TB, TBI, HR): This, respectively.
5211         (srcdir): Fixed.
5212         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5213         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5214         Add `styles' and `family' keywords.
5215         * tmac/dvi.tmac: Alias `H' to `HR'.
5216         Add some fspecial requests for italic fonts.
5217         Add TR and TI as special.
5218         Add support for `_' with font CWI.
5220         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5221         operator `:'.  Until now, the expression `0:1' would return 2
5222         instead of 1.
5224 2002-02-25  Werner LEMBERG  <wl@gnu.org>
5226         * man/groff_char.man: Added some missing PS glyph names (from the
5227         Adobe Glyph List).
5228         * font/devps/generate/textmap, font/devps/symbolmap: Add
5229         `arrowupdn'.
5231         * doc/groff.texinfo: Minor additions and fixes.
5232         * man/groff_diff.man: Remove documentation of fp request.  This
5233         is already covered in the original troff manual.
5234         Updated to be consistent with other doc files.
5235         * NEWS: Updated.
5237 2002-02-24  Werner LEMBERG  <wl@gnu.org>
5239         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5240         TTYDEVDIRS.
5241         Define new variable OTHERDEVDIRS (containing `font/devlj4
5242         font/devlbp' if not EBCDIC).
5243         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5244         (OTHERDEVDIRS): New variable.
5245         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5246         * configure: Regenerated.
5248         * NEWS, src/devices/grotty/grotty.man: Updated.
5250 2002-02-23  Werner LEMBERG  <wl@gnu.org>
5252         * src/roff/troff/input.cc (do_overstrike, do_bracket,
5253         get_line_arg): Honour input level.
5255         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5257         * font/*/*: Implement it in all font files.
5258         * font/devps/generate/textmap, font/devps/generate/symbolchars,
5259         * font/devps/symbolmap: Updated.
5260         * font/devlj4/generate/text.map: Updated.
5261         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5262         * font/devdvi/generate/texmi.map: Updated.
5264         * font/devutf8/R.proto: Remove all `charXXX' entries.
5265         * font/devutf8/NOTES: Updated.
5267         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5268         version 4.1.0.
5270         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5272         * NEWS, man/groff_char.man: Updated.
5274 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
5276         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5278 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5280         * src/roff/grog/grog.pl: Fix computation of $refer.
5282 2002-02-19  Werner LEMBERG  <wl@gnu.org>
5284         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5285         `snprintf' and `vsnprintf'.
5287         * src/include/htmlindicate.h: Renamed to...
5288         * src/include/htmlhint.h: This.
5289         * src/include/Makefile.sub: Updated.
5290         * src/preproc/eqn/main.cc: Updated.
5292 2002-02-18  Werner LEMBERG  <wl@gnu.org>
5294         * man/roff.man, man/groff_out.man, man/groff.man,
5295         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5296         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5298         * win32-diffs: Updated.
5300 2002-02-17  Werner LEMBERG  <wl@gnu.org>
5302         * doc/Makefile (clean): Add *.eps.
5303         (MEMACROS): Removed.
5304         (TFLAG): New variable.
5305         (TROFF): Use it.
5306         Add -ww.
5307         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5308         (.me.dit): Fixed.
5309         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5311         * tmac/www.tmac: Use dummy diversion while resetting and disabling
5312         `.tl'.
5313         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5314         unstripped.
5315         * src/roff/troff/troff.man: Fix order of parameter description.
5317         * NEWS: Updated.
5319 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
5321         Simplify image handling for grohtml.
5322         Fix <p> bug.
5324         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5325         comment out.
5326         (html_text::dump_stack): Don't emit newline while debugging.
5327         (html_text::do_push) [DEBUGGING]: Print more info.
5328         (html_text::check_emit_text): Fix handling of <p>.
5329         * src/devices/grohtml/html.h: Updated.
5330         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5331         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
5332         send its data to stderr also.
5333         Update all callers.
5334         (simple_output::space_or_newline) [DEBUGGING]: Removed.
5335         * src/devices/grohtml/post-html.cc (html_printer::do_links,
5336         html_printer::html_printer): Remove `DEBUGGING' conditionals.
5338         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5339         Removed.
5340         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5341         is_inline_image): Removed.
5342         (html_begin_suppress, html_end_suppress): Don't take a parameter.
5343         (graphic_start, graphic_end): Removed.
5344         * src/include/htmlindicate.h: Updated.
5345         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5346         (macroset_template): New global variable.
5347         (makeFileName): Use `macroset_template'.
5348         (write_end_image): Don't take a parameter.
5349         Don't emit newline.
5350         (write_start_image: Don't emit newline.
5351         (char_buffer::write_upto_newline): Updated.
5352         (char_buffer::skip_to_newline): Renamed to ...
5353         (char_buffer::skip_until_newline): This.
5354         Fix code.
5355         (char_buffer::write_file_troff, char_buffer::write_file_html):
5356         Simplified.
5357         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5358         (removeAllPages): Remove `DEBUGGING' conditionals.
5359         (addRegDef, dump_args): New functions.
5360         (char_buffer::do_html, char_buffer::do_image): Handle
5361         `www-image-template' command line variable.
5362         Add more debugging code.
5363         (addps4html): Removed.
5364         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5366         * src/preproc/eqn/main.cc: Include `ctype.h'.
5367         (suppress_html): Removed.
5368         (do_file): Updated.
5369         (inline_equation): Use `html_begin_suppress' and
5370         `html_end_suppress'.
5371         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5372         (troff_output::start_picture, troff_output::finish_picture):
5373         Updated.
5374         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5375         (process_input_file): Updated.
5377         * src/roff/troff/div.cc (page_number): Set page number only if the
5378         `ps4html' register isn't defined.
5379         * src/roff/troff/input.cc (image_no): New external variable.
5380         (do_suppress): Use it.
5381         * src/roff/troff/node.h (suppress_node::image_id): New member.
5382         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5383         (suppress_node::suppress_node): Initialize `image_id' member.
5384         (suppress_node::same): Handle `image_id' also.
5385         (suppress_node::copy): Updated.
5386         (last_image_id): New global variable.
5387         (suppress_node::tprint): Use it.
5389         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5390         HTML-IMAGE-END.
5391         * tmac/pspic.mac (PSPIC): Fix html support.
5392         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5393         * tmac/www.tmac (www-image-template): Set up.
5394         (HTMLINDEX): Renamed to...
5395         (HX): This.
5396         (BODYCOLOR): Renamed to...
5397         (BCL): This.
5398         (BACKGROUND): Renamed to...
5399         (BGIMG): This.
5400         (URL): Change order of parameters for consistency.
5401         (MAILTO): Renamed to...
5402         (MTO): This.
5403         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5404         (IMG, PIMG, MPIMG): This.
5405         (HTML-H-BEGIN, HTML-H-END): Renamed to...
5406         (HnS, HnE): This.
5407         (LINKS): Renamed to...
5408         (LK): This.
5409         (LINE): Renamed to...
5410         (HR): This.
5411         (NO-AUTO-RULE): Renamed to...
5412         (NHR): This.
5413         (HTML-TL): Renamed to...
5414         (HTL): This.
5415         (UL-BEGIN, UL-END): Renamed to...
5416         (ULS, ULE): This.
5417         (DROPCAP): Renamed to...
5418         (DC): This.
5419         (TS, TE, EQ, EN): Provide default definitions.
5420         (www-make-unique-name): Updated.
5421         (HTML-IMAGE-INLINE): Fix typo.
5422         * tmac/groff_www.man: Updated.
5424         * doc/Makefile (homepage.html): Add option -r to grohtml.
5425         Use shortened image name.
5426         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5427         * doc/homepage.ms: Updated and extended.
5429 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5431         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5433         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5434         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5435         (tty_printer::put_color): Use it.
5436         (ttr_printer::end_page): Simplify.
5438 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5440         * tmac/groff_tmac.man: Moved to...
5441         * man/groff_tmac.man: This place.
5442         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5444 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5446         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5447         $(COMPILE.c) to not include groff's assert.h.
5449         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5450         variable.
5451         * NEWS, src/drivers/grotty/grotty.man: Document it.
5453 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5455         * src/libs/snprintf/snprintf.c: Updated to latest version
5456         (2002-02-11).
5458         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5459         test whether there is `.]' also.
5460         Don't check for spaces after `.['.
5461         * src/roff/grog/grog.sh: Do the same.
5463 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5465         Illegal -> Invalid.
5467         * src/libs/libgroff/illegal.cc: Renamed to ...
5468         * src/libs/libgroff/invalid.cc: This.
5469         (illegal_char_table): Renamed to ...
5470         (invalid_char_table): This.
5471         * src/libs/libgroff/Makefile.sub: Updated.
5472         * win32-diffs: Updated.
5474         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5475         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5476         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5477         font::load), src/preproc/eqn/main.cc (read_line, main),
5478         src/preproc/eqn/lex.cc (file_input::read_line),
5479         src/preproc/pic/lex.cc (file_input::read_line,
5480         simple_file_input::get, simple_file_input::peek),
5481         src/preproc/pic/main.cc (top_input::get, top_input::peek),
5482         src/preproc/pic/pic.man, src/preproc/refer/main.cc
5483         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5484         do_bib), src/preproc/tbl/main.cc (table_input::get),
5485         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5486         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5487         do_zero_width, read_request, encode_char, ps_get_line,
5488         transparent_file, get_char_for_escape_name, transparent_translate,
5489         asciify, input_char_description, read_string, set_string),
5490         src/roff/troff/env.cc (environment::add_html_tag),
5491         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5493         * src/include/lib.h: Updated.
5495         * src/preproc/eqn/eqn.cc: Removed.
5497         * NEWS: Updated.
5499         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5501 2002-02-09  Werner LEMBERG  <wl@gnu.org>
5503         * doc/gnu.xpm: New image.
5504         * doc/Makefile (DOCS): Add homepage.ps.
5505         Add rules for converting xpm->png and xpm->eps.
5506         Use `gnu.{xpm,eps}' as image names.
5507         * doc/homepage.ms: Updated.
5509 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
5511         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5512         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5513         Remove calls to `B1' and `B2'
5514         (PNG-IMAGE): New macro for inclusion of images in PNG format.
5515         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5516         auxiliary variables for MARGIN-PNG-IMAGE.
5517         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5518         auxiliary macros for MARGIN-PNG-IMAGE.
5519         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5520         the margin.
5521         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5522         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5523         (DROPCAP): New macro to produce dropcap characters.
5524         (www-do-image): Renamed back to...
5525         (HTML-DO-IMAGE): This.
5526         Updated all callers.
5528         * doc/Makefile (gnubw.eps): Updated.
5529         * doc/homepage.ms: Updated.
5531 2002-02-08  Werner LEMBERG  <wl@gnu.org>
5533         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5534         Added `linethick' to table in section `Style Variables'.
5536 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
5538         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5540 2002-02-07  Werner LEMBERG  <wl@gnu.org>
5542         Adding options -C (compatibility mode) and -c (grotty's old output
5543         scheme) to nroff.
5545         * src/roff/nroff/nroff.sh: Implement it.
5546         Remove `-Wall'.
5547         * NEWS, src/roff/nroff/nroff.man: Updated.
5549         * PROBLEMS: Document bison 1.32 bug.
5551         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5553         * src/roff/troff/node.cc (make_tfont): Define it earlier.
5554         * src/roff/troff/div.h: Add prototype for `end_diversions'.
5555         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5556         * src/roff/troff/env.h: Add prototype for `title'.
5558         Adding EBCDIC support to grotty.
5560         * src/devices/grotty/tty.cc (CSI): New macro.
5561         (SGR_*, tty_printer::put_color): Use it.
5563 2002-02-06  Werner LEMBERG  <wl@gnu.org>
5565         Implementing color support in grotty.  The new switch -c activates
5566         the old drawing scheme, disabling color at the same time.  The new
5567         switch `-i' selects italic instead of underlining (SGR only).
5569         * src/devices/grotty/tty.cc (putstring): New define instead of
5570         `fputs'.  Updated all callers.
5571         (old_drawing_scheme): New global variable.
5572         (COLOR_CHANGE): New enum value.
5573         (SGR_*): New defines containing color handling escape sequences.
5574         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5575         (glyph): New members `back_color_idx' and `fore_color_idx'.
5576         (glyph::order): Add COLOR_CHANGE.
5577         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5578         `is_underline', `is_bold', `cu_flag', `tty_colors'.
5579         New methods `make_underline', `make_bold', `color_to_idx',
5580         `change_color', `put_color'.
5581         (cu_flag): Moved into `tty_printer' class.
5582         (tty_printer::tty_printer): Initialize colors.
5583         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5584         tty_printer::draw, tty_printer::end_page): Handle colors also.
5585         (main): Add options `-c' and `-i'.
5586         (usage): Updated.
5587         * NEWS, src/devices/grotty/grotty.man: Updated.
5589         * src/include/errarg.h (errarg): Add support for `unsigned int'.
5590         * src/libs/libgroff/errarg.c: Implement it.
5592         * src/include/printer.h (printer): Add `change_color' method
5593         (currently used by grotty only).
5594         * src/libs/libdriver/printer.cc: Implement it.
5595         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5596         call to `pr->change_color'.
5598         * src/roff/troff/node.cc (troff_output_file::fill_color,
5599         troff_output_file::glyph_color): Call `do_motion'.
5601         * tmac/tty.tmac: Add color definitions.
5603         * src/roff/groff/groff.man: Minor fixes.
5605 2002-02-05  Bernd Warken  <bwarken@mayn.de>
5607         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5608         it.  This is a preparation for future changes.
5610 2002-02-05  Werner LEMBERG  <wl@gnu.org>
5612         * src/roff/troff/input.cc (process_input_stack): Fix the case
5613         where leading spaces are followed by \f or \s; previously, an
5614         incorrect space width has been used.
5616         * doc/roff.man (quoted_char): Fix argument.
5617         (comment): Define string.
5619 2002-02-04  Larry Kollar  <kollar@alltel.net>
5621         * doc/groff.texinfo: More fixes.
5623 2002-02-04  Werner LEMBERG  <wl@gnu.org>
5625         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5626         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5627         `restore_compatibility' before `output_string' -- the LINE_STRING
5628         register now already contains proper switches from and to
5629         compatibility mode.
5631         * man/groff_char.man: Add Euro symbol.
5632         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5633         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5634         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5635         Other minor fixes.
5637         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5638         texinfo->pdf.
5639         (.texinfo.html): Add support for texinfo->html.
5641 2002-02-03  Werner LEMBERG  <wl@gnu.org>
5643         Added three new requests `ds1', `as1', and `ami'.  The former two
5644         are equivalent to `ds' and `as' with the difference that
5645         compatibility mode is saved on entry, switched off during string
5646         expansion, and restored on exit.  The latter is the pendant to `dei'
5647         for `am'.
5649         (do_define_string): Use `define_mode' and `calling mode'.
5650         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5651         end of string, respectively.
5652         (define_string, append_string): Use `calling_mode'.
5653         (define_nocomp_string, append_nocomp_string,
5654         define_string_indirect): New functions.
5655         (init_input_requests): Updated.
5656         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5658         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5659         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
5660         mm macro package accesses this string register directly.
5661         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5663         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
5664         compatibility mode.
5666 2002-02-02  Larry Kollar  <kollar@alltel.net>
5668         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5670 2002-01-31  Werner LEMBERG  <wl@gnu.org>
5672         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5674 2002-01-31  Bernd Warken  <bwarken@mayn.de>
5676         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5677         * man/groff_out.man: Revised and updated.
5679 2002-01-30  Bernd Warken  <bwarken@mayn.de>
5681         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5682         out the unused `{' and `}' commands.  Undefined by default.
5683         (IntArray): Make `data' private.
5684         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5685         new methods instead.
5686         (skip_line_D, skip_to_end_of_line): New functions.
5687         (get_D_fixed_args): Use `skip_line_D'.
5688         Changed to handle dummy odd arguments by ...
5689         (get_D_fixed_args_odd_dummy): This new function.
5690         (get_D_variable_args): Split some code into ...
5691         (get_possibly_integer_args): This new function.
5692         (send_draw): Use more `const'.
5693         (delete_current_env): New function.
5694         (position_to_end_of_args): Use `size_t'.
5695         Updated.
5696         (send_draw): Updated.
5697         (parse_D_command): Handle `c', `C', and `t' better.
5698         Updated.
5699         (do_file): Updated.
5701 2002-01-29  Werner LEMBERG  <wl@gnu.org>
5703         * NEWS: Revised.
5704         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5705         @Def...ListEnd which replaces @Def...x.  This is necessary to get
5706         proper HTML output -- see the comment in the file for more
5707         information.
5708         Updated all calls.
5710 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
5712         Fixes to make color changes of 2002-01-21 work with grohtml.
5714         * src/devices/grohtml/post-html.cc (style): Updated.
5715         (html_printer): Remove unused methods.
5716         (html_printer::do_font, html_printer::draw, html_printer::set_char,
5717         html_printer::special): Updated.
5718         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5719         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5720         Added some debugging code.
5721         (html_text::start_tag): Updated.
5722         (html_text::do_push): New method.
5723         (html_text::push_para): Call it.
5724         Add method for handling color.
5725         (html_text::do_color): Updated.
5726         (html_text::shutdown): Handle color.
5727         * src/devices/grohtml/html-text.h (tag_definition): New member
5728         `col'.
5729         Updated.
5731 2002-01-28  Werner LEMBERG  <wl@gnu.org>
5733         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5735 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
5737         Add two switches -a and -g to control the antialiasing bits for
5738         text and graphics, respectively.
5740         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5741         `-g'.
5742         * src/devices/grohtml/grohtml.man: Document them.
5743         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5744         New macros.
5745         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5746         (setupAntiAlias): New function.
5747         (createAllPages): Updated.
5748         (scanArguments): Handle `-a' and `-g'.
5749         (main): Call `setupAntiAlias'.
5750         * NEWS: Updated.
5752 2002-01-27  Werner LEMBERG  <wl@gnu.org>
5754         * doc/groff.texinfo (Def*): Call index function after deffn.
5756         * tmac/html.tmac: Call `nroff' request.
5758 2002-01-26  Larry Kollar  <kollar@alltel.net>
5760         * tmac/groff_ms.man: Add some omissions.
5762 2002-01-25  Larry Kollar  <kollar@alltel.net>
5764         * tmac/groff_ms.man: Typographical improvements.
5766 2002-01-25  Werner LEMBERG  <wl@gnu.org>
5768         * doc/groff.texinfo: Updated version and copyright.
5769         * src/devices/grops/grops.man: Updated.
5771         * tmac/groff_tmac.man: Fix `ig' macro.
5773         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5774         nroff mode.
5775         Use `.ne' unconditionally everywhere.
5776         (TS): Only insert some vertical space.  Doing a page break is no
5777         longer necessary due to the redefinition of the `ne' request.
5779         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5780         warning for unknown subcommands but parse and pass them to the
5781         device driver.
5783 2002-01-24  Werner LEMBERG  <wl@gnu.org>
5785         * tmac/groff_www.man, NEWS: Fix typos.
5787 2002-01-21  Werner LEMBERG  <wl@gnu.org>
5789         Complete revision of color support:
5791           Adapt programs to the new libdriver/input.cc.
5793           Color spaces are no longer converted to RGB but transferred as-is
5794           in the troff intermediate output format.
5796           Handle default color gracefully.  troff now supports a `default'
5797           color (which can't be changed).
5799           grops will now use the proper color space functions if available.
5801           Update pic.
5803         Note that currently grohtml doesn't handle colors properly.  This
5804         has to be fixed.
5806         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5807         (ui_to_a): New function.
5808         * src/include/lib.h: Updated.
5810         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5811         (color): Simplified; removed all `double' members and methods.
5812         A new array `components' now holds the color parameters.
5813         (color::is_default, color::get_components): New methods.
5814         (color::operator==, color:operator!=): New.
5815         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5816         to make access to the `components' array more comprehensible.
5817         * src/libs/libgroff/color.cc: Implement new color support.
5818         (atoh): Small fixes.
5819         (color::read_encoding): Simplified for new troff intermediate color
5820         output format.
5821         (default_color): New global variable.
5823         * src/roff/troff/input.cc (default_symbol): New global variable.
5824         (lookup_color): Use it.
5825         (default_black): Removed.
5826         (do_glyph_color, do_fill_color): Simplified.
5827         (define_color): Handle default color.
5828         Improve warnings.
5829         (do_if_request): Handle default color.
5830         * src/roff/troff/env.cc (environment::environment): Initialize
5831         colors with `default_color'.
5832         * src/roff/troff/node.cc (troff_output_file::put): Add method
5833         for `unsigned int'.
5834         (troff_output_file::hex): Removed.
5835         (troff_output_file::fill_color, troff_output_file::glyph_color):
5836         Updated to include/color.h and libdriver/input.cc.
5838         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5839         fill color properly (identically to the outline color).  \D'f...'
5840         doesn't work any more.
5841         All function calls to it updated.
5843         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5844         Updated.
5845         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5846         Updated.
5848         * src/devices/grops/ps.cc (ps_output::put_color): New method.
5849         (ps_printer::sbuf_color): Make a real member instead of pointer.
5850         (ps_printer::fill_color, ps_printer::output_color): Removed.
5851         (ps_printer::ps_printer): Updated.
5852         (ps_printer::set_char): Ditto.
5853         (ps_printer::set_color): Use various color schemes.
5854         Use `put_color' method.
5855         (ps_printer::flush_sbuf): Don't set color.
5856         (ps_printer::fill_path): Take `environment' as parameter.
5857         Simplify color handling.
5858         (ps_printer::set_line_thickness): Renamed to ...
5859         (ps_printer::set_line_thickness_and_color): This (and updated).
5860         (ps_printer::set_color): Change second parameter from `complete'
5861         to `fill' which better describes what it does.
5862         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5863         and text in the right order.
5864         Updated.
5865         Remove branches for `f' and `F'; this is handled by
5866         libdriver/input.cc.
5867         * src/devices/grops/ps.h: Updated.
5868         * font/devps/prologue (FL): Redefined.
5869         ({F,C}r,k,g: New color functions (with and without filling).
5871         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5872         * man/groff_diff.man, man/groff.man, man/groff_out.man,
5873         doc/groff.texinfo, NEWS: Updated.
5875 2002-01-20  Bernd Warken  <bwarken@mayn.de>
5877         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
5878         in this file for what has been changed.
5880 2002-01-19  Werner LEMBERG  <wl@gnu.org>
5882         * test-groff: Fix GROFF_FONT_PATH.
5883         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5884         is read before .TH or .Dd is parsed.
5886 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
5888         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5889         quadrant boundaries.
5891 2002-01-18  Werner LEMBERG  <wl@gnu.org>
5893         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
5894         applied last patch.
5896 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
5898         * tmac/doc.common: Initialize %I register for the %I macro to
5899         avoid (harmless) warning.
5900         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5901         when in the SYNOPSIS section.
5903 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
5905         * src/preproc/pic/lex.cc (get_token): Fix typo.
5907 2002-01-17  Werner LEMBERG  <wl@gnu.org>
5909         * devices/grops/ps.cc: Fix incorrectly applied last patch.
5911 2002-01-17  Larry Kollar  <kollar@alltel.net>
5913         * tmac/groff_ms.man: Completely rewritten.
5915 2002-01-16  Werner LEMBERG  <wl@gnu.org>
5917         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5919 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5921         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5922         fill colors.
5923         (ps_printer::draw): Ditto.
5925 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
5927         * tmac/groff_mdoc.man: Minor fixes.
5929 2002-01-13  Werner LEMBERG  <wl@gnu.org>
5931         * man/groff_out.man: Some fixes.
5933 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
5935         * doc/pic.ms: Fix typos.
5937 2002-01-12  Werner LEMBERG  <wl@gnu.org>
5939         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5941 2002-01-10  Werner LEMBERG  <wl@gnu.org>
5943         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5944         symbols.
5945         * NEWS: Updated.
5947 2002-01-09  Bernd Warken  <bwarken@mayn.de>
5949         * man/groff_out.man: Revised.
5950         * man/roff.man: Minor fixes.
5951         * src/roff/troff/troff.man: Some reordering.
5953 2002-01-09  Werner LEMBERG  <wl@gnu.org>
5955         * tmac/an-old.tmac: Add dummy macros for equation support.
5957 2002-01-07  Werner LEMBERG  <wl@gnu.org>
5959         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5961         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
5962         man pages.
5963         * tmac/groff_man.man: Small improvements.
5965 2002-01-07  Bernd Warken  <bwarken@mayn.de>
5967         * man/groff_diff.man: Revised.
5969 2002-01-06  Werner LEMBERG  <wl@gnu.org>
5971         * tmac/www.tmac: Remove extraneous backslash.
5973 2002-01-06  Bernd Warken  <bwarken@mayn.de>
5975         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5977 2002-01-05  Werner LEMBERG  <wl@gnu.org>
5979         Integrated groffer, contributed by Bernd Warken.
5981         * contrib/groffer/*: New.       
5982         * Makefile.in, NEWS: Updated.
5984 2002-01-04  Werner LEMBERG  <wl@gnu.org>
5986         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5987         registers defined in macro packages.
5988         Revising the ms part.
5990 2002-01-04  Larry Kollar  <kollar@alltel.net>
5992         * doc/groff.texinfo: Add documentation for ms macros.
5994 2002-01-02  Werner LEMBERG  <wl@gnu.org>
5996         First step in adding PS support for the Euro symbol.  `eu' is the
5997         official Euro logo, `Eu' is a font-specific glyph variant.
5999         * font/devps/text.enc: Add `Euro' at position 9.
6000         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6001         * font/devps/symbolmap: Regenerated.
6003         * NEWS: Updated.
6005 2002-01-02  Bernd Warken  <bwarken@mayn.de>
6007         * man/roff.man: Revised.
6009 2002-01-01  Bernd Warken  <bwarken@mayn.de>
6011         * src/roff/groff/groff.man: Completely rewritten.
6013 2001-12-31  Werner LEMBERG  <wl@gnu.org>
6015         * doc/Makefile: Updated.
6017 2001-12-30  Werner LEMBERG  <wl@gnu.org>
6019         * tmac/www.tmac: Make all names of internal macros/registers/strings
6020         lowercase, and prepend `www-'.
6021         Other minor changes.
6022         * src/roff/troff/troff.man: Add preprocessor string at BOF.
6024 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
6026         Implement option `-b' in grohtml to set the HTML background colour.
6028         * src/devices/grohtml/post-html.cc (default_background): New global
6029         variable.
6030         (html_printer::html_printer): Initialize `background' to
6031         `default_background'.
6032         (main): Implement option `-b'.
6033         (usage): Updated.
6034         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6035         of `-b' option.
6036         * src/devices/grohtml/grohtml.man: Updated.
6037         * doc/Makefile (.ms.html): Use `-b'.
6038         * tmac/html.tmac: Don't set background color.
6040         Add new grohtml tag `.html-tl'.
6042         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6043         member variable.
6044         (title_desc::title_desc): Updated.
6045         (html_printer::troff_tag): Handle `.html-tl'.
6046         (html_printer::write_title): Use `with_h1'.
6047         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6048         (HTML-TL): New macro.
6050         Add support for unordered lists in HTML.
6052         * tmac/www.tmac (www-level): New auxiliary register.
6053         (www-level1, www-level2, www-level3): New auxiliary strings.
6054         (www-push-level, www-pop-level): New auxiliary macros
6055         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6057         Miscellaneous.
6059         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6060         (DEFAULT_VERTICAL_OFFSET): Removed.
6061         (IMAGE_BOARDER_PIXELS): Set to 0.
6062         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6063         (vertical_offset): Initialize with 0.
6064         (gsPaper): New global variable.
6065         (get_resolution): Scan for and return unsigned int.
6066         (get_papersize): New function to get paper length from devps/DESC.
6067         (determine_vertical_offset): New function.
6068         (createAllPages): Produce gray-level images and use proper page
6069         length.
6070         (createImage): Use `-quiet' option of pnmcrop.
6071         (addZ): Fix passing of `-Z'.
6072         (scanArguments): Fix handling of `-o'.
6073         (main): Call `determine_vertical_offset'.
6074         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6075         code for `l'.
6077         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6078         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6079         glyph descenders properly.
6081         * doc/homepage.ms: Include `gnubw.eps'.
6082         * doc/Makefile (gnubw.eps): New rule.
6083         (homepage.html): Depend on `gnubw.eps'.
6085 2001-12-25  Werner LEMBERG  <wl@gnu.org>
6087         * src/roff/troff/input.cc (default_black): Fix return value.
6089 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
6091         * tmac/doc-common (Dt): Change output of architecture strings.
6092         Do some syntax cleanup.
6093         * tmac/groff_mdoc.man: Updated.
6095 2001-12-23  Werner LEMBERG  <wl@gnu.org>
6097         Adding an `itc' request (input line trap accepting \c).
6099         * src/roff/troff/env.h (environment): New member
6100         `continued_input_trap'.
6101         Make `do_input_trap' a friend function instead of `input_trap'.
6102         * src/roff/troff/env.cc (environment::environment,
6103         environment::copy): Updated.
6104         (environment::newline): Implement it.
6105         (do_input_trap): New function.
6106         (input_trap): Call `do_input_trap'.
6107         (input_trap_continued): New function.
6108         (init_env_requests): Updated.
6109         * src/roff/troff/TODO: Updated.
6111         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6112         `.it'.
6114         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6116 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
6118         * tmac/doc-common, tmac/doc-syms: Small updates.
6120 2001-12-22  Colin Watson  <cjwatson@debian.org>
6122         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6124 2001-12-22  Bernd Warken  <bwarken@mayn.de>
6126         * MANIFEST: New file.
6128 2001-12-22  Werner LEMBERG  <wl@gnu.org>
6130         * src/preproc/grn/grn.man: Updated.
6132 2001-12-22  Solar Designer  <solar@openwall.com>
6134         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6135         (DBRead): Use it.
6137 2001-12-19  Werner LEMBERG  <wl@gnu.org>
6139         Implement a fallback character request `.fchar'.
6141         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6142         (is_fallback): New inline function.
6143         * src/roff/troff/input.cc (do_define_character): New function.
6144         (define_character): Call `do_define_character'.
6145         (define_fallback_character): New function.
6146         (init_input_requests): Add `fchar'.
6147         (charinfo::charinfo): Updated.
6148         (charinfo::set_macro): New argument to set `fallback' flag.
6149         * src/roff/troff/node.cc (make_glyph_node, make_node,
6150         node::add_char): Check `fallback' flag.
6151         * NEWS, man/groff_diff.man, man/groff_man: Updated.
6153 2001-12-16  Werner LEMBERG  <wl@gnu.org>
6155         * groff.texinfo: Document exact search algorithm for glyphs.
6157 2001-12-15  Werner LEMBERG  <wl@gnu.org>
6159         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6160         the left side of $(MANPAGES) rule to make it always non-empty.
6162 2001-12-14  Werner LEMBERG  <wl@gnu.org>
6164         * src/roff/troff/input.cc (default_black): Define default color
6165         `black' if not yet defined.
6167 2001-12-13  Werner LEMBERG  <wl@gnu.org>
6169         Implement new string-valued register `.fn' to return the current
6170         real (internal) font name.
6172         * env.cc (environment::get_font_name_string): New function.
6173         (init_env_requests): Add `.fn' register.
6174         * env.h (environment): Updated.
6175         * node.cc (font_info): Make `get_font_name' a friend.
6176         (get_font_name): New function.
6177         * node.h: Updated.
6179         * man/groff_diff.man, man/groff.man, NEWS: Updated.
6181 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6183         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6185 2001-12-12  Werner LEMBERG  <wl@gnu.org>
6187         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6189 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
6191         * man/groff_diff.man: Adding documentation for \O.
6193 2001-12-10  Werner LEMBERG  <wl@gnu.org>
6195         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6196         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6198 2001-12-09  Werner LEMBERG  <wl@gnu.org>
6200         * man/roff.man: Revised.
6201         * src/roff/groff/groff.man: Replace man page references with a
6202         pointer to roff.man.
6204 2001-12-09  Bernd Warken  <bwarken@mayn.de>
6206         * man/roff.man: Completely rewritten.
6208 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6210         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6212 2001-12-05  Werner LEMBERG  <wl@gnu.org>
6214         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6215         longer used.
6216         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6217         order of initializers.
6218         * NEWS: Updated.
6220 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
6222         * doc/groff.texinfo: Fix documentation of \O.
6224         * src/devices/grohtml/html-text.cc (html_text::do_indent,
6225         html_text::do_table, html_text::do_emittext, html_text::do_para):
6226         Use `const' for first argument.
6227         (html_text::do_table): Use cast.
6228         * src/devices/grohtml/html-text.h: Updated.
6229         * src/devices/grohtml/output.cc (simple_output::put_string): Add
6230         method for `const string &s'.
6231         * src/devices/grohtml/html.h: Updated.
6232         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6233         (ANCHOR_TEMPLATE): Modified.
6234         (manufacture_headings): New global variable to handle `-h' option.
6235         (is_subsection): Removed.
6236         (char_buffer::add_string): Add `const' to first argument.
6237         Protect against invalid string argument.
6238         Add method for `const string &s'.
6239         (text_glob): Completely redesigned.
6240         (page): Use `const' for strings and remove string length variable.
6241         (page::add_html): Removed.
6242         (page::add_end_encode): New member function.
6243         (to_unicode): Moved upwards.
6244         (title_desc, header_desc): Updated.
6245         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6246         definition.
6247         (html_printer::is_bold, html_printer::make_bold): New member
6248         functions.
6249         (html_printer::end_of_line): Updated.
6250         (generate_img_src, html_printer::do_auto_image,
6251         html_printer::do_title, html_printer::write_header,
6252         html_printer::determine_header_level, html_printer::do_heading,
6253         html_printer::do_linelength, html_printer::do_pageoffset,
6254         html_printer::do_indentation, html_printer::do_tempindent,
6255         html_printer::do_indentedparagraph, html_printer::do_break,
6256         html_printer::flush_sbuf, get_html_translation,
6257         html_printer::begin_page, html_printer::special): Rewritten to get
6258         rid of static string length limit.
6259         (html_printer::troff_tag): Added `.no-auto-rule'.
6260         (html_printer::flush_globs): Small fix.
6261         (html_printer::determine_space): Don't compute `space_width'.
6262         (html_printer::translate_to_html): Renamed to ...
6263         (html_printer::emit_html): This (with updates).
6264         (html_printer::write_header): Implement `-h' option.
6265         (html_printer::draw): Remove commented-out code.  Handle `F'
6266         command.
6267         (html_printer::add_char_to_sbuf): Removed.
6268         (html_printer::add_to_sbuf): Rewritten.
6269         (html_printer::sbuf_continuation): Fixed.
6270         (html_printer::seen_backwards_escape, reverse,
6271         html_printer::remove_last_char_from_sbuf): Removed.
6272         (char_translate_to_html, str_translate_to_html): Removed.
6273         (html_printer::overstrike): New function member.
6274         (html_printer::set_char): Use it.
6275         (html_printer::do_body): New function member.
6276         (html_printer::~html_printer): Use it.
6277         (main): Handle `-h' option.
6278         (usage): Updated.
6279         * src/devices/grohtml/grohtml.man: Document -h switch.
6281         * src/preproc/html/pre-html.cc: Include searchpath.h
6282         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6283         (get_resolution): New function.
6284         (checkImageDir): Use `0777' permissions in mkdir()
6285         (write_start_image): Rewritten to use `\O[5...]'.
6286         (createImage, generateImages): Updated.
6287         (main): Handle `F' and `h' options.
6288         Use `get_resolution'.
6290         * src/roff/troff/input.cc (begin, end, image): Removed.
6291         (do_suppress): Take parameter.
6292         Handle modified syntax of `\O'.
6293         (token::next): Updated.
6294         (init_markup_requests): Removed.
6295         (main): Updated.
6297         * src/roff/troff/div.h: Add declaration for begin_page().
6299         * tmac/color-html.tmac: Removed.  Contents moved to...
6300         * tmac/html.tmac: Here.  Set background color.
6301         * tmac/color.tmac: Removed.  Contents moved to...
6302         * tmac/ps.tmac: Here.
6303         * tmac/www.tmac: Remove the title command when generating images
6304         for html.
6305         (NO_AUTO_RULE): New macro.
6306         (HTML_DO_IMAGE): Use revised `\O' escapes.
6307         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6309 2001-12-02  Werner LEMBERG  <wl@gnu.org>
6311         * tmac/groff_mdoc.man: Fix typo.
6313 2001-12-01  Colin Watson  <cjwatson@debian.org>
6315         * man/roff.man: Fix typo.
6317 2001-11-29  Werner LEMBERG  <wl@gnu.org>
6319         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6320         stdlib.h.
6322         * src/roff/troff/input.cc (read_draw_node): Emit error message if
6323         more than one argument to \D'f ...'.
6325         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6327 2001-11-28  Werner LEMBERG  <wl@gnu.org>
6329         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6330         loaded only once.
6332         * tmac/groff_man.man: Minor cosmetic fix.
6334 2001-11-27  Werner LEMBERG  <wl@gnu.org>
6336         * src/roff/groff/groff.man, tmac/groff_tmac.man,
6337         tmac/groff_www.man: s/mwww/www/.
6339 2001-11-26  Werner LEMBERG  <wl@gnu.org>
6341         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6342         * configure: Regenerated.
6343         * win32-diffs: Updated.
6345         * tmac/groff_mwww.tmac: Renamed to ...
6346         * tmac/groff_www.tmac: This.
6347         * tmac/mwww.tmac: Removed.
6348         * NEWS, tmac/Makefile.sub: Updated.
6350 2001-11-21  Werner LEMBERG  <wl@gnu.org>
6352         * doc/groff.texinfo: Improve documentation of the `\v' escape.
6353         Fix explanation of `\D' and `rt'.
6355 2001-11-20  Werner LEMBERG  <wl@gnu.org>
6357         * tmac/an-old.tmac (an-header): Set header length equal to page
6358         width.
6359         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
6360         minor fixes.
6361         * NEWS: Small fix.
6363 2001-11-19  Werner LEMBERG  <wl@gnu.org>
6365         * NEWS, man/Makefile.sub: Updated.
6367 2001-11-19  Bernd Warken  <bwarken@mayn.de>
6369         * man/ditroff.man: New file.
6371 2001-11-17  Werner LEMBERG  <wl@gnu.org>
6373         * man/groff_differences.man: Renamed to ...
6374         * man/groff_diff.man: This.  Updated.
6375         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6377         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6378         * src/preproc/html/pushback.cc: This.  Updated.
6379         * src/preproc/html/pushbackbuffer.h: Renamed to ...
6380         * src/preproc/html/pushback.h: This.
6381         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6382         Updated.
6384         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6385         * src/libs/libgroff/htmlhint.cc: This.
6386         * src/libs/libgroff/Makefile.sub: Updated.
6388         * tmac/an-old.tmac (an-end): Fix page length.
6390 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6392         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6393         * man/Makefile.sub: Include groff_differences.man.
6394         * VERSION: Set to 1.18.
6395         * REVISION: Set to 0.
6397 2001-11-16  Bernd Warken  <bwarken@mayn.de>
6399         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6400         the second dot (or ending macro name) to end a macro.
6401         * doc/groff.texinfo: Doc fix.
6403 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
6405         * tmac/doc-common (doc-header): Handle very long document titles
6406         better.
6408 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6410         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6412 2001-11-15  Werner LEMBERG  <wl@gnu.org>
6414         * src/roff/troff/troff.man: Revised and split into troff.man and...
6415         * man/groff_differences.man: New file.
6416         * NEWS: Updated.
6418 2001-11-13  Werner LEMBERG  <wl@gnu.org>
6420         * tmac/an-old.tmac (TS, TE): New macros for table support.
6422 2001-11-12  Werner LEMBERG  <wl@gnu.org>
6424         * src/include/lib.h: Provide a fix for emx to not include
6425         groff-getopt.h.
6427 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6429         * src/roff/troff/input.cc (substring_macro): Fix computation of
6430         boundary values.
6432 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6434         Undo change from 2001-08-28.
6436         * src/roff/troff/input.cc (have_input): New global variable.
6437         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6438         in compatibility mode.
6439         (process_input_stack): Use it.
6441 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6443         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6444         being handled as end-of-sentence characters,
6446 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6448         * src/roff/troff/input.cc (file_iterator): New members
6449         `suppress_newline_flag' and `seen_escape'.
6450         (file_iterator::next_file): Updated.
6451         (file_iterator::fill): Use it.
6452         (string_iterator): New member `suppress_newline_flag'.
6453         (string_iterator::fill): Set it.
6454         (get_color_element): Use MAX_COLOR_VAL.
6455         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6456         (no_fill): Don't set `env->ignore_next_eol'.
6457         (environment::newline): Handle `eol' tag properly.
6458         Emit `eol.ce'.
6459         (environment::add_html_tag): Set `env->ignore_next_eol'.
6460         Don't handle `.ce'.
6461         * src/roff/troff/env.h (environment): Updated.
6463         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6464         member function.
6465         (html_printer::outstanding_eol): New member function.
6466         (html_printer::do_title): Use new functions.
6467         (html_printer::troff_tag): Test `id_eol_ce'.
6469 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6471         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6472         files work with -C also.
6474 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6476         * doc/pic.ms: Minor fix.
6477         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6478         as a valid command line switch.
6479         * src/devices/grohtml/post-html.cc (main): Ditto.
6480         (usage): Updated.
6481         * src/devices/grohtml/grohtml.man: Updated.
6482         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6484 2001-10-04  Werner LEMBERG  <wl@gnu.org>
6486         Implementing color support in troff, pic, grops, and grohtml.  These
6487         changes are based on a major patch provided by Gaius Mulley
6488         <gaius@glam.ac.uk>.
6490         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6491         definitions with both hex values and fractions.
6493         New escapes: \m and \M for drawing and background color,
6494         respectively.  This corresponds to the troff output commands `m'
6495         and `DF'.
6497         groff and troff accept command line switch `-c' to disable color
6498         output (which is automatically disabled in compatibility mode).
6500         New scaling indicator `f' for fractions (1f = 65536u).
6502         New conditional operator `m' to test for defined colors with `if'
6503         and `ie'.
6505         New keywords `color' (or `colour', `colored', `coloured'), `outline'
6506         (or `outlined'), and `shaded' added to pic.
6508         * src/include/color.h: New file.
6509         * src/include/driver.h: Include it.
6510         * src/include/printer.h: Include color.h.
6511         (environment): New members `col' and `fill'.
6512         (printer): Remove `adjust_arc_center' member function.
6513         * src/include/Makefile.sub: Updated.
6515         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6516         `env.fill'.
6517         Handle `m' and `DF' troff commands.
6518         * src/libs/libgroff/color.cc: New file.
6519         * src/libs/libgroff/Makefile.sub: Updated.
6521         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6522         (stop): Removed.
6523         (createImage): Fix computation of `y2'.
6524         Use `pnmcrop' also.
6525         (buffer::write_file_html): Remove calls to `stop'.
6527         * src/preproc/pic/common.h (common_output): New abstract function
6528         members `set_color', `reset_color', `get_last_filled', and
6529         `get_outline_color'.
6530         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6531         (object_spec): Add members `shaded' and `outlined'.
6532         * src/preproc/pic/output.h (output): `command' is now abstract.
6533         New function members `set_color', `reset_color', `get_last_filled',
6534         and `get_outline_color'.
6535         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6536         `outline[d]', and `shaded'.
6537         * src/preproc/pic/object.cc (output::command): Removed.
6538         (output::set_location): Moved to output.h.
6539         (graphic_object): Add protected members `outline_color' and
6540         `color_fill'.
6541         Add member functions `set_outline_color', `get_outline_color', and
6542         `set_fill_color'.
6543         (closed_object): Add member function `set_fill_color'.
6544         Add member `color_fill'.
6545         (graphic_object::print_text): Use `out->set_color' and
6546         `out->reset_color'.
6547         (box_object::print, ellipse_object::print, circle_object::print,
6548         line_object::print, spline_object::print, arc_object::print): Ditto.
6549         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6550         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6551         `SHADED', making them `%left'.
6552         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6553         * src/preproc/pic/tex.cc (tex_output): New dummy function members
6554         `set_color', `reset_color', `get_last_filled', and
6555         `get_outline_color'.
6556         * src/preproc/pic/troff.cc (simple_output): New abstract function
6557         members `set_color', `reset_color', and `get_last_filled'.
6558         (simple_output::polygon, simple_output::circle,
6559         simple_output::ellipse): Use `get_last_filled'.
6560         (troff_output): New members `last_filled' and `last_outlined'.
6561         New function members `set_color', `reset_color', `get_last_filled',
6562         and `get_outline_color'.
6563         (troff_output::finish_picture): Use `reset_color'.
6564         (troff_output::set_fill): Test `last_filled'.
6565         * src/preproc/pic/pic.man: Updated.
6567         * src/roff/groff/groff.cc (main): Implement `-c' option.
6568         (synopsis, help): Updated.
6569         src/roff/groff/groff.man: Updated.
6571         * src/roff/troff/troff.h: Include color.h.
6572         (warning_type): Add WARN_COLOR.
6573         * src/roff/troff/env.h (environment): New members
6574         `{cur,prev}_{glyph,fill}_color'.
6575         New member functions `get_{prev_,}{glyph,fill}_color'.
6576         * src/roff/troff/env.cc: Initialize and implement them.
6577         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6578         Replace `NULL' with `0' everywhere for consistency.
6579         (lookup_color, default_black, do_glyph_color, do_fill_color,
6580         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6581         define_color): New functions.
6582         (token::next): Implement \M and \m escapes.
6583         (do_if_request): Implement `m' operator.
6584         (usage): Updated.
6585         (main): Implement `-c' option.
6586         (init_markup_requests): Add `defcolor' request.
6587         (warning_table): Add `color' warning.
6588         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6589         classes.
6590         * src/roff/troff/node.cc (troff_output_file): New members
6591         `current_{page,glyph}color'.  New member functions `put_hex',
6592         `glyph_color', and `fill_color'.
6593         (glyph_color_node::*, fill_color_node::*): Implement it.
6594         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6595         (parse_term): Add support for `f'.
6596         * src/roff/troff/troff.man: Updated.
6598         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6599         entry for `F'.
6600         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6601         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6603         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6604         (tag_definition): Use `void *' for arg1.
6605         (html_text): New member functions `do_color' and `done_color'.
6606         Use `void *' for second parameter of `push_para' member function.
6607         New `push_para' member function with a single parameter.
6608         Use `char *' for parameter of `issue_table_begin' member funtion.
6609         New `issue_color_begin' member function.
6610         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6611         COLOR_TAG.
6612         (html_text::issue_color_begin): New function.
6613         (html_text::issue_table_begin): Use `char *' for parameter.
6614         (html_text::start_tag, html_text::shutdown,
6615         html_text::check_emit_text): Updated.
6616         (html_text::push_para): Use `void *' for second parameter.
6617         Add same function with only one parameter.
6618         (html_text::do_*): Updated.
6619         (html_text::do_color, html_text::done_color): New functions.
6620         * src/devices/grohtml/post-html.cc (style): New member `col'.
6621         Mew member `style' with 6 parameters.
6622         (style::style, style::operator==): Updated.
6623         (html_printer::do_font): Use it.
6624         (html_printer::draw): Add dummy entry for `F'.
6625         (html_printer::set_char): Updated.
6626         * src/devices/grohtml/grohtml.man: Updated.
6628         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6629         trailing zeroes removed.
6630         (ps_printer): New members `sbuf_color', `fill_color', and
6631         `output_color'.
6632         Removed member `fill'.
6633         New member function `set_color'.
6634         (ps_printer::ps_printer, ps_printer::set_char): Updated.
6635         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6636         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6638         * tmac/color-html.tmac, tmac/color.tmac: New files.
6639         * tmac/troffrc: Include them.
6640         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6641         * tmac/Makefile.sub: Updated.
6643         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6644         man/groff.man: Updated.
6645         * font/devps/prologue.ps: Define FC and CO functions.
6647 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
6649         Fix incorrect cropping of images and incorrect handling of special
6650         characters.  Fix handling of file names in \O.
6652         * src/include/geometry.h: New file.
6653         * src/libs/libgroff/geometry.cc: New file.
6654         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6655         to `geometry.cc'.
6656         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6657         initial spaces.
6658         (do_suppress): Updated.
6659         * src/roff/troff/node.cc: Include geometry.h.
6660         (troff_output_file::flush_tbuf): Fixed parameters to
6661         `check_output_limits'.
6662         (troff_output_file::check_charinfo): Ditto.
6663         (troff_output_file::determine_line_limits): Add support for `Da'
6664         and `Dl' commands.
6666         * src/devices/grohtml/post-html.cc (str_translate_to_html):
6667         Add new parameter `is_special' to decode special characters from
6668         escape sequences.
6669         (html_printer::do_title, html_printer::do_heading,
6670         html_printer::do_indentedparagraph,
6671         html_printer::translate_to_html, html_printer::special): Updated.
6673 2001-10-03  Werner LEMBERG  <wl@gnu.org>
6675         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6676         Fix entry for config.h.
6677         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6678         * tmac/troffrc: Translate nonbreakable space character to `\~'.
6679         * src/preproc/eqn/eqn.man: Document -d command line option.
6681 2001-09-27  Werner LEMBERG  <wl@gnu.org>
6683         * man/groff.man: Use
6685           .ev xxx
6686           .na
6687           .nh
6688           <table>
6689           .ev
6691         instead of the old code (`.ad .hy' after the table) to suppress
6692         incorrect hyphenation for grohtml output.
6694 2001-09-22  Werner LEMBERG  <wl@gnu.org>
6696         * man/groff_font.man, man/groff_out.man: Minor fixes.
6698 2001-09-20  Werner LEMBERG  <wl@gnu.org>
6700         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
6701         Arnold Robbins <arnold@skeeve.com>).
6703 2001-09-09  Werner LEMBERG  <wl@gnu.org>
6705         * configure: Regenerated with autoconf 2.52.
6707         * doc/groff.texinfo: Complete revision of indices.
6709 2001-09-07  Werner LEMBERG  <wl@gnu.org>
6711         * doc/Makefile (clean): Updated to delete all indices.
6713 2001-09-05  Werner LEMBERG  <wl@gnu.org>
6715         * src/roff/troff/troff.man: Remove superfluous line.
6717         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6718         given on the command line (or rather, if only the default warnings
6719         are set).
6721 2001-09-03  Werner LEMBERG  <wl@gnu.org>
6723         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6724         use .ne for TTY devices.
6726 2001-08-31  Werner LEMBERG  <wl@gnu.org>
6728         * src/roff/troff/token.h, src/roff/troff/input.cc:
6729         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6731 2001-08-28  Werner LEMBERG  <wl@gnu.org>
6733         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6734         * src/roff/troff/input.cc (token::next): Return
6735         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6736         compatibility mode.
6737         (token::description): Updated.
6738         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6739         (token::add_to_node_list, token::process): Ignore
6740         TOKEN_TRANSPARENT_ESCAPE.
6742 2001-08-27  Werner LEMBERG  <wl@gnu.org>
6744         * tmac/an-old.tmac: Fix `S' string.
6746 2001-08-26  Werner LEMBERG  <wl@gnu.org>
6748         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6750 2001-08-25  Werner LEMBERG  <wl@gnu.org>
6752         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6753         backslashes).
6754         Many other minor fixes.
6756         * configure.ac: Add message at end to inform how to compile
6757         xditview.
6758         * configure: Regenerated.
6760 2001-08-24  Werner LEMBERG  <wl@gnu.org>
6762         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6763         Updated to latest version of libc.
6765 2001-08-23  Werner LEMBERG  <wl@gnu.org>
6767         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6768         Autoconf 2.50 and newer can handle this.
6769         * configure: Regenerated.
6771 2001-08-21  Werner LEMBERG  <wl@gnu.org>
6773         * doc/pic.ms: Fix typo.
6774         * src/preproc/tbl/tbl.man: Document case of global options.
6776 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
6778         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6779         handling of `CR' font.
6781 2001-08-20  Werner LEMBERG  <wl@gnu.org>
6783         Use a config.h file.
6785         * src/include/lib.h: Include config.h.
6786         * All C files: Ditto (if necessary).
6787         * All C++ source and header files: Include lib.h first (if
6788         necessary).
6790         * src/include/config.hin: New file (autogenerated by autoheader).
6791         * stamp-h.in: New file.
6792         * configure.ac: Updated.
6793         * aclocal.m4: Add third parameters to AC_DEFINE macros.
6794         (GROFF_ARRAY_DELETE): Simplified.
6795         * Makefile.sub (DISTCLEANFILES): Updated.
6796         Added targets for remaking config.status, config.hin, config.h,
6797         stamp-h.in, and stamp-h.
6798         * configure: Regenerated.
6800 2001-08-19  Werner LEMBERG  <wl@gnu.org>
6802         * NEWS: Updated.
6804 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
6806         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6807         (do_sprintf): Use snprintf().
6809 2001-08-18  Werner LEMBERG  <wl@gnu.org>
6811         * src/libs/snprintf/*: Added an snprintf module written by Mark
6812         Martinec.
6813         * src/libs/libgroff/Makefile.sub: Updated.
6814         * configure.ac: Add test for snprintf().
6815         * Makefile.in: Updated.
6816         * configure: Regenerated.
6818         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6819         uses snprintf().
6821 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
6823         * tmac/doc.tmac (Ex): New implementation.
6824         * tmac/doc-common, tmac/groff_tmac.man: Updated.
6826 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
6828         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6829         argument.
6830         * tmac/groff_tmac.man: Updated.
6832 2001-08-13  Werner LEMBERG  <wl@gnu.org>
6834         * src/preproc/tbl/tbl.man: Minor documentation update.
6836 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6838         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6839         * configure.ac: Add declaration test for gettimeofday().
6840         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6841         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6842         * configure: Regenerated.
6844 2001-08-11  Werner LEMBERG  <wl@gnu.org>
6846         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6847         * configure.ac: Add declaration test for strcasecmp().
6848         * Makefile.in: Updated.
6849         * configure: Regenerated.
6850         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6851         this is necessary because groff's mkstemp.cc is C++.
6852         Add declaration conditionally for strcasecmp().
6854 2001-08-10  Werner LEMBERG  <wl@gnu.org>
6856         Integrated pic2graph, contributed by Eric S. Raymond.
6858         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6859         files.
6860         * Makefile.in, NEWS: Updated.
6862         * src/preproc/tbl/tbl.man: Revised.
6864 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
6866         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6868 2001-08-09  Werner LEMBERG  <wl@gnu.org>
6870         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6871         requests.
6873 2001-08-08  Paul Eggert  <eggert@twinsun.com>
6875         * Makefile.sub (configure): Depend on configure.ac, not
6876         configure.in.
6877         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6879 2001-08-07  Werner LEMBERG  <wl@gnu.org>
6881         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6882         fixes.
6884 2001-08-06  Werner LEMBERG  <wl@gnu.org>
6886         * src/roff/troff/troff.man: Improve documentation of -E option.
6888 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6890         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6891         Simplified.
6893 2001-07-27  Werner LEMBERG  <wl@gnu.org>
6895         * src/preproc/refer/refer.cc: Undo last change.
6896         * src/devices/grohtml/post-html.cc: Ditto.
6898 2001-07-26  Werner LEMBERG  <wl@gnu.org>
6900         * src/preproc/refer/refer.cc: Include `lib.h'.
6901         * src/devices/grohtml/post-html.cc: Ditto.
6903 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
6905         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6906         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6907         * Makefile.in: Comment updated.
6908         * configure: Regenerated.
6910 2001-07-25  Werner LEMBERG  <wl@gnu.org>
6912         * src/preproc/pic/pic.cc: Removed.
6913         * src/preproc/pic/pic_tab.h: Removed.
6914         * src/preproc/refer/label.cc: Removed.
6916         * doc/Makefile (.ms.html): Don't use a file name extension in
6917         argument to grohtml's -I option.
6918         * Makefile.in (dist): Remove CVS directories.
6919         Call `distfiles' target.
6921         * src/devices/grohtml/grohtml.man: Add information about valid
6922         versions of pnmtopng.
6923         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6924         name instead of number.
6926 2001-07-24  Werner LEMBERG  <wl@gnu.org>
6928         * doc/groff.texinfo: Minor fixes.
6930 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
6932         * doc/Makefile (.ms.html): Put image files into a subdirectory.
6933         (clean): Updated.
6935 2001-07-20  Werner LEMBERG  <wl@gnu.org>
6937         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6938         * src/libs/libgroff/mkstemp.cc: New file.
6939         * src/libs/libgroff/mksdir.cc: New file.
6940         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6941         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6942         * src/libs/libgroff/Makefile.sub: Updated.
6943         * src/include/lib.h: Add mksdir() prototype.
6944         * src/include/posix.h: Define S_IXUSR if not yet defined.
6946         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6947         (createAllPages): Use mksdir() instead of current code.
6948         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6949         (main): [!HAVE_MKSTEMP]: Removed.
6951         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6952         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6953         macros.
6954         * configure.ac: Add tests for stdint.h, sys/time.h, and
6955         gettimeofday().
6956         Call new GROFF_xxx macros.
6957         * configure: Regenerated.
6958         * Makefile.in: Comments updated.
6960 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
6962         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6963         instead of current code.
6964         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6965         * src/roff/groff/groff.cc (possible_command::insert_args): New
6966         function.
6967         (main): Use it for predriver handling instead of insert_arg().
6969 2001-07-19  Werner LEMBERG  <wl@gnu.org>
6971         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6972         groff also.
6974         * src/include/posix.h: Define S_IWUSR if not yet defined.
6976 2001-07-18  Werner LEMBERG  <wl@gnu.org>
6978         * NEWS: Updated.
6980 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
6982         * tmac/groff_mdoc.man: Document new -width and -column syntax.
6983         Some other minor fixes.
6984         * tmac/an-old.tmac: Add `AT' and `UC' macros.
6986 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
6988         Replace call to `troff' with `groff -Z' to make it aware of
6989         GROFF_BIN_PATH.
6991         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6992         (troff_command, command_prefix): Removed.
6993         (alterDeviceTo): Use groff.
6994         (addZ): New function.
6995         (char_buffer::do_html): Use it.
6996         (scanArguments): Use TROFF_COMMAND.
6997         (findPrefix): Removed.
6998         (main): Updated.
6999         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7001 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
7003         * doc/pic.ms: Documentation fixes.
7005 2001-07-17  Werner LEMBERG  <wl@gnu.org>
7007         Replace atexit() with global destructor.
7009         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7010         (xtmpfile_list_init): New global structure to deallocate
7011         xtmpfile_list on exit.  Its destructor inherits most code from
7012         remove_tmp_files().
7013         (remove_tmp_files): Deleted.
7014         (add_tmp_file): Simplified.
7016 2001-07-16  Werner LEMBERG  <wl@gnu.org>
7018         Replace strdup() with strsave().
7020         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7021         (set_papersize): Use strsave() and a_delete.
7022         (main): Use strsave().
7023         * src/preproc/html/pre-html.cc (make_message, createAllPages,
7024         removeAllPages): Use strsave() and a_delete.
7026         * configure.ac: Remove test for strdup.
7027         * Makefile.in: Comment updated.
7028         * configure: Regenerated.
7030 2001-07-15  Werner LEMBERG  <wl@gnu.org>
7032         * win32-diffs: Updated.
7034 2001-07-14  Werner LEMBERG  <wl@gnu.org>
7036         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7037         removing the old one.
7038         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7040 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7042         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7044 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7046         Merge -xwidth into -width.  Add -xwidth functionality to -column
7047         also.
7049         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7050         avoid warning.
7051         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7052         string immediately following a leading dot starts with a valid mdoc
7053         argument.
7054         Add similar code to the -column branch.
7055         (doc-Bl-usage): Updated.
7056         * groff_mdoc.man: s/-xwidth/-width/.
7058 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7060         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7061         running into centered or non-formatted text.
7063 2001-07-11  Werner LEMBERG  <wl@gnu.org>
7065         Introduce short and long prefixes to have the selection at run-time
7066         whether there is a 8+3 limit for names of temporary files.
7068         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7069         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7070         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7071         variables.
7072         (temp_init): New global structure to initialize above three
7073         variables.
7074         (xtmptemplate): Use two parameters for long and short prefix.
7075         Simplify code use above three variables.
7076         (xtmpfile): Use long and short prefixes as parameters.
7077         * src/include/lib.h: Updated.
7079         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7080         with ...
7081         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7082         (createAllPages, makeTempFiles): Updated.
7084 2001-07-09  Werner LEMBERG  <wl@gnu.org>
7086         * REVISION: Increased to 3.
7088 Version 1.17.2 released
7089 =======================
7091 2001-07-07  Werner LEMBERG  <wl@gnu.org>
7093         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7094         to size_t.
7096 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7098         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7099         Fix synopsis.
7100         * tmac/groff_mdoc.man: Fix synopsis.
7102 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
7104         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7105         Restore `doc-Pa-font'.
7107 2001-07-04  Werner LEMBERG  <wl@gnu.org>
7109         * src/utils/indxbib/dirnamemax.c: Moved to ...
7110         * src/libs/libgroff/maxfilename.cc: Here.
7111         s/dir_name_max/file_name_max/.
7112         Add copyright.
7113         * src/include/lib.h: Add file_name_max.
7114         * src/utils/indxbib/indxbib.cc: Updated.
7115         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7116         Updated.
7118         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7119         as empty.
7120         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7122         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7123         REGION_TEMPLATE): New macros.
7124         (createAllPages, makeTempFiles): Use them.
7125         Include `nonposix.h'.
7126         (html_system): New function.
7127         (createAllPages, createImage): Use it.
7128         Use EXE_EXT.
7130         * tmac/www.tmac: Fix typos.
7132 2001-07-03  Werner LEMBERG  <wl@gnu.org>
7134         * tmac/www.tmac: Disable hyphenation in normal text only if output
7135         device is html.
7136         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7137         * tmac/groff_mwww.man, NEWS: Updated.
7139 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
7141         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7142         image location.
7144 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
7146         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7147         doc-display-ps-stack): Implement font and font size stack for
7148         displays.
7150 2001-07-02  Werner LEMBERG  <wl@gnu.org>
7152         * REVISION: Increased to 2.
7153         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7155         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7156         beginning of a line.
7157         * src/groff/grog/grog.sh: Ditto.
7159 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
7161         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7162         make it portable.
7164 2001-06-27  Werner LEMBERG  <wl@gnu.org>
7166         Fix problems with preprocessor string for `man' program.
7168         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
7169         Updated/added copyright.
7170         Moved Emacs's local variable to identify nroff mode to the end of
7171         the file; add local variable if missing.
7173 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
7175         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7176         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7177         * configure: Regenerated.
7179 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
7181         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7182         * configure: Regenerated.
7184 2001-06-24  Werner LEMBERG  <wl@gnu.org>
7186         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7187         but www.tmac.
7188         * doc/pic.ms: Fix typos.
7190 Version 1.17.1 released
7191 =======================
7193 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
7195         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7196         * configure: Updated.
7198 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
7200         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7201         image names.
7202         * src/roff/troff/dic.cc (blank_line): Add html tag.
7204 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
7206         * src/roff/troff/input.cc (do_suppress): Fix typo.
7208 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
7210         Added two new options (-D and -I) to specify image names and a
7211         subdirectory to place the images in.
7213         Change syntax from \\Ox to \\O[x].
7215         * src/devices/grohtml/post-html.cc (main): Add options.
7216         (usage): Updated.
7217         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7218         Use `NULL' instead of `0' for null string pointers.
7219         (MAX_RETRIES): New macro.
7220         (lengthOfintToStr, intToStr, make_message): New functions.
7221         (makeFileName): Make function static.
7222         Implement -D and -I options.
7223         (checkImageDir): New function.
7224         (write_end_image, write_start_image): Use new syntax of \O.
7225         (createAllPages, removeAllPages): Implement -D and -I options.  Use
7226         make_message().
7227         (createImage): Use make_message().
7228         (addps4html): Add guard for malloc().
7229         (usage, scanArguments): Updated.
7230         (makeTempFiles): Use mkstemp().
7231         (removeTempFiles): Use unlink().
7232         (findPrefix): Add guard for malloc().
7233         (main): Updated.
7234         * src/roff/troff/input.cc (get_delim_file_name): New function to
7235         parse \O.
7236         (do_suppress): Updated to parse new syntax.
7237         * src/devices/grohtml/grohtml.man: Updated.
7238         * tmac/www.tmac: Updated to new syntax.
7240         * NEWS: Updated.
7242 2001-06-15  Werner LEMBERG  <wl@gnu.org>
7244         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7246         * src/devices/grohtml/grohtml.man: Minor improvements.
7248 2001-06-14  Werner LEMBERG  <wl@gnu.org>
7250         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7252 2001-06-11  Werner LEMBERG  <wl@gnu.org>
7254         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7255         line to specify preprocessor options -- mandb 2.3.1 only recognizes
7256         the former.
7257         * src/preproc/grn/grn.man: Add proper '\" string.
7259 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
7261         * test-groff: Don't use PATH but GROFF_BIN_PATH.
7263 2001-06-08  Werner LEMBERG  <wl@gnu.org>
7265         Updated to autoconf 2.50.
7267         * configure.in: Renamed to...
7268         * configure.ac: This.
7269         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7270         (GROFF_OS390): Updated.
7271         * configure: Regenerated.
7273 2001-05-18  Werner LEMBERG  <wl@gnu.org>
7275         * src/roff/troff/env.c, src/roff/troff/env.h,
7276         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7277         from 2000-12-21.
7279 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
7281         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7283 2001-05-16  Werner LEMBERG  <wl@gnu.org>
7285         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7286         less than or equal zero; set it to 1 then.
7287         * src/roff/troff/node.h (node::node): Initialize `last'.
7289 2001-05-08  Werner LEMBERG  <wl@gnu.org>
7291         * tmac/an-old.tmac: Make predefined strings work in compatibility
7292         mode.
7293         Add troff version guard.
7294         * tmac/doc.tmac: Simplify version guard.
7296 2001-05-07  Werner LEMBERG  <wl@gnu.org>
7298         The .ns and .rs requests are now honoured not only in the top-level
7299         but in all diversions (similar to UNIX troff).
7301         This change is based on a patch from Tadziu Hoffmann
7302         <hoffmann@usm.uni-muenchen.de>.
7304         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7305         (top_level_diversion): Remove `no_space_mode' member.
7306         * src/roff/troff/div.cc (diversion::diversion,
7307         top_level_diversion::top_level_diversion): Updated.
7308         (macro_diversion::output): Reset `no_space_mode'.
7309         (no_space, restore_spacing): Use `curdiv' unconditionally.
7310         (space_request, blank_line): Check `curdiv->no_space_mode'.
7311         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7312         `curdiv' unconditionally.
7313         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7314         Updated.
7316 2001-05-06  Werner LEMBERG  <wl@gnu.org>
7318         Added two new requests `de1' and `am1' which are similar to `de' and
7319         `am' with the difference that compatibility mode is saved on entry,
7320         switched off during macro execution, and restored on exit.
7322         * src/roff/troff/input.h: Added two new special characters
7323         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7324         * src/roff/troff/input.cc (input_iterator): Added two member
7325         functions `save_compatible_flag' and `get_compatible_flag'.
7326         (input_stack): Ditto.
7327         (string_iterator): Ditto.  Also add private member
7328         `saved_compatible_flag'.
7329         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7330         (calling_mode): New enumeration.
7331         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
7332         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7333         (define_macro, define_indirect_macro, append_macro, ignore): Use
7334         `calling_mode'.
7335         (define_nocomp_macro, append_nocomp_macro): New functions.
7336         (init_input_requests): Updated.
7337         (do_request): Rename local variable `saved_compatible_flag' to
7338         `old_compatible_flag'.
7339         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7341         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7342         public and trap-invoked macros.  As a consequence, the man macros
7343         work in compatibility mode also.
7345 2001-05-06  Solar Designer  <solar@openwall.com>
7347         * Makefile.in: Use $(mandir).
7349 2001-05-06  Alexios Zavras  <zvr@pobox.com>
7351         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7353 2001-05-05  Werner LEMBERG  <wl@gnu.org>
7355         Added `.ns' number register: Returns 1 in no-space mode (if in
7356         top-level diversion), 0 otherwise.
7358         * src/roff/troff/div.cc (no_space_mode_reg): New class.
7359         (init_div_requests): Updated.
7360         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7361         Document it.
7363 2001-05-04  Werner LEMBERG  <wl@gnu.org>
7365         * src/roff/nroff/nroff.man: Improved documentation (especially
7366         locales).
7368 2001-05-02  Werner LEMBERG  <wl@gnu.org>
7370         Added `brp' request: This is \p as a request.
7372         * src/roff/troff/env.cc (environment::do_break): Add parameter
7373         `spread'.
7374         (do_break_request): New function (was `break_request').
7375         (break_request): Calls `do_break_request'.
7376         (break_spread_request): New; calls `do_break_request'.
7377         (init_env_requests): Updated.
7378         * src/roff/troff/env.h: Updated.
7379         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7381         * REVISION: Increased to 1.
7382         * win32-diffs: Updated.
7384 2001-05-01  Werner LEMBERG  <wl@gnu.org>
7386         * tmac/an-old.tmac: Fix minor compatibility mode issue.
7387         * tmac/troffrc-end: Make it really work in compatibility mode.
7389 2001-04-27  Werner LEMBERG  <wl@gnu.org>
7391         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7392         stdlib.h.
7394 2001-04-22  Werner LEMBERG  <wl@gnu.org>
7396         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7397         latest versions from glibc CVS archive.
7399         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7400         <c.zeelenberg@hccnet.nl>.
7402 2001-04-21  Werner LEMBERG  <wl@gnu.org>
7404         * configure.in: Move check for mkstemp() to...
7405         * aclocal.m4 (GROFF_MKSTEMP): This new function.
7406         * configure: Regenerated.
7408         * src/include/groff-getopt.h: Don't use variable names in
7409         declarations.
7411         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
7412         * src/devices/grohtml/Makefile.sub,
7413         src/devices/grohtml/post-html.cc: Updated.
7415 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
7417         * configure.in: Add special check for mkstemp().
7418         * src/libs/libgroff/tmpfile.cc: Use it.
7419         * src/utils/indxbib/indxbib.cc: Ditto.
7420         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7421         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7422         `const'.
7424 2001-04-20  Bruce Lilly  <blilly@erols.com>
7426         `Version_string' as C++ object was not visible to linker from C
7427         object files.
7428         Add `const' to `Version_string'.
7430         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7431         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7432         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7433         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7434         (scanArguments), src/preproc/refer/refer.cc (main),
7435         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7436         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7437         (main), src/devices/grohtml/post-html.cc (main),
7438         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7439         (main), src/utils/hpftodit/hpftodit.cc (main),
7440         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7441         (main), src/utils/lkbib/lkbib.cc (main),
7442         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7444         * src/roff/groff/pipeline.c: Add _UWIN.
7445         * src/include/nonposix.h: Ditto.
7447 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7449         * src/include/lib.h: Use HAVE_STRERROR.
7450         * src/roff/groff/pipeline.c: Ditto.
7451         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7452         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7453         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7454         * win32-diffs: Updated.
7455         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7457 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7459         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7460         instead of hardwired `"troff"'.
7461         (char_buffer::read_file): Remove unused variables.
7462         (char_buffer::write_file_troff): Ditto.
7463         (char_buffer::write_file_html): Ditto.
7464         (generateImages): Ditto.
7465         (abs): Removed.
7466         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7468         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7470         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7471         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7472         index_search_item::search1): Ditto.
7473         * src/roff/troff/node.h (width_list): Reorder members.
7474         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7475         (lookup_warning): Ditto.
7476         (prepend_string): Commented out.
7477         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7478         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7479         * src/preproc/tbl/main.cc (process_format): Ditto.
7480         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7481         compiler warnings.
7482         * src/preproc/pic/pic.cc: Updated.
7483         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7484         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7485         * src/preproc/refer/command.cc (execute_command): Ditto.
7486         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7487         * src/preproc/refer/token.cc (lookup_token): Ditto.
7488         * src/preproc/soelim/soelim.cc: Ditto.
7489         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7490         (isHexDigit): Commented out.
7491         (pushBackBuffer::isString): Remove unused variable.
7492         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7493         warning.
7494         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7495         resource_manager::read_resource_arg, read_one_of, parse_extensions):
7496         Ditto.
7497         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7498         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7499         lookup_paper_size): Ditto.
7500         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7501         (text_glob, element_list): Reorder members.
7502         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7503         compiler warning.
7504         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7505         return value to `void'.
7506         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7507         of initializers.
7508         * src/devices/grohtml/html.h (simple_output::check_newline,
7509         simple_output::space_or_newline, simple_output::enable_newlines):
7510         Add return value.
7511         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7512         compiler warnings.
7513         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7514         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7515         output_ligatures, output_charset, read_map): Ditto.
7516         * src/utils/lookbib/lookbib.cc (main): Ditto.
7517         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7518         (do_file): Fix typo (`=' -> `==').
7519         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7520         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7522 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
7524         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7525         Fix usage of GROFF_BIN_PATH.
7526         * src/roff/nroff/nroff.man: Updated.
7528 2001-04-18  Werner LEMBERG  <wl@gnu.org>
7530         * NEWS: Fixing typos.
7531         Updated.
7533 Version 1.17 released
7534 =====================
7536 2001-04-17  Werner LEMBERG  <wl@gnu.org>
7538         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7539         directory, not in $(srcdir).
7541 2001-04-16  Werner LEMBERG  <wl@gnu.org>
7543         * doc/groff.texinfo: More info on conditionals.
7545 2001-04-15  Werner LEMBERG  <wl@gnu.org>
7547         * doc/groff.texinfo: Added some info about groff internals.
7549         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7550         about missing special character only if the name is non-null.
7552 2001-04-14  Werner LEMBERG  <wl@gnu.org>
7554         Removing the grohtml-old device driver which is now obsolete.
7556         * src/devices/grohtml-old/*: Removed.
7557         * font/devhtml-old/*: Removed.
7558         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7559         Remove comments.
7560         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7561         * test-groff (PATH): Updated.
7562         * tmac/Makefile.sub (NORMALFILES): Updated.
7563         * tmac/an-old.tmac: Remove special code for html-old device.
7564         Replace `html-or-html-old' register with `an-html'.
7565         * tmac/eqnrc: Updated.
7566         * tmac/html-old.tmac: Removed.
7567         * tmac/troffrc, tmac/troffrc-end: Updated.
7568         * tmac/www.tmac: Remove special code for html-old device.
7569         Replace `html-or-html-old' register with `www-html'.
7571         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7572         src/libs/libgroff/htmlindicate.cc (graphic_end),
7573         include/htmlindicate.h, src/preproc/grn/*.cc,
7574         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7575         single argument for consistency with rest of source code.
7577         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7579 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
7581         * src/roff/troff/troff.man: Fixing typos.
7583 2001-04-13  Werner LEMBERG  <wl@gnu.org>
7585         * doc/pic.ms: Fixing many font switches.
7586         * doc/groff.texinfo: Fixes, additions.
7587         * MORE.STUFF: Updated.
7589 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
7591         * src/devices/grohtml/grohtml.man: Updated manual page regarding
7592         simple anchor.
7593         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7594         cropping of images.
7595         (removeTempFiles): New function to tidy up temporary files.
7596         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7597         Many fixes to do with the new inline suppress node and image regions
7598         are much tighter.
7599         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7600         (generate_img_src): New function.
7601         (html_printer::do_auto_image): Utilizes it.
7602         (do_heading, do_title): Include inline images within their contents.
7603         (html_printer::begin_page): Tidied up comments that are issued to
7604         the html output file.
7605         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7606         than courier.
7607         (text_glob::is_br): New method used by do_heading.
7608         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7609         equivalent diversion.
7610         * src/include/html-strings.h: Altered image tags to reflect the
7611         inline image node.
7612         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7613         parameter.
7614         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7615         it is already inside a pic image.  Only emit tags if the argument
7616         `-Tps:html' is present.
7617         * src/preproc/tbl/main.cc: Changes to reflect additional
7618         `html_end_suppress' parameter.
7619         * src/roff/troff/env.cc: Only emit eol tag if a node has been
7620         emitted since the last eol tag was written.
7621         * src/roff/troff/env.h: New boolean `emitted_node'.
7622         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7623         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
7624         * src/roff/troff/node.cc (check_charinfo): New method. 
7625         (troff_output_file::determine_line_limits): Alterations to limit
7626         checking.
7627         * tmac/www.tmac: Changes to reflect new suppress nodes.
7628           
7629 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
7631         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7632         Escape the html_glyph in the buffer.
7633         (str_translate_to_html): Output the unescaped escaped_char.
7634         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7635         `frame=void', not `frame=none'.  Add `border=0'.
7637 2001-04-12  Werner LEMBERG  <wl@gnu.org>
7639         * PROBLEMS: Add some words on how to avoid wrapper macros.
7641 2001-04-11  Blake McBride  <blake@florida-software.com>
7643         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7645 2001-04-11  Werner LEMBERG  <wl@gnu.org>
7647         * font/devlbp/Makefile.sub (CLEANADD): Set it.
7648         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7649         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7650         * Makefile.sub (DISTCLEANFILES): Here.
7652         * libs/libgroff/new.cc: Include `nonposix.h'.
7653         * win32-diffs: Updated.
7655 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
7657         Added skeleton macro for defunct macros.
7659         Updated documentation.
7661         When inside displays, an empty input line warning should be
7662         suppressed.  If another macro call is put inside a display,
7663         all subsequent empty lines found in that display caused a
7664         warning to be emitted.
7666         * tmac/doc.tmac (doc-defunct-macro): New macro.
7667         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7668         (doc-restore-global-vars): Fixed typo.
7669         (doc-empty-line): Check the `doc-display-depth' register to
7670         determine whether we are inside display or not.
7672         * tmac/doc-common: Removed `Or' and `Sf' registers.
7673         Moved obsolete `Ds' macro to doc.tmac.
7675         * tmac/groff_mdoc.man: Bump document date.
7676         Document `.Vt' under ``Variable Types''.
7677         Removed documentation for obsolete `.Or' macro.
7679 2001-04-10  Werner LEMBERG  <wl@gnu.org>
7681         * NEWS: Updated.
7682         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7684 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
7686         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7687         (usage): Add stream argument. Don't exit.
7688         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7689         Write --version output to stdout, not stderr.
7690         (usage): Add stream argument. Don't exit.
7691         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7692         (usage): Add stream argument. Don't exit.
7693         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7694         constants.
7695         (usage): Add stream argument. Don't exit.
7696         (main): Write --help output to stdout, not stderr.
7697         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7698         (usage): Add stream argument. Don't exit.
7699         * src/devices/grops/ps.cc (main): Accept --help and --version.
7700         (usage): Add stream argument. Don't exit.
7701         * src/devices/grotty/tty.cc (main): Accept --help and --version.
7702         (usage): Add stream argument. Don't exit.
7703         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7704         (main): Accept --help and --version.
7705         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7706         (main): Accept --help and --version.
7707         * src/preproc/html/pre-html.cc (usage): Add stream argument.
7708         (scanArguments): Accept --help and --version.
7709         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7710         (main): Accept --help and --version.
7711         * src/preproc/refer/refer.cc (main): Accept --help and --version.
7712         (usage): Add stream argument. Don't exit.
7713         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7714         exit.
7715         (main): Accept --help and --version.
7716         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7717         (main): Accept --help and --version.
7718         * src/roff/groff/groff.cc (main): Accept --help and --version.
7719         (synopsis): Add stream argument.
7720         (help): Write --help output to stdout, not stderr.
7721         (usage): Add stream argument. Don't exit.
7722         * src/roff/grog/grog.pl: Accept --help and --version.
7723         (help): New sub.
7724         * src/roff/grog/grog.sh: Accept --help and --version.
7725         * src/roff/nroff/nroff.sh: Accept --help and --version.
7726         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7727         (usage): Add stream argument. Don't exit.
7728         (main): Accept --help and --version.
7729         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7730         (usage): New function with stream argument, doesn't exit.
7731         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7732         (usage): New function with stream argument, doesn't exit.
7733         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7734         (usage): Add stream argument. Don't exit.
7735         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7736         (main): Accept --help and --version.
7737         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7738         exit.
7739         (main): Accept --help and --version.
7740         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7741         (main): Accept --help and --version.
7742         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7743         (usage): Add stream argument. Don't exit.
7745 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
7747         Fix indentation in SYNOPSIS.
7749         Updated to include changes of latest BSD mdoc version (basically,
7750         the only change is that `.Fn' and `.Fc' put a final semicolon after
7751         a function declaration in the SYNOPSIS section).
7753         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7754         (doc-in-synopsis-section): New variable.  Updated all related
7755         functions.
7756         (doc-indent-synopsis-active): New register.
7757         (Nd, Fn, Fo): Use it.
7758         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7759         `.Cd' with long argument line produces indented wrapped lines. 
7760         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7761         undesirable line break to be output.
7762         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7763         `.rs'.
7764         (Fn, Fc): Add final `;' to output.
7765         (doc-save-global-vars, doc-restore-global-vars): Updated.
7766         * tmac/doc-common: Remove `Ex' register.
7767         Updated.
7768         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7769         copyright.
7771 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7773         * tmac/doc.tmac (Cd): Simplify code.
7774         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7776 2001-04-06  Werner LEMBERG  <wl@gnu.org>
7778         Implement continuous underlining for nroff mode.  To do that, a new
7779         request in the ditroff language has been added: `x u N' (N is 0
7780         or 1).
7782         \X and \Y are now transparent to end-of-sentence recognition.
7784         * src/include/printer.h (printer): Add `type' parameter to `special'
7785         method.
7786         * src/libs/libdriver/printer.cc (printer::special): Updated.
7787         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7789         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7790         specials of type `p'.
7791         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7792         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7793         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7794         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7795         (glyph::order): New method.
7796         (tty_printer::add_char): Use it.
7797         (tty_printer::special): New method.
7798         (tty_printer::end_page): Implement it.
7800         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7801         * src/roff/troff/node.cc (special_node::special_node): Add parameter
7802         to set `no_init_string'.
7803         (special_node::tprint_start): Use it.
7804         (special_node::same, special_node::copy): Updated.
7805         (special_node::ends_sentence): New method.
7806         (troff_output_file::start_special): Add parameter to include
7807         inititialization of special conditionally.
7809         * src/roff/troff/env.h (environment): New member `underline_spaces'.
7810         * src/roff/troff/env.cc (do_underline_special): New function.
7811         (environment::set_font): Use it.
7812         (do_underline): Use it.  This was `underline()'.
7813         (underline): Call `do_underline()'.
7814         (continuous_underline): New function which calls `do_underline()'.
7815         (environment::newline): Use `do_underline_special()'.
7816         (init_env_requests): Updated.
7818         * NEWS, man/troff_out.man: Updated.
7820 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
7822         * font/devutf8/R.proto: Fix code of 'shc'.
7824 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7826         Many fixes.  Diag lists can now be nested also; additionally,
7827         `-compact' and `-offset' are supported.
7829         * tmac/doc.tmac (doc-have-indent): Replaced with ...
7830         (doc-list-have-indent-stackXXX): A new register stack.
7831         (doc-have-diag-list): Removed.
7832         (Bl): Use `doc-list-have-indent-stackXXX'.
7833         (El): Updated.
7834         (doc-diag-list): Use `doc-compact-list-stackXXX'.
7835         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7836         (doc-set-vertical-and-indent): Ditto.
7837         (doc-next-list-depth): Removed.
7838         (doc-increment-list-stack): Updated.
7839         (doc-decrement-list-stack): Use `doc-list-depth' instead of
7840         `doc-next-list-depth'.
7841         (doc-end-list, doc-end-column-list): Don't use
7842         `doc-increment-list-stack'.
7843         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7844         (doc-save-global-vars, doc-restore-global-vars): Updated.
7845         * tmac/doc-common: Updated.
7846         * tmac/groff_mdoc.man: Updated.
7847         * NEWS: Fix typo.
7849 2001-04-02  Werner LEMBERG  <wl@gnu.org>
7851         * src/devices/grotty/grotty.man: Fix grammatical error.
7853 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
7855         Remove .Ld from mdoc package; replace it with special handling of
7856         `...'.
7858         * tmac/doc-common: Remove `Ld' register.
7859         Uncomment `doc-volume-ds-*' strings.
7860         Remove `doc-operating-system-default'.
7861         (Os): Updated.
7862         * tmac/doc-syms (Ld): Removed.
7863         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7864         `...' specially.
7865         * NEWS: Updated.
7867         * tmac/groff_mdoc.man: Many fixes and updates.
7869 2001-03-29  Werner LEMBERG  <wl@gnu.org>
7871         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
7872         Bond <tkb@tkb.mpl.com>.
7873         * tmac/www.tmac: Save compatibility mode.
7875 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
7877         * tmac/groff_mdoc.man: Many fixes.
7879 2001-03-28  Werner LEMBERG  <wl@gnu.org>
7881         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7882         isn't recognized.
7884 2001-03-27  Werner LEMBERG  <wl@gnu.org>
7886         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7887         diversion.  This fixes overlong tags.
7889 2001-03-26  Werner LEMBERG  <wl@gnu.org>
7891         * doc/groff.texinfo: Fixed and improved documentation of fonts.
7892         * tmac/doc-syms: Fix error messages.
7893         * tmac/an-old.tmac: Remove incorrect double backslashes.
7895 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
7897         * tmac/Makefile.sub: Strip mdoc.local also
7898         * tmac/strip.sed: Fixed.
7900 2001-03-24  Werner LEMBERG  <wl@gnu.org>
7902         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7903         selecting the font size.
7904         * tmac/groff_mdoc.man, NEWS: Document it.
7906 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7908         * src/roff/troff/div.cc (save_vertical_space): Add default argument
7909         to `sv' request.
7910         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7911         argument to restore previous font family.
7912         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7914         * doc/groff.texinfo: More fixes and additions (mainly for font
7915         manipulating commands).
7917         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7918         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
7919         * tmac/Makefile.sub, NEWS: Updated.
7921 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7923         Replaced mdoc implementation.  The new version is `state of the
7924         art', using almost all new features of groff 1.17 -- it won't run
7925         with older versions.
7927         * tmac/doc.tmac: Completely rewritten.
7928         * tmac/doc-common: Ditto.
7929         * tmac/doc-nroff: Ditto.
7930         * tmac/doc-ditroff: Ditto.
7931         * tmac/doc-syms: Ditto.
7932         * tmac/mdoc.local: New file.
7933         * tmac/groff_mdoc.samples.man: Replaced with ...
7934         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7935         * tmac/strip.sed: Updated.
7936         * tmac/Makefile.sub: Updated.
7937         * INSTALL: Updated.
7939         * tmac/groff_man.man: Add `man.local' to the FILES section.
7941 2001-03-22  Werner LEMBERG  <wl@gnu.org>
7943         * doc/groff.texinfo: Added many @noindent.
7944         Replaced @end_Example -> @endExample.
7945         Added info whether registers are r/o.
7946         Many other additions and fixes.
7948 2001-03-21  Werner LEMBERG  <wl@gnu.org>
7950         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7951         in makeinfo of texinfo 4.0) to be used in @Def* macros.
7952         Improved @Def* macros: Now the exact syntax of request, register,
7953         and escapes is shown.
7954         Added macros for parentheses and brackets to be used in @Def*.
7955         Many fixes and improvements of the documentation.
7957 2001-03-20  Werner LEMBERG  <wl@gnu.org>
7959         * doc/groff.texinfo: Added new index: `st' (for strings).
7960         Added macros @Defstr(x).
7961         Added macro @Example (adding @group).
7962         Other minor improvements.
7964 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7966         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7967         `rq' for requests.  `fn' is no longer used.
7968         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7969         Removed @Deffn(x).
7971         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7972         number with name of man page.
7974 2001-03-19  Larry Kollar  <kollar@alltel.net>
7976         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
7977         consistency.
7979 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7981         * man/groff_font.man: Document `prepro', `postpro', and `print'.
7982         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7983         * src/devices/grohtml/grohtml.man: Fixing typos.
7985 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
7987         * tmac/s.tmac (@IP): Pass `.ip' html tag.
7988         * tmac/groff_mwww.man: Remove .LINE macro
7989         * tmac/www.tmac (LINE): Add `.ti'.
7991         * src/devices/grohtml/post-html.cc (html_printer): New member
7992         `indent'.
7993         (html_printer::emit_raw): Use it.
7994         (html_printer::do_linelength): Ditto.
7995         (html_printer::do_pageoffset): Ditto.
7996         (html_printer::do_indentation): Ditto.
7997         (html_printer::do_tempindent): Ditto.
7998         (html_printer::do_break): Ditto.
7999         (html_printer::begin_page): Ditto.
8000         (html_printer::do_indentedparagraph): New function.
8001         (html_printer::troff_tag): Handle `.ip'.
8002         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8003         Add `<td width=...>' handling.
8004         (html_text::do_table): Add parameter.
8005         (html_text::do_indent): Updated.
8006         * src/devices/groohtml/html-text.h: Updated.
8008 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
8010         Introduced simple html tables to implement indentation.
8012         * src/devices/grohtml/html.h (word, word_list): New structures.
8013         (simple_output): Use it.
8014         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8015         (html_printer): Improve indentation handling.
8016         (html_printer::emit_raw): Set `in_table' element.  Handle
8017         indentation if set.
8018         (html_printer::write_header): Move conditional downwards.
8019         Don't allow whitespace in tags.
8020         (html_printer::do_linelength): Handle line length and indentation
8021         conditionally.
8022         (html_printer::do_pageoffset): Handle indentation conditionally.
8023         (html_printer::do_indentation): Ditto.
8024         (html_printer::do_tempindent): New function member.
8025         (html_printer::do_fill): Take care of indentation.
8026         (html_printer::do_flush): Finish table.
8027         (html_printer::do_links): Ditto.
8028         (html_printer::do_break): New function for handling `.br' and `.ti'.
8029         (html_printer::troff_tag): Use it.
8030         Handle `.ti'.
8031         (html_printer::flush_globs): Fix.
8032         (html_printer::flush_page): Finish table.
8033         (html_printer::html_printer): Fix error message.  Set up
8034         `linelength'.
8035         (html_printer::add_to_sbuf): Remove special handling of character
8036         code 255.
8037         (to_unicode): Remove `stop()'.
8038         (html_printer::write_title): Cleanup.
8039         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
8040         (html_printer::~html_printer): Flush text and end the line.
8041         Use `put_string()'.
8042         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8043         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8044         emission of tags.
8045         (html_text::start_tag): Disable newlines.
8046         (html_text::table_is_void): New function.
8047         (html_text::issue_table_begin): Ditto.
8048         (html_text::issue_table_end): Ditto.
8049         (html_text::push_para): Better table handling.
8050         (html_text::do_indent): New function.
8051         (html_text::do_table): Ditto.
8052         (html_text::done_table): Ditto.
8053         (html_text::do_tt): Handle PRE_TAG.
8054         (html_text::is_in_table): New function.
8055         (html_text::check_emit_text): Handle tables.
8056         (html_text::do_emittext): Use `nl()'.
8057         (html_text::do_para): Handle table.
8058         (html_text::remove_def): New function.
8059         * src/devices/grohtml/output.cc (word, word_list): Implement
8060         methods.
8061         (simple_output::end_line): Flush last word.
8062         (simple_output::simple_comment): Ditto.
8063         (simple_output::begin_comment): Recoded.
8064         (simple_output::end_comment): Ditto.
8065         (simple_output::comment_arg): Removed.
8066         (simple_output::check_newline): Improve test and flush last word.
8067         (simple_output::space_or_newline): Improved.
8068         (simple_output::write_newline): Replaced with...
8069         (simple_output::nl): This.
8070         (simple_output::put_raw_char): Flush last word.
8071         (simple_output::check_space): Removed.
8072         (simple_output::put_translated_string): Ditto.
8073         (simple_output::put_string): Simplified.
8074         (simple_output::put_number): Updated.
8075         (simple_output::put_float): Ditto.
8076         (simple_output::put_symbol): Removed.
8077         (simple_output::enable_newlines): Add `check_newline()'.
8078         (simple_output::flush_last_word): New function.
8080         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8081         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8083         * tmac/s.tmac (@PP, @IP): Add html conditional code.
8084         * tmac/an-old.tmac (TP): Ditto.
8086 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
8088         * mdate.sh: Make it POSIX compliant.
8090 2001-03-09  Werner LEMBERG  <wl@gnu.org>
8092         Added the `return' request to end a macro immediately.  It simply
8093         pops iterators from the input stack until a macro iterator is found.
8095         * src/roff/troff/input.cc (input_iterator::is_macro,
8096         macro_iterator::is_macro): New member.
8097         (input_return_boundary): New class to signal an immediate return
8098         to while_request().
8099         (input_stack::add_return_boundary, input_stack::is_return_boundary):
8100         New functions.
8101         (input_stack::clear): Use it.
8102         (input_stack::pop_macro): New function.
8103         (while_request): Use `is_return_boundary()'.
8104         (return_macro_request): New function.
8105         (init_input_requests): Use it.
8107         * src/roff/troff/TODO: Updated.
8108         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8110 2001-03-08  Werner LEMBERG  <wl@gnu.org>
8112         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8113         cleanup.
8115 2001-03-07  Werner LEMBERG  <wl@gnu.org>
8117         Make `\B' more rigid.
8119         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8120         parameter.
8121         (get_number_rigidly): New function.
8122         * src/roff/troff/input.cc (do_expr_test): Use it.
8123         * src/roff/troff/token.h: Updated.
8125         * src/roff/troff/request.h: Fix typo (init_html_request ->
8126         init_markup_request).
8128 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
8130         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
8131         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8132         are now `.begin', `.end', `.image'.
8134         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8135         (html_printer::add_to_sbuf): Changing type of `code' parameter.
8136         Use add_char_to_sbuf().
8137         (to_unicode): New function.
8138         (char_translate_to_html): Changing type of `ch' parameter.
8139         Use `to_unicode()'.
8140         (html_printer::~html_printer): Comment out doctype string.
8141         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8142         instead of `.html-end'.
8143         (write_start_image): Use `.begin' and `.image' instead of
8144         `.html-begin' and `.html-image'.
8145         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8146         (html_begin): Renamed to ...
8147         (begin): This.
8148         (html_end): Renamed to ...
8149         (end): This.
8150         (html_image): Renamed to ...
8151         (image): This.
8152         (init_html_requests): Renamed to ...
8153         (init_markup_requests): This.
8154         * tmac/www.tmac: Updated.
8156 2001-02-28  Bram  <bram@avontuur.org>
8158         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8159         constructor.
8161 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
8163         * doc/meref.me: Fixing some typos.
8165 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8167         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8168         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
8169         * src/roff/troff/node.h: Updated.
8171 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
8173         * tmac/groff_tmac.man: Fix typo.
8175 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8177         Fixing a bug which prevented proper end-of-sentence recognition
8178         between an `unformatted' box and the following text.  As a
8179         consequence, vertical line distances are no longer preserved in
8180         boxes after a call to `.unformat' -- because boxes aren't
8181         line-oriented (contrary to diversions), this doesn't make sense
8182         anyway.
8184         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8185         value.
8186         (vertical_size_node::set_unformat_flag): New method.
8187         * src/roff/troff/node.hh: Updated.
8188         * src/roff/troff/input.cc (word_space_node::reread,
8189         hmotion_node::reread): Reset `unformat' flag after usage.
8190         (unformat_macro): Append only if `set_unformat_flag()' returns
8191         non-zero.
8192         * src/roff/troff/troff.man: Updated.
8194 2001-02-15  Werner LEMBERG  <wl@gnu.org>
8196         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8197         documentation of `asciify' and `unformat' requests.
8199 2001-02-13  Werner LEMBERG  <wl@gnu.org>
8201         Redesigned the `unformat' request.  It is no longer connected with
8202         `asciify' but rather uses new `reread()' methods if the `unformat'
8203         flag is set.  Additionally, the handling of space characters after
8204         unformatting has been fixed so that they retain their width.
8206         * src/roff/troff/node.h (width_list): New structure to store
8207         original widths of spaces.
8208         (node): Added `unformat' member.
8209         Replaced `num_spaces' variable with `orig_width' list.
8210         * src/roff/troff/node.cc (*node::asciify,
8211         asciify_reverse_node_list): Removed `unformat_only' flag and related
8212         code.
8213         (word_space_node::asciify, word_space_node::word_space_node): Use
8214         `orig_width'.
8215         (word_space_node::~word_space_node): New destructor.
8216         (word_space_node::copy): Updated to handle `orig_width'.
8217         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8218         (*node::merge_space): Update `orig_width' list if necessary.
8219         (*node::set_unformat_flag): New methods to set the `unformat' flag.
8220         * src/roff/troff/enc.cc (environment::space_newline): Use
8221         `width_list'.
8222         (environment::space): Added method to handle space width and
8223         sentence space width as parameters.  Use `width_list'.
8224         (environment::make_tab_node): Updated.
8225         * src/roff/troff/env.h: Updated.
8226         * src/roff/troff/input.cc (word_space_node::reread,
8227         unbreakable_space_node::reread, hmotion_node::reread): New methods
8228         to handle nodes specially if `unformat' flag is set.
8229         (do_asciify_macro): Renamed back to ...
8230         (asciify_macro): This.
8231         (unformat_macro): New implementation to simply set the `unformat'
8232         flag.
8234         * MORE.STUFF: Added more info about deroff.
8236 2001-02-08  Werner LEMBERG  <wl@gnu.org>
8238         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8239         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8240         and `add_self()' methods to avoid hyphenation.  For example, the
8241         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8242         soft hyphen after `foo'.  Now the hyphen list is correctly
8243         `foo<ignore><ignore>bar'.
8245 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
8247         * tmac/groff_tmac.man: Fix `BIR' macro.
8249 2001-02-04  Werner LEMBERG  <wl@gnu.org>
8251         A new escape sequence `\:', inserting a zero-width break point.
8253         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8254         * src/roff/troff/input.cc (get_copy, token::next, asciify):
8255         Implement it.
8256         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8257         method.
8258         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
8259         and `asciify()' methods.
8260         * src/roff/troff/node.cc (space_node::space_node): Updated.
8261         (space_node::asciify): Handle `was_escape_colon'.
8262         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8264         Handle `\~' similar to other comparable requests.
8266         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8267         label.
8268         (token::next): Move creation of an unbreakable_space_node to...
8269         (token::add_to_node_list): Here.
8271         Fix a bug which sometimes prevented hyphenation of words connected
8272         with `\~' or `\ ' (and other escape sequences handled as
8273         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
8274         (after a call to the `unformat' request).
8276         * src/roff/troff/env.h (environment::possibly_break_line,
8277         environment::hyphenate_line): Introducing `start_here' parameter.
8278         * src/roff/troff/env.cc (environment::space_newline,
8279         environment::space): Use it.
8280         (environment::possibly_break_line, environment::hyphenate_line):
8281         Implement it.
8282         * src/roff/troff/input.cc (process_input_stack): Use it.
8283         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8284         space_char_hmotion_node, overstrike_node): Add
8285         `get_hyphenation_type()' method.
8286         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8287         if `unformat_only' is active.
8289 2001-01-30  Werner LEMBERG  <wl@gnu.org>
8291         Implemented new read-only number register `.linetabs' which
8292         returns 1 if in line-tabs mode, 0 otherwise.
8294         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8295         * src/roff/troff/env.cc (get_line_tabs): New function.
8296         (init_env_requests): Use it.
8297         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8299         * VERSION, REVISION: Changing to 1.17.0.
8301 2001-01-28  Werner LEMBERG  <wl@gnu.org>
8303         Fixed a bug which prevented hyphenation of words which are finished
8304         with `\)'.
8306         * src/roff/troff/token.h (token): Add enum type
8307         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8308         * src/roff/troff/input.cc (token::next, token::description,
8309         get_line_arg, token::add_to_node_list, token::process): Use it.
8311 2001-01-27  Werner LEMBERG  <wl@gnu.org>
8313         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8314         * src/roff/troff/div.cc (do_divert): Use it.
8316         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8318 2001-01-25  Werner LEMBERG  <wl@gnu.org>
8320         Adding the `linetabs' request.  If set, tab distances are not
8321         computed relative to the input line but relative to the output line.
8323         * src/roff/troff/env.h (environment): New member `line_tabs'.
8324         * src/roff/troff/env.cc (line_tabs_request): Implement request.
8325         (environment::environment, environment::copy): Updated.
8326         (environment::distance_to_next_tab): Use `line_tabs'.
8327         (init_env_requests): Register request.
8328         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
8329         fixes.
8331 2001-01-24  Werner LEMBERG  <wl@gnu.org>
8333         Introducing a new read-only register `.int' which is set to a
8334         positive value if the last output line is interrupted (i.e., if it
8335         contains `\c').
8337         * src/roff/troff/env.cc (init_env_requests): Add it.
8338         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8340 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
8342         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8343         * src/preproc/html/pre-html.cc (findPrefix): New function which
8344         generates the troff executable name via the system prefix.
8345         * src/preproc/eqn/main.cc: Modified warning message.
8347 2001-01-23  Werner LEMBERG  <wl@gnu.org>
8349         troff's `box' and `boxa' requests didn't preserve temporary
8350         indentation.
8352         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8353         `saved_target_text_length' members.
8354         * src/roff/troff/div.cc (do_divert): Use them.
8356         Tabs (but not yet leaders and fields) are now handled correctly by
8357         `asciify' request.
8359         * node.h (hmotion_node): Add field `was_tab'.
8360         * env.cc (environment::make_tab_node): Set it.
8361         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8363         Added new request `unformat' which will, contrary to `asciify',
8364         preserve font information after unformatting (i.e., only nodes
8365         dealing with horizontal space are converted back to input
8366         characters).
8368         * input.cc (asciify_macro): Renamed to ...
8369         (do_asciify_macro): this, having a new parameter `unformat_only'.
8370         (asciify_macro, unformat_macro): New; using do_asciify_macro.
8371         (init_input_requests): Added `unformat'.
8372         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8373         parameter to control asciification process.
8374         * node.h (*_node::asciify): Ditto.
8375         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8377 2001-01-20  Werner LEMBERG  <wl@gnu.org>
8379         * doc/groff.texinfo: Minor improvement of `.in' documentation.
8381 2001-01-18  Werner LEMBERG  <wl@gnu.org>
8383         * tmac/ps.tmac: Remove call of psold.tmac.
8384         * tmac/psold.tmac: Comment updated.
8385         * tmac/psnew.tmac: Removed since no longer needed.
8386         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8388         * font/devutf8/R.proto: Adding `shc' glyph.
8389         * font/devutf8/NOTES: Updated.
8391         * test-groff: Updated.
8393 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8395         First cut of the new html device driver.  Changes to pre-html and
8396         the new grohtml are too numerous to be documented here.
8398         Stuff related to `html' has been renamed to `html-old' and `html2'
8399         stuff has been renamed to `html' (including directories).  The new
8400         html device driver is therefore invoked as `-Thtml'.
8402         Added new `\O' escape to suppress output (needed by html driver).
8404         Added functions and code to pass info about input-level commands
8405         (`.in', `.fl', etc.) to html driver.
8407         Three new functions (.html-begin, .html-end, and .html-image) for
8408         better html handling: `html-begin' will execute the remaining line
8409         if at the outermost nesting level, increasing an internal counter.
8410         `html-end' does the same but decreases the internal counter.
8411         `html_image' puts its arguments into a special node (suppress_node)
8412         to define an image region.
8414         The `output' request has been removed.
8416         * tmac/html-tags.tmac: Removed.
8417         * tmac/arkup.tmac: Updated and renamed to ...
8418         * tmac/www.tmac: New file.
8419         * tmac/markup.tmac Updated and renamed to ...
8420         * tmac/mwww.tmac: New file.
8421         * tmac/Makefile.sub: Updated.
8422         * tmac/an-old.tmac: Updated.
8423         * tmac/eqnrc: Updated.
8424         * tmac/groff_man.man
8425         * tmac/groff_markup.man: Updated and renamed to ...
8426         * tmac/groff_mwww.man: New file.
8427         * tmac/groff_tmac.man: Updated.
8428         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8429         * tmac/html.tmac: Updated and renamed from html2.tmac.
8430         * tmac/pspic.tmac: Updated html support.
8431         * tmac/s.tmac: Added html output support.
8432         * tmac/troffrc, tmac/troffrc-end: Updated.
8434         * Makefile.in, doc/Makefile: Updated.
8435         * doc/groff.texinfo: Added info about new `\O' escape.
8436         * doc/homepage.ms: Use `MAILTO' macro.
8438         * font/devhtml/DESC.proto: Add `C' font.
8439         * font/devhtml/Makefile.sub: Updated.
8440         * font/devhtml/R.proto: Minor fixes.
8441         * font/devhtml-old/Makefile.sub: Updated.
8443         * src/devices/grohtml-old/Makefile.sub: Updated.
8445         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8446         method.
8447         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8448         graphic_start): Add `inline' parameter.  Update.
8449         (html_end_suppress, graphic_end): Update.
8451         * src/include/html-strings.h: New file.
8452         * src/include/htmlindicate.h: Comments updated.
8453         * src/include/printer.h: Updated.
8455         * src/preproc/eqn/main.cc (do_file, main): Updated.
8456         * src/preproc/pic/troff.cc (troff_output::start_picture,
8457         troff_output::finish_picture): Updated.
8458         * src/preproc/tbl/main.cc (process_input_file): Updated.
8460         * src/roff/groff/groff.cc (main): Updated.
8461         Pass device arguments to predrivers also.
8462         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8463         * src/roff/troff/env.h (environment): Updated.
8464         New elements `need_eol' and `ignore_next_eol' (for html output).
8465         * src/roff/troff/env.cc (environment::environment): Add initializers
8466         for `need_eol' and `ignore_next_eol'.
8467         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8468         functions.
8469         (point_size, fill, no_fill, center, right_justify, line_length,
8470         indent, temporary_indent, break_request, handle_tab): Use
8471         `add_html_tag()'.
8472         (set_tabs): Use `add_html_tag_tabs()'.
8473         (environment::add_html_tag): Updated.
8474         (environment::do_break): Updated.
8475         * src/roff/troff/div.cc (space_request, flush_output): Use
8476         `environment::add_html_tag()'.
8477         * src/roff/troff/input.cc: Updated.
8478         New variable `html_level' to indicate nested `html-begin' requests.
8479         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8480         (non_interpreted_char_node, token_node, non_interpreted_node): Add
8481         `force_tprint()' method.
8482         (token::next): Handle `\O'.
8483         (do_suppress): Implement it.
8484         (html_begin, html_end, html_image): New functions.
8485         (init_output_requests): Renamed to ...
8486         (init_html_requests): this.
8487         (main): Use it.
8488         (macro::append_str, macro::append_unsigned, macro::append_int): New
8489         methods.
8490         New variable `output_low_mark_miny' to limit minimal value of y.
8491         (reset_output_registers): Use it.
8492         (output_request): Removed.
8493         (get_output_registers): New function.
8494         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8495         (*_node): Added `force_tprint()' if necessary.
8496         (special_node): New elements `tf' and `get_tfont()'.
8497         (suppress_node): New class.
8498         * src/roff/troff/node.cc:
8499         New global variables `image_no' and `suppress_start_page'.
8500         (real_output_file): New method `is_on()'.
8501         (troff_output_file): New method `start_special(tfont)'.
8502         (troff_output_file::really_print_line): Use `tprint' conditionally.
8503         (real_output_file::print_line): Updated.
8504         (real_output_file::on): Updated.
8505         (*_node): Added `force_tprint()'.
8506         (special_node::special_node): Initializer updated.
8507         (special_node::same, special_node::copy, special_node::tprint_start):
8508         Updated.
8509         (get_reg_int, get_reg_str): New functions.
8510         (suppress_node::*): New methods.
8511         New global variables last_position, last_image_filename;
8512         (min): New inline function.
8513         * src/roff/troff/reg.h, src/roff/troff/request.h,
8514         src/roff/troff/troff.h: Updated.
8516 2001-01-13  Werner LEMBERG  <wl@gnu.org>
8518         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8519         documentation of `asciify' request.
8521 2001-01-12  Werner LEMBERG  <wl@gnu.org>
8523         * src/roff/troff/input.cc: Move definition of special characters
8524         like `ESCAPE_TILDE' to ...
8525         * src/roff/troff/input.h: New file.
8526         * src/roff/troff/Makefile.sub (HDRS): Add it.
8528         Extending the .asciify request to `unformat' space characters also.
8530         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8531         to count input space characters.
8532         Update constructors to take care of it.
8533         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8534         `ESCAPE_SPACE' instead of normal space.
8535         (word_space_node::asciify): New method.
8536         (unbreakable_space_node::asciify): New method.
8537         (word_space_node::merge_space): New method.
8538         * src/roff/troff/env.cc (environment::space_newline,
8539         environment::space): Add code to initialize `num_spaces' (using the
8540         constructor of `word_space_node').
8541         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8542         Document it.
8544 2001-01-09  Werner LEMBERG  <wl@gnu.org>
8546         * man/groff_char.man: Use table header traps only conditionally.
8548 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
8550         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8552 2001-01-08  Werner LEMBERG  <wl@gnu.org>
8554         Introducing the `box' and `boxa' requests which are similar to
8555         `di' resp. `da' but omitting a partially filled line (which is
8556         restored after ending the diversion).
8558         * src/roff/troff/div.h (diversion): Add elements to save partially
8559         filled line.
8560         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8561         partially filled line.
8562         (divert, divert_append): Updated.
8563         (box, box_append): New functions.
8564         (init_div_requests): Use them.
8565         * src/roff/troff/env.h (environment): do_divert() is now a friend.
8566         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8568         * doc/groff.texinfo: Fix documentation of `lf' request.
8570 2000-12-25  Werner LEMBERG  <wl@gnu.org>
8572         * src/roff/troff/troff.man, NEWS: Document `writem' request.
8574 2000-12-21  Werner LEMBERG  <wl@gnu.org>
8576         Ignore `ss' request if in compatibility mode.
8578         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8579         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8580         * src/roff/troff/env.cc (space_size): Use it.
8582         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8583         `ss' request in nroff mode.
8585         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8586         changes.
8588 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
8590         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8592 2000-12-13  Werner LEMBERG  <wl@gnu.org>
8594         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8595         * src/preproc/eqn/neqn.man: Small fixes and additions.
8597 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
8599         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8600         Fixing typo.
8602         * src/preproc/eqn/neqn.man: New file.
8604         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8605         negative' warning.
8607         * tmac/e.tmac: Add `T&' macro.
8608         Fix `indent cannot be negative' warning.
8609         * tmac/s.tmac: Fix `indent cannot be negative' warning.
8611 2000-12-07  Werner LEMBERG  <wl@gnu.org>
8613         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8615 2000-12-06  Werner LEMBERG  <wl@gnu.org>
8617         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8618         `alloca' symbol .
8620         * MORE.STUFF: Added info about deroff for djgpp.
8622         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8623         documentation of -rcR switch.
8625 2000-12-03  Werner LEMBERG  <wl@gnu.org>
8627         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8628         if -rcR=1 (which is now the default in nroff mode), a single, very
8629         long page is created instead of multiple pages: All `ne' and `wh'
8630         requests are put into conditionals; a new macro `an-end' is added to
8631         be called with `em'.
8633         Some other minor cleanups.
8635         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8637 2000-12-02  Werner LEMBERG  <wl@gnu.org>
8639         Fixing a bug which prevented hyphenation in words followed
8640         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8642         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8643         Adding possibly_break_line().
8644         * src/roff/troff/env.h (environment): Make possibly_break_line()
8645         public.
8647         Make `\~' usable in .tr request.
8649         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8650         (token): Add stretchable_space().
8651         * src/roff/troff/input.cc (token::next, token::delimiter,
8652         token::description, process_input_stack, do_translate,
8653         add_to_node_list, token::process): Use it.
8654         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8655         for adjusting the space.
8656         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
8657         for stretchable space.
8658         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8659         (make_node): Add code for stretchable space.
8660         * src/roff/troff/env.cc (environment::add_char): Use it.
8661         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8662         (get_copy, token::next, transparent_translate, asciify): Use it.
8664         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8665         doc/groff.texinfo: Updated.
8666         * man/groff.man: Small reorderings.
8668 2000-11-23  Werner LEMBERG  <wl@gnu.org>
8670         * NEWS: Fixes.
8671         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8672         option.
8673         * src/roff/troff/input.cc (main): Add `config_macro_path' and
8674         `safer_macro_path' to -M option.
8675         * src/roff/troff/troff.man: Fixes.
8677 2000-11-22  Werner LEMBERG  <wl@gnu.org>
8679         Use safer path (except for config files) if -U isn't specified.  Add
8680         a special macro path (without home and current directory) for config
8681         files.  Add home directory to unsafe path for consistency.  Don't
8682         include the home directory in the font path.
8684         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8685         `macro_path'.
8686         * src/include/macropath.h: Add `config_macrp_path'.
8687         * src/libs/libgroff/fontfile.cc: Fix font path.
8688         * src/roff/troff/input.cc (process_startup_file): Use
8689         `config_macro_path'.
8690         (main): Select unsafe path if -U is given.
8692         * src/preproc/eqn/main.cc (main): Fixing search path for
8693         configuration file.
8694         * src/preproc/eqn/eqn.man: Updated.
8696         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8697         Updated.
8699         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8700         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8701         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8702         src/devices/grotty/grotty.man: Updated.
8704         * Makefile.in: Fix comments.
8706 2000-11-17  Werner LEMBERG  <wl@gnu.org>
8708         * tmac/safer.tmac: Empty file added (again) for compatibility
8709         reasons.
8710         * tmac/Makefile.sub: Updated.
8712 2000-11-16  Werner LEMBERG  <wl@gnu.org>
8714         * src/devices/grodvi/dvi.cc (main),
8715         src/devices/grohtml2/post-html.cc (main),
8716         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8717         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8718         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8719         (main), src/preproc/html2/pre-html.cc (main),
8720         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8721         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8722         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8723         (main), src/utils/hpftodit/hpftodit.cc (main),
8724         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8725         (main), src/utils/lookbib/lookbib.cc (main),
8726         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8727         (main): Use stdout for -v.
8728         * src/roff/groff/groff.cc (run_commands),
8729         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8730         to make direct printing to stdout possible.
8731         * src/roff/groff/pipeline.h: Updated.
8733         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8734         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8735         * src/utils/afmtodit/afmtodit.man: Updated.
8737         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8738         (version): New function.
8739         (usage): Updated.
8740         * src/utils/addftinfo/addftinfo.man: Updated.
8742         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8743         Fixing copyright dates.
8745         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8746         replacing it.
8748         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8749         version_string.
8751         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8753 2000-11-15  Werner LEMBERG  <wl@gnu.org>
8755         In all programs, make -v return immediately with exit status 0 to
8756         be compliant with the GNU standard.
8758         * src/devices/grodvi/dvi.cc (main),
8759         src/devices/grohtml2/post-html.cc (main),
8760         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8761         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8762         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8763         (main), src/preproc/html2/pre-html.cc (main),
8764         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8765         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8766         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8767         (main): Implement it.
8768         * NEWS: Updated.
8770         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
8771         and postprocessors to the -v option.
8773         * src/roff/grog/grog.pl: Implement -v.
8774         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8775         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8777         * src/roff/nroff/nroff.sh: Implement -v.
8778         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8779         * src/roff/nroff/nroff.man: Updated.
8780         
8781         * src/preproc/eqn/main.cc (main): Fix comment typo.
8783         * MORE.STUFF: Added info about djgpp port of grap.
8785 2000-11-14  Werner LEMBERG  <wl@gnu.org>
8787         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8788         mode (or rather, implemented non-compatibility mode).
8789         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8791         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8792         replacing it -- we don't find gxditview otherwise.
8793         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8795         * src/preproc/pic/depend: Removed.  Unnecessary.
8797         Implemented dummy keyword `solid' in pic for compatibility with
8798         AT&T pic.
8800         * lex.cc (lookup_keyword): Added `solid'.
8801         * pic.y: Added SOLID with dummy rule.
8802         * pic.cc, pic_tab.h: Regenerated.
8803         * doc/pic.ms: Updated.
8805 2000-11-13  Werner LEMBERG  <wl@gnu.org>
8807         For security reasons, don't use the current directory but the home
8808         directory while searching and scanning troffrc and troffrc-end.
8809         Similarly, replace the current directory with the home directory
8810         in the font path.
8812         * Makefile.in (fontpath, tmacpath): Remove current directory.
8814         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8815         two parameters `add_home' and `add_current'.
8816         (search_path::~search_path, search_path::command_line_dir,
8817         search_path::open_file): Remove tests for `dirs' being zero.
8818         * src/include/searchpath.h: Adjust.
8819         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8820         `safer_macro_path'.
8821         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8823         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8824         * src/roff/troff/input.cc: Use `mac_path', initialized with
8825         `macro_path'.
8826         (process_startup_file): Set `mac_path' to `safer_macro_path'.
8827         * src/roff/troff/env.cc: Use `mac_path'.
8829         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8831         * NEWS, man/roff.man, src/roff/troff/troff.man,
8832         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8833         Updated.
8835 2000-11-12  Werner LEMBERG  <wl@gnu.org>
8837         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8839         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8840         * configure.in: Fix typo in comment.
8841         * configure: Regenerated.
8843         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8844         copyright dates.
8846 2000-11-08  Werner LEMBERG  <wl@gnu.org>
8848         Add system tmac directory (/usr/local/lib/groff/site-tmac).
8850         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8851         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8852         $(systemtmacdir).
8853         Use @libdir@.
8854         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8855         * tmac/Makefile.sub (install_data): Create
8856         $(systemtmacdir) and $(localtmacdir).
8857         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8858         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8859         NEWS, doc/groff.texinfo: Updated and minor fixes.
8861         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8862         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8863         $(systemtmacdir) since the wrapper files are platform-dependent.
8865 2000-11-01  Werner LEMBERG  <wl@gnu.org>
8867         * doc/groff.texinfo: Fix typo.
8869 2000-10-26  Werner LEMBERG  <wl@gnu.org>
8871         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
8872           tmac.doc.old -> doc-old.tmac
8873           tmac.an.old  -> an-old.tmac
8875         * tmac/tmac.*: Moved to ...
8876         * tmac/*.tmac: this.
8877         * tmac/man.local: Fix comment.
8878         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8879         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
8880         Added some `FILES' sections.  More use of @...@ directives.  Other
8881         minor updates.
8882         * arch/djgpp/README, font/devutf8/NOTES: Updated.
8883         * doc/homepage.ms, doc/groff.texinfo: Updated.
8884         * man/groff.man, man/roff.man: Updated.
8885         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8886         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8887         src/devices/grotty/grotty.man: Updated.
8888         * src/preproc/pic/pic.man: Updated.
8889         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8890         instead of -mdoc.old.
8891         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8892         * src/roff/nroff/nroff.man: Updated.
8893         * NEWS: Updated.
8895         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8897         * tmac/mm.diff: Removed -- it has no use now since the mm package
8898         is part of groff.
8900         * tmac/*: Removed trailing spaces.
8902         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8903         the tmac subdirectory also).
8905         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8906         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8907         stuff since it is no longer needed.
8909         * README, PROBLEMS: Updated.
8911 2000-10-25  Werner LEMBERG  <wl@gnu.org>
8913         Invert current behaviour: Search first FOOBAR.tmac, then
8914         tmac.FOOBAR.
8916         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8917         (open_mac_file, macro_source): Implement it.
8918         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8919         doc/groff.texinfo, NEWS: Document it.
8921         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8922         Small documentation improvements.
8924         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8925         subdirectory also).
8927         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8929 2000-10-24  Werner LEMBERG  <wl@gnu.org>
8931         Add local tmac directory (groff/site-tmac).
8933         * Makefile.in: Add $(localtmacdir).
8934         (uninstall_dirs): Add $(localtmacdir).
8935         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8936         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8937         in $(localtmacdir).  Create $(localtmacdir).
8938         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8939         Updated and minor fixes.
8941         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8943         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8945 2000-10-23  Werner LEMBERG  <wl@gnu.org>
8947         Move hyphen.us to tmac directory.
8949         * src/roff/troff/hyphen.us: Removed.
8950         * src/tmac/hyphen.us: Added.
8951         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8953         Change installation structure for data files from .../groff/... to
8954         .../groff/<version><revision>/... to be conform with other GNU
8955         programs.
8957         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8958         doc/Makefile: Implement it.
8959         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8960         * configure: Updated.
8961         * arch/djgpp/README, font/devutf8/NOTES: Use it.
8962         * NEWS: Document it.
8963         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8964         @MACRODIR@ instead of hard-coded directories.
8966 2000-10-22  Werner LEMBERG  <wl@gnu.org>
8968         Implement $GROFF_BIN_PATH environment variable (which defaults to
8969         $bindir) used for child programs of groff and similar wrappers.
8971         * gendefs.sh: Improve documentation.
8972         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8973         src/preproc/eqn/Makefile.sub (neqn),
8974         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8975         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8976         $GROFF_BIN_PATH.
8977         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8978         $GROFF_PATH__ (the latter for communication with troff).
8979         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8980         set.
8981         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8982         doc/groff.texinfo: Document it.
8984         * doc/groff.texinfo: Improve documentation of troff's -a option.
8986 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
8988         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8989         non-intrusive eol marker.
8990         (troff_output_file::determine_line_limits): New function.
8991         (troff_output_file::draw): Use it.
8992         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8993         output_pending_lines() instead of output_line().
8994         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8995         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8996         createImage): Small fixes.
8997         
8998 2000-10-14  Werner LEMBERG  <wl@gnu.org>
9000         Replace tmac.safer with a real secure solution.
9002         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9003         system_request, pipe_output): Disable requests if in safer mode.
9004         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9005         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9006         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9007         doc/groff.texinfo, src/roff/groff/groff.man,
9008         src/roff/troff/troff.man, arch/djgpp/README: Updated.
9010         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9011         (resource_manager::output_prolog): Replace setenv() with putenv().
9013 2000-10-09  Werner LEMBERG  <wl@gnu.org>
9015         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9016         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9017         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9018         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9019         compilation errors with some compilers.  It seems that this code
9020         is no longer necessary -- if yes, it is easy to add some #ifdef's
9021         for that particular old-fashioned compiler.
9023         * MORE.STUFF: Added info about Meta-tbl.
9025         * doc/groff.texinfo: Added more info about `.if "..."..."'.
9027 2000-10-07  Werner LEMBERG  <wl@gnu.org>
9029         Adding a new escape sequence \B'...': If the string between
9030         the delimiters is a valid numeric expression, return the character
9031         `1', and `0' otherwise.  This is an analogon to \A.
9033         * src/roff/troff/input.cc (do_expr_test): Implement it.
9034         (token::next): Use it.
9035         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9037         * tmac/tmac.trace: Made independent from escape character.
9039 2000-10-06  Werner LEMBERG  <wl@gnu.org>
9041         Adding a new request .dei: define indirect.  The first and second
9042         parameter of .dei are taken from string registers instead directly;
9043         this very special request is needed to make tmac.trace independent
9044         from the escape character (which might even be disabled).
9046         * src/roff/troff/input.cc (do_define_macro): Implement it.
9047         (define_macro_indirect): New function.
9048         (init_input_requests): Use it.
9050         Adding two requests .ecs and .ecr: Save and restore the escape
9051         character.  These two requests are needed to make tmac.trace
9052         independent from the escape character (which might even be
9053         disabled).
9055         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9056         Implement it.
9057         (init_input_requests): Use it.
9059         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9061 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
9063         Adding a new option -P and new environment variable GROPS_PROLOGUE
9064         to grops, selecting a different prologue file (minor modifications
9065         by WL).
9067         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9068         src/devices/grops/ps.cc (main): Implement it.
9069         * src/devices/grops/grops.man, NEWS: Document it.
9071 2000-09-22  Werner LEMBERG  <wl@gnu.org>
9073         * INSTALL: Add info about selecting paper format.
9075 2000-09-21  Werner LEMBERG  <wl@gnu.org>
9077         * src/roff/troff/input.cc (main): Fixing compiler warning.
9078         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9079         strings.h from the former to the latter.
9080         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9081         stuff from the former to the latter.
9083 2000-09-11  Werner LEMBERG  <wl@gnu.org>
9085         Implementing two new requests .tm1 and .tmc: The former is similar
9086         to .tm but can output leading spaces; its syntax is similar to
9087         defining a string, i.e., a `"' can be used to mark the beginning of
9088         the string to be written to stderr: `.tm1 " test'.  The latter is
9089         similar to .tm1 but doesn't write out a final newline character.
9091         * src/roff/troff/input.cc (terminal1, terminal_continue,
9092         do_terminal): New functions.
9093         (init_input_requests): Use them.
9094         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9096 2000-09-09  Werner LEMBERG  <wl@gnu.org>
9098         * tmac/groff_mdoc.samples.man: Small fixes.
9100 2000-09-08  Werner LEMBERG  <wl@gnu.org>
9102         * tmac/groff_mdoc.man: Fixing typo.
9104 2000-09-02  Werner LEMBERG  <wl@gnu.org>
9106         Implementing a .nop request which does nothing.
9108         * src/roff/troff/input.cc (nop_request): New function.
9109         (init_input_requests): Use it.
9110         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9112 2000-09-01  Werner LEMBERG  <wl@gnu.org>
9114         * doc/groff.texinfo: Added some comments.
9116 2000-08-30  Werner LEMBERG  <wl@gnu.org>
9118         * src/roff/troff/TODO: Updated.
9120 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9122         * doc/groff.texinfo: Fix comment how to compile the DVI file.
9124 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9126         * font/devps/generate/Makefile (SHELL): Define explicitly to
9127         "/bin/sh", for non-Unix platforms.
9128         (extraclean): Use a more portable "" quoting instead of a
9129         backslash (which doesn't work on DOS/Windows).
9130         
9131         * font/devlj4/generate/Makefile (extraclean): Ditto.
9133         * font/devdvi/generate/Makefile (extraclean): Ditto.
9135 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9137         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9138         src/roff/troff/troff.man: Document Eli's latest changes.
9140 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9142         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9143         macro file names of the form NAME.tmac as well as tmac.NAME.
9145 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9147         * src/include/posix.h: Remove definition of FILENAME_MAX.
9149         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9150         `sys_fatal' and `stop' function().
9152         * test-groff: Updated.
9154 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
9156         Added the new troff command .output <arg> to suppress output (while
9157         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9158         registers (for passing the output dimensions to the output device).
9160         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9161         parameter.
9162         * src/roff/troff/node.h, src/roff/troff/node.cc
9163         (troff_output_file::really_print_line,
9164         ascii_output_file::really_print_line,
9165         supress_output_file::really_print_line): Use `width' parameter.
9166         (troff_output_file::really_on, troff_output_file::really_off,
9167         output_file::on, output_file::off, real_output_file::on,
9168         real_output_file::off, real_output_file::really_on,
9169         real_output_file::really_off): New functions.
9170         (real_output_file:public output_file): New variable `output_on'.
9171         (real_output_file::begin_page, real_output_file::copy_file,
9172         real_output_file::transparent_char, real_output_file::print_line):
9173         Use it.
9174         (real_output_file::print_line): Use check_output_limits.
9175         * src/roff/troff/reg.h, src/roff/troff/request.h,
9176         src/roff/troff/input.cc (assign_registers): New function to remove
9177         two `goto's.
9178         (do_ps_file): Use it.
9179         (check_output_limits, reset_output_registers, output_request,
9180         init_output_requests): New functions.
9181         (init_input_requests): Updated.
9183         Added new grohtml2 device and html2 preprocessor (coding
9184         not yet finished) which will eventually replace grohtml.
9186         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9187         Updated.
9188         * src/include/htmlindicate.h, src/include/htmlindicate
9189         (html_begin_suppress, html_end_suppress): New functions.
9190         * src/preproc/tbl/main.cc: Use it.
9191         * src/roff/groff/groff.cc: Add support for html2 device (which will
9192         automatically invoke the html2 preprocessor).
9193         * src/roff/troff/input.cc (is_html2): New variable.
9194         * src/roff/troff/troff.h, src/roff/troff/env.h,
9195         src/roff/troff/env.cc (environment::add_html_tag): New function
9196         (uses `is_html2').
9197         (environment::do_break): Use it.
9198         * font/devhtml2/*: New files.
9199         * src/devices/grohtml2: New device.
9200         * src/preproc/html2: New preprocessor.
9201         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9203 2000-08-23  Werner LEMBERG  <wl@gnu.org>
9205         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9207 2000-08-22  Werner LEMBERG  <wl@gnu.org>
9209         * src/include/lib.h: Provide a fix for IRIX to not include
9210         groff-getopt.h.
9212 2000-08-18  Werner LEMBERG  <wl@gnu.org>
9214         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9215         since some non-GNU sed programs can't handle null regexps.
9216         * configure, src/preproc/eqn/Makefile.sub,
9217         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9219         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9220         bug (string.h and strings.h are both needed according to latest
9221         POSIX standard).
9223         * MORE.STUFF: Added info about unroff and troffcvt.
9225 2000-08-08  Werner LEMBERG  <wl@gnu.org>
9227         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9228         used before -ms.
9230         * tmac/tmac.man.old: Remove unused number register.
9232         * tmac.doc: Minor documentation fix.
9234 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9236         * src/roff/groff/pipeline.c (is_system_shell):
9237         Fix typo: "monocased_shell" no longer exists.
9239 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9241         Remove FILENAME_MAX limits.
9243         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9244         that the argument length is less than FILENAME_MAX.
9245         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9246         Use struct hack to allocate and free file name.
9247         (struct xtmpfile_list): fname is now part of the structure,
9248         not a pointer to another string.
9250 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
9252         * src/include/posix.h: Add a default value for FILENAME_MAX.
9254 2000-08-06  Paul Eggert  <eggert@twinsun.com>
9256         Add support for new BSD-style man pages (with ".Dd" instead of
9257         ".TH"), so that "groff -man" understands both styles, even
9258         when running "groff -man" on a host whose system man page
9259         macros don't support ".Dd".
9261         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9262         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9263         in case the system man macros don't define Dd or TH.
9265         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9266         * tmac/tmac.an: New one-line file.
9267         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9269 2000-08-06  Werner LEMBERG  <wl@gnu.org>
9271         * src/roff/troff/troff.man: Fixing typos.
9273 Version 1.16.1 released
9274 =======================
9276 2000-07-31  Werner LEMBERG  <wl@gnu.org>
9278         Preparing release 1.16.1.
9280         * REVISION: Revision number set to 1.
9281         * MORE.STUFF: Added info about port to DOS.
9282         * NEWS, win32-diffs: Updated.
9284         * src/include/nonposix.h: Remove first line -- this file is used
9285         in C also.
9287         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9288         link to it.
9290 2000-07-30  Werner LEMBERG  <wl@gnu.org>
9292         * doc/texinfo.tex: Update to latest version.
9294 2000-06-28  Paul Eggert  <eggert@twinsun.com>
9296         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9297         commands that fail.  Don't assume that "export a=b" is valid shell
9298         syntax.  This is needed for Solaris 2.5.1.
9300         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9301         comment about missing Solaris headers.
9303         * PROBLEMS: Add section about problems with Sun Make and VPATH.
9305 2000-06-25  Werner LEMBERG  <wl@gnu.org>
9307         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9308         SET_BINARY().
9310         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9312         * win32-diffs: Updated.
9313         * README.WIN32: Added CRs to make all Windows editors happy.
9315         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9316         src/roff/groff/pipeline.c).
9318 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
9320         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9321         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9323 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
9325         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9326         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9327         are binary files.
9328         (main): Support non-Posix systems with several different styles of
9329         slash characters in file names.
9331         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9332         (main) [SET_BINARY]: Switch stdin into binary mode.
9334         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9335         (main): Support file names with several possible slash-type
9336         characters, as given by DIR_SEPS[] in nonposix.h.
9337         (main) [__MSDOS__]: If renaming the temporary index file fails
9338         because it has more than one dot in its trunk, replace the dot
9339         with an underscore and try again.
9340         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
9341         Newline.
9342         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9344         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9345         (File::File): Open the input file in binary mode.  Strip CR
9346         characters from each CR-LF pair.
9347         (xbasename): Support file names with several possible slash-type
9348         characters, as given by DIR_SEPS[] in nonposix.h.
9350         * src/include/Makefile.sub (HDRS): Add nonposix.h.
9352         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9353         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9354         [!_POSIX_VERSION]: Define for traditional Unix systems.
9355         (real_output_file::real_output_file): Remove the MSVC-specific
9356         call to popen, use instead POPEN_WT, appropriately defined on
9357         nonposix.h.  #include nonposix.h.
9358         (real_output_file::~real_output_file): Remove the MSVC-specific
9359         call to pclose, a suitable macro is now defined on nonposix.h.
9360         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9361         and WEXITSTATUS instead of assuming traditional Unix
9362         interpretation of the status returned by pclose.
9364         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9365         call to popen, use POPEN_RT instead (appropriately defined on
9366         nonposix.h).  #include nonposix.h.
9367         (ps_bbox_request): Open the PostScript file in binary mode.
9368         Close the file after processing it.
9369         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9370         nonposix.h.
9372         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9373         A version of run_pipeline that doesn't use `fork'.
9374         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9375         (system_shell_name, system_shell_dash_c)
9376         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9377         the ugliness of testing DOS/Windows file names for equality, and
9378         support both stock shells and ports of Unix shells.
9380         * src/roff/groff/groff.cc: #include nonposix.h.
9381         (BSHELL): Definition moved to nonposix.h.
9382         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
9383         instead of a literal "-c".
9384         (xbasename): Support file names with several possible slash-type
9385         characters, as given by DIR_SEPS[] in nonposix.h.
9386         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9387         of literal strings.
9389         * src/preproc/soelim/soelim.cc: #include nonposix.h.
9390         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9392         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9393         pic_tab.h.
9395         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9397         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9398         eqn_tab.h.
9400         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9402         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9403         P_tmpdir is defined, use it instead of the literal "/tmp".
9404         (remove_tmp_files, add_tmp_file): New functions.
9405         (xtmpfile): Record temporary files and register an atexit function
9406         to delete them explicitly, instead of relying on the OS to do
9407         that, which doesn't work on non-Unix systems.
9409         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9410         (search_path::search_path): Use PATH_SEP instead of a literal
9411         colon.
9412         (search_path::command_line_dir): Ditto.
9413         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9414         to support non-Posix systems.
9416         * src/libs/libbib/search.cc: #include nonposix.h.
9417         (search_list::add_file): Open the file in binary mode.
9419         * src/libs/libbib/linear.cc: #include nonposix.h.
9420         (file_buffer::load): Remove \r characters preceding \n from the
9421         loaded buffer.
9423         * src/libs/libbib/index.cc: #include nonposix.h.
9424         (make_index_search_item): Open index_filename in O_BINARY mode.
9425         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9426         characters before \n characters.
9427         (index_search_item::check_files): Open files in binary mode.
9428         (index_search_item::munge_filename): Support DOS-style file names
9429         with backslashes and drive letters, use IS_ABSOLUTE.
9431         * src/devices/grops/ps.cc: #include nonposix.h.
9432         (main) [SET_BINARY]: Switch stdout to binary mode.
9434         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9435         (main) [SET_BINARY]: Switch stdout to binary mode.
9437         * src/devices/grolbp/lbp.cc: #include nonposix.h
9438         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9440         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9441         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9442         nonposix.h).
9443         (main) [SET_BINARY]: Switch stdout to binary mode.
9444         [_MSC_VER]: Remove an explicit call to _setmode.
9446         * src/include/nonposix.h: New file.
9448         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9449         operation when building with DJGPP.
9450         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9451         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9452         ENVSETUP.
9454         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9455         MS-DOS.
9456         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9457         etc. can include a semi-colon on DOS/Windows.
9458         (depend.temp): Use depend1.temp instead of depend.temp1, to
9459         prevent files from overerwiting each other on 8+3 filesystems.
9461         * gendef.sh (t): Change definition to work with DOS/Windows.
9463         doc/groff.texinfo: Apart of some typo corrections, I also changed
9464         some index entris, to make them more non-ambiguous, and also put
9465         @ignore around some parts that are not yet written, to allow the
9466         Info output be readable.
9468 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9470         Replaced specific checks for function declarations with a generic
9471         routine taken from GNU bfd.
9473         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9474         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9475         * configure.in: Use it.
9476         * src/devices/grolbp/lbp.cc, src/include/lib.h,
9477         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9478         src/roff/groff/groff.cc: Use it.
9479         * Makefile.in, configure: Updated.
9481 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
9483         * src/devides/grolbp/lbp.h: Removed unused variables.
9485 2000-05-31  Keith Thompson  <kst@sdsc.edu>
9487         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9488         strncasecmp().
9490 2000-05-31  Werner LEMBERG  <wl@gnu.org>
9492         * aclocal.m4 (GROFF_SRAND): New function to test the return value
9493         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9494         * configure.in: Use it.
9495         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9496         * configure, Makefile.in: Updated.
9498         * configure.in: Add test for strncasecmp().
9499         * src/include/lib.h: Use it.
9501 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
9503         * src/preproc/grn/Makefile.sub: Add MLIB.
9505 2000-05-29  Nix  <nix@esperi.demon.co.uk>
9507         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9509 2000-05-29  Werner LEMBERG  <wl@gnu.org>
9511         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9513         * PROBLEMS: Small update.
9515         * src/devices/grolbp/lbp.cc: Various small fixes.
9517 2000-05-28  Keith Thompson  <kst@sdsc.edu>
9519         * src/roff/nroff/nroff.sh: Fix main loop syntax.
9521         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9523 2000-05-25  Werner LEMBERG  <wl@gnu.org>
9525         * man/roff.man: Removed unused macro.
9527 2000-05-24  Werner LEMBERG  <wl@gnu.org>
9529         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
9530         This is needed e.g. if you do
9531         `make distclean; ./configure; make dist'.
9533 Version 1.16 released
9534 =====================
9536 2000-05-23  Werner LEMBERG  <wl@gnu.org>
9538         Adding font CWI (constant width italic) to devdvi.
9540         * font/devdvi/CWI: New file.
9541         * font/devdvi/generate/Makefile: Add generating rule.
9542         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9543         tmac/tmac.dvi: Use it.
9544         * NEWS: Announce it.
9546         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9547         * font/devlj4/generate/Makefile: Cosmetic changes only.
9549         * man/groff.man: Removed most of the redundant description of
9550         special characters (which is in groff_char.man).  Added font
9551         translation CB->CR for devdvi.  Other minor fixes.
9553         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9554         (registered) symbols.
9556 2000-05-22  Werner LEMBERG  <wl@gnu.org>
9558         * doc/Makefile: Added rule for creating info files.
9560         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
9561         AMS font metrics.
9562         * font/devdvi/generate/Makefile: Fixed dependencies.
9564         * font/devps/*: Regenerated.  Heavy changes for Bookman and
9565         NewCentury Schoolbook!
9566         * font/devps/generate/afmname: Will now run with GNU awk.
9567         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9568         * font/devps/generate/Makefile: Cosmetic changes only.
9570 2000-05-21  Werner LEMBERG  <wl@gnu.org>
9572         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9573         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
9574         `.SS' now produces a heading with a smaller size than `.SH'. 
9575         Completely formatted.
9576         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9578         * man/groff.man: Improved table appearance.  Use of `eo' request
9579         to reduce number of doubled backslashes in macro definitions.
9580         Replacing `\e' with `\(rs'.  Other minor fixes.
9582         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9583         to have correct line number.
9585         * INSTALL: Small improvement.
9587 2000-05-20  Bernd Warken  <bwarken@mayn.de>
9589         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9590         WL).
9592 2000-05-19  Bernd Warken  <bwarken@mayn.de>
9594         * man/groff.man: Complete update (with a lot of corrections by WL).
9596 2000-05-18  Werner LEMBERG  <wl@gnu.org>
9598         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9600         * font/*/*: Implement it.
9601         * man/groff_char.man, NEWS: Document it.
9603         * src/include/unix.h: Removed.  It isn't used.
9605         * doc/groff.texinfo: Slight improvements.
9607 2000-05-17  Werner LEMBERG  <wl@gnu.org>
9609         * README, win32-diffs: Small fixes and improvements.
9611 2000-05-16  Werner LEMBERG  <wl@gnu.org>
9613         * FDL: New file (the Free Documentation License version 1.1).
9615         * doc/groff.texinfo: Added many start-up values for gtroff.
9616         Some structural improvements of the source code.
9618 2000-05-15  Werner LEMBERG  <wl@gnu.org>
9620         * src/roff/troff/input.cc: Added small comment about troffrc-end.
9621         * src/roff/troff/troff.man: Added info about troffrc-end.
9623 2000-05-14  Werner LEMBERG  <wl@gnu.org>
9625         * Makefile.in (EXTRADIRS): Fix typos.
9626         (dist): Handle deletion of old .tar.gz file correctly.
9627         (DISTDIRS): Include all tty output devices.
9629         * doc/groff.texinfo: Adding more cross references; countless other
9630         fixes.
9632 2000-05-13  Werner LEMBERG  <wl@gnu.org>
9634         * MORE.STUFF: Added Robert Marks's utilities.
9636 2000-05-12  Werner LEMBERG  <wl@gnu.org>
9638         Added win32 port contributed by Blake McBride
9639         <blake@florida-software.com>.
9641         * README.WIN32, win32-diffs: New files.
9642         * NEWS: Updated.
9644         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9645         (tmove, tmove2): Added parentheses to avoid compiler warnings.
9646         (change): Removed unused variables.
9648         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9649         (savebounds): Changed return value from `int' to `void'.
9650         * src/preproc/grn/hdb.cc: Ditto.
9652         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9653         final backslash in comment to avoid compiler warning.
9655         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9657         * doc/groff.texinfo: More fixes.
9659 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
9661         * tmac/tmac.doc: Documentation fix.
9663 2000-05-11  Werner LEMBERG  <wl@gnu.org>
9665         * doc/groff.texinfo: Reading the source code shows up a lot of
9666         omissions and incorrect data...  More conversion to @Deffn macros.
9668 2000-05-10  Werner LEMBERG  <wl@gnu.org>
9670         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9671         dependency.
9673         * src/roff/troff/request.h: Removing unused `no_break_flag'.
9675 2000-05-09  Werner LEMBERG  <wl@gnu.org>
9677         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9678         improvements.
9680         * doc/groff.texinfo: Extended history section.  More conversion to
9681         @Deffn macros.  More .tr documentation.
9683 2000-05-07  Werner LEMBERG  <wl@gnu.org>
9685         * doc/groff.texinfo: Completed tab section.  Added info about
9686         fields.
9688 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
9690         * PROBLEMS: Describe configure script fix for OS/390 Unix.
9692 2000-05-05  Werner LEMBERG  <wl@gnu.org>
9694         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9695         LaTeX 2e).
9696         * NEWS: Document it.
9698         * man/troff.man: Minor optical improvements.
9700 2000-05-03  Werner LEMBERG  <wl@gnu.org>
9702         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9704         * font/*/*: Implement it.
9705         * man/groff_char.man, NEWS: Document it.
9707 2000-05-02  Werner LEMBERG  <wl@gnu.org>
9709         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9710         expansion.
9711         * NEWS: Document the three new man pages.
9713         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9714         * configure: Updated.
9716         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9718 2000-05-01  Werner LEMBERG  <wl@gnu.org>
9720         Added grap support to grog.
9722         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9723         * src/roff/grog/grog.man: Document it.
9725         * doc/groff.texinfo, NEWS: Add info about grap support.
9727         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9728         (with slight fixes by me).
9730         * tmac/groff_tmac.man: New file documenting tmac mechanism.
9731         * tmac/Makefile.sub: Add groff_tmac.man.
9732         * man/roff.man: New file giving overview of roff system.
9733         * man/troff.man: A short reference of troff.
9734         * man/Makefile.sub: Add roff.man and troff.man.
9736 2000-04-30  Werner LEMBERG  <wl@gnu.org>
9738         Added grap support to groff.
9740         * src/roff/groff/groff.cc: Implement it.
9741         * src/roff/groff/groff.man: Document it.
9743         * src/devices/grotty/grotty.man: Add cp1047 device.
9744         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9745         Ditto.
9746         * src/roff/groff/groff.man: Ditto.
9747         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9748         * doc/groff.texinfo: Ditto.
9750         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9751         for cp1047.
9753 2000-04-29  Werner LEMBERG  <wl@gnu.org>
9755         * man/groff_char.man: Add `pc' glyph.
9756         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9757         * tmac/tmac.tty: Add `pc' glyph.
9758         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
9759         we use cp1047 output device.
9761         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9762         there are still hardcoded latin1->unicode values in utf8's font
9763         definition files.
9764         * configure: Updated.
9765         * NEWS: Minor clarification.  Updated.
9767         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
9768         Unix.
9770 2000-04-28  Werner LEMBERG  <wl@gnu.org>
9772         Adding EBCDIC code page 1047.
9774         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9775         font/devcp1047/DESC.proto: New files.
9777         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9778         either ascii/latin1 or cp1047.
9779         * Makefile.in: Use it.
9780         * configure: Updated.
9782         Replacing and/or adding `md' (mathdot) glyph with `pc'
9783         (periodcentered) in all text fonts.
9785         * font/*/*: Change it.
9787 2000-04-27  Werner LEMBERG  <wl@gnu.org>
9789         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9791         * configure.in: Add check for strings.h.
9792         * src/include/driver.h: Use HAVE_STRINGS_H.
9793         * src/devices/grolbp/lpb.cc: Remove string.h.
9795         * src/include/groff-getopt.h: New file.  It will be used instead of
9796         getopt.h (to be included in lib.h) to avoid endless problems with
9797         picky C++ compilers.
9798         * src/include/lib.h: Use groff-getopt.h.
9799         * src/include/Makefile.sub: Updated.
9801         * configure: Updated.
9802         * Makefile.in: Updated.
9804         * NEWS: Mention EBCDIC support.
9806 2000-04-26  Werner LEMBERG  <wl@gnu.org>
9808         * TODO: Some additions.
9810 2000-04-25  Werner LEMBERG  <wl@gnu.org>
9812         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9813         of mso request.
9815 2000-04-23  Werner LEMBERG  <wl@gnu.org>
9817         * src/roff/troff/troff.man: Minor fixes.
9819 2000-04-22  Werner LEMBERG  <wl@gnu.org>
9821         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9822         `.T' string register and the incompatible definition of the `.T'
9823         number register (compared to Unix troff).
9825         * man/groff_char.man: Add some missing characters.
9826         * font/devutf8/NOTES: Update.
9828 2000-04-21  Werner LEMBERG  <wl@gnu.org>
9830         * src/include/htmlindicate.h, src/include/lib.h,
9831         src/include/posix.h: Fix copyright.
9833         * src/include/Makefile.sub: Update.
9835 2000-04-20  Werner LEMBERG  <wl@gnu.org>
9837         * src/roff/troff/input.cc (input_char_description): Removing
9838         superfluous space char.
9840         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9842         * doc/groff.texinfo: Document EBCDIC.
9844 2000-04-19  Werner LEMBERG  <wl@gnu.org>
9846         Introducing `shc' as the glyph name for the soft hyphen character.
9848         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9849         font/devlatin1/R.proto: Use it.
9851         * NEWS: Updated.
9853 2000-04-18  Werner LEMBERG  <wl@gnu.org>
9855         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9856         dependency on ASCII order.
9858 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
9860         * src/libs/libgroff/illegal.c: Added EBCDIC table.
9861         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9863         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9864         to increase portability.
9866 2000-04-15  Werner LEMBERG  <wl@gnu.org>
9868         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9869         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9870         the generic `\n' if under OS/390 Unix.
9872         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9874         * configure: Regenerated.
9876 2000-04-14  Werner LEMBERG  <wl@gnu.org>
9878         * doc/groff.texinfo: More conversions to @Deffn.
9880 2000-04-12  Werner LEMBERG  <wl@gnu.org>
9882         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9883         with `:'.
9885         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9887 2000-04-10  Werner LEMBERG  <wl@gnu.org>
9889         * doc/groff.texinfo: More conversions to @Deffn.
9891 2000-04-08  Werner LEMBERG  <wl@gnu.org>
9893         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9894         Updated to latest version (glibc 2.1.3).
9896 2000-04-07  Werner LEMBERG  <wl@gnu.org>
9898         * doc/Makefile (clean): Include more index files.
9899         Add rule texinfo->dvi.
9901 2000-04-05  Werner LEMBERG  <wl@gnu.org>
9903         * doc/groff.texinfo: Added new index `op' for operators.  More
9904         info on end of sentence characters.  More use of @Deffn.
9906 2000-03-30  Werner LEMBERG  <wl@gnu.org>
9908         * */*.man: Adding a note that a whitespace can be inserted between
9909         a command line option and its parameter -- we are using GNU getopt.
9911         * src/roff/groff/groff.man: Add example of `-m mandoc'.
9913 2000-03-28  Werner LEMBERG  <wl@gnu.org>
9915         Correct anachronism of calling the man macro file with `-man'
9916         instead of `-m man' etc.
9918         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9919         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9920         load tmac.<package>.
9922         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
9924         * NEWS: Updated.
9926         * doc/groff.texinfo: Updated.
9928         * tmac/groff_man.man: Copyright added.
9930 2000-03-27  Werner LEMBERG  <wl@gnu.org>
9932         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9933         typeset the request resp. escape name with a tt font -- due to a
9934         bug in texinfo.tex it is necessary to use the `-e' switch with
9935         texi2dvi.
9937         Improving info about usage of groff units.
9939         Other minor fixes.
9941 2000-03-20  Werner LEMBERG  <wl@gnu.org>
9943         * doc/groff.texinfo: Added section about man macro package
9944         (I've basically taken groff_man.man).  Introducing new indices `ma'
9945         for macros/strings and `gl' for glyph names.  Other minor fixes.
9947         * tmac/groff_man.man: Fixed some typos.
9949 2000-03-19  Werner LEMBERG  <wl@gnu.org>
9951         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9952         Other minor fixes.
9954         * doc/texinfo.tex: New file.
9956 2000-03-18  Werner LEMBERG  <wl@gnu.org>
9958         * doc/groff.texinfo: Improved section on number registers.  Other
9959         minor updates.
9961 2000-03-16  Werner LEMBERG  <wl@gnu.org>
9963         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
9964         synopsis.
9966         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9967         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9968         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9969         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9971         * src/preproc/grn/grn.man: Better synopsis; added copyright.
9973         * src/roff/grog/grog.man: Updated copyright date.
9975 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
9977         * configure.in: Added test for strdup.
9979         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9980         is available.
9982         Replaced dynamic allocation of arrays `[...]' with `new' operator.
9984         Other minor fixes.
9986 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
9988         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9990 2000-03-11  Werner LEMBERG  <wl@gnu.org>
9992         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9993         compilers silent.
9994         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9995         * src/include/lib.h: Remove some spaces.
9997 2000-03-10  Werner LEMBERG  <wl@gnu.org>
9999         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10000         initializers from arguments (some compilers don't like this).
10002 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
10004         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10005         used by pic and eqn to tell grohtml where the graphic regions start
10006         and end.
10007         * src/libs/libgroff/Makefile.sub: Use it.
10008         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10009         graphic_start() and graphic_end() from htmlindicate.cc.
10011 2000-03-09  Werner LEMBERG  <wl@gnu.org>
10013         * tmac/tmac.safer: Will now work correctly in compatibility mode.
10014         * tmac/groff_man.man: More fixes.
10016 2000-03-08  Werner LEMBERG  <wl@gnu.org>
10018         * doc/Makefile: Added texput.log to the `clean' target.
10019         * doc/groff.texinfo: Added info about delimiters for escapes.
10021 2000-03-08  Bernd Warken  <bwarken@mayn.de>
10023         * src/preproc/pic/pic.man: Add info on conversion of pic images to
10024         other graphic formats.
10026 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
10028         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10029         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10030         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10031         files.
10033 2000-03-07  Werner LEMBERG  <wl@gnu.org>
10035         * doc/groff.texinfo: Spelling fixes.
10037 2000-03-06  Werner LEMBERG  <wl@gnu.org>
10039         * tmac/groff_man.man: Completely revised to cover everything in
10040         tmac.an.
10042         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10043         Other minor fixings.
10044         * src/roff/troff/env.cc (environment_copy): Improve error message and
10045         fix itoa->i_to_a.
10046         * src/roff/troff/TODO: Updated.
10048         * doc/Makefile: Bug fixes -- this is still provisional, though...
10050         * tmac/eqnrc: Small fixes.
10052 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10054         Adding a request `evc' to copy environments.
10056         * src/roff/troff/env.cc (environment::copy, environment_copy):
10057         Implement it.
10058         * src/roff/troff/env.h: Add prototype.
10060 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
10062         Adding strsep() -- Solaris 8 doesn't have it.
10064         * configure.in: Test it.
10065         * src/devices/grolbp/lbp.cc: Add code.
10067 2000-03-05  Werner LEMBERG  <wl@gnu.org>
10069         * src/roff/troff/div.cc (macro_diversion::output,
10070         top_level_diversion::output): Fixing an incompatibility with
10071         original troff: \x'0' updates the .a register also.  Thanks to
10072         <Andries.Brouwer@cwi.nl> for pointing this out.
10073         * doc/groff.texinfo: Document it.
10075         * Makefile.in: Create Makefile.dep if necessary before calling the
10076         submake process to avoid warning about nonexistent file.
10078         * NEWS, PROJECTS: Updated.
10080 2000-03-04  Werner LEMBERG  <wl@gnu.org>
10082         * tmac/troffrc: Add tmac.lbp.
10084 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
10086         * tmac/tmac.lbp: New file.
10087         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10088         command.
10090 2000-03-03  Werner LEMBERG  <wl@gnu.org>
10092         * Makefile.in: Fixing $(subdir).
10094         * README, NEWS: Small fixes.
10096         * test-groff: Adding path to grolbp.
10098         * configure.in: The (new) file src/xditview/Imakefile.in will be
10099         also configured -- it is now possible to build gxditview in a
10100         directory different from $srcdir.
10102 2000-03-02  Blake McBride  <blake@florida-software.com>
10104         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10106         * MORE.STUFF: Added website of bell labs and info about plot2dev.
10108 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
10110         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10111         files.
10113 2000-02-29  Werner LEMBERG  <wl@gnu.org>
10115         Adding GNU getopt to the groff distribution.
10117         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10118         New files.
10119         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10120         * aclocal.a4: Remove GROFF_GETOPT function.
10121         * configure.in, Makefile.in, PROBLEMS: Update.
10122         * src/include/lib.h: Replace getopt tests with getopt.h.
10123         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10125         * doc/groff.texinfo: Further checking/updating.  Adding more index
10126         entries.
10128         * man/groff_out.man: Fix nroff mode activation (for emacs).
10129         * man/groff_font.man: Add missing ligature.
10131 2000-02-28  Werner LEMBERG  <wl@gnu.org>
10133         * doc/groff.texinfo: Further checking/updating.  Adding more index
10134         entries.
10136         * src/devices/grolbp/grolbp.man: Added a comment line at the
10137         beginning of the file (similar to shell scripts) which indicates
10138         that `tbl' should be used as a preprocessor.
10140 2000-02-27  Blake McBride  <blake@florida-software.com>
10142         Adapting groff to MS Visual C++ 6.0 compiler (tested with
10143         Windows NT 4.0).  Uses _MSC_VER define where necessary.
10145         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10146         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10147         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10148         src/include/lib.h, src/libs/libgroff/errarg.cc,
10149         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10150         src/preproc/refer/label.y, src/preproc/refer/label.cc,
10151         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10152         src/roff/troff/div.cc, src/roff/troff/env.cc,
10153         src/roff/troff/input.cc, src/roff/troff/node.cc,
10154         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10155         if_to_a() to avoid name clashes.
10156         * src/include/posix.h: Don't use unistd.h.
10157         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10158         clause for integrating non-Unix xtmpfile() code.
10159         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10160         structure; use "rt" for popen() in pipe_source(); add getpid()
10161         dummy function.
10162         * src/roff/troff/node.cc: Use special versions of popen() in
10163         real_output_file() and pclose() in ~real_output_file().
10165 2000-02-27  Werner LEMBERG  <wl@gnu.org>
10167         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10168         LBP-8 series laser printers).  This code has been contributed by
10169         Francisco Andrés Verdú <pandres@dragonet.es>.
10171         * src/devices/grolbp/*: The grolbp output device.
10172         * font/devlpb/*: The font description files.
10173         * Makefile.in: Add grolpb and devlbp subdirectories.
10175         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10176         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10177         typographic fixes.
10179         * doc/groff.texinfo: Further checking/updating.  Adding more index
10180         entries.
10182         * NEWS: Updated.
10184         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10186         * man/groff_font.man: Adding info about obsolete DESC keywords.
10187         * src/devices/grolj4/grolj4.man: Documenting additional DESC
10188         keywords.
10190 2000-02-26  Werner LEMBERG  <wl@gnu.org>
10192         * src/preproc/grn/grn.man: Added info about the gremlin file format
10193         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10195 2000-02-25  Werner LEMBERG  <wl@gnu.org>
10197         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10198         friends to be non-integer.
10200         * src/preproc/grn/grn.man: Document it.
10202         * doc/groff.texinfo: Further checking/updating.  Adding more index
10203         entries.
10205 2000-02-24  Werner LEMBERG  <wl@gnu.org>
10207         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10208         line thicknesses to be integer multiples of this value.
10210         * src/preproc/grn/grn.man: Commenting out the -s option -- the
10211         corresponding code doesn't work (yet).
10213         * doc/groff.texinfo: Further checking/updating.  Adding more index
10214         entries.
10216 2000-02-23  Werner LEMBERG  <wl@gnu.org>
10218         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10219         specify line thickness instead of base units.  The new default
10220         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10221         thick lines respectively.
10223         Removed unused variable `prevval'.
10225         * src/preproc/grn/grn.man: Updated.
10227 2000-02-22  Werner LEMBERG  <wl@gnu.org>
10229         * src/preproc/grn/main.cc: Slight formatting.
10231         * src/roff/groff/groff.man: Formatting fix.
10232         * src/preproc/grn/grn.man: Ditto.
10234         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10236         * doc/groff.texinfo: Further checking/updating.
10238 2000-02-21  Werner LEMBERG  <wl@gnu.org>
10240         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10242         * test-groff: Added grn subdir to path.
10244         * doc/groff.texinfo: Some restructing and other small improvements.
10246         * src/roff/groff/groff.cc (help): Fixed info string.
10248 2000-02-20  Werner LEMBERG  <wl@gnu.org>
10250         * doc/meref.me: Fix description of .GS request.
10252         * src/roff/troff/troff.man: Fixing typo.
10254         Adding the `grn' preprocessor for gremlin graphic files.
10256         * src/preproc/grn/*: This is the Berkeley distribution written by
10257         David Slattengren and Barry Roitblat, adapted to groff by Daniel
10258         Senderowicz and Werner Lemberg.
10260         * doc/grnexampl.{me,g}: A sample for grn.
10262         * Makefile.in: Added subdirectory entry for grn.
10264         * src/roff/groff/groff.cc: Added support for grn.  It can be now
10265         called with the switch `-g'.
10267         * src/roff/groff/groff.man: Updated.
10269         * src/roff/grog/grog.{man,pl,sh}: Updated.
10271         * NEWS: Updated.
10273 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
10275         * src/include/lib.h: Added xtmptemplate and made xtmpfile
10276         parametrically polymorphic.
10278         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10279         and the alterations to xtmpfile.
10280         xtmpfile can be requested to return the filename created
10281         and asked not to unlink the temp file.  The default behaviour
10282         if parameters are absent is exactly the same as before.
10284 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
10286         A new request `length' is available which returns the length of a
10287         string in a number register:
10289         * src/roff/troff/input.cc (length_macro): Implement it.
10290         * src/roff/troff/input.cc (init_input_requests): Register it.
10292 2000-02-11  Werner LEMBERG  <wl@gnu.org>
10294         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10295         of the `substring' request.
10297         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10298         request.
10300         * src/roff/troff/TODO, NEWS: Updated.
10302 2000-02-09  Werner LEMBERG  <wl@gnu.org>
10304         * src/roff/groff/groff.man: Added an example.
10306 2000-02-06  Werner LEMBERG  <wl@gnu.org>
10308         I've considerably modified the directory structure of the
10309         distribution to get a more vertical layout.  For example, the number
10310         of top level directories has been reduced from 42 to 6.
10312         As a consequence, many changes, especially to the makefiles, were
10313         necessary:
10315         * The makefile variables `top_builddir' and `top_srcdir' have been
10316         introduced.  Virtually all relative paths have been replaced with
10317         absolute ones using these two variables.
10319         * Dependencies (in the files `Makefile.dep') are no longer part of
10320         the distribution.  Instead, they are created during a `make install'
10321         in the build directory.
10323         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10324         make `top_srcdir' and `top_builddir' absolute.
10326         Some other changes:
10328         * Man pages now depend on the files `VERSION' and `REVISION'.
10330         * The added shell script `mkinstalldirs' will replace `mkdir' in
10331         almost all cases.
10333         * VERSION: Version number increased to 1.16.
10335 2000-02-04  Werner LEMBERG  <wl@gnu.org>
10337         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10339         * Makefile.in: Removed $(tmac_m) since it is no longer needed
10340         (after an update of the mm stuff).
10342         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10344 2000-02-03  Werner LEMBERG  <wl@gnu.org>
10346         The .psbb request will now also accept Mac PS images (i.e. using LF
10347         as the EOL character).
10349         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10350         (with slight modifications).
10351         * troff/input.cc (do_ps_file): Use it.
10353         * test-groff: Add grohtml and grolj4 output devices to PATH.
10355 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10357         * NEWS, MORE.STUFF: Updated.
10359 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
10361         Add the `srand' command to pic.
10363         * pic/lex.cc, pic/pic.y: Implement it.
10364         * pic/pic.man: Document it.
10365         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10367 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10369         Add a new request `.psbb'.  This does exactly what the external
10370         program psbb did.  It scans a PostScript image file for a
10371         %%BoundingBox comment and extracts the bounding box values (in
10372         PostScript units) which are then stored in the four new (read-only)
10373         number registers `llx', `lly', `urx', and `ury'.
10375         This will allow the usage of the .PSPIC macro without worrying
10376         about unsafe behaviour of groff, i.e., it will work without the
10377         `-U' switch of groff.
10379         * troff/input.cc: Implement it.
10380         * tmac/tmac.pspic: Use it.
10381         * troff/troff.man, grops/grops.man, NEWS: Document it.
10382         * psbb/*, Makefile.in: Remove it since it is no longer needed.
10384         This is bloody C code simply adapted from psbb.c!  Any improvements
10385         welcome.
10387 2000-01-29  Werner LEMBERG  <wl@gnu.org>
10389         * man/groff_font.man: Minor clarifications.
10391         * NEWS: Updated.
10393 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10395         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10397 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
10399         * man/groff_font.man: Brought up to date regarding tcommand
10400         extensions.
10401         * libgroff/font.cc: Handle everything after `--' as a comment
10402         in the font files.
10403         * devps/*: Added comment delimiter inside devps font files.
10405 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10407         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10408         \fC...\fP (which now works as expected).
10410         * troff/troff.man: Fix typo.
10412 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
10414         Completed the pass_filenames implementation in troff.
10416         * libdriver/input.cc: Will read the new `F' tcommand.
10417         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10418         * troff/input.cc: Use it.
10420 2000-01-26  Werner LEMBERG  <wl@gnu.org>
10422         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
10423         font will now be updated even if an invalid font is selected.
10425 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10427         * doc/homepage.ms: Updated for new tmac.arkup.
10429         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10431         * tmac/tmac.arkup: Cleanup.
10433         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10435         Removed obsolete .LINK macro completely.
10437         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10438         will be immediately appended to the second argument (to be used with
10439         punctuation, for example).
10441         Disabled .CDFTP macro temporarily for security reasons.
10443         * tmac/groff_markup.man: Complete revision for latest changes in
10444         tmac.arkup -- note that it does not yet format correctly with
10445         grohtml :-(
10447 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10449         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10450         * devutf8/R.proto: Add mappings for wp, lh, rh.
10451         * devutf8/NOTES: Updated.
10453 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10455         * doc/groff.texinfo: Updated version/copyright info.
10457 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10459         Added support for two new directives in device descriptions:
10460         `pass_filenames' (to pass the input file name to the output device)
10461         and `use_charnames_in_special' (to support e.g. accented characters
10462         in the `X' request).
10464         * include/font.h, troff/charinfo.h: Declare it.
10466         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10468         * devhtml/DESC: Use it.
10470         * troff/input.cc: New function encoded_char.
10472         * troff/token.h: Add test for `specialness'.
10474 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10476         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10477         mistake from the list of files to be installed.
10479 2000-01-18  Werner LEMBERG  <wl@gnu.org>
10481         * README: Added info how to apply patches.
10483 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
10485         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
10487 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10489         * troff/input.cc: Add support for troffrc-end.
10491         * tbl/main.cc: Altered to issue table-start and table-end special
10492         characters if using the html device.
10494         * devhtml/*: Modified font files to incorporate html encoding of
10495         characters.
10497         * tmac/groff_markup.man: New file documenting tmac.arkup.
10499         * tmac/troffrc-end: New file.  This is invoked after all user
10500         specified macros.  Currently used by the html device to include
10501         tmac.html.  Thus no need for users to specify -mhtml anymore.
10503         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10504         (MAN7): Add groff_markup.man.
10506         * tmac/tmac.an, tmac/tmac.html: Small html updates.
10508         * tmac/troffrc: tmac.arkup will now be called for the html device.
10510         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10511         extra device specific information about fonts.
10513         * doc/homepage.ms: New file.  It is an example how an HTML home page
10514         could look like with grohtml.
10516         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
10518 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
10520         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
10521         of Im, Re.
10523         * devutf8/NOTES: Updated.
10525 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
10527         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10528         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10529         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10530         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10531         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10532         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10533         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10534         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10535         warnings.
10537         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10539 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
10541         grolj4: Paper size will be searched case-insensitively.
10543         * include/lib.h: Add check for strcasecmp().
10544         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10545         * configure.in: Check for strcasecmp().
10547 2000-01-11  Werner LEMBERG  <wl@gnu.org>
10549         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10550         `REVISION'.
10552 2000-01-10  Werner LEMBERG  <wl@gnu.org>
10554         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10555         revision scheme.
10557         Add a new read-only register, `.Y', which contains the groff
10558         revision.
10560         * troff/input.cc (init_input_requests): Define it.
10561         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10562         * doc/groff.texinfo, troff/troff.man: Document it.
10564         * libgroff/Makefile.sub (version.cc): Add definition of
10565         `Version_string[]', consisting of `<major>.<minor>.<revision>'
10566         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10567         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10568         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10569         troff/input.cc, pfbtops/pfbtops.c: Use it.
10571 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
10573         Add a revision scheme to the groff package.
10575         * REVISION: New file.
10576         * libgroff/Makefile.sub (version.cc): Use it to define
10577         `revision_string[]'.
10578         * grops/psrm.cc: Use revision_string (converted to an unsigned
10579         integer) in constructor of resource_manager.
10581 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
10583         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10584         files.
10585         * Makefile.in (DEVDIRS): Add devutf8.
10586         * grotty/tty.cc: Include device.h.
10587         (glyph): Change type of `code' to `unsigned int'.
10588         (tty_printer): New field is_utf8.  Constructor takes device argument.
10589         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10590         (tty_printer::add_char): Change type of first arg to `unsigned int'.
10591         (tty_printer::put_char): New function.
10592         (tty_printer::end_page): Use put_char() instead of ::putchar().
10593         (make_printer): Pass device to tty_printer constructor.
10594         * nroff.sh: Determine default device by calling 'locale'.  As a
10595         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10596         Recognize UTF-8 locales.
10597         * tmac/eqnrc: Recognize utf8 like latin1.
10598         * tmac/troffrc: Device utf8 needs tmac.tty.
10600 2000-01-07  Werner LEMBERG  <wl@gnu.org>
10602         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10604 2000-01-07  Paul Eggert  <eggert@twinsun.com>
10606         Add a new predefined writeable number register, `year',
10607         which contains the current year.
10609         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10610         * tmac/tmac.s: Use it.
10611         * troff/input.cc (init_registers): Initialize it.
10613 2000-01-06  Werner LEMBERG  <wl@gnu.org>
10615         * PROBLEMS: Fixed typo.
10617 2000-01-04  Paul Eggert  <eggert@twinsun.com>
10619         * PROBLEMS: Add Y2k advice for the yr number register.
10621 2000-01-03  Paul Eggert  <eggert@twinsun.com>
10623         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10625 2000-01-02  Werner LEMBERG  <wl@gnu.org>
10627         * tmac/tmac.arkup: Slight modification of macros to provide better
10628         appearance for non-HTML formats.
10630 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
10632         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10633         does not automatically translate to malloc(n) on all OSes
10634         (e.g., SunOS) so do it explicitly.  Also, check the returned
10635         value.
10637 2000-01-01  Werner LEMBERG  <wl@gnu.org>
10639         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
10641         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10642         expects this variable
10644 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
10646         * doc/Makefile: Added instructions to create HTML and text
10647         versions of some files.
10649 1999-12-31  Werner LEMBERG  <wl@gnu.org>
10651         * Updated INSTALL.gen.
10653         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10654         better resp. correctly with non-HTML devices.
10656 Version 1.15 released
10657 =====================
10659 1999-12-28  Werner LEMBERG  <wl@gnu.org>
10661         * NEWS, VERSION: Changed to 1.15
10663 1999-12-27  Paul Eggert  <eggert@twinsun.com>
10665         * nroff/nroff.man: -S is safer, not safe.
10667         * groff/groff.cc (main): Use `safer', not `safe', in variable
10668         names.  This does not change the behavior.
10670         * troff/input.cc (main): Likewise.
10672         * nroff/nroff.sh: Likewise.
10674         * troff/input.cc (prepend_string): New function.
10675         (main): Prepend -msafer, so that we check macro libraries for
10676         safety.
10678         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10680 Version 1.14 released
10681 =====================
10683 1999-12-26  Werner LEMBERG  <wl@gnu.org>
10685         * NEWS, VERSION: Changed to 1.14.
10687 1999-12-24  Werner LEMBERG  <wl@gnu.org>
10689         * refer/refer.cc: Fixing the last fix.
10691 Version 1.13 released
10692 =====================
10694 1999-12-23  Werner LEMBERG  <wl@gnu.org>
10696         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10697         number disappear.
10699         * NEWS: Updated.
10701         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10703         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10704         document conventions, the version number must be a real.
10706 Version 1.12.1 released
10707 =======================
10709 1999-12-22  Werner LEMBERG  <wl@gnu.org>
10711         * VERSION: Changed to 1.12.1.
10713 1999-12-22  Alan Rooks  <arooks@istar.ca>
10715         * refer/refer.cc (do_file): Slight modification to satisfy the
10716         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10717         UnixWare 7.1.
10719 1999-12-20  Werner LEMBERG  <wl@gnu.org>
10721         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10722         notices.
10724         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10725         list of unsafe requests.
10727         * pic/pic.man: Fixed a typo.
10729         * man/groff_out.man: Fixed a typo.
10731 1999-12-18  Werner LEMBERG  <wl@gnu.org>
10733         * Makefile.in: Doc fixes.
10735 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
10737         * groff/groff.cc: Missing `U' option added to getopt().
10739         * troff/troff.man: Missing `U' option added to synopsis.
10741 Version 1.12 released
10742 =====================
10744 1999-12-14  Werner LEMBERG  <wl@gnu.org>
10746         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10747         to the synopsis.
10749         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10750         with the more appropriate terms `safer' and `unsafe'.
10752         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10753         sys_nerr and sys_errlist[].
10755         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10757         * pic/pic.y, pic/pic.cc: Added check for fmod().
10759 1999-12-13  Werner LEMBERG  <wl@gnu.org>
10761         * VERSION: Changed to 1.12.
10763         Here some patches from various sources; most of them taken from
10764         the Debian distribution.
10766         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10767         tmac/Makefile.sub: New files copied directly from the NetBSD
10768         distribution.  Probably, some additional adaptation later on is
10769         necessary...
10771         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10772         of unsafe requests.
10774         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10775         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10776         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
10777         (`-S') is now the default.
10779         * README, NEWS: Updated.
10781 1999-12-09  Werner LEMBERG  <wl@gnu.org>
10783         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10785         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10787 1999-12-06  Werner LEMBERG  <wl@gnu.org>
10789         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10790         grief than relief today.  Additionally, it is against the GNU
10791         coding standards.
10793         * configure: Recreated.
10795 1999-12-05  Werner LEMBERG  <wl@gnu.org>
10797         * configure.in: Added GROFF_LIBM.
10799         * configure: Recreated.
10801         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10802         necessary.
10804         * Makefile.in: Added definition of $(LIBM).
10806         * Makefile.comm (LIBM): Removed.
10808         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10810 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
10812         * doc/Makefile: Added rule for generation pic.html.
10814         (clean): Files produced by grohtml will be removed also.
10816         * doc/pic.ms: Small fix.
10818         * tmac/tmac.html: Fixed suppression of headers.
10820 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
10822         * tmac/tmac.html: Fixing horizontal arrows.
10824         Turning off hyphenation.
10826         * tmac/tmac.an: Improved support for grohtml; better indentation,
10827         no footers/headers.
10829 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
10831         * tmac/tmac.arkup: Added CDFTP macro
10833         * tmac/tmac.html: All headers are turned off for ms, me, and mm
10834         macros.
10836         * tmac/troffrc: Some additions for HTML stuff.
10838 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
10840         * tmac/tmac.html: Small changes.
10842 1999-09-26  Werner LEMBERG  <wl@gnu.org>
10844         * doc/groff.texinfo: Minor fixes.
10846 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
10848         * devhtml/TR: Changed spacewidth to 3.
10850         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10852         * tmac/tmac.html: Moved markup macros to tmap.arkup.
10854         * tmac/tmac.arkup: New file.
10856         * grohtml/ChangeLog: New file.
10858 1999-09-16  Werner LEMBERG  <wl@gnu.org>
10860         * doc/groff.texinfo (Common Features): Added Copying chapter.
10861         Changed format to @smallbook.
10863 1999-09-15  Werner LEMBERG  <wl@gnu.org>
10865         * NEWS: Added info about groff.texinfo.
10867         * doc/groff.texinfo: Will now compile (using texi2dvi) without
10868         warning messages.
10870 1999-09-14  Werner LEMBERG  <wl@gnu.org>
10872         * groff/groff.man: More updates.
10874 1999-09-13  Werner LEMBERG  <wl@gnu.org>
10876         * doc/groff.texinfo: New file.  This manual is still very
10877         rudimentary.  It has been originally contributed by Trent
10878         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10879         additions by me.
10881         * INSTALL: Added information about the `doc' subdir
10883         * troff/troff.man: Minor fixes.
10885         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10886         reordered options.
10888         * troff/input.cc (usage): Added missing `-ffam' to usage message.
10890         * Makefile.in (dist): groff-$(version).tar.gz must be removed
10891         also, otherwise it is included itself in another call of `make
10892         dist'.
10894         * groff/groff.cc (synopsis): Removed superfluous space.
10896         * PROJECTS, PROBLEMS, NEWS: Updated.
10898         * VERSION: Updated to 1.12beta.
10900         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
10902         * README: Updated: Included documentation about CVS repository,
10903         mailing lists, and daily snapshots.
10905         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10907 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
10909         * tmac/tmac.an: If the tag didn't fit into the space that the
10910         macro `TP' specifies, the rest of the tag went into the space for
10911         the next line.
10913 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
10915         * grolj4/lj4.cc: Added duplex printing (option `-d').
10917         * grolj4/grolj4.man: Document duplex printing.
10919 1999-09-12  Werner LEMBERG  <wl@gnu.org>
10921         * doc/Makefile (pic.ps): Fixed rule which caused problems with
10922         non-GNUish sed programs.
10924         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10925         definition.
10927         * configure.in (LIBS): Added `-lc'
10929         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10931         * pic/tex.cc (solid_arc): Casting M_PI to double.
10933         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10935         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10936         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10937         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10939         * groff/groff_man.man: New file.  This manual page was originally
10940         written for the Debian GNU/Linux system by Susan G. Kleinmann
10941         <sgk@debian.org>.
10943         * eqn/list.cc (list_box::compute_metrics,
10944         list_box::compute_sublist_width): Removed variable declaration to
10945         avoid shadowing warnings.
10947         * grops/psrm.cc (resource_manager::process_file): Ditto.
10949         * tfmtodit/tfmtodit.cc (main): Ditto.
10951         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10952         to avoid shadowing warnings.
10954         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10955         shadowing loop variable.
10957         * groff/groff.man, troff/troff.man: Added doc about grohtml.
10959 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
10961         New grohtml frontend to convert groff input to html.
10963         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10965         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10967         * tmac/eqnrc: Added html device.
10969         * tmac/tmac.html: New file.
10971         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10972         (troff_output::start_picture, troff_output::finish_picture),
10973         tbl/main.cc (process_input_file):
10974         Surrounded output with `graphics_start' and `graphics_end' so that
10975         the html driver can identify non-text portions.
10977         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10978         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10979         grotty/tty.ps (tty_printer::set_char): Additional parameter
10980         `name'.
10982         * include/printer.h: Class printer: New function
10983         set_char_and_width; new variables (is_char_named, is_named_set,
10984         named_command, named_char_s, named_char_n) to hold information
10985         about named characters -- needed by the html driver.
10987         * libdriver/printer.cc (printer::set_ascii_char,
10988         printer::set_special_char): Use set_char_and_width.
10990         * devhtml/*: New device files for html driver.
10992         * grohtml/*: New driver grohtml.
10994 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
10996         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10997         default strings.
10999 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
11001         * libgroff/string.cc (search): Small fix to test against NULL
11002         pointer.
11004 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
11006         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11007         \b'abc') were stacked in reverse order when processed in a
11008         diversion.
11010         * troff/node.h: Added `*last' to struct `node' to make the above
11011         fix work.
11013         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11014         The default scale for the 'f' and 't' graphics functions were 'm'
11015         rather than 'u' (i.e., no scaling).
11017 1999-09-11  Peter Miller  <peterm@jna.com.au>
11019         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11020         do_file), soelim/soelim.man: Added `-I file' option to soelim,
11021         defining include paths.
11023         * soelim/soelim.cc (include_path_append): New function.
11025 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
11027         * tbl/main.cc (process_options): Unix (at least Documenter's
11028         Workbench) tbl allows arbitrary non-alpha characters between
11029         options.
11031 1999-09-11  Paul Eggert  <eggert@twinsun.com>
11033         Y2k fixes.  Don't assume that the current year precedes 2000.
11035         * doc/meref.me: Add \n(y2, \n(y4.
11037         * tmac/doc-common (Yr): New number register.
11038         (Dd): Don't assume current year precedes 2000.
11040         * tmac/tmac.e (td): Likewise.
11041         (y2, y4): New number registers.
11043         * pic/pic.man: Update reference for pic paper to May, 1991
11044         version.
11046 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11048         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11049         Removed quotation marks which prevented correct expansion of
11050         $(tmac_wrap).
11052         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11054 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11056         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11057         `config.cache'.
11059         * Removed configure.old.
11061 1999-08-31  Werner LEMBERG  <wl@gnu.org>
11063         * VERSION: Updated to 1.11.1
11065 1999-05-27  Werner LEMBERG  <wl@gnu.org>
11067         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11069         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11070         added quotations around $(tmac_wrap) to avoid syntax error if
11071         variable is empty.
11073         * configure: Newly generated using autoconf 2.13.
11075         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11077 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
11079         * README, PROJECTS, NEWS, INSTALL, VERSION, 
11080         doc/Makefile. doc/pic.ms, groff/groff.man:
11081         Prepare for 1.11 release.  No code changes.
11082         Documentation for pic added (doc/pic.ms).
11084 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
11086         * Version 1.10 released.
11088 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
11090         * afmtodit/afmtodit.pl: Avoid comment on first line.
11092 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
11094         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11095         * configure.in: Call it.
11097         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11098         (distfiles): Doesn't depend on config.log or config.cache.
11100 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
11102         * grog/grog.sh: Use print "" rather than print in END rule.
11104 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
11106         * tbl/main.cc (process_data): Don't give error for excess data
11107         entries that are comments.
11109 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
11111         * tbl/main.cc (process_data): Fix case where new for-scope rules
11112         silently change meaning of code.
11114 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
11116         * troff/env.cc (hyphenate): Loop over all consecutive sequences
11117         of non-zero hyphenation codes.
11119 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
11121         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11123 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
11125         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11127 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
11129         * tmac/tmac.andoc: Make it work in compatibility mode.
11131         * refer/token.h (token_info::is_range_sep): New function.
11132         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11133         * refer/ref.cc (reference::output): More sophisticated check for
11134         multiple pages.
11136         * devps/prologue.ps (MANUAL): New procedure.
11137         * grops/ps.cc (main): New -m option.
11138         (usage): Include -m.
11139         (ps_printer::~ps_printer): Implement -m.
11141         * aclocal.m4 (GROFF_G): New macro.
11142         * configure.in: Call it.
11143         * Makefile.in (g): Provided by configure.
11145         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11147         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
11148         translations.
11150         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11151         (tmac_m, tmac_s): Deleted.
11152         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11153         tmac_s_prefix): New variables.
11154         (MDEFINES): Change accordingly.
11155         * Makefile.comm (.man.n): Use new TMAC_* variables.
11156         * configure.in (GROFF_TMAC): Call.
11157         * aclocal.m4 (GROFF_TMAC): Define.
11158         * tmac/Makefile.sub (stamp_wrap): New target.
11159         (install_data, uninstall_sub): Handle macro wrapping.
11161 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
11163         * tbl/main.cc (main): Ignore -T option.
11165 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
11167         * devlj4/generate/special.map: Add definition of \(nb.
11169         * tmac/tmac.dvi: Add definition of \(nb.
11171         * troff/dictionary.c (dictionary::dictionary): association::v gets
11172         initialized by association::association.
11174         * tmac/Makefile.sub: Avoid using temporary files when installing.
11176         * troff/env.cc (environment::set_font): Make bad font number a
11177         warning.
11179         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11181         * Makefile.in (datadir): Use share rather than lib.
11183         * groff/groff.cc (basename): Rename to xbasename.
11185 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
11187         * Makefile (CCLIBS): Don't use.
11188         * Makefile.ccpg: Likewise.
11190         * acgroff.m4: Rename to...
11191         * aclocal.m4: Modify extensively for autoconf 2.
11192         * configure.in: Likewise.
11193         * Makefile.in: Likewise.
11195         * groff/pipeline.c (const): Declare as empty if __STDC__ not
11196         defined.
11197         (xstrsignal): Check for definition of NSIG. Conditionalize
11198         on SYS_SIGLIST_DECLARED.  Make return type const.
11200 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
11202         * troff/input.cc (interpolate_macro): Rephrase missing space
11203         warning.
11205 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
11207         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11208         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11209         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11210         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11211         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11212         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11213         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11214         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11215         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11216         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11217         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11218         Fix 'for' scoping.
11220 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
11222         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11223         string_iterator.
11224         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11225         file.
11226         (macro_iterator::macro_iterator): Add additional argument.
11228 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
11230         * troff/div.cc (vertical_size::vertical_size): In place of integer
11231         specifying line spacing use cunits specifying post vertical
11232         space.
11233         (macro_diversion::output, top_level_diversion::output): Likewise.
11234         * troff/div.h: Change declarations accordingly.
11235         * troff/env.cc (pending_output_line): Replace ls field by post_vs
11236         field.
11237         (pending_output_line::pending_output_line,
11238         pending_output_line::output, environment::output,
11239         environment::output_line, environment::output_title,
11240         environment::hyphenate_line):  In place of
11241         integer specifying line spacing use cunits specifying post vertical
11242         space.
11243         (environment::environment): Add post_vertical_spacing and
11244         prev_post_vertical_spacing arguments.
11245         (environment::get_post_vertical_spacing): New function.
11246         (environment::total_post_vertical_spacing): New function.
11247         (environment::post_vertical_spacing): New function.
11248         (init_env_requests): Initialize pvs request and .pvs register.
11249         * troff/env.h: Change declarations.
11251 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
11253         * tmac/tmac.pspic: Immediately remove the temporary file.
11255 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
11257         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11258         height is specified.
11260 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
11262         * tbl/table.c (struct vertical rule, class table_entry): Use int
11263         not short for start_row and end_row.
11265 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
11267         * troff/input.cc (trapping_blank_line, blank_line_macro): New
11268         functions.
11269         (diverted_space_node::reread, process_input_stack): Call
11270         trapping_blank_line() rather than blank_line().
11271         (init_input_requests): Bind "blm" to blank_line_macro().
11273         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11275 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
11277         * troff/env.cc (environment::possibly_break_line): Require that
11278         width total excluding width of final space node be greater than
11279         the target text length.
11281 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
11283         * troff/node.cc (kern_pair_node::vertical_extent): New function.
11285 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
11287         * troff/node.cc (charinfo_node): New class.
11288         (glyph_node, composite_node): Derive from charinfo_node.  Change
11289         member functions accordingly.
11291 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
11293         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11295 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
11297         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11299         * devps/generate/textmap (notsubset): Add.
11301         * tmac/tmac.a4: New file.
11303 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
11305         * pic/main.cc (had_parse_error): New variable.
11306         (do_picture, do_whole_file): Set had_parse_error if yyparse()
11307         returns non-zero.
11308         (main): Return 1 if had_parse_error is true.
11310 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
11312         * grolj4/lj4.cc (main): Avoid use of strtoul.
11314 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
11316         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11317         iso_8859_1 or $LESSCHARSET is latin1.
11319 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
11321         * hpftodit: New directory.
11322         * Makefile.in (CCPROGDIRS): Add hpftodit.
11323         * devlj4/generate: New directory.
11325 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
11327         * configure.in: Don't use AC_VFORK.
11328         * groff/pipeline.c (run_pipeline): Use fork() always.
11330 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
11332         * grops/ps.cc (main): Use %1 not %s in error message for -w.
11334         * Makefile.in (CCPROGDIRS): Add grolj4.
11335         (DEVDIRS): Add devlj4.
11336         * grolj4, devlj4: New directories.
11337         * tmac/troffrc: Handle lj4.
11338         * tmac/tmac.lj4: New file.
11340 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
11342         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11344 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
11346         * troff/input.cc (do_if_request): At end of second string, switch
11347         environments before getting next token.
11349 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
11351         * devps/psstrip.sed: Split rule that strips whitespace on either
11352         side of delimiters.
11354 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
11356         * troff/node.h (font_family::make_definition): Add return value to
11357         declaration.  * troff/symbol.h (symbol::operator==,
11358         symbol::operator!=): Likewise.
11360 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
11362         * groff/groff.cc (main, help, synopsis): Handle -S.
11363         (possible_command::insert_arg): New function.
11365         * tmac/tmac.safer: New file.
11366         * tmac/msafer.man: New file.
11367         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11369 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
11371         * pic/pic.h, pic/main.cc (safer_flag): New variable.
11372         * pic/pic.y (placeless_element): Avoid unsafe operations if
11373         `safer_flag' is set.
11374         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11376 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
11378         * eqn/lex.cc (get_token): Put call to add_context() in block to
11379         work around Sun C++ 4.0 bug.
11381         * include/stringclass.h (operator +): Use ?: instead of `if' to
11382         work around Sun C++ 4.0 bug.
11384 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
11386         * tbl/main.cc (process_format): Accept - as a synonym for the _
11387         key letter.
11389         * libbib/index.cc (minus_one): Don't declare as const.
11391 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
11393         * troff/input.cc (get_char_for_escape_name): Push back a newline.
11395 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
11397         * troff/input.cc (write_macro_request): New function.
11398         (init_input_requests): Bind write_macro_request to writem.
11400 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
11402         * tmac/tmac.s (@EN): Turn filling back on even if there was no
11403         equation.
11405         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11407         * tmac/tmac.s (@TS): Renamed from TS.
11408         (TS): Call LP then TS again.
11409         (cov*ab-init): Alias @TS to TS.
11411         * tmac/tmac.s: Allow QP or RS to initialize.
11413         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
11414         Move initializations of PS and LL here.
11415         (par@init): Don't initialize HY.  Avoid changing environment 0.
11416         (par*env-init): Don't all par@reset.
11418 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
11420         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11422 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
11424         * Makefile.in (MDEFINES): Add LDFLAGS.
11425         (LDFLAGS): Add definition line.
11427 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11429         * troff/input.cc (get_optional_char): Split off error check into...
11430         (check_missing_character): New function.
11431         * troff/token.h: Declare it.
11432         * troff/env.cc (margin_character): Don't call get_optional_char.
11433         Only call tok.next() after making the node.
11435         * include/lib.h (getopt): Make 2nd argument char *const *.
11437 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11439         * nroff/conftest.sh: Deleted.
11441 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11443         * pic/make-dos-dist: Deleted.
11445 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11447         * devps/psstrip.sed: Strip comments before stripping trailing
11448         white space.
11450 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11452         * Version 1.09 released.
11454 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11456         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11458 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11460         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11462 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11464         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11465         about returning without a value.
11467         * troff/charinfo.h (charinfo::get_special_translation): Cast
11468         TRANSLATE_NONE to int.
11470         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11471         test.  Fix test so that it works with n unsigned.
11473         * pic/pic.y (defaults_table): Fully bracket initializer.
11474         * pic/lex.cc (lookup_keyword): Likewise.
11475         * eqn/lex.cc (token_table, def_table): Likewise.
11476         * eqn/box.cc (param_table): Likewise.
11477         * troff/input.cc (warning_table): Likewise.
11478         * libgroff/font.cc (table): Likewise.
11479         * grops/ps.cc (ps_printer::special): Likewise.
11480         * grops/psrm.cc (resource_manager::process_file): Likewise.
11481         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11482         * refer/command.cc (command_table): Likewise.
11483         * addftinfo/addftinfo.cc (param_table): Likewise.
11485         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11486         about temp's being unused.
11487         (unused): New function.
11489         * groff/pipeline.cc: Declare c_fatal.
11491         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11492         uchar.
11494         * libbib/index.cc (index_search_item::load): Prevent compiler
11495         warnings about fd_closer's being unused.
11496         (unused): New function.
11498 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
11500         * troff/input.cc (copy_mode_error): Make `prefix' static.
11501         Fix typo.
11503         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11504         defined.
11505         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11506         HAVE_CC_OSFCN_H and modify accordingly.
11508         * troff/input.cc (init_charset_table): radicalex overlaps
11509         horizontally.
11511         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11512         udodo!hans@relay.NL.net).
11513         * groff/configure.in: Call it.
11515         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11516         * groff/configure.in: Call it.
11517         * include/lib.h: Conditionalize declaration of pclose.
11519         * troff/div.cc (last_page_number): New global variable.
11520         (top_level_diversion::begin_page): Exit if we just printed the
11521         last page.
11522         * troff/div.h (last_page_number): Declare it.
11523         * troff/input.cc (parse_output_page_list): Set last_page_number.
11525         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11526         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11527         tmac/tmac.X: Likewise.
11528         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11529         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11531 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
11533         * tmac/doc-ditroff (hK): Remove groff specific code which
11534         prevented page-breaks between separate manual entries.  If this is
11535         the first page, don't set the page number to 1.
11537         * acgroff.m4 (GROFF_POSIX): New macro.
11538         * configure.in: Use it.
11540         * troff/node.cc (class real_output_file,
11541         real_output_file::real_output_file,
11542         real_output_file::~real_output_file): Conditionalize use of
11543         popen/pclose on POPEN_MISSING.
11544         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11545         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11546         (pipe_source): Similarily.
11548         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11550         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11551         presence of declarations by trying to compile example with
11552         conflicting declarations.  (gcc only gives a warning for missing
11553         declarations.)
11555 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
11557         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11558         (from Ulrich Lauther).
11560 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
11562         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11564 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
11566         * indxbib/indxbib.cc (write_hash_table): Add code for case where
11567         pointers and ints have different sizes.
11569 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
11571         * tmac/tmac.s (par*env-init): Call par@reset.
11573 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
11575         * tmac/tmac.s (@IP): Switch to a new environment when diverting
11576         tag.
11577         (par*push-tag-env, par*pop-tag-env): New macros.
11579 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
11581         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11582         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
11584         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11585         comment.  Include <time.h>.
11587 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
11589         * grops/ps.cc (is_small_h, is_small_v): Deleted.
11590         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11591         lines.
11593 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
11595         * troff/input.cc (read_request): Only print a prompt if reading
11596         from the terminal.  Also clearerr on EOF if reading from the
11597         terminal.  Declare isatty.
11599 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
11601         * refer/label.y: Rename map_t to map_func and extractor_t to
11602         extractor_func.
11604 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
11606         * include/assert.h: Don't use volatile.
11607         * libgroff/assert.cc: Likewise.
11609 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
11611         * troff/input.cc (abort_request): Look at character in tok before
11612         calling get_copy().
11614 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
11616         * troff/troff.h (NO_RETURN): Deleted.
11617         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
11618         * troff/input.cc (exit_troff): Likewise
11620         * Makefile.in: Remove `Making ...' messages since GNU make now
11621         gives these. 
11623         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11625 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
11627         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11628         to constant 1 inch.
11630 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
11632         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11634 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
11636         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11637         MARK_REG if there was no left delimiter.
11639 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
11641         * pic/troff.cc (troff_output::text): Set line thickness to
11642         relative before outputting text.
11644         * tmac/tmac.e (@k): Don't zero ?T.
11645         ((z): Likewise.
11647 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
11649         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11651 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
11653         * troff/input.cc (decode_args): Warn about unquoted tabs (from
11654         Paul Eggert).
11656 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
11658         * troff/input.cc (ignoring): New variable.
11659         (ignore): Set ignoring during call to do_define_macro.
11660         (do_define_macro): Clear ignoring before interpolating terminating
11661         macro.
11662         (copy_mode_error): New function.
11663         (get_char_for_escape_name, read_long_escape_name,
11664         interpolate_arg): Use copy_mode_error.
11665         (warning_table): Add WARN_IG.
11666         * troff/troff.h (WARN_IG): Declare.
11667         (WARN_TOTAL): Change accordingly.
11669         * groff/pipeline.c (strsignal): Rename to xstrsignal.
11670         * groff/groff.cc (strsignal): Delete declaration.
11672 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
11674         * troff/div.cc (page_offset): Use 'm' as default scaling.
11676 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
11678         * nroff/nroff.sh: Ignore -u.
11680 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
11682         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11684 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
11686         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11687         drawing box.
11688         (B2): With -Tascii, leave additional vertical space before
11689         and after. Ensure that the left and right indent is restored to
11690         what it was even if the point size changes.  Don't call
11691         par@finish. Change the indent, line length and title length
11692         directly.  With -Tascii, make the width of the box 1n less.
11693         (B1): Remember 1n at the current point size.  Don't call
11694         par@reset.  Change the indent, line length and title length
11695         directly.  Ensure that the temporary indent is preserved.
11696         (par*box-mark-top): Turn off no spacing mode.
11698 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
11700         * Makefile.in (dist): Use .gz suffix.
11702 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
11704         * troff/input.cc (main): Add return 0.
11705         * pic/main.cc (main): Use return instead of exit.
11706         * tbl/main.cc (main): Likewise.
11707         * eqn/main.cc (main): Likewise.
11708         * grops/ps.cc (main): Likewise.
11709         * grotty/tty.cc (main): Likewise.
11710         * groff/groff.cc (main): Likewise.
11711         * grodvi/dvi.cc (main): Likewise.
11712         * refer/refer.cc (main): Likewise.
11713         * indxbib/indxbib.cc (main): Likewise.
11714         * lkbib/lkbib.cc (main): Likewise.
11715         * soelim/soelim.cc (main): Likewise.
11716         * addftinfo/addftinfo.cc (main): Likewise.
11717         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11718         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11720         * troff/token.h (process_input_stack): Don't declare as static.
11721         * troff/input.cc: Likewise.
11723         * troff/node.c (invalidate_fontno): Make it a static member of
11724         class font_family.  Change callers.
11725         * troff/node.c: Change declaration.
11727         * tbl/main.cc (struct input_entry_format): Add explicit public
11728         specifier.
11729         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11730         struct double_hline_stuff): Likewise.
11731         * tbl/table.h (struct entry_format): Likewise.
11732         * pic/object.h (struct saved_state): Likewise.
11734         * include/stringclass.h: Add forward declarations of friend
11735         functions that are later declared as inline.  Don't include inline
11736         specifier in friend declaration.
11738         * libgroff/lib.h: Declare popen and pclose.
11739         * acgroff.m4 (GROFF_POPEN): New macro.
11740         * configure.in: Call it.
11742         * include/lib.h (PI): New constant. Undef first if necessary.
11743         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11744         * grops/ps.cc (degrees, radians): Likewise.
11745         * libgroff/font.cc (font::get_skew): Likewise.
11747         * grops/ps.cc (is_ascii): New function.
11748         (ps_output::put_string): Use is_ascii.  Use csprint rather than
11749         isprint.
11750         (ps_printer::define_encoding): Use csspace.
11751         * libgroff/strtol.c (ISASCII): New macro.
11752         (strtol): Cast arguments to is*() and tolower() to unsigned char.
11753         Use ISASCII rather than isascii.
11754         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11755         * libgroff/cset.cc: Likewise.
11756         * libdriver/input.cc: Include cset.h.
11757         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11758         than isdigit().
11760         * refer/refer.cc (main): Use %ld rather than %d for longs.
11762         * libbib/index.cc (index_search_item_iterator::get_tag): Use
11763         S_ISREG macro.
11765         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11767 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
11769         * troff/input.cc (hyphenation_code): Skip white space between
11770         char/code pairs.
11772 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
11774         * tbl/table.h (table::entry_list_tailp): New member.
11775         (table::table): Initialize it.
11776         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11777         behaviour.
11779 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
11781         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11782         with negative horizontal positions. Remove casts of glyph::hpos to
11783         int.
11784         (USHRT_MAX): Delete definition.
11785         (SHRT_MAX, SHRT_MIN): New definitions.
11786         (glyph::hpos): Change type to short.
11787         (tty_printer::end_page): Output multiple backspaces if necessary.
11788          Remove casts of glyph::hpos to int.
11789         
11790 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
11792         * tmac/tmac.s (@RT): New definition.
11794 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
11796         * refer/refer.cc (do_file): Make sure current_filename is set when
11797         filename is "-".
11799         * pic/common.cc (common_output::dot_line): Handle zero length
11800         lines.
11802 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
11804         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11805         (par@init): Initialize \n[HY].
11807 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
11809         * troff/dictionary.cc (dictionary::remove): Continue when
11810         r < j < i.
11812 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
11814         * Makefile.com (.y.cc): Avoid ending up with two versions of
11815         $(YTABH).
11817 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
11819         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11820         (\(,C): Likewise.  Also fix typo.
11822 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
11824         * lib.h: Delete extraneous semi-colon.
11826         * Add pso request: `so' from a pipe.
11827         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11828         (file_iterator::close): New function.
11829         (file_iterator::~file_iterator, file_iterator::next_file): Use
11830         file_iterator::close.
11831         (file_iterator::backtrace): Say `process' rather than `file' when
11832         the stream is popened.
11833         (pipe_source): New function.
11834         (init_input_requests): Bind ".pso" to pipe_source.
11836 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
11838         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11840         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
11841         digits in lower case.
11843 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
11845         * Version 1.08 released.
11847         * Makefile.in (dist): Insert || true after ln -s commands that
11848         might fail.
11850         * mm: Update to mm 1.16.
11852         * acgroff.m4 (GROFF_CSH_HACK): New macro.
11853         * configure.in: Call GROFF_CSH_HACK.  Substitute for
11854         SH_SCRIPT_SED_CMD.
11855         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
11856         MDEFINES.
11857         * nroff/Makefile.sub (nroff): New target.
11858         (install_data): Install nroff.
11859         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11860         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11862 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
11864         * eqn/Makefile.sub (neqn): Add chmod +x.
11866         * grog/Makefile.sub (grog): Remove spurious semi-colon.
11868 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
11870         * troff/input.cc (string_iterator::string_iterator()): Initialize
11871         lineno and count.
11873 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
11875         * troff/div.cc (macro_diversion::space,
11876         top_level_diversion::space): Don't set high_water_mark.
11877         (macro_diversion::output, top_level_diversion::output): Don't
11878         include post line space in high water mark.
11880 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
11882         * eqn/eqn.y: Don't define YYDEBUG.
11883         * pic/pic.y: Likewise.
11885 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
11887         * tmac/tmac.e ([3): Add space after comma following editors.
11888         Change double spaces to single spaces.
11889         ([4): Change double spaces to single spaces.
11891         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11892         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11893         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11894         after %!PS-Adobe- (for Newsprint).
11896         * troff/div.cc (top_level_diversion::begin_page): When
11897         before_first_page is 1, set page_number to 1.
11899 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
11901         * eqn/box.cc (box::top_level): Protect equation with \&.
11903 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
11905         * groff/groff.cc (possible_command::set_name): Delete old name.
11907         * groff/groff.cc (possible_command::~possible_command): Use
11908         a_delete.
11910         * troff/node.cc (troff_output_file::begun_page): New member.
11911         (troff_output_file::troff_output_file): Initialize it.
11912         (troff_output_file::really_begin_page): Only output V command if a
11913         page has been begun.
11915         * pic/pic.y (placeless_element): Delete argument to PRINT after
11916         use.
11918 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
11920         * Make wrapman work.
11921         * troff/div.h (class top_level_diversion): Replace
11922         first_page_begun by before_first_page (with opposite sense).
11923         * Change first_page_begun to before_first_page inverting sense.
11924         * troff/div.cc (class nl_reg): New class.
11925         (init_div_requests): Use class nl_reg for \n(nl.
11926         (top_level_diversion::begin_page): Don't call
11927         output_file::begin_page if before_first_page is 2;
11928         reset before_first_page afterwards.  If have_next_page_number is
11929         false, then always increment page_number.
11930         * tmac/tmac.an: Set traps within TH rather than at the top-level.
11931         Restore compatibility mode after loading, and then disable
11932         compatibility mode in TH.
11934 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
11936         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11937         past last line.
11938         * troff/node.h (output_file::trailer): Declare.
11939         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11940         * troff/node.cc (output_file::trailer): New function.
11941         (troff_output_file::~troff_output_file): Move most code into...
11942         (troff_output_file::trailer): New function.
11943         (class troff_output_file): Delete page_length member. Declare
11944         trailer().
11945         (troff_output_file::really_begin_page): Use current page length
11946         for final V command.
11948         * tbl/main.cc (struct options): New decimal_point_char member.
11949         (options::options): Initialize this.
11950         (process_options): Implement decimalpoint option.
11951         (process_data): Pass decimal_point_char option to table::table.
11952         * tbl/table.h (class table): New decimal_point_char member.
11953         (table::table): Add additional argument.
11954         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11955         second argument specifying decimal point character.  Use this
11956         instead of '.'.
11957         (table::table): Initialize decimal_point_char.
11958         (table::add_entry): Change call to find_dot.
11960         * troff/input.cc (get_copy, token::next): Implement \V.
11961         (interpolate_environment_variable): New function.
11963 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
11965         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11966         * pic/pic.y: Likewise.
11968         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11969         Add casts to int.
11970         * refer/ref.cc (reference::insert_field, reference::delete_field):
11971         Likewise.
11972         * troff/number.cc (parse_term): Likewise.
11974         * acgroff.m4 (GROFF_PROG_YACC): New macro.
11975         * configure.in: Use GROFF_PROG_YACC.
11977         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11978         and g++.
11979         * Makefile.in (OPTIMIZE): New define.
11980         (DEBUG): Empty by default.
11981         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11983         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11984         (GROFF_ARRAY_DELETE): Likewise.
11985         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11987         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11989         * devps/psstrip.sed: Use different delimiter on last line (so that
11990         it works with BSD 4.4 sed.)
11992 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
11994         * devps/psstrip.sed: Delete comments.
11996         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11997         optind, opterr, optarg.
11998         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11999         opterr, optarg.
12001 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
12003         * Makefile.in (check): Dummy target.
12005 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
12007         * Version 1.07 released.
12009         * Integrate mm 1.11.
12011         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12012         where start_col was meant.
12014 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
12016         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12018 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
12020         * troff/input.cc (token::next): Make \z\o'...' and similar things
12021         work.
12023         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12024         constants.
12025         (environment): Add margin_character_flags member.
12026         * env.cc (environment::environment(symbol),
12027         environment::environment(const environment *): Initialize
12028         margin_character_flags.
12029         (margin_character): Rewrite.
12030         (environment::output_line): Add a margin character if
12031         margin_character_flags is non-zero.  Turn off the
12032         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
12033         zero, use margin_character_node without copying and then set
12034         margin_character_node to 0.
12036         * devps/DESC.in: Change minimum size to 1000.
12038 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
12040         * troff/symbol.h (symbol::hash): Change return type to unsigned
12041         long.
12042         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12043         Add casts to int.
12045         * test-groff: Use -r rather than -x.
12047         * grops/psfig.diff: Include in distribution again.
12049 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12051         * Makefile.in (dist): Use gzip.
12053 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12055         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12056         unistd.h as well as in stdlib.h.
12057         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12058         defined; otherwise include <sys/types.h> and <unistd.h> if
12059         UNISTD_H_DECLARES_GETOPT is defined.
12061         * configure.in: use builtin(include, ... rather than include(...
12062         * configure: Regenerate with autoconf 1.3.
12064         * libdriver/print.cc (printer::adjust_arc_center): Use new
12065         algorithm suggested by Andy Fyfe.
12067         * libdriver/printer.cc (printer::adjust_arc_center): New function.
12068         * include/printer.h: Declare this.
12069         * grops/ps.cc (ps_printer::draw): Use it.
12070         * grodvi/dvi.cc (dvi_printer::draw): Use it.
12072 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
12074         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12076 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
12078         * eqn/main.cc (main): Handle "eqn -".
12080 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
12082         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12084         * mm: Integrate version 1.08.
12086         * pic/troff.cc (troff_output::finish_picture): Set
12087         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12088         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12089         if it's not defined. Check whether the register is non-zero rather
12090         than whether it's not defined.
12091         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12093         * indxbib/indxbib.cc: Move all signal handling into...
12094         * indxbib/signal.c: New file.
12095         * configure.in: Call AC_RETSIGTYPE.
12097         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12098         * configure.in: Call GROFF_STRUCT_EXCEPTION.
12099         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12101         * troff/input.cc (token::token, token::operator=): Work round SGI
12102         C++ bug.
12103         * pic/object.cc (position::position): Likewise.
12105 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
12107         * pic/pic.h: Move declaration of hypot().
12109 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
12111         * pic/pic.h: Declare hypot().
12113         * pic/pic.h: Define M_PI if necessary.
12115 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
12117         * tmac/tmac.e (re): Add alternative version that doesn't use groff
12118         `.ta T' feature.
12120         * devps/prologue.ps (RE): Handle the possibility that the old font
12121         doesn't have a FontName entry.
12123 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
12125         * tmac/tmac.e (fam): Redefine to set family in environment 2.
12126         (@C): Use @fam not fam.
12128 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
12130         * lookbib/lookbib.cc (main): Change type of start to const char *.
12131         * lkbib/lkbib.cc (main): Likewise.
12133         * eqn/lex.cc (definition::definition): Don't use member
12134         initializer syntax for members of anonymous unions.
12136         * troff/input.cc (input_stack::backtrace): Change type of to const
12137         char *.
12139 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
12141         * include/stringclass.h (class string): Declare inline friend
12142         functions as inline in class declaration.
12143         * troff/hvunits.h (class hunits, class vunits): Likewise.
12144         * include/refid.h (class reference_id): Likewise
12145         * troff/troff.h (points_to_units(units), scale(units, double)):
12146         Delete declarations.
12147         * libdriver/input.cc (get_char): Delete declaration.
12148         * include/lib.h: Change 2nd argument of getopt from const char **
12149         to char **.
12150         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12151         char **' before assigning to a `const char **'.
12152         * tbl/table.cc: Delete extra declarations of prints().
12154 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
12156         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12157         char **' before assigning to a `const char **'.
12159         * libgroff/errarg.cc (errarg::errarg): Don't use member
12160         initializer syntax for members of anonymous unions.
12162 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
12164         * mm: Integrate version 1.07.
12166 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
12168         * troff/input.c (translate2): Rename to
12169         (translate_no_transparent).
12170         (init_input_requests): Rename tr2 to trnt.
12172 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
12174         * troff/charinfo.h (class charinfo): Add transparent_translate field.
12175         (charinfo::set_translation, charinfo::set_special_translation):
12176         Add second argument that specifies value for
12177         transparent_translate.
12178         (charinfo::get_translation, charinfo::get_special_translation):
12179         Add optional second argument that specifies whether translation is
12180         being used for transparent throughput.
12181         * troff/input.cc (charinfo::set_translation,
12182         charinfo::set_special_translation): Handle second argument.
12183         (charinfo::charinfo): Initialize transparent_translate.
12184         (translate): Split main part off into
12185         (do_translate): New function.  Pass argument saying whether
12186         translation applies to transparent throughput.
12187         (translate2): New request.
12188         (init_input_requests): Bind translate2 to `tr2'.
12190 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
12192         * tbl/table.h (class table): Add `nokeep' flag.
12193         * tbl/main.cc (process_options): Handle `nokeep' option.
12194         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12195         table::do_bottom): Don't output keep/release macro definitions or
12196         calls when `nokeep' option has been specified.
12198 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
12200         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12202 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
12204         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12205         block_entry::divert, alphabetic_block_entry::divert): Add extra
12206         argument giving column separation.
12207         (table::compute_widths): Pass column separation to
12208         table_entry::divert().
12209         (block_entry::do_divert): If an entry spans multiple columns and a
12210         minimumum width has been specified for each column, then set the
12211         line length to the sum of the widths (plus possibly the column
12212         separations).
12214         * troff/input.cc (set_escape_char): Don't set the escape_char
12215         until after calling has_arg().
12217 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
12219         * tbl/table.cc (table::do_top): Add missing \s0 for double box
12220         case.
12222         * tbl/table.cc (table::print_double_hline): Avoid extra new line
12223         in case where r > nrows - 1.
12225         * tbl/table.cc (BODY_HEIGHT): Deleted.
12226         (LINE_SEP): New definition.
12227         (table::print_single_hline, table::print_double_hline,
12228         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12229         table::do_row, table::do_top): Use LINE_SEP space before a line
12230         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12232         * tbl/table.cc (text_entry::print_contents): New function.
12233         (text_string_name, right_text_string_name): Deleted.
12234         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12235         (simple_text_entry::do_width, numeric_text_entry::do_width,
12236         alphabetic_text_entry::do_width): Don't store the contents of the
12237         entry in a string.
12238         (left_text_entry::simple_print, right_text_entry::simple_print,
12239         center_text_entry::simple_print,
12240         alphabetic_text_entry::simple_print,
12241         numeric_text_entry::simple_print): Print the entry directly
12242         instead of using the stored string.
12244 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
12246         * devps/Makefile: Strip PostScript files.
12247         * devps/prologue: Rename to...
12248         * devps/prologue.ps.
12249         * devps/psstrip.sed: New file.
12250         * devps/download: Use .pfa rather than .ps for installed versions
12251         of fonts.
12253 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
12255         * troff/env.cc (input_trap): Give a warning if the argument is out
12256         of range.
12258         * troff/env.cc (adjust): Treat negative argument as missing. Round
12259         argument > 5 down to 5.
12261         * troff/env.cc (center, right_justify): Make negative argument zero.
12263         * troff/div.cc (page_offset, vertical_position_traps): Treat
12264         invalid argument as missing.
12265         * troff/env.cc (line_spacing, line_length, title_length, indent,
12266         underline, hyphen_line_max_request, control_char,
12267         no_break_control_char, widow_control_request, adjust, input_trap,
12268         point_size): Likewise.
12269         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12270         constant_space): Likewise.
12271         * troff/input.cc (compatible, shift, warn_request,
12272         set_escape_char): Likewise.
12274         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12275         * tbl/table.cc (table::table): Likewise.
12277         * Makefile.dev (install_dev): depends on $(DEVFILES).
12279 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
12281         * devX75, devX75-12, devX100, devX100-12: New directories.
12282         * Makefile.in: Add these to DEVDIRS.
12284         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12285         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12286         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12287         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12288         targets.
12289         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12290         (uninstall): New target.
12291         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12292         uninstall_prog, uninstall_dev): New targets.
12294         * troff/div.cc (return_request): Treat an invalid argument as
12295         missing.
12297 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
12299         * tmac/tmac.e ((f): Set up the environment even when there's a
12300         current diversion.  Transperently throughput a call to @N.
12301         (@N): New macro.
12303 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
12305         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12306         up to vertical resolution.
12308         * tbl/table.cc (table::do_row): Change row number after printing
12309         stuff list.
12311         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12313 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
12315         * Rename CHANGES to NEWS.
12317 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
12319         * libgroff/new.cc (operator new): Avoid calling malloc(0).
12321 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
12323         * man.ultrix: Removed.
12325 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
12327         * Makefile.comm (extraclean): Delete files whose names begin with
12328         `='.
12330         * pic/troff.cc (troff_output::text): Fix typo in implementation of
12331         aligned text.
12333 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
12335         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12336         * troff/div.cc (page_length, need_space, space_request): Treat
12337         invalid optional argument as missing.
12338         * troff/env.cc (number_lines): If the first argument is present
12339         but not a number, turn on line numbering, don't change the next
12340         line number and parse the remaining arguments.
12342         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12344 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
12346         * eqn/box.h: Change declaration accordingly.
12347         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
12348         the specified size was bad but don't give an error.  Check for
12349         overflow.
12350         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12351         * eqn/lex (do_size): Likewise.
12353 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
12355         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12356         compatible headers.
12358 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
12360         * tbl/table.cc (table::init_output): Improve error message when
12361         table won't fit on one page.
12363 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
12365         * pic/troff.cc (troff_output::start_picture): Generate line
12366         containing a horizontal motion equal to the width of the picture.
12368         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12369         using GROFF_COMMAND_PREFIX environment variable.
12371 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
12373         * mdate.sh: Use $NF rather than $(NF).
12375 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
12377         * pic/main.cc (main):  Use %1 not %c in argument to warning.
12379         * eqn/main.cc (main): Output code to check that geqn was given the
12380         correct -T option.
12382 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
12384         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12385         `ln -s ../Makefile .; make; rm -f Makefile'.
12387         * troff/hyphen: Rename to...
12388         * troff/hyphen.us:
12389         * troff/input.cc (main): Delete -H option. Don't call
12390         read_hyphen_file().
12391         * troff/env.cc: Include searchpath.h and macropath.h.
12392         (exception_dictionary): Deleted.
12393         (ht): Deleted.
12394         (read_hyphen_file): Deleted.
12395         (hyphenation_language): New struct.
12396         (class trie, class hyphen_trie): Move declarations up.
12397         (trie_node::~trie_node): Deleted.
12398         (trie::delete_trie_node): New function.
12399         (trie::do_delete): New pure virtual function.
12400         (hyphen_trie::do_delete): New function.
12401         (trie::~trie): New function.
12402         (hyphen_trie::~hyphen_trie): New function.
12403         (trie::clear): No need to chcek that tp is not 0.
12404         (current_language, language_dictionary): New variables.
12405         (hyphen_word): Give an error if no current language.  Use
12406         exceptions dictionary in current language.
12407         (hyphen_trie::read_patterns_file): Find file using macro_path.
12408         Allow comments (starting with %) in patterns file.  Don't make it
12409         a fatal error if the file can't be found.
12410         (hyphenate): Return if no current language.  Get the exceptions
12411         dictionary and the hyphenation patterns from the current language.
12412         (set_hyphenation_language): New variable.
12413         (hyphenation_patterns_file): New function.
12414         (hyphenation_language_reg): New class.
12415         (hyphenation_language_reg::get_string): New function.
12416         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12417         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
12418         register.
12419         * groff/groff.cc (main, help, synopsis): Delete -H option.
12420         * include/Makefile.sub: Don't define HYPHENFILE.
12421         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12422         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12423         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12424         hyphenation patterns.
12426 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12428         * eqn/neqn.sh: New file.
12429         * eqn/Makefile.sub: Handle neqn.sh.
12431         * eqn/eqn.h: Declare `nroff' variable.
12432         * eqn/box.cc (param_table): Add `nroff' param.
12433         (nroff): Define it.
12434         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12435         variable.
12436         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12438         * troff/troff.h (WARN_FONT): New warning.
12439         (WARN_TOTAL): Change accordingly.
12440         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12441         (warning_table): Add WARN_FONT.
12442         * troff/node.cc (mount_font_no_translate): Pass argument to
12443         font::load_font.  If this is non-zero, give a warning.
12444         Don't give an error message when accessing a font that has already
12445         been found to be invalid.
12446         * include/font.h (font::load, font::load_font): Add additional
12447         optional argument which suppresses error message if the font is
12448         not found.
12449         * libgroff/font.cc (font::load_font): Handle additional argument.
12450         (font::load): Add additional argument. If this is non-null, set it
12451         to 1 and don't give error message.
12453         * include/printer.h (printer::end_page): Add argument giving
12454         length of page.
12455         * libdriver/input.cc (do_file): Pass this.
12456         * grops/ps.cc (ps_printer::end_page): Add argument.
12457         * grodvi/dvi.cc (dvi_printer::end_page,
12458         draw_dvi_printer::end_page): Add argument.
12459         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12460         columns_per_page members. New member nlines.
12461         (DEFAULT_LINES_PER_PAGE): Deleted.
12462         (tty_printer::tty_printer): Don't compute lines_per_page from
12463         font::paperlength. Don't compute columns_per_page from
12464         font::paperwidth.
12465         (tty_printer::add_char): Don't check horizontal position against
12466         columns_per_page. Grow glyphs vector if neccessary.
12467         (tty_printer::end_page): Add argument giving page_length in units.
12468         Discard lines past end of page.
12470 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12472         * tmac/tmac.tty-char: Fix definition of \(/l.
12474         * tmac/tmac.X: Define \(en.
12476 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
12478         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12479         lpq, then use lp rather than lpr.
12481         * tmac/tmac.s (par@reset): Don't call `ad'.
12482         (par*env-init): Call `ad'.
12484 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
12486         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12487         date.
12489         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12490         * indxbib/indxbib.cc: Likewise.
12492 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
12494         * libgroff/putenv.c: New file.
12495         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12496         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12497         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12498         stdlib.h with AC_HAVE_HEADERS.
12500 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
12502         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12503         does not exist.
12505 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
12507         * eqn/box.cc (gsize): Make it an int.
12508         (set_gsize): Parse argument handling increment or decrement.
12509         (box::top_level): Convert gsize to a string.
12511         * troff/input.cc (exit_troff): Make buf unsigned char [].
12512         Call to make_temp_iterator casts buf to char*.
12514         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12516         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12517         * Makefile.cpg (depend.temp): Likewise.
12519         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12521         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12523 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
12525         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12527 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
12529         * Version 1.06 released.
12531         * Integrate mm 1.04.
12533 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
12535         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12537 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
12539         * afmtodit/afmtodit.pl: Add -n option that disables generation of
12540         ligatures command.
12541         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12542         afmtodit. Regenerate.
12544         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12545         @f back past the current position.
12547         * tmac/tmac.e: Change calls to @R so that comments are not part of
12548         arguments.
12550 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
12552         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12554         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12555         check that we can link a call to a function declared in <stdio.h>.
12556         (GROFF_UNISTD_H): New macro.
12557         * configure.in: Call it.
12558         * Makefile.in: Document it.
12559         * include/posix.h: New file.
12560         * troff/troff.h: Don't include <osfcn.h>
12561         * troff/input.cc: Include posix.h.
12562         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12563         osfcn.h.
12564         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12565         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12566         <fcntl.h>.
12567         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12568         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12569         * libbib/search.cc (O_RDONLY): Delete definition.
12570         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12571         Don't include <osfcn.h>.
12573         * acgroff.m4 (GROFF_TIME_T): New macro.
12574         * configure.in: Call it.
12575         * Makefile.in: Document it.
12577         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12578         * configure.in: Call it.
12579         * Makefile.in: Document -DTRADITIONAL_CPP.
12580         * include/ptable.h: Don't include generic.h.
12581         (name2): Define it.
12583         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12584         Afterwards remove [T1 and [T2.
12585         (ref*spec!0, ref*spec!2): Use T1 rather than T.
12586         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12587         (ref*add-T2): Renamed from ref*add-T.
12588         (ref*add-T1): New macro.
12590 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
12592         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12594         * libbib/index.cc: Include <fcntl.h>.
12595         (O_RDONLY): Define if necessary.
12596         (make_index_search_item, index_search_item_iterator::get_tag,
12597         index_search_item::check_files): Use O_RDONLY.
12598         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12599         (O_RDONLY): Define if necessary.
12600         (search_list::add_file): Use O_RDONLY.
12601         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12602         <sys/stat.h>.
12603         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12604         (main): Use these.
12606         * libbib/index.cc (S_ISREG): Define it if necessary.
12607         (index_search_item::load): Use S_ISREG.
12609         * include/driver.h: Include <errno.h>.
12611 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
12613         * eqn/box.cc (body_height): Increase default value to 85.
12614         (body_depth): Increase default value to 35.
12616 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
12618         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12619         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12620         protected from expansion with \E.
12622         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12624         * Makefile (Makefile): New target.
12626         * Makefile.sub (configure, distfiles): New targets.
12628         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12629         construct.
12631 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
12633         * eqn/box.cc (param_table): Add body_height and body_depth.
12635         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12637 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
12639         * psbb/Makefile.sub: Don't link with libgroff.a.
12641         * acgroff.m4 (GROFF_PUTENV): New macro.
12642         * configure.in: Call GROFF_PUTENV.
12643         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12644         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12645         is defined.
12647         * troff/env.cc (distribute_space): Rename force_forward argument
12648         to force_reverse.  Reverse the list if force_reverse is true.
12650 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
12652         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12654         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12655         height or depth to be negative.  Guard against SUP_RAISE quantity
12656         being negative.
12658 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
12660         * devps/generate/textmap: Add `an' (arrowhorizex).
12661         * tmac/tmac.ps: \(an overlaps horizontally.
12662         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12664         * devps/symbolchars: Add arrowverttp, arrowvertbt.
12665         * devps/textmap: Add arrowvertex.
12666         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12667         updownarrow delimiters.
12668         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12670         * tbl/table.cc (simple_entry::position_vertically,
12671         block_entry::position_vertically):  For a centered entry, perform
12672         the motion in two stages.
12674         * refer/refer.cc (split_punct): Don't call lookup_token if there
12675         is no token.
12677 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
12679         * troff/input.cc (token::next): Delete token_node after copying
12680         token.
12682         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12683         cur_point_size.
12685         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12687         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12689 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
12691         * grops/ps.cc (usage): -b option takes an argument.
12693         * devps/prologue (PLG): New procedure.
12694         * grops/ps.cc (main, usage): New -g option.
12695         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
12696         length using PLG.
12698 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
12700         * include/cset.h: Include <limits.h> if we have it.
12702         * libgroff/illegal.cc: New file.
12703         * include/lib.h (illegal_input_char): Use table.
12704         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12705         * pic/lex.cc (ARG1): Renumber to 14.
12706         * eqn/lex.cc (ARG1): Likewise.
12708         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12709         (eg 1.05.90) correctly.
12711 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
12713         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12714         Rename $r and $R registers to $v and $V.
12715         ($r, $R): Initialize to 0.
12716         (@v, @V): New macros.
12717         (sz): Call @v.
12718         (@M): Call @V.
12720         * troff/input.cc (main, usage): Add -R option that says not to
12721         load troffrc.
12722         * eqn/main.cc (main, usage): Rename -n to -R.
12724 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
12726         * devps/DESC.in: Leave font positions 5-9 blank.
12727         * devdvi/DESC.in: Likewise.
12729         * grog/grog.pl: Handle `.PS <file' correctly.
12731         * troff/input.cc (input_stack::push): Improve error message when
12732         input stack limit exceeded.
12734 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
12736         * refer/refer.cc (main): Fix typo in handling of `a' option.
12738         * refer/refer.cc (do_bib): In state START after a newline remain
12739         in state START.
12741         * groff/groff.sh: Deleted.
12742         * groff/Makefile.sub: Delete handling of groff.sh.
12744         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12745         to determine whether to use \X'ps:...'.
12746         * tmac/troffrc: Set 0p register to 0.
12747         * tmac/tmac.ps: Set 0p register to 1.
12749         * groff/groff.cc: Support -X option. Give warning for -TXps and
12750         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12751         * tmac/troffrc: Support -r.X=1.
12753         * pic/troff.cc (troff_output::dot): Don't test
12754         zero_length_line_flag.
12756 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
12758         * include/lib.h: Declare getopt() and friends unless
12759         STDLIB_H_DECLARES_GETOPT is defined.
12761         * doc/chars.tr: Delete.
12762         * man/groff_char.man: New file.
12764 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
12766         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12767         user has changed register format.
12769 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
12771         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
12772         `postpro' command in DESC file.  Get spooler command from `print'
12773         command in DESC file.  Execute spooler command with /bin/sh.
12775         * groff/groff.cc: Split Unix-specific parts into...
12776         * groff/pipeline.c: New file.
12778         * LICENSE: Delete.
12779         * COPYING: New file.
12780         * all files: Update copyright notices.
12782         * Rearrange files.  Redo Makefiles.  Use autoconf.
12784 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
12786         * troff/input.c (charinfo_to_node_list): Interpret character
12787         definition with escape_char of `\'.
12789 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
12791         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12792         Define INT_DIGITS as big enough for 64-bit integer.
12793         * lib/strtol.c: Don't include lib.h.
12794         * lib/lib.h: Delete ifdef __cplusplus stuff.
12796 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
12798         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
12799         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
12800         get DESC from current directory.
12802 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
12804         * tbl/main.c (main): Always reset the line number when reading
12805         from stdin.
12807         * tbl/table.c (table::print_single_hline, table::print_double_hline,
12808         table::define_bottom_macro, table::do_row, table::do_top): Round
12809         vertical spacing up to vertical resolution.
12811 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
12813         * ps/ps.h (enum resource_type): Avoid comma at end of
12814         enumerator-list.
12815         * dvi/dvi.c (class dvi_printer): Likewise.
12816         * dvi/tfmtodit.c (gf::load): Likewise.
12817         * refer/label.y (struct expression): Likewise.
12818         * refer/refer.c (class label_processing_state): Likewise.
12819         * refer/indxbib.c (do_file): Likewise.
12820         * troff/troff.c (enum warning_type): Likewise.
12821         * tbl/main.c (process_data): Likewise.
12822         * troff/charinfo.h (class charinfo):
12824 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
12826         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
12828 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
12830         * groff.c: Move to new groff subdirectory.
12831         * groff/Makefile: New file.
12832         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12834         * man/mdate.sh: Use ls -L if supported.
12836         * Consolidate all header files produced by gendef into lib/defs.h.
12837         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12838         Don't include path.h.
12839         * lib/Makefile (path.h): Don't generate.
12840         * troff/input.c: Include defs.h. Don't include config.h.
12841         * troff/Makefile (config.h): Don't generate.
12842         * refer/index.h: Don't include suffix.h.
12843         * refer/index.c: Include defs.h.
12844         * refer/indxbib.c: Include defs.h.
12845         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12846         defs.h.
12847         * refer/Makefile (suffix.h, path.h): Don't generate.
12848         * groff.c: Don't include config.h. Include defs.h.
12849         * Makefile (config.h): Don't generate.
12850         (lib/defs.h): Generate.
12851         (topclean): Remove lib/defs.h.
12853 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
12855         * lib/malloc.c, lib/getpagesize.h: Deleted.
12856         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
12857         related stuff.
12858         * lib/Makefile: Delete malloc-related stuff.
12859         * lib/new.c: Workaround COOKIE_BUG if necessary.
12861         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
12862         needed header files directly.
12863         * refer/refer.h: Omit definition of DEFAULT_INDEX.
12864         * Makefile: Include definition of DEFAULT_INDEX in path.h.
12866 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
12868         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12869         argument.
12870         * lib/font (font::load_desc, font::load): Don't split argument of
12871         unknown command.
12872         (font::handle_unknown_font_command): Change type.
12873         * ps/ps.c (ps_font::handle_unknown_font_command,
12874         handle_unknown_desc_command): Change type.
12875         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12877 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
12879         * lib/font.h (font::handle_unknown_font_command): Add file and
12880         line arguments.
12881         * lib/font.c (font::handle_unknown_font_command):
12882         * ps/ps.c (ps_font::handle_unknown_font_command):
12883         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12884         lineno arguments.  Use _with_file_and_line functions for error
12885         reporting.
12887         * lib/fontfile.c (font::unknown_desc_command_handler): New static
12888         data member.
12889         * lib/font.c (font::set_unknown_desc_command_handler): New
12890         function.
12891         (font::load_desc): For unknown commands, call
12892         unknown_desc_command_handler if not null.
12893         * lib/font.h (class font): Declare them.
12894         (FONT_COMMAND_HANDLER): New typedef.
12895         * ps/ps.c (handle_unknown_desc_command): New function.
12896         (main): Set bflag if we had a -b option. Call
12897         font::set_unknown_desc_command_handler.
12898         (broken.h): Don't include.
12899         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
12900         submake 
12901         * ps/devps/Makefile: Add `broken' command to DESC file using
12902         BROKEN_SPOOLER_FLAGS.
12904         * macros/tmac.e ([, ]): Add as synonyms for { and }.
12906         * macros/tmac.e ($p): Only exdent if \$3 > 0.
12908         * macros/tmac.e (@R, @S): New macros.
12909         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12910         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12911         Declare $H, $[0-9], .. macros with @S.
12912         Declare |0, |1, |2, |3 strings with @S.
12914         * macros/tmac.e (@S): Rename to @U.
12916         * macros/tmac.e (@z): Define @b and bp as empty instead of
12917         deleting them,
12919         * macros/tmac.e (@m): Deleted.
12920         (@h): Don't call @m.
12921         (@z): Don't set @m trap.
12923         * macros/tmac.e ($h, $f): Define |z as empty string.
12925         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12926         (@q): Likewise.
12928         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12929         removing them.
12930         ()f): Likewise for * register.
12932         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12933         argument is missing, don't change $R.  Call sr with three
12934         arguments when initializing.
12936 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
12938         * macros/tmac.e (sr): New macro.
12939         Initialize $r and $R using sr.
12941         * macros/tmac.e (,): Delete \*(#[.
12943         * troff/env.c (set_tabs): Read the tab type even if the position
12944         is bad.  Allow the position of the first tab stop to be negative.
12946 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
12948         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12949         _POSIX_VERSION.
12950         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12951         rather than -DPATHCONF_MISSING.
12952         * Makefile: Get rid of PATHCONF_MISSING.
12954         * refer/map.c: New file.
12955         * refer/index.c: Interface to mmap through map.c.  Rename map_size
12956         to map_len.
12957         * refer/Makefile: Handle map.c.
12958         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12960 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
12962         * Makefile: RANLIB should be `true' if there is no ranlib.
12963         * lib/Makefile (libgroff.a): Simplify.
12964         * driver/Makefile (libdriver.a): Simplify.
12966         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12967         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
12968         defined.
12970 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
12972         * troff/env.c (compare_ranges): Declare as extern "C".
12974         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12976         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12978 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
12980         * pic/troff.c (troff_output::text): Merge in grops_output::text,
12981         but conditionalize use of \X based on \*(.T.
12982         (grops_output::*): Deleted.
12983         * pic/output.h: Delete declaration of make_grops_output.
12984         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
12985         by default. -n sets it to 0.
12986         (usage): Corresponding changes.
12987         * groff.c (main): Don't pass -x or -p to pic.
12988         * groff.sh: Likewise.
12990         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12991         to be non-zero.
12993         * ps/devps/afmtodit: Change calculation of asc_boundary and
12994         desc_boundary.  Make these bounds inclusive.
12995         * ps/devps: Regenerate font files.
12997 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
12999         * macros/tmac.latin1: New file.
13000         * macros/tmac.tty-char: Use tmac.latin1.
13001         (tmac.tty-tr): Deleted.
13002         * macros/Makefile: Install tmac.latin1.
13003         * macros/tmac.dvi: Use tmac.latin1.
13004         * macros/troffrc: Translate \[char160] onto no-break space here.
13005         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13007 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
13009         * macros/tmac.Xps: Use `do' request.
13011         * macros/tmac.ps: Use `do' request.
13013         * macros/tmac.e (@C): Use `do' request.
13015         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13016         * macros/Makefile: Install tmac.X*.
13018         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13019         * tty/Makefile: Don't install tmac.tty*.
13020         * macros/Makefile: Install tmac.tty*.
13022         * dvi/tmac.dvi: Move to macros.
13023         * dvi/Makefile: Don't install tmac.dvi.
13024         * macros/Makefile: Install tmac.dvi.
13026         * ps/tmac.ps*: Move to macros.
13027         * ps/Makefile: Don't install tmac.ps*.
13028         * macros/Makefile: Install tmac.ps*.
13030         * eqn/box.c: Provide draw_lines parameter corresponding to -D
13031         option.
13032         * macros/eqnrc: Set draw_lines parameter based on device.
13033         * groff.c: Don't pass -D flag to eqn.
13034         * groff.sh: Likewise.
13035         * eqn/main.c: Warn about use of -D.
13037         * troff/input.c (process_startup_file): New function.
13038         (main): Call process_startup_file().
13039         * macros/troffrc: New file.
13040         * macros/Makefile: Install troffrc.
13041         * groff.c (main): Don't pass extra -m option to troff. For a 
13042         pseudo device pass the name of the pseudo device to troff using
13043         -d.
13044         * groff.sh: Likewise.
13045         * groff.c (possible_command::prepend_arg): Deleted.
13047         * troff/input.c (do_request): New function.
13048         (init_input_requests): Bind "do" to do_request.
13050         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13051         load eqnrc from macro directory.
13052         * macros/eqnrc: New file.
13053         * macros/Makefile: Install eqnrc.
13054         * ps/devps/eqnchar: Deleted.
13055         * ps/devps/Makefile: Don't install eqnchar.
13056         * dvi/devdvi/eqnchar: Deleted.
13057         * dvi/devdvi/Makefile: Don't install eqnchar.
13058         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13059         variable optM.
13061         * lib/device.[ch]: New files.
13062         * lib/font.h (font::set_device_name, font::get_device_name):
13063         Deleted.
13064         * lib/fontfile.c: Use device.h.
13065         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13066         * troff/input.c: Delete definition of `device'.
13067         (main): Don't initialize device.
13068         * troff/troff.h: Include device.h rather than declaring device.
13069         * troff/Makefile: No need to handle DEVICE.
13070         * driver/input.c: Include device.h. Don't use
13071         font::{set,get}_device_name.
13072         * groff.c, Makefile: Rename device.h to config.h.
13073         * groff.c: Use library device variable.
13074         * eqn/main.c: Use library device variable.
13075         * eqn/Makefile: No need to handle DEVICE.
13077         * lib/searchpath.[ch]: New files.
13078         * lib/Makefile: Handle searchpath.[ch].
13079         * troff/input.c (open_file, init_dirs): Deleted.
13080         (macro_dirs): Deleted.
13081         (open_mac_file, macro_source): Use class search_path.
13082         (add_string, struct string_list): Move definition.
13083         (main): Change -M option to use macro_path. Delete call to
13084         init_dirs().
13085         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13086         Rewrite to use class search_path.
13087         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13088         * lib/Makefile: fontfile.c depends on searchpath.h.
13089         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13090         MACROPATH.
13091         * lib/macropath.[ch]: New files.
13092         * troff/Makefile: No need to handle MACROPATH.
13094         * troff/input.c: Delete DUMP code.
13095         * lib/fontfile.c, lib/font.h: Delete
13096         font::forget_command_line_font_dirs.
13098         * troff/input.c (push_token): New function.
13099         (handle_first_page_transition): Use push_token().
13100         (process_input_stack): Change handling of a space at the beginning
13101         of the line.
13103 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
13105         * troff/input.c (font_dirs): Delete unused variable.
13107         * eqn/lex.c (do_set): Correct error messages.
13109 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
13111         * troff/input.c (do_define_string): Allow the string name to be
13112         followed immediately by a tab.
13113         (define_character): Likewise.
13115 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
13117         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13118         be negative.
13120         * troff/input.c (input_iterator::is_file): New virtual function.
13121         (file_iterator::is_file): New function.
13122         (input_stack::end_file): New function.
13123         (input_stack::next_file): Handle the situation where there is no
13124         file on the input stack correctly.  Avoid making two passes over
13125         the input stack.
13126         (next_file): Make the filename optional; in this case call
13127         input_stack::end_file().
13129 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
13131         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13132         produce a real _ charater when the current font is CW and _
13133         otherwise.
13135         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13136         expression to work around gcc 2.2 bug.
13138 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
13140         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13142         * troff/env.c (environment::add_padding): New function.
13143         (environment::add_char): Use add_padding().
13144         (environment::space): Likewise.
13145         (environment::wrap_up_field): Add some padding if there is none
13146         and there's no current tab.
13147         * troff/env.h: Declare environment::add_padding.
13149 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
13151         * pic/pic.y: undef fmod and rand before declaring them.
13153 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
13155         * troff/input.c (main): If the DESC file specifies a font name of
13156         0, then leave the corresponding font position empty.
13158         * nroff.sh: New file.
13159         * Makefile (install.nobin): Install nroff.sh.
13161         * tty/devlatin1/R.proto: Add ao as synonym for de.
13162         * tty/tmac.tty-char: Define ao as o.
13164         * tty/dev{ascii,latin1}/R.proto: Add aq.
13165         * tty/tmac.tty-char: Delete definition of aq.
13167 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
13169         * troff/input.c (init_charset_table): Don't translate 0240.
13170         * ps/tmac.ps: Translate char160 to space.
13171         * dvi/tmac.dvi: Likewise.
13172         * tty/tmac.tty: Likewise.
13174 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
13176         * dvi/tmac.dvi: Add support for all Latin-1 characters.
13178         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13179         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13180         \(oe, \(r?, \(r!.
13182         * tty/tmac.tty-char: Add \(ah.
13184         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13185         No need to define \(FM and \(!/. Conditionalize all character
13186         definitions.
13188         * ps/devps/lgreekmap: Add +h, +f, +p.
13190         * ps/tmac.psnew: New file.
13191         * ps/Makefile: Install tmac.psnew.
13193         * troff/input.c (charinfo_to_node_list): Don't ever interpret
13194         character definitions in compatible mode.
13196         * troff/input.c (remove_character): New function.
13197         (init_input_requests): Bind remove_character to "rchar".
13199         * ps/tmac.psold: New file.
13200         * ps/Makefile: Install tmac.psold.
13201         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13202         characters into tmac.psold.  Make these definitions unconditional.
13204         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13206         * ps/tmac.ps: Don't define \('c and \('C.
13208         * ps/devps/textmap: Move Greek characters to...
13209         * ps/devps/symbolchars:
13211 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
13213         * ps/devps/text.enc: Add quotesingle.
13214         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13215         * tty/tmac.tty-char: Likewise.
13216         * dvi/devdvi/texmi.map: Add +h, +f, +p.
13217         * dvi/devdvi/texi.map: Add Fn.
13218         * dvi/devdvi/msam.map: Add lz.
13219         * dvi/tmac.dvi: Handle Bq, bq, aq.
13221         * pic/lex.c (get_token): Recognize 'th.
13222         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13224 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
13226         * ps/devps/textmap: Move di, mu, +- to...
13227         * ps/devps/symbolchars:
13229         * macros/tmac.s (@XS): Don't call par@reset or fi.
13230         (XA): Call LP. Turn off adjustment. Reduce line length.
13232         * macros/tmac.s: Initially alias XS to LP.
13233         (XS): Rename to @XS.
13234         (cov*ab-init): Alias XS to @XS.
13236 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
13238         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13239         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13240         (token::is_size, token::changes_env): Deleted.
13241         * troff/number.c (parse_term): No need to process \s explicitly.
13242         Call tok.next() only after scale indicator has been processed.
13243         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13244         \f etc explicitly.
13245         (token::next): Handle \s, \f, \S, \H immediately rather than
13246         returning them as tokens.
13247         (token::operator==, token::description, token::add_to_node_list,
13248         token::process): Remove handling of deleted tokens.
13250         * troff/env.c (environment::add_char): When adding padding
13251         indicator character, call start_line() if necessary.
13253 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
13255         * ps/devps/afmtodit: Don't output 0 kerns.
13257         * ps/devps/afmtodit: Remove directory from name of encoding in
13258         font description file.
13260         * ps/devps/afmtodit: Improve error messages.
13262         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13264         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13265         * ps/devps/FontMakefile: Deleted.
13266         * ps/devps/afmname: New file.
13268         * ps/devps/symbol.sed: New file.
13269         * ps/devps/symbol.diff: Deleted.
13270         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13271         Generate zapfdr.afm from zapfd.afm.
13273         * tty/tmac.tty (tty-char): Prefix definition with ".
13275         * macros/tmac.an (TP): Don't start a diversion if one has already
13276         been started.
13278         * tty/tmac.tty-char: Add Latin-1 characters.
13280         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13282 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
13284         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13285         Move declaration of struct horizontal_span.
13287         * tbl/table.c (table::table): Initialize span_list.
13288         (table::~table): Delete span_list.
13290         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13292         * ps/devps/Makefile: Avoid dependency on GNU make.
13294         * ps/tmac.ps: Check that character does not already exist before
13295         defining it.
13297         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13298         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13299         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13300         files.
13302         * tty/tmac.tty-char: New file.
13303         * tty/Makefile: Install tmac.tty-char.
13304         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13305         tmac.tty-char.
13307         * tty/tmac.tty: Fix definition of \(34.
13309         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13310         bracket-drawing characters onto |. Add *o.
13312         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13313         only if current_field.
13315         * troff/dictionary.c (dictionary::lookup): Free old_table after
13316         rehashing. 
13318 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
13320         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13321         whose glyphs are identical to glyphs of some Roman character.
13323         * tty/devlatin1/R.proto (bu): Deleted.
13324         * tty/devascii/R.proto (bu): Deleted.
13325         * tty/tmac.tty: Add definition of \(bu.
13327         * eqn/main.c (do_file): Pass FILE as argument.
13328         (main): Automatically load eqnchar.  New options -F and -n.
13329         Pass do_file an opened FILE.
13330         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13331         No need to include font.h.
13332         * groff.sh: Likewise.  Don't need to use - for standard input.
13333         Prefix files with -- if first file starts with -.
13335         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13337         * troff/env.c (environment::possibly_break_line): Don't set line
13338         to 0 across call to output_line().  Don't call output_line() until
13339         after discarding nodes after break.
13341 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
13343         * request.h (macro::empty): Declare it.
13344         * input.c (macro::empty): New method.
13345         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
13346         macro is empty.
13348 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
13350         * troff/env.c (environment::start_field): Decrement space_total
13351         when a space is frozen.
13353 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
13355         * macros/tmac.an (R): Delete macro.
13357         * troff/input.c (get_copy, token::next): Support \# (like \" but
13358         newline is ignored).
13360         * troff/input.c (token::next): Fix error message in 'Y' case.
13362 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
13364         * eqn/delim.c (define_extensible_string): Recognize any prefix of
13365         a delimiter name.
13367 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
13369         * c++test.c: Include <osfcn.h>.
13371         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13372         <errno.h> doesn't.
13374 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
13376         * tbl/table.c (table::divide_span): Don't count column separation
13377         if expand was specified.
13379         * tbl/main.c (process_format): Don't ignore width specs in
13380         continued format.  Give warning for changing equal widths or
13381         column separation in continued format.
13382         (process_data): Set column separation, minimum width, equal
13383         columns at end of table.
13385 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
13387         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13388         node::add_discretionary_hyphen): Use soft_hyphen_char.
13389         (set_soft_hyphen_char): New function.
13390         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
13392         * Makefile (c++tested): Give more helpful message if test fails.
13394 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
13396         * troff/input.c (init_charset_table): Translate 0240 to
13397         an unbreakable space.
13399         * troff/token.h (token::hyphen_indicator): New function.
13400         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13401         translation.
13402         * troff/input.c (translate): Allow translation to \%.
13403         * troff/node.c (node::add_char): Handle
13404         TRANSLATE_HYPHEN_INDICATOR.     
13405         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13407         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13408         for \(hy.
13410         * tty/devlatin1/R.proto: \(hy and - should print as 055.
13412 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
13414         * groff.c (run_commands): If the last command gets a SIGPIPE send
13415         a SIGPIPE to all children than haven't yet terminated.  When
13416         command terminates, set pid field to -1.
13418 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
13420         * groff.c (main): Pass an appropriate -filename option to gxditview.
13422 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
13424         * Makefile.bd (install): Remove existing program before copying.
13426         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13427         programs which have Unix counterparts to be installed with
13428         user-specified prefix.
13430         * troff/input.c (exit_troff): Don't check if exit_started.
13431         (exit_request): Don't call exit_troff if exit_started.
13433         * Makefile.bd (install.mm): Rename to install.dwbmm.
13435 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13437         * driver/input.c (do_file): Add missing break for '#' case.
13439 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13441         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13442         then add the boundaries back.
13444         * troff/input.c (exit_troff): Return immediately if already
13445         exiting.
13447         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13448         end macro.
13449         (pg*end-page): If the text has ended and there are no more
13450         footnotes or keeps, exit.
13452         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13454         * troff/input.c (init_charset_table): Make \(rq transparent by
13455         default.
13457         * macros/tmac.an: Define lq and rq strings.
13459         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13461 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13463         * troff/env.c (environment::final_break): New function.
13464         (environment::newline): Set prev_line_interrupted to 2 if
13465         exit_started.
13466         * troff/env.h: Declare environment::final_break.
13467         * troff/input.c (exit_troff): Call environment::final_break()
13468         instead of environment::do_break().
13470         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13471         doesn't already exist.
13472         * macros/man.local: New file.
13473         * macros/tmac.an: Load man.local.
13474         * macros/man.ultrix: New file.
13476 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
13478         * troff/input.c (exit_groff): Rename to...
13479         (exit_troff): New function.
13481         * troff/div.c (exit_started, done_end_macro,
13482         seen_last_page_ejector): New global variables.
13483         (began_page_in_end_macro): New static variable.
13484         (exit_flag): Deleted.
13485         (top_level_diversion::top_level_diversion): Initialize
13486         last_page_count.
13487         (top_level_diversion): More elaborate test for whether
13488         cleanup_and_exit() should be called.
13489         Set began_page_in_end_macro if the end macro isn't yet finished.
13490         * troff/div.h (top_level_diversion::last_page_count): New data
13491         member.
13492         (top_level_diversion::set_last_page): New function.
13493         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13494         * troff/env.c (do_break): Zero prev_line_interrupted.
13495         * troff/input.c (exit_flag): Delete declaration.
13496         (LAST_PAGE_EJECTOR): New magic cookie.
13497         (token::next): Handle LAST_PAGE_EJECTOR.
13498         (exit_groff): Set exit_started and done_end_macro instead of
13499         exit_flag.  Call top_level_diversion::set_last_page.  Push a
13500         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
13501         another ejection after setting seen_last_page_ejector.
13503 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13505         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13507         * macros/tmac.e (TH): Make sure there's room for the initial
13508         header.
13510         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13511         Set FVS in points rather than units.
13513 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
13515         * troff/div.c (top_level_diversion::add_trap): Don't consider the
13516         position of empty slots.
13518 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
13520         * ps/devps/S: Fix height and depth of parenrightex.
13521         * ps/devps/symbol.diff: Regenerate.
13523 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
13525         * tmac.e (u): Do underlining as in -mgs.
13527 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
13529         * tty/tty.c (tty_printer::end_page): If overstriking is
13530         suppressed, still turn overstruck horizontal and vertical lines
13531         into +.
13533         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13534         2.1.
13536         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13538 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
13540         * Version 1.05 released.
13542 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
13544         * tty/tty.c: Instead of keeping an array of glyphs and then
13545         sorting it, keep a ordered linked list of glyphs for each line.
13547         * driver/driver.h: Include stddef.h.
13549         * tty/tty.c (compare_glyph):
13550         * refer/refer.c (rcompare):
13551         * troff/env.c (compare_ranges): Arguments of qsort comparison
13552         function should be const void *.
13554         * troff/number.c (parse_term):
13555         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13556         switch statement.
13558         * refer/label.y (consider_authors): Don't access variables
13559         constructed under a condition outside that condition: put braces
13560         round for statement containing declaration; redeclare use of same
13561         variable later.
13563         * pic/pic.y (text_expr): Delete production that allows
13564         parenthesised text_expr.
13565         (expr): Allow a conditional_expr to appear in parentheses.
13566         (conditional_expr): Rename to any_expr.
13568         * mm: Install new version 1.01 from jh.
13570         * lib/font.c (font::get_width): Cache scaled widths.
13571         (font::font): Initialize widths_cache.
13572         (font::~font): Destroy widths_cache.
13573         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13575 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
13577         * c++test.c, c++test.ref: New files.
13578         * Makefile: Check that the C++ compiler works.
13580         * ps/tmac.pspic (PSPIC): Do a break.
13582         * ps/tmac.ps: Move definition of PSPIC into...
13583         * ps/tmac.pspic: New file.
13584         (PSPIC): Draw box around picture, but make it invisible to grops.
13585         * ps/tmac.ps: Load tmac.pspic.
13586         * ps/Makefile: Install tmac.pspic.
13588 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
13590         * lib/font.c (scale_round): If n is negative,
13591         subtract .5 before truncating floating point result.
13593         * lib/fontfile.c: Include <errno.h>.
13595 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
13597         * driver/input.c (get_char): Inline. Don't update current_lineno.
13598         Change callers to up date current_lineno if necessary.
13599         Use get_char() instead of getc(current_file).
13601 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
13603         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13605 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
13607         * tty/tty.c (tmac.tty): Define \(rg as (R).
13609 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
13611         * lib/lib.h: New define a_delete.
13612         * Use a_delete instead of delete when deleting an array of objects
13613         without destructors.
13615         * lib/lib.h: Rename adelete to ad_delete.
13616         * Change uses of adelete.
13618 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
13620         * eqn/eqn.y: Include lib.h.
13622         * troff/node.c (grow_font_table): Delete old_font_table.
13624         * mm: Install new version from jh.
13626 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
13628         * tbl/table.h (format_type): Make global instead of local to class
13629         entry_format.  Prefix enumerators with FORMAT_.
13630         * tbl/table.c, tbl/main.c: Corresponding changes.
13631         * refer/token.h (token_type): Make global.  Prefix enumerators
13632         with TOKEN_.
13633         * refer/token.[ch]: Corresponding changes.
13634         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13636         * troff/div.c (node::set_vertical_size): Don't name argument.
13638 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
13640         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13641         * lib/lib.h: Define adelete accordingly.
13642         * pic/object.c (graphic_object::graphic_object):
13643         * tbl/main.c (format::~format):
13644         * tbl/table.c (table::~table):
13645         * refer/ref.c (reference::~reference, reference::merge,
13646         reference::insert_field, reference::delete_field): Use adelete.
13648         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13649         * refer/token.h:
13650         * tbl/table.h: Corresponding changes.
13652         * common.c (common_output::dashed_arc, common_output::dotted_arc):
13653         Ensure total_angle is positive.
13655 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
13657         * refer/ref.c (reference::merge, reference::insert_field,
13658         reference::delete_field): Avoid delete[0].
13660         * refer/token.c (init_special_chars): Move calls to cmupper
13661         outside calls to init_two_char_letter to work around bug in gcc
13662         2.0.
13664 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
13666         * lib/new.c (operator new): Use __builtin_new for g++.
13668         * pic/object.c (graphic_object::~graphic_object):  Don't use
13669         delete [] on 0.
13671         * pic/object.c (output::compute_scale): Initialize max_width and
13672         max_height.
13674 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
13676         * troff/input.c (write_request): Call fflush.
13678         * troff/node.h (class composite_node): Move declaration to node.c
13679         * troff/input.c (charinfo_to_node): Rename to ...
13680         (charinfo_to_node_list): Return node list rather than composite
13681         node.
13682         * troff/node.c (make_composite_node): New function.
13683         (make_node, add_char): Call make_composite_node instead of
13684         charinfo_to_node.
13685         (class composite_node): Add a tfont * member.  Delete font_size
13686         member.
13687         (composite_node::composite_node, composite_node::copy,
13688         composite_node::size): Corresponding changes.
13689         (composite_node::tprint): Provide constant spacing, emboldening
13690         and track kerning as specified in tfont.
13691         (composite_node::width): Change width calculation accordingly.
13692         * troff/env.h (environment::composite): New member.
13693         (environment::is_composite, environment::set_composite): New
13694         functions.
13695         * troff/env.c (environment::environment): Initialize composite.
13696         * troff/input.c (charinfo_to_node): Call
13697         environment::set_composite.
13698         * troff/node.c (make_composite_node, make_glyph_node): Use the
13699         plain version of the tfont if the environment is composite.
13701         * troff/node.c (font_info::get_space_width): Additional argument
13702         giving space_size.  Handle constant space correctly. Scale by
13703         space_size unless constant spaced.
13704         (env_sentence_space_width): New function.
13705         * troff/node.h: Declare it.
13706         * troff/env.h (environment::get_space_size,
13707         environment::get_sentence_space_size,
13708         environment::get_narrow_space_width,
13709         environment::get_half_narrow_space_width): Make inline.
13710         (environment::get_space_width): Make inline.  Just call
13711         env_space_width.
13712         * troff/env.c: Delete definitions for funtions made inline.
13713         (environment::space_newline, environment::space): Use
13714         env_sentence_space_width(). Don't scale by space_size.
13715         * troff/node.h: Move declarations of env*space_width() functions
13716         into env.h.
13718 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
13720         * macros/tmac.s (PS): Don't try to set negative indent.
13722 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
13724         * pic/pic.y: Fix min function.
13726 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
13728         * man/mdate.sh: Clear LANGUAGE.
13730 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
13732         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13733         * pic/lex.c: New COMMAND keyword.
13734         * pic/pic.y (print_args, print_arg): New rules.
13735         (placeless_element): Use print_args for PRINT.
13736         New COMMAND element.
13738 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
13740         * troff/input.c (terminal): Handle missing argument correctly.
13742         * pic/pic.y (text_expr): New rule.
13744         * pic/pic.y: Implement := operator.
13746 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
13748         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13749         mdoc.
13751 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
13753         * ps/devps/dingbatsrmap: Include this in the distribution.
13755         * macros/tmac.doc: Replace with new version from 2nd Networking
13756         Release. Fix loading of doc-* files.
13757         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13758         * macros/tmac.doc.old: New file.  Apply fixes that had been
13759         applied to old tmac.doc.
13760         * macros/tmac.andoc: Check that we're running under groff.
13761         * macros/Makefile: Rework.
13763 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
13765         * tbl/table.h (format_type): 
13766         * refer/token.h (token_type): If NESTED_TYPES is defined, use
13767         typedef to make these types visible at file scope.
13768         * Makefile: Add NESTED_TYPES configuration option.
13770         * troff/div.c (mark): At the top level use the value of
13771         nl_reg_contents rather than the current vertical position.
13773 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
13775         * tty/tty.c: Implement \D for horizontal or vertical lines.
13776         (tty_printer::set_char): Use vec_used+2 as serial number.
13777         Don't allow size of vector to exceed USHRT_MAX-2.
13778         Split off part into...
13779         (tty_printer::add_char): New function.
13780         (tty_printer::draw): New function.
13781         (compare_glyph): Handle equal serial numbers.
13782         (tty_printer::end_page): Handle overstruck characters from \D.
13783         (main, usage): Implement -d option.
13785 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
13787         * tbl/main.c (process_format):
13788         * eqn/text.c (split_text):
13789         * troff/input.c (token::next): Use inner block for declarations
13790         with initializers in switch statement.
13792 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
13794         * pic/common.c (common_output::dash_line): Cope with zero-length
13795         lines.
13797 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
13799         * Version 1.04 released.
13801 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
13803         * macros/tmac.an (TH): Define a macro an-init to define variables
13804         based on command line arguments.
13805         (an-header): Call it.
13807 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
13809         * Makefile (install.mm): Rename to install.dwbmm.
13811         * Makefile: Integrate mm.
13812         * mm: New directory.
13814 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
13816         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13817         <sys/types.h>.
13819         * pic/troff.c (troff_output::simple_spline,
13820         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13821         shadowing parameter.
13823         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13825         * lib/ptable.h: Add explicit casts when converting from unsigned
13826         long to unsigned.
13828         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13829         * dvi/devdvi/Makefile: Install SA, SB.
13831         * refer/indxbib.c: Add declaration of mktemp.
13833         * refer/lookbib.c: Add declaration of isatty.
13835 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
13837         * pic/lex.c (interpolate_macro_with_args):  While collecting
13838         arguments, keep track of whether we're in a string.
13840 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
13842         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13843         down with \v, so as to avoid problems with top of page trap
13844         setting no space mode.
13846 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
13848         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13850 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
13852         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13853         Improve error message.
13855 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
13857         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13858         printf("%03o");
13860 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
13862         * groff.c (possible_command::execp): Always use _exit() after a
13863         failed exec.
13865         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13866         NO_SYS_WAIT_H   configuration options.
13867         * groff.c: Use these options.  Use POSIX-style macros to extract
13868         fields from the status returned by wait().
13870 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
13872         * tbl/table.c (table::compute_separation_factor): Allow the
13873         separation factor to drop to 0.
13875 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
13877         * refer/search.c: Include <errno.h>.
13879 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
13881         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13883         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13884         C++. 
13886         * pic/lex.c (input_stack::bol): Move definition out of class body.
13888         * pic/main.c: On MSDOS munge argv[0].
13890         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13892         * lib/ptable.c (hash_string): Use unsigned long rather than
13893         unsigned.
13894         (next_ptable_size): Use unsigned rather than int.  Give an error
13895         message if we've hit the largest table size.
13896         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
13897         table size.
13899         * pic/object.h (object_spec): Make flags unsigned long.  Declare
13900         flags as const unisgned long rather than as enums.
13902         * pic/output.c: Deleted.
13904         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13906         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13907         Add additional argument.
13908         (line_entry::note_double_vrule_on_{left,right}): Set value of
13909         douvle_vrule_on_{right,left} flag according to argument.
13910         (simple_line_entry::simple_print,
13911         simple_line_entry::double_line_print): If adjacent to double vrule
13912         on a corner extend rather than shorten the rule by half the double
13913         vrule sep.
13915         * troff/number.c (parse_term): In checking for overflow, handle the
13916         case where the current horizontal position is negative.
13918 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
13920         * pic/object.c (draw_arrow): Check for object having zero length.
13922 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
13924         * eqn/main.c (do_file): Split off inline equation handling into...
13925         (inline_equation): New function.  Search for starting delimiter
13926         using...
13927         (delim_search): New function. Don't recognize a delimiter that
13928         occurs in the name of an escape sequence, number register, string
13929         etc.
13931 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
13933         * eqn/delim.c (delim_box::compute_metrics): Don't call
13934         define_extensible_string if left is 0.
13935         (delim_box::output):  Don't print the left delimiter if left is 0.
13936         (delim_box::debug_print): Check for left == 0 before calling printf.
13938 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
13940         * troff/Makefile (majorminor.c): Include only digits in
13941         minor_version.
13943 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
13945         * refer/dirnamemax.c: new file.
13946         * refer/genlimits.c: Deleted.
13947         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13948         Don't check path length.
13949         * refer/Makefile: Add dir_name_max.o; delete genlimits.
13950         * Makefile: Add PATHCONF_MISSING option.
13952         * refer/indxbib.c (get_cwd): New function.
13953         (main): Use get_cwd().
13954         * lib/getcwd.c: New file.
13955         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13956         GETCWD in SUBFLAGS.
13957         * lib/Makefile: Compile getcwd.o.
13959         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13960         userdict.
13962         * refer/indxbib.c (main): Check success of mktemp.
13964         * lib/tmpfile.c: New file.
13965         * lib/Makefile: Add tmpfile.c.
13966         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13967         * ps/ps.h: Delete declaration of mktemp().
13968         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13969         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13970         * driver/driver.h: No need now to include errno.h.
13972         * everywhere: Set errno to 0 before calling fopen().
13974         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13975         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13976         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13978 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
13980         * troff/env.h (translate_space_to_dummy): Declare it.
13981         * troff/env.c (environment::space_newline, environment::space):
13982         If translate_space_to_dummy is set then make the width of spaces 0.
13983         * troff/input.c (translate): If the second character of a
13984         translation is a space, translate to unbreakable space.  If the
13985         first character is a space, set or clear translate_space_to_dummy
13986         according to whether the second character is \&.  Weird!
13988 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
13990         * groff.c (run_commands): Don't use non-zero exit code because a
13991         command gets SIGPIPE.
13993         * groff.c, groff.sh: Use -mXps with -TXps.
13995         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13996         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13997         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13998         (ps_printer::special): New specials invis and endinvis.
13999         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14000         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
14001         (ps_printer::end_page): Check that invis_count == 0.
14002         (ps_printer::invis_count): New member.
14003         (ps_printer::ps_printer): Initialize invis_count to 0.
14005         * troff/env.c (environment::hyphenate_line): Hyphenation
14006         indicator at beginning of word inhibits splitting after -, \(em
14007         etc.
14009         * pic/pic.y (element): Allow another element to follow } without
14010         any intervening separator.
14012 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
14014         * pic/lex.c (get_delimited): Allow tabs before delimiter.
14016 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
14018         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
14019         declaration of wait() in header files.
14020         * Makefile: Get rid of -DHAVE_UNION_WAIT.
14022         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14024         * lib/lib.h: Declare return type of strerror as char *.
14026         * man/Makefile: Add g flag to sed substitutions.
14027         * Makefile (shgroff, bindist): Likewise.
14029 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
14031         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14032         * ps/devps/prologue (PBEGIN): Define showpage after pushing
14033         userdict.
14035 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
14037         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14038         userdict.
14040 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14042         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14043         group.
14045 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14047         * troff/input.c (define_number_reg):  If currently undefined,
14048         don't define it if the argument is an invalid expression.
14050         * Makefile: Ignore return value of `if' commands without `else'
14051         parts.
14053         * Makefile: Split up CPPDEFINES into a series of separate
14054         configuration options.
14056         * troff/input.c (init_registers): Use time_t instead of long
14057         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14058         than passing pointer.
14059         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14061         * lib/Makefile (fontpath.h): Use gendef.
14063 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
14065         * troff/input.c (input_iterator::shift): Delete argument name.
14066         * troff/node.c (suppress_output_file::really_begin_page,
14067         suppress_output_file::really_transparent_char, node::ascii_print,
14068         node::tprint): Delete names of unused arguments.
14070 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
14072         * refer/label.y (string):  Pass $4 to command_error.
14074 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
14076         * Version 1.03 released.
14078 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
14080         * Makefile: Pass definition of SHELL in SUBFLAGS.
14082         * gendef: New file.
14083         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14084         ps/Makefile: Use gendef to construct header files that are
14085         constructed from the Makefile.
14087         * macros/Makefile: make all should build stripped version of tmac.e.
14089         * refer/Makefile (clean): Remove y.output.
14091 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
14093         * ps/pfbtops.c (main): Add -v option which prints out a version
14094         number.
14095         * ps/Makefile (pfbtops): Link with libgroff.a.
14097 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
14099         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14100         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14102         * refer/lkbib.c (main): Always terminate reference with blank
14103         line.
14104         * refer/lookbib.c (main): Likewise.
14106         * refer/linear.c (file_buffer::load): Check that the file is not a
14107         binary file.
14109         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14110         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14111         Delete second inclusion of <sys/param.h>.
14113 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
14115         * troff/token.h (token::special): Deleted.
14117         * tbl/main.c (process_format): Rework so that opt->tab_char is
14118         recognized only when appropriate.
14120         * ps/Makefile (clean): Remove pfbtops.
14122 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
14124         * lib/font.c (text_file::next): Don't return if we have got a
14125         blank line.
14127 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
14129         * refer/refer.c (store_reference): Get hash code from old_table[i]
14130         when rehashing the table.
14132 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
14134         * eqn/box.c (box::top_level): Save size and prev size using \R and
14135         restore it afterwards. Set the size to the size at the beginning
14136         of the line.
14137         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14138         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14140         * refer/Makefile (limits.h): Use ./genlimits.
14142 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
14144         * refer/index.c: Delete declarations of stat() and fstat().
14146 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
14148         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14150 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
14152         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14154 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
14156         * troff/input.c (token::get_char): Handle \e.
14158         * refer/linear.c: Delete declarations of fstat() and stat().
14160 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
14162         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14163         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14165 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
14167         * troff/input.c (do_define_macro): Improve error handling for end
14168         of file while defining macro.
14170 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
14172         * eqn/box.h: Fix declaration of set_gsize.
14173         * eqn/box.c (set_gsize): Make argument const char *.
14174         (gsize): Declare as char *.
14175         * eqn/main.c (main): Don't convert gsize to int.
14176         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14178         * Version 1.02 released.
14180 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
14182         * macros/tmac.andoc: New file.
14183         * macros/Makefile: Install tmac.andoc.
14185         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14186         operator new and delete on OP_DELETE_BROKEN not being defined.
14187         * Makefile: Mention OP_DELETE_BROKEN.
14189 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
14191         * Makefile (bindist): Pass SUBFLAGS.
14193 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
14195         * Makefile, groff.c: Pass definitions to groff.c via device.h.
14197         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14198         parameter.
14200         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14202         * ps/ps.h, ps/psrm.c: Make comment_table and
14203         header_comment_table local to resource_manager::process_file.
14205         * groff.sh: With -TXps pass -printCommand option to gxditview.
14207         * groff.c (possible_command::print): Implement using
14208         append_arg_to_string.
14210         * xditview: Merge in new implementation with own ChangeLog.
14212 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
14214         * groff.c (main): Implement PRINT_OPTION.
14215         (append_arg_to_string): New command.
14216         (device_table): Set PRINT_OPTION flag for Xps.
14218 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
14220         * troff/groff.h: Rename to troff.h.
14222         * pic/lex.c (lookup_keyword, docmp): New functions.
14223         (get_token): Use new lookup_keyword.
14224         Don't include key.h.
14225         * pic/key.[ch], pic/pic.gperf: Deleted.
14226         * pic/Makefile: Remove gperf stuff.
14228         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14229         into output.h.
14230         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14232         * troff/Makefile, troff/node.c: Move definition of
14233         STORE_WIDTH into node.c.
14235         * etc/grog.pl, etc/grog.sh: Support -mdoc.
14237 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
14239         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14240         dvi/devdvi/texb.map: Add lq and rq.
14241         dvi/devdvi: Regenerate fonts.
14242         * ps/devps/textmap: Add lq and rq.
14243         * ps/devps: Regenerate fonts.
14244         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14245         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14247         * pic/object.c (position_rectangle): When checking radius
14248         cope with possiblity that width or height is negative.
14249         (box_object::box_object): Have separate xrad and yrad with
14250         signs matching signs of dim components.
14251         (box_object::{north,south}_{east,west}): Use xrad and yrad.
14252         (box_object::print): With rounded boxes use absolute values
14253         for dim and rad arguments.
14255         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14256         in fontpath.h.
14258         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14260         * various files: Add explicit destructors to keep Saber CC +d
14261         happy.
14263 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
14265         * eqn/box.c (box::top_level): Restore fonts correctly after
14266         font changes in line containing inline equation.  Also
14267         restore previous font as well as current font.
14268         * eqn/pbox.h: Define necessary string and register names.
14270         * troff/input.c (token::next): Case 'R' calls do_register.
14271         (do_register): New function.
14273 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
14275         * groff.c, groff.sh: Support Xps device.  Allow each device
14276         to have a pseudo_name and a real_name.
14278         * groff.c (run_commands): Don't print `Broken pipe' messages.
14280         * ps/pfbtops.c: New file.
14281         * ps/Makefile: Add pfbtops.
14283         * troff/number.c (parse_term): Improved error message.
14285 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
14287         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14289         * Makefile: Integrate refer.
14290         * refer: New directory.
14291         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14292         man/lkbib.man: New files.
14293         * man/Makefile: Support refer man pages.
14295         * lib/lib.h: Declare is_prime.
14296         * lib/prime.c: New file.
14298         * troff/input.c (macro_source): New function.
14299         (init_input_requests): Bind "mso" to macro_source.
14301         * troff/env.c (environment::possibly_break_line): Maintain
14302         pointer to pointer to node to be split in ndp so as to avoid
14303         using address of freed node.
14305         * troff/env.c (environment::hyphenate_line): Maintain pointer to
14306         pointer to first node to be hyphenated in startp so as to
14307         avoid using address of freed node.
14309         * troff/env.c (class trie, class hyphen_trie): Make the
14310         elements of the trie be of type char not unsigned char.
14311         Declare arguments to be const char* instead of unsigned char *.
14312         
14313         * troff/env.c (hyphenate): Initialize hbuf[0].
14315         * troff/input.c (set_string): Declare p to be char * and cast
14316         *p to unsigned char when necessary.
14318         * troff/input.c (do_define_macro): Declare s to be const
14319         char*. Cast element to unisgned char when necessary, Declare
14320         d to be an int.  Handle EOF better.
14322         * troff/Makefile, troff/input.c: Different scheme for passing
14323         definitions of MACROPATH, HYPHENFILE and DEVICE.
14325 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
14327         * tty/devascii/R.proto: Delete entry for em.
14328         * tty/devlatin1/R.proto: Likewise.
14330 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
14332         * troff/input.c (translate): Stop when we get a space. Treat eof
14333         like newline.
14335         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14337 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
14339         * tbl/main.c (process_format): A font name following a `f'
14340         modifier that starts with a digit can be only one character long.
14341         Also deal with EOF on the second character of the font name.
14343 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
14345         * troff/input.c (token::next): Turn \~ into an
14346         unbreakable_space_node.
14347         * troff/node.c (unbreakable_space_node): New class.
14348         * troff/node.h: Declare it.
14350 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
14352         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
14353         it's >= 0, before outputting it as a single byte.
14355 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
14357         * lib/font.c: Make font_char_metric::code an int.
14358         (font::get_code): Change return type to int.
14359         (font::load): Allow code to be arbitrary integer.
14360         * lib/font.h (font::get_code): Change return type to int.
14361         (font::number_to_index): Change argument type to int.
14362         * troff/input.c (token::next):  In case 'N', allow any value.
14363         Store value in token::val.
14364         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14365         (token::get_char, token::add_to_node_list, token::process): Get
14366         number from val.
14367         (charinfo::set_number): Change argument to int.
14368         (charinfo::get_number):  Require that NUMBERED flag be set.
14369         (get_charinfo_by_number): Store numbered characters not between 0
14370         and 255 in a dictionary.
14371         * troff/charinfo.h (get_charinfo_by_number): Change argument type
14372         to int.
14373         (charinfo::number): Change type to int.
14374         (charinfo::set_number): Change type of set_number to int.
14375         * troff/node.c (troff_output_file::put_char_width,
14376         troff_output_file::put_char): Test whether character is numbered
14377         using charinfo::numbered().
14378         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14379         values of num.
14380         * lib/nametoindex.c: New implementation to cope with arbitrary
14381         number characters.
14383         * troff/input.c (token::operator==): Test val for
14384         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14385         TOKEN_SIZE.
14387         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14388         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
14390 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
14392         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
14393         variable.
14395         * all Makefiles: rm targets of cp and >.
14397         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14398         it.
14400         * eqn/lex.c (def_table): Add dollar.
14402 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
14404         * troff/input.c (do_width): Push back newline before closing delim
14405         like do_bracket.
14407 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
14409         * groff.c (possible_command::prepend_arg): New function.
14410         (main): Prepend device -m option.
14411         * groff.sh: Put device -m options before command-line options.
14413 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
14415         * macros/tmac.an (IP): Quote argument to TP.
14417         * ps/ps.c (main): New option -b, which sets...
14418         (broken_flags): New variable.
14419         (ps_printer::~ps_printer): Incorporate the setup section in the
14420         prolog if (broken_flags & NO_SETUP_SECTION).
14421         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14422         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14423         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14424         ps_printer::print_needed_font_comment,
14425         ps_printer::print_supplied_font_comment,
14426         ps_printer::print_include_font_comments,
14427         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14428         ps_printer::read_download_file, read_document_fonts, add_font,
14429         skip_line, parse_fonts_arg, document_font::document_font,
14430         document_font::~document_font, document_font::download,
14431         ps_output::include_file):  Deleted.
14432         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14433         rather than %!PS-Adobe-2.0.  Make calls to
14434         resource_manager::need_font for each font that we used. Replace
14435         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14436         print_supplied_font_comment, print_needed_font_comment by call to
14437         resource_manager::print_header_comments. Output %%Orientation
14438         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14439         Don't output the prolog directly.  Instead call
14440         resource_manager::output_prolog.  Only define #copies when ncopies
14441         > 1.  Delete calls to print_include_font_comments  and
14442         download_fonts.  Add call to resource_manager::document_setup.
14443         (ps_printer::do_file): Call resource_manager::import_file instead
14444         of including it ourselves.
14445         (ps_printer::do_import): Likewise.  Also don't call
14446         merge_import_fonts. Push userdict on the dictionary stack before
14447         and pop it afterwards.
14448         Move declaration of ps_output into ps.h.
14449         * ps/psrm.c: New file implementing resource_manager class.
14450         * ps/ps.h: New file declaring ps_output and resource_manager
14451         classes.
14452         * ps/devps/zapfdr.ps:
14453         * ps/devps/symbolsl.ps:
14454         * ps/devps/prologue:  Use 3.0 conventions.
14455         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14456         Add default definition of BROKEN_SPOOLER_FLAGS.
14457         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14458         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14460 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14462         * etc/grog.pl: New file.
14463         * Makefile (GROG): New variable.
14464         Add GROG to SUBFLAGS.
14465         * etc/Makefile (GROG): New variable.
14466         (install.nobin): Install $(GROG) rather than grog.sh.
14468 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14470         * eqn/special.c (special_box::compute_metrics): Make the input and
14471         output strings the same.  Get the new height and depth from the
14472         predefined height and depth registers.  Also make subscript kern
14473         and skew available.
14474         (special_box::compute_subscript_kern, special_box::compute_skew):
14475         New functions.
14477         * eqn/box.c (pointer_box::compute_skew,
14478         simple_box::compute_metrics, box::top_level)
14479         * eqn/text.c (prime_box::compute_metrics,
14480         prime_box::comput_subscript_kern)
14481         * eqn/limit.c (limit_box::compute_metrics):
14482         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14483         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14484         negative numbers in `nr' requests with a leading 0.
14486 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
14488         * eqn/special.c: New file.
14489         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
14490         Add new rule for simple.
14491         * eqn/lex.c (token_table): Add SPECIAL.
14492         * eqn/box.h: Declare make_special_box.
14493         * eqn/Makefile: Add special.[co].
14495 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
14497         * ps/devps/prologue: Possibly set packing to true while defining.
14498         Create grops dictionary here.  Initialize local variables before
14499         defining procedures.
14500         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14501         the dictionary stack. Set strokeadjust and overprint to false if
14502         the relevant operators are defined.
14503         (PEND): New procedure.
14504         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14505         prologue.  Do everything else in the setup section.
14506         (ps_printer::do_import): Just call PBEGIN and PEND around the
14507         picture. Also push userdict before, and pop it afterwards.
14509 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
14511         * troff/node.c (bracket_node::tprint): Brackets were being printed
14512         1m too low.
14514         * macros/tmac.an (SH, SS): Set fill mode.
14516 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
14518         * troff/div.c (top_level_diversion::begin_page): Set
14519         high_water_mark to 0.
14521 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
14523         * man/mdate.sh: New file.
14524         * man/mdate.c: Deleted.
14525         * man/Makefile: Use mdate.sh instead of mdate.
14526         (mdate): Deleted.
14528         * eqn/lex.c (do_gsize): Supply missing argument to error message.
14530 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
14532         * man/mdate.c: New file.
14533         * man/*.man: Replace modification date by @MDATE@.
14534         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14535         (mdate): New target.
14537         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14538         Remove illegal input characters.
14540 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
14542         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14544 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
14546         * troff/div.c (begin_page): Change behaviour when
14547         !first_page_begun and !break_flag.
14549         * troff/input.c (do_name_test): Return 0 if argument is empty.
14551         * troff/input.c (read_long_escape_name): Require closing ] to be
14552         at same input level as opening [.
14554         * troff/input.c (read_increment_and_escape_name): New function.
14555         (get_copy, process_input_stack): Use this for \n.
14557 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
14559         * troff/div.c (top_level_diversion::begin_page): Ignore the
14560         current value of page_number if !first_page_begun.
14562         * groff.c (main): Fix declaration of buf.
14564         * troff/input.c (do_name_test): New function.
14565         (token::next): Implement \A.
14566         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14567         (token::description, token::add_to_node_list, token::process):
14568         Handle TOKEN_ESCAPE.
14569         * troff/token.h: New token TOKEN_ESCAPE.
14571 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
14573         * pic/main.c (do_picture): Allow space before and after filename
14574         following `<'.  Check that the filename is not empty.
14576 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
14578         * Version 1.01 released. 
14580         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14582         * dvi/tmac.dvi: ftr HR to H.
14584         * macros/tmac.e: Round up computation of $r.
14586         * xditview/tmac.X:  Don't give up completely in compatibility mode.
14587         Use \n(.s instead of \n[.s].
14589         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14590         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14591         Add u to factors inside \s[...]. Rename frac to dvi-frac.
14592         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14593         short names in the char definitions.
14595         * ps/tmac.ps: Don't give up completely in compatibility mode.
14596         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14597         quote in front of \n(.s. Add u to factors inside \s[...].
14599 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
14601         * tty/tmac.tty: Call the nroff request.
14603         * macros/tmac.e ((x, )x):  Better definitions that work properly
14604         in a diversion.
14605         (@0, @1): Helper macros for (x.
14607         * macros/tmac.e ($s, hl): Use \l rather than \D.
14609         * tty/tmac.tty: Make it work better in compatibility mode.
14610         (pchar): Rename to tty-char.
14612         * macros/tmac.e (@E): New macro.
14613         (r, i, b, rb, bi): Use @E.
14615         * macros/tmac.e (@F): Don't use (;...) syntax.
14617         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
14618         it was modified for groff.
14620         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14622         * macros/tmac.e (<., .>): Removed.
14623         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14625         * macros/tmac.e: Remove check that groff is being used.
14627         * macros/tmac.e (@C): Change families only if using groff; turn
14628         compatibility mode off while changing familes. Save compatibility
14629         mode before changing families and restore it afterwards.
14631         * macros/tmac.e (@h): Remove test for offset + line length.
14633         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
14634         (lo, th, ac): Define to call @S instead of using als.
14636         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14637         the ratio of the vertical spacing to the point size in units
14638         expressed as a percentage.  Use these instead of $10r and $10R,
14639         Delete $10r and $10R.
14641         * lib/font.c (font::load): In default computation of space_width,
14642         divide by sizescale.  Use scale_round.
14644         * macros/tmac.an (TP): Don't call `nf'.
14645         (an-do-tag): Don't call `fi'.
14647 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
14649         * troff/input.c (process_input_stack): Handle the case where
14650         spaces at the beginning of an input line are followed by a
14651         newline.
14653 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
14655         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14656         * groff.sh: Use pic -x with the dvi device.
14658         * dvi/devdvi/FontMakefile (H): Don't use -s.
14660         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14661         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14662         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14663         in FONTS.
14665 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
14667         * ps/psfig.diff: New file.
14668         * ps/tmac.psfig: New file.
14670 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
14672         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14673         (]-): Don't call ref*do-tl.
14675         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14677         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14678         (fn@do-FS): Rename to fn*do-FS.
14680         * troff/input.c (transparent_translate): New function.
14681         (process_input_stack): Apply transparent_translate before calling
14682         diversion::transparent_output(unsigned char).
14684 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
14686         * troff/input.c (do_define_macro): Define the macro before calling
14687         skip_line.
14689         * xditview/Makefile: Add DEVICES variable.  Change install target
14690         to use this.
14692 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
14694         * groff.c (run_commands): Handle the possibility that there are
14695         child processes other than those forked by us.
14697 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
14699         * lib/string.c (string::append): New function.
14700         * lib/stringclass.h: Declare it.
14702 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
14704         * eqn/main.c (main): New option -N which sets
14705         no_newline_in_delim_flag. 
14706         (do_file): If no_newline_in_delim_flag is set don't allow newlines
14707         in delimiters.
14708         * groff.c (main): Pass -N on to eqn.
14709         (help, synopsis): Mention -N.
14710         * groff.sh: Implement -N.
14712 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
14714         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14715         (]-): Call ref*do-tl if ref*need-tl is non-zero.
14716         (XP): Allow as initializer.
14718 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
14720         * troff/env.c (environment::wrap_up_field): If field_spaces are
14721         non-zero and we have a current_tab, subtract padding from
14722         tab_distance.  If this makes tab_distance <= 0, use the next tab
14723         stop instead.  If there isn't any next tab or it's a left tab,
14724         wrap up the current tab.
14725         (environment::start_field): Initialize tab_precedes_field.
14726         (environment::wrap_up_tab): If there's a current field, update
14727         pre_field_width, field_distance and tab_precedes_field.
14728         * troff/env.h (environment::tab_precedes_field): New member.
14730 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
14732         * ps/ps.c (ps_printer::do_file): New function.
14733         (ps_printer::special): Bind to `file' special.
14734         (ps_printer::do_exec): Set ndefined_styles to 0.
14736 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
14738         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14739         Avoid stripping first character from the start of unrecognized
14740         escapes.  Use lex_error instead of error to report errors.
14741         * eqn/lex.c (get_token): Rework handling of escapes.
14742         (lex_error): Move declaration into...
14743         * eqn/eqn.h.
14745         * xditview/xditview.c (main): Make -page option work.
14747         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14749 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
14751         * macros/tmac.s (B2): Correct size of box.
14753 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
14755         * macros/tmac.s (B2): Postpone drawing the box until in the
14756         top-level diversion.
14758         * tty/tmac.tty: Add font translations for C, CR, CW.
14760         * groff.c (synopsis, help): Document -i.
14761         * groff.sh: Implement -i.
14763         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14764         Simplify the construction of SN.
14766         * troff/number.c (parse_term): Give `|' a higher precedence.
14767         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14768         accordingly.
14770         * macros/tmac.s (B2): Use par@finish instead of par@reset.
14772 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
14774         * lib/string.c (string::move): New function.
14775         * lib/stringclass.h: Declare it.
14777 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
14779         * troff/env.c (distribute_space): Add optional argument
14780         `force_forward'.
14781         (environment::wrap_up_field): Call distribute_space with
14782         `force_forward' argument of 1.
14784 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
14786         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14787         Inline it.  Move reallocation into...
14788         (string::grow1): New function.
14789         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14790         dependencies to include library header files.
14791         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14793 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
14795         * macros/tmac.s (@NH): Use the same number registers than -ms does
14796         for the heading level counters.  Use the same string that -ms does
14797         for the number for this heading.
14799 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
14801         * lib/new.c (operator new): Cast result of malloc to char *.
14803         * troff/input.c (spring_trap, lookup_request): Add assert that nm
14804         is not null.
14806 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
14808         * groff.c (main): Support -i.
14810 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
14812         * pic/pic.h: Include <osfcn.h>.
14814         * ps/ps.c: Add declaration of mktemp.
14816         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14817         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14818         argument as union wait *.
14819         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14820         argument to union wait *.
14822 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
14824         * tty/tmac.tty: Add definition of \(co.
14826         * pic/object.c (make_arc): Only increase radius when radius
14827         strictly less than d.
14828         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14829         more than once.
14831         * troff/env.c (environment::environment(symbol),
14832         environment::environment(const environment *)):  Initialize
14833         input_trap_count.
14835 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
14837         * tbl/main.c (main): Add exit(0).
14839         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14841         * pic/main.c (main):
14842         * eqn/main.c (main):
14843         * tbl/main.c (main):
14844         * etc/soelim.c (main):
14845         * driver/printer.c (printer::~printer):
14846         * troff/node.c (real_output_file::~real_output_file,
14847         real_output_file::flush):  Check for errors on stdout.
14849         * most files: Add 1991 to copyright notice.
14851         * macros/tmac.s: Don't test \n(.x and \n(.y.
14853         * troff/input.c (token::next): Rename `escape_char' label to
14854         `handle_escape_char' and `normal_char' label to
14855         `handle_normal_char'.
14857 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
14859         * groff.c (main, synopsis, help): Support -a option.
14860         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
14861         to trflags while parsing options.
14863 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
14865         * troff/number.c (parse_term): With `m', `M' and `n' scale
14866         indicators, convert scale factor to hunits before scaling.
14868 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
14870         * lib/font.c (scale_round): Better test for overflow when n is
14871         negative.
14873 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
14875         * tbl/main.c (process_format): Add second argument of type
14876         options*. Change callers.  Allow opt->tab_char as well as '\t'
14877         between format items.
14879 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
14881         * macros/tmac.an (PD): With no arguments, make sure register PD is
14882         at least \n[.V].
14883         (TH): Call PD with no argument, instead of setting register PD
14884         directly.
14886 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
14888         * Version 1.00 released.
14890 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
14892         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14894         * dvi/devdvi/DESC: Mount CW instead of CR.
14896         * dvi/tmac.dvi: Add definition of \(tm.
14898         * dvi/devdvi/texsy.map: Add lh, and rh.
14899         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14900         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14902         * dvi/devdvi/FontMakefile: Generate H from cmss10.
14903         * dvi/devdvi/Makefile: Install H.
14904         * dvi/devdvi/H: New file.
14906 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
14908         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14909         be 0.
14911 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
14913         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14915         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14917         * macros/tmac.s (@EN): Handle the case where the equation is empty
14918         but the label is not.
14920 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
14922         * troff/groff.h: New warning category WARN_SPACE.
14923         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14924         WARN_SPACE to warning_table.
14925         (interpolate_macro): Give a warning of type WARN_SPACE if the name
14926         is longer than two characters and is not defined, but the first
14927         two characters do make a defined name.
14929         * PROBLEMS: New file.
14931         * CHANGES: New file.
14932         * README-0.6, README-1.00: Deleted.
14934         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14935         * xditview/devX75/Makefile: Make devX75-12.
14936         * xditview/devX100/Makefile: Make devX100-12.
14938         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14939         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14941 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
14943         * README-0.7: Rename to README-1.00.
14945         * macros/tmac.pic: New file.
14946         * macros/Makefile (install.nobin): Install tmac.pic.
14948 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
14950         * troff/env.c (hyphen_word): Correct the test for whether the
14951         token is a hyphen.  Reset npos to 0.
14953         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14955 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
14957         * macros/tmac.s (ds*common-end): Call par*reset.
14958         (PE): Likewise.
14959         (par@reset-indent): Deleted.
14961         * macros/tmac.s (@IP): Divert the label.
14963 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
14965         * xditview/draw.c (setGC): Use a line width of .1m rather than
14966         .04m by default; round rather than truncate value.
14968         * tbl/table.c (class empty_entry): New class.
14969         (empty_entry::empty_entry, empty_entry::line_type): New functions.
14970         (table::add_entry): Represent empty entries by objects of type
14971         empty_entry.
14972         (table_entry::line_type): Return -1.
14973         (table::determine_row_type): Ignore entries with line_type 0.
14974         Treat type -1 as non-lines.
14976 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
14978         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14979         macros/tmac.s: Rename \(-d to \(Sd.
14981 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
14983         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14984         * xditview/libXdvi/DviChar.c: Likewise.
14985         * dvi/devdvi/texsy.map: Add `<<', `>>'.
14987 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
14989         * troff/div.c (top_level_diversion::begin_page): Call
14990         init_output() if the_output is 0.
14992 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
14994         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14995         ESCAPE_c.
14996         (get_copy): Turn \E into ESCAPE_E.
14997         (token::process, asciify): Handle ESCAPE_E.
14999         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15000         (RD): New macro.
15001         (DS): Implement `.DS R'.
15003 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
15005         * macros/tmac.s (FS): New macro.
15007         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15009         * macros/tmac.s (cov*tl-init): Remove after first execution
15010         instead of aliasing to @nop.  Call top of page macro explicitly
15011         instead of setting trap; call @init first.  Set pg@top as top of
15012         page macro.
15013         (cov*auto-init): Deleted.  Set cov*tl-init instead of
15014         cov*auto-init as top of page trap. 
15015         (TL, LP): Do a break instead of calling cov*tl-init.
15016         (cov*print): With RP format but no TL, alias FS and FE to @FS and
15017         @FE; in this case also give a warning and always start another
15018         page. No need to set pg@top here.
15019         (cov*tl-init): Rename to cov*first-page-init.
15021         * macros/tmac.s (RP): Do `.pn 0'.
15022         (cov*tl-init): With RP format don't do `.pn 0'.
15024         * macros/tmac.s (pg@cs-top): Set no space mode.
15026         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15027         (cov*ab-init): Alias TL, AU and AI to these.
15029 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
15031         * macros/tmac.s (@EQ): Move the space before the equation into @EN
15032         (@EN): Do nothing unless \n[dl] is > 0.
15034 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
15036         * pic/object.c (ellipse_object::radius): New function.
15038         * VERSION: Change version to 0.7.
15040         * tbl/table.c (block_entry::do_divert): Declare return type as
15041         void.
15042         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15044 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15046         * troff/column.c: New file.
15047         * troff/Makefile: Corresponding changes.
15049         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15050         Friend of vunits.
15052         * troff/div.c (top_level_diversion::space): If the space causes
15053         the first-page transition and springs a trap, truncate the space
15054         to 0.
15056 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15058         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15059         the document.
15061         * pic/troff.c (troff_output::line_thickness,
15062         troff_output::set_fill): Do a horizontal motion to compensate for
15063         the width of the \D escape sequence.
15065 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
15067         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15068         (not X75).
15070         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
15071         to printf.
15073         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15074         Supply empty definition.
15075         (text_entry::simple_print, simple_text_entry::simple_print):
15076         Delete declarations.
15077         (table::add_entry): Represent empty entries by objects of type
15078         `simple_entry'.
15080 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
15082         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15084         * tbl/table.c (left_text_entry::add_tab): New function.
15086         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
15087         initialize like LP.
15089 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
15091         * troff/env.c (environment::start_field): Give an error message if
15092         there is no next tab.
15094 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
15096         * troff/env.c (hyphenate): Skip initial elements with zero
15097         hyphenation code.
15099         * macros/tmac.s (par@init): Keep VS in points rather than units.
15101 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
15103         * pic/main.c (main): Implement `-c' option.
15104         * pic/output.h: Declare make_tpic_output().
15105         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15106         protected.
15107         (tpic_output): New class.
15108         (tpic_output::tpic_output, tpic_output::set_pen_size,
15109         tpic_output::command, make_tpic_output): New functions.
15111 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
15113         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
15114         if they're not already defined.
15115         * tbl/table.c (init_output): Don't test \n(.g.
15117         * troff/input.c (do_if_request): Delete `g' condition. Recognize
15118         `d', `r' and `c' conditions even in compatibility mode.
15120 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
15122         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15123         box.
15125 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
15127         * troff/env.h (environment::prev_line_interrupted): New member.
15128         (environment::get_prev_line_interrupted): New function.
15129         * troff/env.c (environment::newline): Set prev_line_interrupted.
15130         (environment::environment(const environment *),
15131         environment::environment(symbol)): Initialize
15132         prev_line_interrupted.
15133         * troff/input.c (process_input_stack): Don't give special
15134         treatment to space and newline at the beginning of the line if the
15135         previous line was interrupted.
15137 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
15139         * eqn/eqn.y: Disallow PRIME by itself.
15140         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15141         PRIME.
15142         (def_table): Remove definition of '.  Define prime to be `.
15144         * eqn/eqn.y: Split off part of rule `script' into a new rule
15145         `nonsup'.
15147 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
15149         * macros/tmac.s ({, }): New string aliases.
15151 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
15153         * README-0.7: New file.
15155 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
15157         * macros/tmac.s: New file.
15158         * man/groff_ms.man: New file.
15159         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15160         * Makefile.bd: Similarily.
15161         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15162         definition of TMAC_S.
15163         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15164         * macros/TODO: New file.
15166 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
15168         * troff/env.c (right_justify): New function.
15169         (init_env_requests): Bind this to request "rj".
15170         (center_lines): Set right_justify_lines to 0. If we get a bad
15171         integer, center 1 line.
15172         (environment::environment(symbol), environment::environment(const
15173         environment *)): Initialize right_justify_lines.
15174         (environment::get_right_justify_lines): New function.
15175         (init_env_requests): Bind this to number_register ".rj".
15177         * troff/env.c (environment::choose_breakpoint): Implement
15178         hyphenation_margin and hyphenation_space.
15179         (environment::get_hyphenation_space,
15180         environment::get_hyphenation_margin): New functions.
15181         (init_env_requests): Bind these to .hys and .hym.
15182         (hyphenation_space_request, hyphenation_margin_request): New
15183         functions
15184         (init_env_requests): Bind these to hys and hym.
15185         (environment::environment(symbol), environment::environment(const
15186         environment *)): Initialize hyphenation_margin and
15187         hyphenation_space.
15188         * troff/env.h: Corresponding changes to class environment.
15190 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
15192         * troff/div.c (blank_line): Always do a break.
15194         * eqn/box.c (do_text): Turn off escapes while appending text to
15195         string.
15197 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
15199         * troff/input.c (while_break_request, while_continue_request): New
15200         functions.
15201         (init_input_requests): Bind these to "break" and "continue".
15202         (while_depth, while_break_flag): New variables.
15203         (while_request): Update while_depth.  Break out of loop if
15204         while_break_flag is set.
15206 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
15208         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15209         rather than 0.
15211 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
15213         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
15215         * stringify: New file.
15216         * Makefile (groff.o): Use stringify.
15218         * xditview/tmac.X: Remove definition of \(rn.
15219         * xditview/libXdvi/DviChar.c: Remove radicalex from
15220         Adobe_symbol_map.
15222 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
15224         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15225         (alphabetic_block_entry::alphabetic_block_entry,
15226         alphabetic_block_entry::divert, alphabetic_block_entry::print):
15227         New functions.
15228         (block_entry::divert): Split off body into ...
15229         (block_entry::do_divert): If the block is alphabetic, subtract 2n
15230         from the line length; also update the span width to dl+2n, and the
15231         alphabetic span width to dl.
15233         * driver/input.c (do_file):  While reading argument to D command,
15234         when expanding buffer, multiply szp by sizeof(int) rather than 2
15235         in the argument to memcpy.
15237         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15238         width of alphabetic columns.
15240 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
15242         * troff/node.c (lookup_family): Supply second argument to lookup.
15244         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15245         search, return immediately if v is 0.
15247         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15248         (troff_output::start_picture): Set this reg.
15249         (troff_output::end_picture): Remove this reg
15250         * eqn/box.c (box::extra_space): Don't produce `\x's if
15251         EQN_NO_EXTRA_SPACE_REG is defined.
15253         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15254         * eqn/text.c (split_text): Map ' to \(fm when it's the first
15255         character.
15257 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
15259         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15260         requests.
15262         * troff/div.c (top_level_diversion::top_level_diversion):
15263         Initialize page_number to 0.
15265 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
15267         * groff/troff (environment::environment(const environment *)):
15268         Initialize name to e->name, rather than "anonymous".
15270 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
15272         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15273         requested_page.  Split middle part into ...
15274         (FindPage): New function.
15275         (SetValues): If we don't yet know the last page, and the requested
15276         page is greater than the current page, call FindPage.
15277         Update the font_map_string before doing this.
15279         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15280         Translate \(lh and \(rh into left and right double arrows.
15282         * troff/node.c (class hyphen_inhibitor_node): New class.
15283         (hyphen_inhibitor_node::hyphen_inhibitor_node,
15284         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15285         hyphen_inhibitor_node::type,
15286         hyphen_inhibitor_node::get_hyphenation_type): New functions.
15287         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15288         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15289         word.
15291 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
15293         * troff/node.h (dummy_node::get_hyphenation_type,
15294         transparent_dummy_node::get_hyphenation_type):  Declare them.
15295         * troff/node.c: (dummy_node::get_hyphenation_type,
15296         transparent_dummy_node::get_hyphenation_type): New functions.
15298 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
15300         * xditview/libXdvi/draw.c: If M_PI not defined after including
15301         math.h, then define it.
15303         * xditview/Makefile: Add definition of AR. Pass it to the submake
15304         in libXdvi.
15305         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15307 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
15309         * troff/dictionary.h (object_dictionary::alias): Declare return
15310         value as int.
15311         * troff/dictionary.c (object_dictionary::alias): Return non-zero
15312         if the old name was defined.
15313         * troff/input.c (alias_macro): Give a warning if the old name was
15314         not defined.
15315         * troff/reg.c (alias_reg): Likewise.
15317 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
15319         * troff/input.c (token::next): Delete implementation of \R.
15321         * macros/Makefile: Strip comments from tmac.e while installing it.
15323         * troff/input.c: New variable `nroff_mode'.
15324         (troff_request, nroff_request): New functions.
15325         (init_input_requests): Bind `troff' and `nroff' to troff_request
15326         and nroff_request.
15327         (do_if_request): Compute results of t and n conditions from
15328         nroff_mode.
15330         * text/text.c (split_text): Fix typo in >=.
15332         * eqn/lex.c: Add definition of `==' to def_table.
15334 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
15336         * pic/tex.c (tex_output::start_picture): Change the definitions of
15337         \graph and \graphtemp so that they work properly with Plain TeX.
15339         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15340         argument to `ar' is not less than the first.
15342         * pic/pic.y: Allow a comma between elements of the variable list
15343         in the argument to `reset'.
15345         * pic/object.c (arc_object::arc_object): Fix computation of
15346         radius.
15348         * eqn/main.c (main): Add exit(0).
15350 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
15352         * troff/div.c (begin_page): Test no_space_mode after doing the
15353         break, but still push the page ejector cookie before doing the
15354         break.  Also set the next page number after doing the break.
15355         
15356         * xditview/xditview.c (NewFile): Don't set the title and icon name
15357         if this is the first file and its name is `-'.
15358         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
15359         the X75 and X100 devices.
15360         (main): If a device has the XT_OPTION flag set and there's exactly
15361         one file argument, pass the driver -xrm and -title options to set
15362         the icon name and window title to the name of the file.
15364         * troff/env.c (environment_switch): If there was an argument but
15365         it wasn't a valid number or name, then pop an environment but
15366         don't give an error message on underflow.
15368         * troff/number.c (start_number): Correct spelling in error message.
15370         * troff/input.c (token::delimiter): Don't print an error message
15371         if err is false.
15373         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15374         ParseDrawFunction if dw->display_enable is true.
15376 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
15378         * pic/pic.y: Parse text positioning like normal attributes, so as
15379         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
15380         positioning attribute.
15382 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
15384         * tbl/main.c (process_data): When in state START while reading a
15385         text block, don't change to state MIDDLE if c is a newline.
15387 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
15389         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15390         so as to avoid shadowing parameter.
15392 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
15394         * tbl/table.c (trim_space): Deleted.
15395         (table::add_entry): Don't call trim_space.
15397 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
15399         * VERSION: Change version to 0.6.
15401         * troff/number.c (parse_expr): Make == work.
15403 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
15405         * man/grog.man: New file.
15406         * man/Makefile: Add grog.n to MAN1PAGES.
15407         * etc/grog.sh: New file.
15408         * etc/Makefile: Install grog.sh as grog.
15410 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
15412         * troff/input.c (token::next): Implement \E.
15414 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
15416         * xditview/tmac.X: Change font translations to match tmac.ps.
15418         * troff/input.c (non_empty_name_warning): Don't give a warning if
15419         `\{' terminates the name.
15421 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
15423         * ps/devps/symbol.diff: New file.
15424         * ps/devps/FontMakefile: Mention symbol.diff.
15426 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15428         * troff/node.c (font_position): Use get_long_name to read the
15429         external_name.
15431         * troff/env.c (environment_switch): If we get a number that's < 0
15432         or >= NENVIRONMENTS, treat it like a name.
15433         Change NENVIRONMENTS to 10.
15435         * troff/groff.h: Remove definition of FONTS_MAX.
15436         * troff/node.h (class font_family): Make map a pointer instead of
15437         an array. Add a map_size member. Make it a class. Make nm const
15438         and public. Make invalidate_fontno a friend.
15439         * troff/node.c: Define font_table_size. Make font_info a pointer
15440         rather than an array.
15441         (class troff_output_file): Allocate font_position dynamically. Add
15442         nfont_positions member.
15443         (troff_output_file::set_font): Grow font_position if necessary.
15444         (troff_output_file::~troff_output_file): Delete font_position.
15445         (troff_output_file::troff_output_file): Allocate font_position.
15446         (grow_font_table): New function.
15447         (troff_output_file::really_begin_page,
15448         troff_output_file:really_copy_page): Use nfont_positions rather
15449         than FONTS_MAX.
15450         (mount_font_no_translate, mount_style): Call grow_font_table if
15451         necessary.
15452         (font_family::font_family): Allocate map.
15453         (font_family::make_definite): Grow map if necessary. Use
15454         font_table_size instead of FONTS_MAX.
15455         (font_family::~font_family): New function.
15456         (invalidate_fontno): Use font_family::map_size.
15457         (get_fontno, env_space_width, env_half_narrow_space_width,
15458         env_narrow_space_width, symbol_fotno, is_good_fontno,
15459         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15460         FONTS_MAX.
15461         (next_available_font_position): Never return 0.
15463 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15465         * ps/tmac.ps: Add font translations for compatibility with dpost.
15467 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15469         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15470         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15471         Move definitions baseline_sep, shift_down, column_sep,
15472         matrix_side_sep into...
15473         * eqn/box.c: Add them to param_table.
15474         * eqn/pbox.h: Add declarations to pbox.h.
15476         * troff/input.c (set_string): Cast value to unsigned char *.
15478         * troff/token.h (process_input_stack): Declare it static before
15479         declaring it a friend.
15481 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
15483         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15484         and bottom.
15485         * dvi/devdvi/EX: Regenerate.
15487         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15488         transparent.
15490 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
15492         * eqn/lex.c: In defaults_table, make definition of `dot' call
15493         `dot_def'.  Don't explicitly make it roman.  Similarily for other
15494         accents.
15496         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15497         argument.
15498         (for_input::get, for_input::peek): Use this.
15499         (do_for): Add by_is_multiplicative argument.
15500         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15501         Change semantic value of optional_by to be a double plus a flag
15502         saying whethet the by clause is multiplicative.
15504         * eqn/lex.c (get_delimited_text): Remember location of start of
15505         definition.  Improve error handling when EOF is encountered.
15507         * lib/font.h: Rename handle_x_command to
15508         handle_unknown_font_command.
15509         * lib/font.c (font::load): Call handle_unknown_font_command for
15510         any unknown command in the font description file.  Don't call
15511         handle_x_command. Include the name of the command in the argv.
15512         Improve message for unknown command after kernpairs or charset
15513         command.
15514         * ps/ps.c (ps_font::handle_x_command): Rename to
15515         handle_unknown_font_command.  Remove message about `x download'
15516         command.  Give error message for wrong number of arguments.
15517         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15518         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15519         handle_unknown_font_command. Give an error message for wrong
15520         number of arguments.  Rename design_size to designsize.
15521         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15522         checksum', `designsize' instead of `design_size'.
15524 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
15526         * eqn/*.[chy]: Change underaccent to uaccent.
15528         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
15529         give it the same precedence as ACCENT.
15530         * eqn/other.c (make_underaccent_box): New function.
15531         * eqn/box.h: Declare it.
15532         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15533         def_table.
15535 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
15537         * pic/pic.y (reset_all): New function. Called in rule for RESET.
15538         (parse_init): Call reset_all.
15539         (define_variable): When defining scale reset only those
15540         pre-defined variables that are scaled.
15541         (defaults_table): Add `scale' as non-scaled value.
15543         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15544         together with the text; allow any number of positioning words;
15545         allow center as a positioning word.
15547         * pic/object.c (output::compute_scale): Get picture maximum height
15548         and width from variables called maxpswid and maxpsht.
15549         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15551 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
15553         * pic/object.c (object_spec::make_text): Multiply textht by number
15554         of text items.
15556         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15557         occur.
15558         (do_sprintf): New function.
15559         (pic.gperf): Add sprintf token.
15560         (text, sprintf): New rules.
15562         * pic/pic.y: `rand()' with no arguments returns a random number
15563         in the range [0,1).
15565         * pic/pic.y: Allow a bare expression to be an attribute: change
15566         precedences to support this.  Change optional_ordinal rule to
15567         optional_ordinal_last to avoid reduce/reduce conflict.
15568         * pic/object.c (object_spec::object_spec): Initialize direction.
15570         * pic/pic.y: Implement ^ operator meaning exponentiation.
15572         * troff/node.h: Add default argument to mount_font.
15573         * troff/node.c (font_position): Read an optional third argument
15574         giving the external_name.
15575         (mount_font): Add optional argument giving the external_name.
15576         (mount_font_not_translate): Have additional argument giving
15577         external name.  Use this name to load the font.  Pass both names
15578         to font_info::font_info.
15579         (font_info::font_info): Have additional argument giving
15580         external_name.
15581         (class tfont): New member external_name.
15582         (font_info::get_tfont): Use external name to construct tfont_spec.
15584 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
15586         * eqn/lex.c (init_table): Add argument giving device.  Define
15587         name of device to be "1".
15588         (do_ifdef): Counts as true if the argument has been defined with
15589         `define'.
15590         * eqn/main.c (main): Call init_table with device argument. Make
15591         device local to main.
15592         * eqn/eqn.h: Change declaration of init_table. Remove declaration
15593         of device.
15595         * pic/lex.c (get_delimited): Allow text to be delimited by
15596         matching {}s.  Don't recognize ending delimiter within a string.
15598         * troff/input.c (get_delim_name): New function.
15599         (token::next): Implement \C.
15601         * lib/font.c (font::load): Grok ---.  Add an alias for each
15602         character based on its code.
15603         (font::get_code_width): Deleted.
15604         * lib/font.h (class font): Declare font::number_to_index().
15605         Remove declaration of font::get_code_width.
15606         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15607         to indices of named characters.
15608         (font::number_to_index): New function.
15609         * troff/input.c (font::number_to_index): New function.
15610         (get_charinfo_by_number, charinfo::get_number,
15611         charinfo::set_number): New functions.
15612         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15613         (token::process, token::description, token::get_char,
15614         token::add_to_node_list, token::operator==): Handle
15615         TOKEN_NUMBERED_CHAR.
15616         * troff/charinfo.h: Declare get_charinfo_by_number,
15617         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
15618         charinfo class.
15619         (charinfo::numbered): New function.
15620         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15621         * troff/env.h (class environment): Remove declaration of ...
15622         * troff/env.c (environment::make_numbered_char_node): Deleted.
15623         * troff/node.c (make_numbered_node): Deleted.
15624         (class numbered_glyph_node): Remove.
15625         (troff_output_file::put_char_width, troff_output_file::put_char):
15626         Handle numbered chars.
15627         (troff_output_file::numbered_char): Removed.
15628         (tfont::get_code_width): Removed.
15629         (make_glyph_node): Don't search special fonts for numbered
15630         characters.
15631         * troff/node.h: Remove declaration of make_numbered_node.
15632         * driver/input.c (do_file): Handle N command.
15633         * driver/printer.h: Add declaration of ...
15634         * driver/printer.c (printer::set_numbered_char): New function.
15635         * dvi/tfmtodit.c (main): Generate unnamed entries.
15636         * ps/devps/afmtodit: Likewise.
15637         * xditview/xtotroff.c (MapFont): Likewise.
15638         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15640         * tbl/main.c (process_format): If multiple widths are specified
15641         for a column but all the widths are the same, don't give an error
15642         message.
15644         * tbl/table.c (table::do_row): If the current row is all lines and
15645         the stuff doesn't contains a line, mark the top of the row after
15646         printing stuff before the row.  If the current row is not all
15647         lines and the stuff doesn't contain a line, don't unnecessarily
15648         mark the top of the row before printing the stuff.
15649         
15650 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
15652         * troff/groff.h: Remove MAX_PATH.
15653         * troff/input.c (open_file): Dynamically allocate space for the
15654         path.
15655         (open_mac_file, process_macro_file): Corresponding changes.
15657 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
15659         * troff/node.h (class output_file): Make copy_file pure.  Add
15660         vspace method ifdef COLUMN. Add is_printing method.
15661         * troff/node.c: Add class printing_reg. Add class
15662         real_output_file. Derive other output_file classes from
15663         real_output_file; in these classes rename begin_page to
15664         really_begin_page, print_line to really_print_line, copy_file to
15665         really_copy_file, transparent_char to really_transparent_char.
15666         Move output_file::flush to real_output_file. Add printing member
15667         to class output_file.
15668         * troff/div.h: Remove printing member from top_level_diversion.
15669         Add vspace member function to class diversion ifdef COLUMN. Add
15670         some declarations ifdef COLUMN.
15671         * troff/div.c (top_level_diversion::copy_file,
15672         top_level_diversion::transparent_output,
15673         top_level_diversion::output): Don't test printing member before
15674         output.
15675         * troff/input.c: Handle initial variable_space_request ifdef
15676         COLUMN.
15677         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15678         but comment it out.
15680 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
15682         * troff/div.c (diversion::need): Make any space forced.  If we
15683         sprung a trap, set truncated_space to minus the distance to the
15684         trap and set needed_space to the amount that was needed.
15685         (top_level_diversion::space): A forced space turns no_space_mode
15686         off.
15687         (class constant_vunits_reg): New class.
15688         (init_div_requests): Implement number registers .trunc and .ne
15689         using constant_vunits_reg.
15690         (class truncated_space_reg): Deleted.   
15692         * troff/div.h: Don't have a no_space_mode member in diversion.
15693         Instead have it in top_level_diversion.
15694         * troff/div.c (diversion::diversion): Don't initialize
15695         no_space_mode.
15696         (top_level_diversion::top_level_diversion): Initialize
15697         no_space_mode.
15698         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15699         (macro_diversion::output): Don't clear no_space_mode.
15701         * troff/input.c (diverted_space_node::reread): Don't call
15702         environment::do_break.  In fill mode, act like a blank line.
15703         (diverted_copy_file_node::reread): Don't call
15704         environment::do_break.
15706         * troff/div.c (blank_line): New function.
15707         * troff/div.h: Declare it.
15708         * troff/input.c (process_input_stack): Call it.
15710         * troff/div.c (truncated_space_reg::get_string): New function.
15711         (init_div_requests): Bind to .trunc.
15712         (space_request, top_level_diversion::space,
15713         top_level_diversion::output, macro_diversion::space,
15714         macro_diversion::output): Update truncated_space.
15715         (macro_diversion::output): Redo calculations when trap sprung.
15716         (macro_diversion::output, macro_diversion::space): No need for
15717         trap_flag.
15719         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15720         after truncating post line spacing.
15722 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
15724         * ps/devps/prologue (MF, SF): Make them work even if setfont is
15725         defined as a procedure rather than as an operator.
15727 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
15729         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15731 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
15733         * troff/div.c (top_level_diversion::output): Merge
15734         output_file::print_line and output_file::end_of_line member
15735         functions.
15736         * troff/div.h (class output_file):
15737         * troff/node.c (troff_output_file::print_line,
15738         troff_output_file::end_of_line, output_file::end_of_line,
15739         ascii_output_file::print_line, suppress_output_file::print_line):
15740         Corresponding changes.  
15742 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
15744         * troff/input.c (token::next): Don't give a warning for `\.'.
15746         * troff/env.c (environment::get_center_lines): New function.
15747         (init_env_requests): Bind number register .ce to it.
15748         * troff/env.h: Declare it.
15749         * tbl/table.c (table::init_output): Define reset macro to restore
15750         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
15751         Then do .ce 0.
15752         (table::print): If center option not given, then imply center
15753         option if SAVED_CENTER_REG > 0.
15755 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
15757         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15758         Troff.ps from DOWNLOAD.
15759         
15760         * troff/Makefile: Change comment in DEFINES to avoid confusing
15761         System V make.
15763         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15764         code.  Don't try to catch errors with stopped.
15765         (check_line_lengths): New function.
15766         * ps/devps/prologue (EXEC): Deleted.
15767         (EBEGIN, EEND): New procedures.
15769 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
15771         * troff/input.c: Include request.h before node.h.
15772         * troff/node.c: Likewise.
15773         * troff/env.c: Likewise.
15774         * troff/div.c: Likewise.
15775         * troff/node.h (class special_node): Store argument as a macro
15776         rather than a char *.
15777         * troff/node.c (special_node::special_node, special_node::copy):
15778         Grok this.
15779         (special_node::~special_node): Deleted.
15780         (special_node::tprint): Deleted.
15781         (special_node::tprint_start, special_node::tprint_end,
15782         special_node::tprint_char): New functions.
15783         (troff_output_file::special): Deleted.
15784         (troff_output_file::start_special, troff_output_file::end_special,
15785         troff_output_file::special_char): New functions.
15786         * troff/input.c (special_node::tprint): New function.
15787         (do_special): Use macro not char *.
15788         (do_transparent_macro): Deleted.
15789         (token::next): Don't call do_transparent_macro.
15791         * troff/input.c (token::next): Add 'Y' case.
15792         (do_transparent_macro): New function.
15793         * troff/node.c (troff_output_file::special): Handle newlines with
15794         argument using new continuation convention.
15795         * driver/input.c (get_string): Cope with continuation convention.
15796         (do_file): Don't call skip_line after calling get_string(1).
15797         * ps/ps.c (ps_printer::special, ps_printer::do_import,
15798         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15799         arg.
15800         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15801         with +.
15803 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
15805         * troff/input.c (asciify): By default, illegal input characters
15806         should return empty string.
15808         * troff/input.c (copy_file): Handle first page transition like title.
15809         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15811         * troff/input.c (token::next): Improve error message for EOF after
15812         escape character.
15813         (input_char_description): New function.
15814         (get_char_for_escape_name): Use input_char_description.
15815         (token::next): Warn about unrecognized escape sequences.
15816         (warning_table): Add WARN_ESCAPE.
15817         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15818         accordingly.
15820         * troff/token.h: Remove declaration of process_input_stack.
15822         * troff/input.c: Remove declaration of init_hyphen_requests.
15823         * troff/request.h: Correct spelling in declaration of same.
15825         * troff/input.c (token::next): Check whether escape_char is 0.
15827 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
15829         * groff.c (main, usage, help): Implement -P and -L options.
15830         * groff.sh: Likewise.
15832         * troff/input.c (token::next): Use some gotos to avoid code
15833         duplication.
15835         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15836         Avoid calling symbol::symbol if name empty.
15838 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
15840         * troff/input.c (init_input_requests): Make \n(.x return the major
15841         version number and \n(.y return the minor version number.
15842         * troff/Makefile: Construct file majorminor.c defining
15843         major_version and minor_version automatically from ../VERSION.
15845         * troff/node.c (class glyph_node): Make operator new and operator
15846         delete public.
15847         (class ligature_node): Similarily.
15849         * troff/input.c (operator==(const macro &, const macro &)): New
15850         function.
15851         (non_interpreted_node::same): Use this.
15852         (string_iterator::string_iterator): Make macro& argument const.
15854         * troff/input.c (input_iterator::get): New function. Don't make
15855         asciify_macro or class non_interpreted_node friends of class
15856         input_iterator.
15857         (non_interpreted_node::interpret): Use input_iterator::get.
15858         (asciify_macro): Likewise.
15860         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15861         ~non_interpreted_node): Deleted.
15862         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15863         Deleted.
15865         * troff/symbol.h: Make all symbol member functions const.
15867         * lib/strtol.c: New file.
15868         * lib/Makefile: Add strtol.c.
15869         * Makefile: Define STRTOL as strtol.o to include strtol in
15870         libgroff.a.
15872 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
15874         * pic/troff.c (troff_output::simple_circle): Divide by scale.
15876 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
15878         * troff/input.c (do_special): Use input_level.
15880         * troff/token.h (TOKEN_BACKSPACE): New token.
15881         (token::backspace): New function.
15882         * troff/input.c (token::description, token::next, token::process):
15883         Grok TOKEN_BACKSPACE.
15884         (do_special): Turn TOKEN_BACKSPACE back into \b.
15886         * troff/token.h (token::leader): New function.
15887         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15889         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15891         * troff/input.c (do_special): Use token::description in error
15892         message.
15894 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
15896         * troff/input.c (decode_args): Combine quoted and
15897         quote_input_level variables. Make it a for (;;) loop.
15899         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15901         * troff/input.c (read_long_escape_name): The test for whether to
15902         expand buffer was off by 1.
15903         (read_string): Similarily.
15905 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
15907         * troff/input.c: Use `const int' rather than `static const int'.
15909         * troff/div.h (diversion::copy_file): Declare as pure virtual.
15910         (macro_diversion::copy_file): New function.
15911         * troff/node.h: New class diverted_copy_file_node.
15912         * troff/node.c: Implement it.
15913         * troff/input.c (copy_file): Use diversion::copy_file. Handle
15914         first page transition by pushing a diverted_copy_file_node.
15915         * troff/input.c (token::next, process_input_stack): Don't handle
15916         COPY_FILE_REQUEST.
15918 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
15920         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15921         whether space widths need adjusting.
15923         * troff/charinfo.h: Generalize translated_to_space to
15924         special_translation so as to allow translation to \&.
15925         * troff/input.c (translate): Allow translation to \&.
15926         (charinfo::*): Corresponding changes.
15927         * troff/node.c (make_node, node::add_char): Corresponding changes.
15928         * troff/node.h (dummy_node::dummy_node): Allow optional first
15929         argument.
15931         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15932         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15933         TOKEN_REQUEST.
15934         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15935         TOKEN_REQUEST with an argument of TITLE_REQUEST.
15936         (token::process): Grok that.
15937         * troff/input.c (copy_file): Handle first page transition like
15938         title by pushing a COPY_FILE_REQUEST cookie.
15939         (token::next, process_input_stack): Grok that.
15940         * troff/node.h (output_file::copy_file): Add x and y arguments.
15941         Make it non-pure.
15942         * troff/div.c (top_level_diversion::copy_file): Supply them.
15943         * troff/node.c (troff_output_file::copy_file): Add x and y
15944         arguments; moveto specified position.  Invalidate font_position
15945         array after copying file.
15946         (output_file::copy_file): New function.
15947         (suppressed_output_file::copy_file, ascii_output::copy_file):
15948         Removed.
15949         * troff/input.c (transparent_file): New function.
15950         (init_input_requests): Bind to "trf".
15951         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15952         (process_input_stack): Likewise.
15954         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15956         * troff/node.c (init_node_requests): New number registers .kern
15957         pointing to global_kern_mode, and .lg pointing to
15958         global_ligature_mode.
15960         * troff/node.c (ligature): Don't change it if we get a bad
15961         integer.
15963         * troff/input.c (do_define_string): Don't strip tabs.
15965         * troff/input.c (asciify_macro): Make the string_iterator auto.
15967         * troff/node.c (init_font_requests): Rename to...
15968         (init_node_requests):
15969         * troff/node.h: Change declaration.
15970         * troff/input.c (main): Change call.
15972         * troff/input.c (node::reread, diverted_space_node::reread): New
15973         methods.
15974         (process_input_stack): Call reread rather than
15975         get_diverted_space_node.
15976         * troff/node.c (node::get_diverted_space_node,
15977         diverted_space_node::get_diverted_space_node): Removed.
15978         * troff/node.h: Declare reread methods instead of
15979         get_diverted_space_node methods. Make `n' member private.
15980         * troff/input.c: (token::diverted_space): Removed.
15981         * troff/token.h: Removed declaration.
15982         
15984 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
15986         * eqn/script.c (script_box::compute_metrics): Don't let
15987         SUP_RAISE_FORMAT become negative.
15989         * tbl/table.c (table::do_row): Entries that don't end in the
15990         this row shouldn't make the row non-blank.
15991         
15992         * tbl/table.c (table::make_columns_equal): Only set the width of
15993         columns which are marked as equal.
15994         
15995         * tbl/main.c (process_data): Before issuing excess data error,
15996         if last character was a newline unget it; then get it again after
15997         the error.  Also include the contents of the entry in the message.
15999         * groff.c: New file.
16000         * Makefile: Build groff from groff.c.  Make it possible to use
16001         either groff.sh or groff.c as groff.
16002         * Makefile.bd: Similarily.
16004 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
16006         * groff.sh: Don't delay expansion of $@ in assignment to files.
16007         Remove occurrences of \".
16009 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
16011         * all Makefiles: Simplify and rearrange.
16013         * Makefile: Handle fmod like malloc.
16014         * lib/Makefile: Similarily.
16015         * lib/fmod.c: Remove #ifdef NEED_FMOD.
16017         * Makefile: Rename OPTIMISE to OPTIMIZE.
16019         * groff.sh: Remove assignment to PATH.
16020         * Makefile: Remove SHPATH variable.
16021         * Makefile.bd: Similarily.
16023         * groff.sh: Add -V option to print the pipeline instead of
16024         executing it.
16026 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
16028         * lib/font.c: Split off file searching into ...
16029         * lib/fontfile.c: New file.
16031         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16033 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
16035         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16036         Also change misleading comment.
16037         (table::do_vspan): Change similarily misleading comment.
16038         * tbl/main.c (process_data): A format row with an explicit `s'
16039         uses up a data line, even if all the other columns are `_' or `='.
16041         * troff/input.c (token::description): Fix description of
16042         TOKEN_DUMMY and TOKEN_EMPTY.
16044 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16046         * groff.sh: Fix description of -Z in help message.
16048 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16050         * pic/object.c (object_spec::make_object): Allow negative and zero
16051         line thicknesses.
16052         * pic/pic.y: Give linethick default value of -1.0.
16053         * pic/troff.c (troff_output::troff_output): Initialize
16054         last_line_thickness to BAD_THICKNESS.
16055         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16056         (troff_output::line_thickness): Canonicalize negative thicknesses
16057         to RELATIVE_THICKNESS.
16058         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16059         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16060         to -1.0.
16061         (tex_output::start_picture): Set pen_size to -2.0.
16063         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16064         0, then use 0 linewidth.
16065         (ps_printer::ps_printer): Initialize line_thickness to -1.
16067         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16069         * ps/devps/symbolchars: Remove `or'.
16070         * ps/tmac.ps: Implement \(or with .char.
16072         * ps/devps/symbolchars: Move most characters into textmap.
16073         * ps/devps/textmap: Add names for troff bracket characters. Remove
16074         ul, ru, br, bv.
16076         * ps/devps/TSymbol.ps: Removed.
16077         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16078         * ps/tmac.ps: Do with .char what TSymbol did.
16079         * ps/devps/download: Remove TSymbol.
16081         * ps/devps/T: Removed.
16082         * ps/devps/Troff.ps: Removed.
16083         * ps/devps/Troff.afm: Removed.
16084         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16085         * ps/devps/download: Remove Troff.
16086         * ps/devps/FontMakefile: Remove T target.
16087         * ps/devps/DESC-A4: Remove T from font list.
16088         * ps/devps/DESC-letter: Likewise.
16090         * troff/input.c (macro_to_node): Rename to ...
16091         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
16092         character's definition while processing it.
16093         * troff/node.c (node::add_char, make_node): Change calls to
16094         macro_to_node accordingly.
16096         * troff/input.c (token::next): Translate \_ to \(ul.
16098         * tty/devascii/R.proto: Add `|'.
16099         * tty/devlatin1/R.proto: Likewise.
16101 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
16103         * man: Put the version number in all the man pages.
16105 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
16107         * Makefile.bd: New file.
16108         * README.bd: New file.
16110         * VERSION: New file.
16111         * lib/version.c: Removed.
16112         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16113         in clean target.
16115         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16116         environment variable.
16118         * all Makefiles: Split install target into install.bin for
16119         binaries, and install.nobin for everything else.
16120         * Makefile: Add bindist target.
16122         * man/afmtodit.man: New file.
16123         * man/Makefile: Add afmtodit.n to MAN1PAGES.
16124         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16125         in BINDIR.
16126         * ps/Makefile: Pass BINDIR to make install in devps.
16128         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16129         the space character.
16131         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16133 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
16135         * ps/ps.c: Redo font downloading.
16136         * ps/devps/download: New file.
16137         * ps/devps/Makefile: Add download to DEVICEFILES.
16138         * ps/devps/afmtodit: Remove -d option.
16139         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16140         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16141         * ps/devps/zapfdr.ps: Likewise.
16142         * ps/devps/TSymbol.ps: Likewise.
16144 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
16146         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16148 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
16150         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16151         then strip the first line if it starts with %.
16152         * Makefile: Add a comment about this.
16154         * man/tfmtodit.man: New file.
16155         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16156         * dvi/Makefile: Install tfmtodit in BINDIR.
16158         * dvi/tfmtodit.c (usage): Mention -v option.
16160 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
16162         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16163         * troff/node.c (troff_output_file::transparent_char): Don't call
16164         flush_tbuf.
16166         * eqn: Add check_tabs method to most box classes.
16167         * eqn/box.c (box::top_level): Call check_tabs.
16169         * eqn/script.c (script_box::output): Use \Z.
16170         * eqn/limit.c (limit_box::output): Use \Z.
16172         * eqn/box.c (box::top_level): Use itoa.
16174 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
16176         * dvi/tmac.dvi: Add font translations for CR, C, TT.
16177         * dvi/devdvi/Makefile: Don't make links to CW.
16179         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16180         HX, HD.
16181         * xditview/tmac.X: Likewise.
16183         * troff/node.c: Add font translation feature.
16184         (get_font_translation): New function.
16185         (symbol_fontno): Translate the font name.
16186         (mount_font_no_translate): Rename to mount_font to this.
16187         (mount_font): New function.
16188         (font_family::make_definite): Call mount_font_no_translate instead
16189         of mount_font.
16190         (mount_style): Translate the font name.
16191         (font_translate): New function.
16192         (init_font_requests): Bind "ftr" to font_translate.
16194         * ps/devps/prologue (SN): New procedure that rounds a position to
16195         the nearest (pixel + (.25,.25)).
16196         (DL): Use SN to round endpoints.
16198         * lib/version.c: Changed version to 0.5.
16200 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
16202         * Makefile: Move definition of PAGE to the very beginning, so that
16203         people are less likely to miss it.
16205 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
16207         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16209         * troff/env.c (environment::choose_breakpoint): Make `can't find
16210         breakpoint' error a warning of type WARN_BREAK.  Change message to
16211         `can't break line'.
16212         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16213         code 040000.
16214         * troff/input.c: Add WARN_BREAK to warning_table.  Include
16215         WARN_BREAK in DEFAULT_WARNING_MASK.
16217         * tty/tmac.tty: Add definition of \(+-.
16219         * groff.sh: Remove `--' option to set command.
16221         * dvi/devdvi/texsy.map: Remove duplicate md entry.
16223         * ps/devps/eqnchar: Better definition of cdot using md.
16224         * dvi/devdvi/eqnchar:  Likewise.
16225         * xditview/devX100/eqnchar:  Likewise.
16226         * xditview/devX75/eqnchar: Likewise.
16227         * eqn/lex.c: Add definition of cdot.
16229 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
16231         * troff/input.c (get_optional_char): New function.
16232         * troff/input.c (set_page_character): Use get_optional_char(),
16233         rather than has_arg() and tok.get_char(1).
16234         * troff/env.c (tab_character, leader_character, hyphen_char,
16235         field_characters): Likewise.
16236         (margin_character): Likewise.  Also always delete the
16237         margin_character_node.
16239         * troff/input.c (token::get_char): Use token::description.
16241         * troff/input.c (has_arg): Don't skip over tab and \}.
16242         * troff/number.c (start_number): Give a warning if the number
16243         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16245 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
16247         * troff/input.c (empty_name_warning, non_empty_name_warning): New
16248         functions.
16249         (get_name, get_long_name): Use these.  Rename `warn' argument to
16250         `required'.
16252         * troff/node.c (get_fontno): Test that the symbol is not null.
16254         * troff/input.c (token::description): New function.
16255         * troff/number.c (parse_term): Use token::description in `numeric
16256         expression expected' message.
16257         * troff/groff.h: Add WARN_MISSING.
16258         * troff/number.c (start_number): New function.
16259         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16260         get_incr_number): Use start_number().
16261         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16262         default.
16263         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16264         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16265         token::descripion.
16266         * troff/input.c (token::get_char): Use WARN_MISSING.
16267         * troff/input.c (token::delimiter): Use token::description.
16268         * troff/env.c (environment_switch): Back out Aug 3 change.
16269         * troff/input.c (has_arg): Skip over \}s and tabs but give a
16270         warning.
16271         * troff/token.h (token::tab): New function.
16272         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16273         * troff/reg.c (alter_format): Likewise.
16274         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16276 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
16278         * troff (most files): Redo warnings. Divide warnings into various
16279         categories; warning() has an additional first argument indicating
16280         the category it falls into.
16281         * troff/input.c (main): -w now takes an argument. New option -W.
16282         (enable_warning, disable_warning): New functions.
16284         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16285         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16287 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
16289         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16290         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16291         * xditview/devX75/eqnchar: Likewise.
16292         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16294         * eqn/other.c: When bar or over applies to a single character
16295         don't produce an overline_box or an underline_box. Instead produce
16296         an accent_box or an underaccent_box, with the accent a line
16297         whose width is accent_width.  New classes underaccent_box,
16298         overline_char_box and underline_char_box.
16299         * eqn/box.h: Move overline_box, underline_box, accent_box class
16300         declarations into eqn/other.c. Add declarations of
16301         make_underline_box, make_overline_box, make_accent_box.
16302         * eqn/eqn.y: Call make_overline_box, make_underline_box
16303         make_accent_box instead of constructors.
16304         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16306         * eqn/other.c: Add accent_box::~accent_box.
16307         * eqn/box.h: Declare it.
16309         * groff.sh: With -Tps, use eqn -D.
16311         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16312         rather than \l.
16313         (underline_box::output): Similarily.
16314         (accent_box::output): Use \Z.
16316         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16317         bit smaller.)
16319 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
16321         * troff/div.c (top_level_diversion::transparent_output(unsigned
16322         char)): Use asciify.
16323         * troff/input.c (asciify): Don't make it static.
16324         * troff/token.h (asciify): Declare it.
16325         
16326         * troff/input.c (get_name, get_long_name, token::get_char,
16327         token::delimiter): Add an extra default argument which says
16328         whether a warning should be printed.
16329         * troff: Pass a non-zero argument to one of these rather than
16330         printing a warning directly.
16332 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
16334         * troff: Consistently use symbol::is_null.
16336         * troff/dictionary.h: Move some inline functions into
16337         dictionary.c.
16339         * troff/request.h: Move inline functions into input.c.
16340         (request_or_macro::invoke): Make it pure.
16342         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16343         * troff/input.c (init_input_requests): Use class constant_int_reg.
16344         (class compatible_reg): Deleted.
16345         * troff/div.c (init_div_requests): Use class constant_int_reg.
16346         (class last_post_line_extra_space_reg): Deleted.
16348         * troff/env.c (tab_character): Don't change the tab character if
16349         we get an invalid argument.
16350         (hyphen_char): Similarily.
16352         * troff/reg.c (alter_format): Check that nm is not null.
16354         * Makefile, groff.sh: Make it possible to customize the commands
16355         used for printing PostScript and dvi files. Also make it possible
16356         to customize the path used by groff.sh.
16358         * eqn/eqn.y: Make `left' right associative.
16360 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
16362         * pic/pic.h: Added definition of M_SQRT2 for those systems that
16363         don't have it.
16365         * pic/pic.h: Removed definition of INT_MAX.
16367         * troff/node.c (italic_corrected_node::vertical_extent): Omit
16368         `return'.
16370         * troff/input.c (token::next):  Handle \R like \n.
16372 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
16374         * ps/tmac.pc (PSPIC): Simplify.
16376         * troff/env.c (tab_stops::to_string):
16377         * pic/pic.y (object_type_name):
16378         * pic/troff.c (simple_output::line):
16379         * pic/tex.c (tex_output::spline):
16380         * pic/object.c (object_spec::make_object):
16381         * tbl/main.c (process_data):  Add cases to switch statements to
16382         avoid cfront warnings. (Some of these are spurious, since the
16383         switch already has a default case.)
16385         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
16386         `ps-'.  Don't test systat; instead check number of arguments to
16387         ps-bb.
16389 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
16391         * macros/tmac.e: Do not decrease the page offset by 0.5i.
16393         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16394         Unlink the file as soon as we have opened it, so that we don't
16395         have to bother with signal handlers.
16396         (handler): Deleted.
16397         (fatal_error_exit): Deleted.
16398         (main): Don't call signal.
16400         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16401         can be ignored.
16402         * dvi/devdvi/Makefile: Use the -k option with S and MI.
16404         * pic/pic.y:  If there is a label, or an nth construction before
16405         the first `.' in the argument to `with', ignore it and generate a
16406         warning.
16407         * pic/lex.c (lex_warning): New function.
16409         * tbl/table.c (table::init_output): In section keep and release
16410         macro, use 0 indent when diverting and the correct indent when
16411         rereading.
16413         * troff/input.c (interpolate_number_format): Do not interpolate
16414         anything if the number register is not defined.
16416         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16418 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
16420         * ps/devps/prologue (PICTURE): Set components of graphics state to
16421         their default values.
16423         * ps/devps/text.enc: Add trademark
16424         * ps/devps/textmap: Add names for club, spade, heart, diamond,
16425         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16426         * ps/devps/symbolchars: Add names for summation and product.
16428         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16429         suchthat. Add pp. Add upper-case letters.
16431         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16432         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16433         Upsilon.
16435         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16436         rA (right angle bracket) to ra.  Introduce names for double-headed
16437         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16438         * ps/devps/textmap: Likewise for ps device.
16439         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16440         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16441         * tty/devascii/R.proto: Likewise.
16442         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16443         \(uA, \(dA.
16444         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16446         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16448         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16449         def_table.
16451 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16453         * troff/div.c (when_request): Use symbol::is_null rather than
16454         has_arg to determine whether we have an argument.
16455         (change_trap): Remove the trap if we get an invalid number. Give
16456         an error if we don't get at least the macro name.
16457         (diversion_trap): Remove trap if we get an invalid name or number.
16459         * troff/env.c (environment_switch): Pop if we get an invalid
16460         symbol or numeric expression.
16462         * troff/input.c (do_define_macro):  If EOF is encoutered while
16463         defining the macro, do tok.next() before returning.
16465         * troff/token.h (has_arg): Move definition from here, to ...
16466         * troff/input.c (has_arg): ... here
16468         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16469         * troff/input.c (shift): Likewise.
16471         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16472         for `.c'.
16474         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16475         `..'.
16477         * eqn/main.c (do_file): Subtract 1 from current_lineno if
16478         interpret_lf_args succeeds.
16480         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16481         \\.  This avoids problems with \$N.
16483         * groff.sh: Pass -C to preprocessors.
16485         * lib/lf.c (interpret_lf_args):  Be more flexible.
16487         * tbl/main.c (main): Add -C option.
16488         (table_input::get): Do not recognize TE if followed by character
16489         other than a space or newline unless -C option given.
16490         (process_input_file): Likewise for lf, TS.
16491         (process_data): Likewise for lf in text blocks.
16493         * eqn/main.c (main): Add -C option.
16494         (do_file): Don't recognize EQ, EN or lf if followed by character
16495         other than space or newline unless -C option given.
16496         * eqn/lex.c (file_input::read_line): Similarily.
16497         * eqn/eqn.h: Declare compatible_flag.
16499         * etc/soelim.c (main): Add -C option.
16500         (interpret_lf_args): Use version in libgroff.
16501         (do_file):
16503         * pic/main.c (main): Add -C option, which sets compatible_flag.
16504         (top_input::get), (top_input::peek):  If -C option not given,
16505         do not recognize .PS/.PE/.PF/.lf if followed by a character
16506         other than space or newline.
16507         * pic/lex.c (file_input::read_line): Similarily.
16508         * pic/pic.h: Add declaration of compatible_flag.
16510 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
16512         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16514         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
16515         derived from node.  New class space_char_hmotion_node.
16516         * troff/input.c (asciify_macro): New function.
16517         * troff/input.c (init_input_requests): New request `asciify' bound
16518         to asciify_macro.
16519         * macros/mm.diff: New file.
16520         * Makefile:  In install.mm target use `patch' to apply
16521         macros/mm.diff.
16523         * troff/input.c (macro::print_size): Just print the size in bytes.
16525         * troff/div.c (return_request): Correct the argument
16526         interpretation.
16528 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
16530         * troff/node.h (class composite_node): Add sz member.
16531         * troff/node.c (composite_node::size): Return sz.
16532         * troff/input.c (macro_to_node):  Use the initial size in the
16533         environment as the size of the composite_node.
16535         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
16536         default.
16538 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
16540         * troff/div.c (change_trap): If we get a bad number expression,
16541         do nothing.
16543 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
16545         * lib/matherr.c (matherr): Define this only if math.h defines
16546         TLOSS.
16548 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
16550         * troff/div.c (macro_diversion::distance_to_next_trap): If there
16551         no diversion trap return vunits(INT_MAX - vresolution).
16553 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
16555         * troff/input.c (do_zero_width): New implementation that doesn't
16556         use a temporary environment. Use instead:
16557         (token::add_to_node_list): New function.
16558         * troff/env.c (environment::get_prev_char_height),
16559         (environment::get_prev_char_height),
16560         (environment::get_prev_char_skew): New functions.
16561         (environment::get_prev_char): New function.
16562         (environment::get_prev_char_width): Change to use get_prev_char.
16563         (init_env_request): Implement new registers .cht, .cdp, .csk.
16564         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16565         \Z being processed in a separate environment.
16567 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
16569         * tbl/table.c: Removed TABLE_BOTTOM_REG.
16571         * tbl/table.c (table::init_output): In the section release macro,
16572         give a warning message if the section won't fit on one page.
16574         * tbl/table.c (table::do_top): Emit table keep only if table is
16575         boxed.
16576         (table::do_bottom): Likewise for table release.
16577         (table::table), (table::add_vertical_rule):  Remove reference to
16578         keep member.
16579         * tbl/table.h: Remove keep member.
16581         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16582         SECTION_RELEASE_MACRO, if there's not enough space before the next
16583         trap to output the diversion, call T# ourselves, set
16584         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16585         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
16586         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
16587         vertical position and return to it before turning traps on again.
16588         
16589 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
16591         * troff/node.c, troff/node.h: In classes derived from node,
16592         replace prev_char_width method by last_char_node method.
16593         * troff/env.c (environment::get_prev_char_width): Use
16594         node::last_char_node rather than node::get_prev_char_width.
16596         * Makefile: Added comment about -fno-inline on 68030-based
16597         Apollos.
16599         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16600         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16601         expressions using sizeof to int.
16602         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16604         * macros/tmac.e (TS):  Don't move @f back past the current
16605         position.
16607 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
16609         * ps/ps.c (main): Buffer stderr.
16610         * dvi/dvi.c (main): Likewise.
16611         * tty/tty.c (main): Likewise.
16613         * ps/ps.c (ps_printer::do_import): Improve error handling.
16615         * troff/input.c (abort_request): Use asciify.
16617         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16618         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16619         type of first argument int rather than char.  This works around a
16620         bug on the 68030 based Apollo using g++ 1.37.1.
16622         * tbl/table.h (class table): Add `keep' member.
16623         * tbl/table.c (table::table): Initialize `keep'.
16624         (table::add_vertical_rule): Set `keep' to 1.
16625         (table::do_top): Only emit table keep macro is `keep' is non-zero.
16626         (table::do_bottom): Likewise for table release macro.
16627         (table::do_row): Emit section keep macro even if the row is 0.
16629 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
16631         * macros/tmac.e (@C): Preserve the font family across the change
16632         in environments.
16634 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
16636         * lib/font.c: Initialize font::hor and font::vert to 1.
16637         (font::load_desc): Check the values of font::hor and font::vert.
16639         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16640         be included in a C compilation.
16641         (iftoa): Use INT_DIGITS. Include lib.h.
16642         (itoa): Likewise.
16643         (as_string): Likewise.
16644         * tbl/table.c: Removed definition of INT_DIGITS.
16645         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16646         * troff/input.c (input_input_requests): Likewise.
16647         * ps/ps.c (make_encoding_name): Likewise.
16648         (ps_printer::set_style): Likewise.
16649         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16651         * tty/devascii/R.proto: Map fm onto '.
16652         * tty/devlatin1/R.proto: Likewise.
16654 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
16656         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16657         argument to \w is at a different input level.
16659         * tbl/table.c (table::init_output): Define a new macro
16660         REPEATED_VPT_MACRO, like vpt but if in a diversion also
16661         transparently outputs itself.
16662         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16663         vpt.
16664         (table::do_row): Likewise.
16666         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16667         TRANSPARENT_STRING_NAME.
16669         * tbl/table.c (table::init_output): In the table release macro
16670         print an error message and don't produce any output if after
16671         issuing the need request the table still will not fit.  Also
16672         remove the diversion after bringing it back.
16674         * tbl/table.c (table::init_output): Define a new macro
16675         REPEATED_MARK_MACRO, like mk but if in a diversion also
16676         transparently outputs itself.
16677         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16678         is necessary because .TH might not call .T#.
16679         (table::do_top): Likewise TOP_REG.
16680         (table::define_bottom_macro): If TOP_REG is no longer valid, use
16681         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16682         table header might contain just the two top rules.
16684 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
16686         * troff/div.c: Implement new request `ptr' to print all traps.
16688         * troff/env.c (init_env_requests): Implement `.tabs' reg with
16689         init_string_env_reg.
16690         * troff/env.c (class tab_reg): Deleted.
16692 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
16694         * troff/div.c: New number register .pn returns the number of the
16695         next page as set by the pn request.
16697         * macros/tmac.an: Redid headers and footers.  Number each manual
16698         entry starting from 1 unless \nC is > 0, like Sun.  Added an
16699         optional 5th argument to .TH which specifies the manual name and
16700         appears in the center of the header.  Understand the X, P and D
16701         registers like Sun.
16703 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
16705         * troff/env.c (init_env_requests): New number register `.lt' to
16706         return the title length.
16708         * troff/node.h (class transparent_dummy_node): New class.
16709         * troff/node.c (class transparent_dummy_node): Provide member
16710         functions. 
16711         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16712         than a dummy_node.
16714         * troff/input.c (token::next): New escape sequence \).
16715         * troff/input.c (get_copy): Recognize \) in copy mode.
16717         * troff/input.c (input_stack::clear): New function.
16718         * troff/input.c (exit_request): Use input_stack::clear.
16720         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16721         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16723         * troff/env.c: Move set_page_character to input.c.  Move
16724         page_character to input.c also.
16725         * troff/env.c (title): Split off the reading of the parts of the
16726         title into read_title_parts.
16727         * troff/input.c (read_title_parts): New function.  Check the
16728         input_level when testing whether a token matches the delimiter.
16730         * troff/input.c (exit_request): New function.
16731         * troff/input.c (init_input_requests): Bind ex request to
16732         exit_request rather than exit_groff.
16734         * troff/input.c (exit_groff): Call tok.next() before
16735         process_input_stack().
16737 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
16739         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16740         * troff/env.h: ditto.
16741         * troff/input.c: ditto.
16743         * troff/env.c (environment::is_empty): Test pending_lines.
16745         * troff/env.c (environment::have_pending_lines): Removed.
16747         * troff/input.c: Add request to flush pending lines from the
16748         environment.
16750         * troff/env.c, troff/env.h: Add automatic widow control feature.
16752         * troff/input.c (exit_groff):  Do process_input_stack() after
16753         do_break() but before setting exit_flag to 2.
16755         * troff/input.c: Remove FLUSH_PENDING_LINES and
16756         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16757         environment after END_TRAP token seen, but only if there aren't
16758         any more traps still unfinished.
16759         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16761 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
16763         * troff/env.c: Rename the `retain_size' member of class
16764         pending_output_line to `no_fill'.
16766         * troff/env.c (title): When the line is output, make the
16767         retain_size argument !fill.
16769         * troff/node.h: Add `hyphenated' member to struct breakpoint.
16770         * troff/node.c (space_node::get_breakpoints),
16771         (dbreak_node::get_breakpoints):  Fill this in.
16772         * troff/env.c:  Allow specification of maximum number of
16773         consecutive hyphenated lines.
16775         * troff/env.c (environment::is_empty): Add test for !current_tab.
16777 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
16779         * troff/env.c (environment::hyphenate_line): Don't completely give
16780         up if the word is not to be hyphenated; continue so that breaks
16781         can be made at break_char_node's.
16783         * lib/lib.h: Only define INT_MAX if it's not already defined;
16784         undef INT_MIN if it's already defined.
16786         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16788         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16789         This works around a bug in AT&T C++ 2.0 used with an ANSI C
16790         compiler.
16791         
16792         * macros/tmac.an (an-header): Set no-space mode.
16794         * macros/tmac.an (TH): Start a new page if necessary.
16796         * Started using ChangeLog at version 0.4.
16798 Local Variables:
16799 version-control: never
16800 coding: latin-1
16801 End: