* src/include/font.h (font): Use `int' for ch_index.
[s-roff.git] / ChangeLog
blob8bfba87fc6752b1f2bac1c6ed714679c81808d79
1 2004-04-17  Werner LEMBERG  <wl@gnu.org>
3         * src/include/font.h (font): Use `int' for ch_index.
4         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
5         font::compact): Updated.
7         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
8         warnings.
10         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
11         (hyphen_word): Fix compiler warnings.
12         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
13         `char'.
14         Update all callers.
15         (get_delim_number, get_line_arg): Change second argument type to
16         `unsigned char'.
17         (macro_header::copy, token::next, do_define_string,
18         do_define_character, substring_request, asciify_macro,
19         unformat_macro, read_size, non_interpreted_node::interpret,
20         while_request, main: Fix compiler warnings.
21         (read_color_draw_node): Initialize `col'.
23         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
24         `start_col' and `end_col' of type `int'.
25         (vertical_rule): Make `col' of type `int'.
27         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
28         for EOF.
30         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
31         New arrays.
32         (format_serial): Use them to remove dependency on ASCII.
34         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
35         compiler warning.
36         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
37         Ditto.
39         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
40         compiler warnings.
41         (glyph): Change type of `hpos' to `int'.
43         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
44         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
46         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
48         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
50 2004-04-16  Werner LEMBERG  <wl@gnu.org>
52         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
53         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
54         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
55         `double' instead of `float' everywhere.
56         * src/preproc/grn/main.cpp: Use `double' instead of `float'
57         everywhere.
58         (main): Add return value.
59         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
60         everywhere.
61         Update all user functions.
63         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
64         src/preproc/eqn/box.h, src/preproc/pic/object.h,
65         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
66         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
67         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
68         src/roff/troff/input.cpp, src/roff/troff/request.h,
69         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
70         declarations.
72         * src/utils/indxbib/signal.c: Include stdlib.h.
74 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
76         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
77         before the first page.
79 2004-04-14  Thomas Klausner <wiz@netbsd.org>
81         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
82         (doc-operating-system-*): Updated.
83         * tmac/doc-syms (doc-str-St-*): Various small fixes.
84         (doc-str-Lb-*): Add more library names.
86 2004-04-10  Art Haas  <ahaas@airmail.net>
88         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
89         use anonymous type.
91 2004-04-09  Art Haas  <ahaas@airmail.net>
93         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
95 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
97         * arch/misc/shdeps.sh: Generate better comment for sed script.
99 2004-04-08  Art Haas  <ahaas@airmail.net>
101         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
102         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
103         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
104         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
105         (polyfill), src/preproc/grn/main.cpp (polyfill),
106         src/preproc/refer/command.cpp (command_table),
107         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
108         gcc 3.5 doesn't like).
110 2004-04-08  Werner Lemberg  <wl@gnu.org>
112         Removing many compiler warnings.  groff should now compile with
113         a C++ compiler used for C files also.  [Simple variable renamings
114         to avoid shadowing aren't logged in detail.]
116         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
117         (draw_dvi_printer::draw) ['c']: Enclose in block.
119         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
120         (page::add_line): Fix typos.
121         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
123         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
124         Some local variable renamings.
125         * src/devices/grolbp/lbp.h: Some local variable renamings.
127         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
128         variable renamings.
130         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
131         Remove redundant local variable declaration.
132         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
133         Don't use `caddr_t' but `void *'.
134         Enclose functions with `extern "C"' for C++.
136         * src/libs/libdriver/input.cpp (remember_filename,
137         remember_source_filename): Use cast for string constant.
139         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
140         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
141         src/libs/libgroff/geometry.cpp: Some local variable renamings.
142         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
143         style.
144         Enclose functions with `extern "C"' for C++.
145         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
146         (needs_quoting): Return `int'.
147         (quote_arg): Add proper casts to malloc and realloc.
148         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
149         various MS Windows environments.
150         (spawnvp_wrapper): Add proper cast to malloc.
152         * src/preproc/eqn/box.h: Remove redundant declarations of
153         `make_script_box', `make_mark_box' and `make_lineup_box'.
154         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
155         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
156         variable renamings.
158         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
159         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
160         (dx, dy): Renamed functions to...
161         (deltax, deltay): This.
162         * src/preproc/grn/main.cpp: Some local variable renamings.
163         (deffont): Add `const'.
164         (initpic, conv): Use cast for string constant.
166         * src/preproc/html/pre-html.cpp: Some local variable renamings.
167         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
168         (char_buffer::run_output_filter): Second argument is unused.
169         * src/preproc/html/pushback.cpp: Some local variable renamings.
171         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
172         * src/preproc/pic/object.cpp: Some local variable renamings.
174         * src/preproc/refer/label.y (lookup_label): Remove redundant
175         declaration of local variable.
177         * src/preproc/soelim.cpp: Remove redundant declaration of
178         `interpret_lf_args'.
180         * src/preproc/tbl/main.cpp: Some local variable renamings.
182         * src/roff/groff/groff.cpp (main): Use cast for string constant.
183         * src/roff/groff/pipeline.c: Enclose declarations of `error',
184         `c_fatal', and `i_to_a' with `extern "C"' for C++.
185         Don't use C++-style comments.
187         * src/roff/troff/env.h: Remove redundant declaration of `title'.
188         * src/roff/troff/node.h, src/roff/troff/env.cpp,
189         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
190         renamings.
191         * src/roff/troff/div.h: Remove redundant declaration of
192         `end_diversions'.
193         * src/roff/troff/troff.h: Remove redundant declaration of
194         `cleanup_and_exit'
195         * src/roff/troff/input.cpp: Remove redundant declaration of
196         `handle_first_page_transition' and `process_input_stack'.
198         * src/utils/hpftodit.cpp: Some local variable renamings.
200         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
201         for C++.
202         Don't define RETSIGTYPE.
203         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
205         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
206         (error): Use `const' in argument.
207         (main): Remove redundant declaration of `optind'.
208         Move declaration of `Version_string' to top-level.
210         * PROBLEMS: Document difficulties compiling signal.c if a C++
211         compiler is used for C.
213 2004-04-07  Werner Lemberg  <wl@gnu.org>
215         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
217 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
219         Make scripts like nroff.sh and neqn.sh portable across various
220         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
221         non-POSIX path separators.  The idea is to extend those scripts to
222         decide at run-time (of the script) which path separator to use.
224         * arch/misc/Makefile.sub: New file.
225         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
226         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
227         a proper definition of the variable `GROFF_RUNTIME'.
229         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
230         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
231         (PROGDEPDIRS): New variable.
232         `FORCE' it.
233         (PROGDIRS): Add PROGDEPDIRS.
235         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
236         Don't substitute @SEP@ and @BINDIR@.
237         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
238         (PATH): Use GROFF_RUNTIME.
240         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
241         Don't substitute @SEP@ and @BINDIR@.
242         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
243         (PATH): Use GROFF_RUNTIME.
245 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
247         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
248         Cygwin which doesn't handle stderr correctly.
250 2004-03-08  Werner LEMBERG  <wl@gnu.org>
252         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
253         against empty argument.  Problem reported by <cgd@broadcom.com>.
255 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
257         * Makefile.in (SEP): Replaced with...
258         (RT_SEP, SH_SEP): Separators for the target platform's native path
259         separator and the build environment, respectively.
260         (fontpath, tmacpath): Use RT_SEP.
261         (MDEFINES): Updated.
263         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
264         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
265         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
266         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
268 2004-03-05  Werner LEMBERG  <wl@gnu.org>
270         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
271         reduce alignment problems with newer printers which use built-in
272         TrueType fonts (instead of the older Intellifonts).  The ideal
273         solution is to provide a second set of groff metric files, but this
274         is extremely time-consuming to produce, given that HP's metric
275         files are very rudimentary.
277 2004-03-01  Werner LEMBERG  <wl@gnu.org>
279         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
280         s/operand/argument/ in error message.
282 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
284         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
285         is in use.
287 2004-03-01  Antti Kantee  <pooka@netbsd.org>
289         * tmac/s.tmac (XE): Fix error message.
291 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
293         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
294         New macros.
296         * src/roff/groff/pipeline.c: Declare strcasecmp.
297         (run_pipeline) [_WIN32]: Use function name variants which don't
298         start with `_'.
299         Fix stream handling.
301 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
303         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
304         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
305         for platforms which use the native Win32 runtime libraries.
306         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
308         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
309         QUOTE_ARG_REALLOC_ERROR): Fix string.
311         * src/preproc/html/pre-html.cpp: Remove declaration of
312         `spawnvp_wrapper'.
313         Don't use __MINGW32__.
314         s/DEBUG_FILE/DEBUG_FILE_DIR/.
315         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
316         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
317         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
318         calls to `set_redirection' and `WAIT'.
319         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
320         Fix calls to `set_redirection' and `save_and_redirect'.
321         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
322         to `set_redirection' and `save_and_redirect'.
323         (usage): Fix message.
324         (makeTempFiles, main): Use `DEBUG_FILE'.
326 2004-02-21  Werner LEMBERG  <wl@gnu.org>
328         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
330 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
332         * src/libs/libgroff/quotearg.c: New file, providing proper argument
333         quoting for MSVC's spawn* and exec* functions.
334         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
335         spawnvp with proper quoting for MSVC.
337         * src/libs/libgroff/assert.cpp (program_name),
338         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
339         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
341         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
343         * src/include/error.h (program_name): Declare as `extern "C"'.
344         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
346 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
348         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
349         spawnvp_wrapper.
350         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
352 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
354         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
355         variable.
356         (sbasename) [__MSDOS__ || ...]: New function.
357         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
358         generic algorithm.
359         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
360         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
361         of XXX.
362         Use STDOUT_FILENO instead of hardcoded file handle.
363         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
365 2004-02-19  Werner LEMBERG  <wl@gnu.org>
367         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
368         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
370 2004-02-18  Werner LEMBERG  <wl@gnu.org>
372         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
373         new font and mapping files.
375 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
376             Keith Marshall  <keith.d.marshall@ntlworld.com>
378         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
379         an input pipe.  This is needed for the MSVC compiler to make troff's
380         `-o' option work.
382         * src/roff/troff/div.cpp: Include nonposix.h.
383         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
385 2004-02-17  Werner LEMBERG  <wl@gnu.org>
387         * font/devlj4/generate/special.awk: New script.
388         * font/devlj4/generate/Makefile (S): Use special.awk.
389         * font/devlj4/*: Regenerated, including the following new files:
390         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
391         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
392         * NEWS: Document new lj4 fonts and revised hpftodit.
394 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
396         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
398 2004-01-25  Werner LEMBERG  <wl@gnu.org>
400         * src/libs/libgroff/progname.cpp: Replaced with...
401         * src/libs/libgroff/progname.c: New file.
402         * src/libs/libgroff/Makefile.sub: Updated accordingly.
404 2004-01-17  Werner LEMBERG  <wl@gnu.org>
406         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
408 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
410         * font/devlj4/generate/wingdings.map,
411         font/devlj4/generate/symbol.map: Include unnamed glyphs.
412         Use groff glyph names where possible.
413         * src/devices/grolj4/lj4_font.man: Minor updates.
415 2004-01-13  Werner LEMBERG  <wl@gnu.org>
417         * tmac/www.tmac (DC): Handle TTY devices.
419         * doc/webpage.ms: Document viewCVS from ffii.org.
420         * NEWS, README: Updated.
422         * src/roff/groff/groff.man: Mention lj4_font man page.
424         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
425         variables.
426         (FONTS): Add SYMBOL and WINGDINGS.
427         (SYMBOL, WINGDINGS): New targets.
429 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
431         * src/devices/grolj4/lj4_font.man: New man page.
432         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
433         * src/devices/grolj4.man: Mention lj4_font man page.
435         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
436         * src/utils/hpftodit/hpftodit.man: Document it.
437         (CW): New macro.
438         Remove details about fonts (which are now in lj4_font.man).
440         * font/devlj4/generate/symbol.map,
441         font/devlj4/generate/wingdings.map: New files.
443 2004-01-12  Werner LEMBERG  <wl@gnu.org>
445         * README: Mention ffii's viewcvs access.
447 2004-01-09  Werner LEMBERG  <wl@gnu.org>
449         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
451 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
453         Revert most of the change from 2004-01-03 to better control used
454         symbol sets.
456         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
457         (text_symbol_sets, special_symbol_sets): New arrays.
458         (symbol_set_table): New global variable.
459         (read_symbol_sets): Use search order given in the text_symbol_sets
460         and special_symbol_sets arrays.  If command line flag -a is not
461         given, search both arrays.
462         (output_charset): Require x_height_tag only for command line flag -i.
464 2004-01-06  Werner LEMBERG  <wl@gnu.org>
466         Implement string-valued registers \n[.m] and \n[.M] to return the
467         name of the current drawing and background color, respectively.
469         * src/roff/troff/symbol.h: Moved to...
470         * src/include/symbol.h: Here.
471         Small fixes to make it work outside of the `troff' directory.
472         * src/roff/troff/symbol.cpp: Moved to...
473         * src/libs/libgroff/symbol.cpp: Here.
474         Small fixes to make it work outside of the `troff' directory.
476         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
477         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
478         Updated.
480         * src/include/color.h: Include symbol.h.
481         (color): Add new field `nm'.
482         * src/libs/libgroff/color.cpp (color::color): Updated.
484         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
485         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
486         src/roff/troff/reg.cpp: Don't include symbol.h.
488         * src/roff/troff/env.cpp: Don't include symbol.h.
489         (environment::get_glyph_color_string,
490         environment_get_fill_color_string): New member functions.
491         (init_env_requests): Handle `.m' and `.M' registers.
492         * src/roff/troff/input.cpp: Don't include symbol.h.
493         (default_symbol): Moved to symbol.cpp/symbol.h.
494         (do_glyph_color, do_fill_color, define_color): Pass symbol name
495         to color constructor.
496         * src/roff/troff/env.h: Updated.
498         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
499         Document new registers.
501 2004-01-05  Werner LEMBERG  <wl@gnu.org>
503         * src/roff/troff/nroff.cpp (space_node::get_breakpoints,
504         space_node::nbreaks): Protect against zero `next' field.
506 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
508         In hpftodit, use the symbol sets offered in the TFM.
510         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
511         (symbol_set, text_symbol_sets, special_symbol_sets,
512         symbol_set_table): Removed.
513         (get_printcode): Removed.
514         (read_symbol_sets): Initialize `symbol_set' field with
515         `NO_SYMBOL_SET'.
516         Simplify code to just use the `kind' value.
517         (output_charset): Improve output formatting.
518         (dump_symbols): Simplified.
520 2004-01-02  Werner LEMBERG  <wl@gnu.org>
522         * font/devlj4/generate/text.map: Add more MSL numbers.
524 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
526         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
527         (text_symbol_sets): Add more symbol sets.
528         (debug_flag): New static variable (moved from `main').
529         (get_printcode, show_symset): New functions.
530         (main): Remove `debug_flag'.
531         (output_charset): Use `show_symset'.
532         (dump_symbols):  Use `show_symset'.
533         Print symsets for all glyphs.
534         (read_map): Actually call `unicode_to_ucode_make' but this time
535         correctly.
537 2004-01-01  Werner LEMBERG  <wl@gnu.org>
539         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
540         Fix placement of comments.
542 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
544         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
545         option `-d' is given.
546         (output_charset): Improve warning messages to give more information.
547         (dump_symbols): Make information more precise.
548         (usage): Updated.
549         (read_map): Don't call unicode_to_ucode_name; the glyph names must
550         appear as-is and shouldn't be decomposed.
552 2003-12-31  Werner LEMBERG  <wl@gnu.org>
554         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
555         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
556         (FONTS): Add TrueType font families Arial and Times New Roman.
557         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
558         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
559         `fl'.
561 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
563         * test-groff.in (SEP): Quote value.
564         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
565         `tem' to `char*' to avoid deallocation of a pointer to a constant
566         object which some compilers don't like.
568 2003-12-31  Werner LEMBERG  <wl@gnu.org>
570         * font/devlj4/generate (text.map, special.map): Rewritten to work
571         with the new hpftodit version.
573 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
575         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
576         set and 8bit character code for all glyphs also.
578 2003-12-30  Werner LEMBERG  <wl@gnu.org>
580         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
582 2003-12-29  Werner LEMBERG  <wl@gnu.org>
584         More fixes for MSVC compiler.
586         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
587         $(SEP).
589         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
590         STDERR_FILENO) [_MSC_VER]: Define conditionally.
591         (getpid) [_MSC_VER]: Remove.
592         Include direct.h and process.h conditionally.
594         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
595         parentheses for a_delete.
597         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
599         * test-groff: Replaced with...
600         * test-groff.in: This new template to handle path separator
601         properly.
603         * configure.ac: Check for direct.h and process.h.
604         Generate test-groff script.
605         * configure, src/include/config.hin: Regenerated.
607 2003-12-28  Werner LEMBERG  <wl@gnu.org>
609         Add integral extension glyph.
610         Add new option `-x' to afmtodit to suppress use of built-in AGL.
612         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
614         * font/devps/generate/textmap: Provide entry for `integralex' to
615         override (old) PUA value of the AGL.
616         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
617         * font/devps/*: Regenerated.
619         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
620         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
622 2003-12-27  Werner LEMBERG  <wl@gnu.org>
624         Add forgotten `coproduct' symbol (already available for DVI).
626         * font/devhtml/R.proto, font/devps/generate/textmap,
627         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
628         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
629         U+2210 (\[coproduct]).
631 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
633         hpftodit has been extended to handle TrueType metric files and
634         more glyphs.  See hpftodit.man for more details.
636         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
637         ctype.h, and unicode.h.
638         s/msl/charcode/ everywhere since we now handle Unicode values also.
639         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
640         Use it where appropriate.
641         (MULTIPLIER): Replaced with...
642         (multiplier): New global static variable.
643         (scale): Updated.
644         (tag_type): Add more TFM tags.
645         (tag_name): New array.
646         (ENUM_TYPE, FLOAT_TYPE): Removed.
647         (BYTE_TYPE): New value assigned.
648         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
649         (text_symbol_sets, special_symbol_sets): Extended to cover more
650         sets.
651         (check_type): Add return value.
652         (check_units): Add parameters to get ppi and upem values.
653         Handle TrueType TFM data.
654         (output_font_name): New function.
655         (output_charset): Add parameter to handle TFM type.
656         Handle TrueType TFMs also.
657         (em_fract): New macro.
658         (dump_tags): Be much more verbose and handle more tags.
659         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
660         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
661         functions.
662         (read_map): Add parameter to handle TFM type.
663         Handle both MSL and Unicode mappings.
664         (main): Add two new command line options `-a' and `-q'.
665         Updated to make use of new functions.
666         (usage): Updated.
668         * src/utils/hpftodit/hpuni.cpp: New file.
670         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
671         Updated.
673 2003-12-25  Werner LEMBERG  <wl@gnu.org>
675         * src/include/nonposix.h (read) [_MSC_VER]: Define.
677 2003-12-24  Werner LEMBERG  <wl@gnu.org>
679         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
680         by Michail Vidiassov <master@iaas.msu.ru>.
682 2003-12-20  Werner LEMBERG  <wl@gnu.org>
684         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
685         and u0049_0307.
686         Add missing latin-2 glyphs.
687         * font/devutf8/R.proto: Add missing latin-2 glyphs.
689         * tmac/troffrc: Load `composite.tmac' earlier.
691         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
692         u00{53,73}_0327, and u0049_0307.
693         * tmac/X.tmac: Add u00{47,67}_0306.
694         * tmac/tty-char.tmac: Use composite glyph names for readability.
696         * NEWS: Updated.
698         * src/include/unicode.h: Remove `extern' keywords.
700 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
702         * tmac/latin5.tmac: New file.
704 2003-12-19  Werner LEMBERG  <wl@gnu.org>
706         Add some glyphs needed for Turkish.
708         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
709         and u0049_0307.
711         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
712         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
713         u00{53,73}_0327, and u0049_0307.
715 2003-12-18  Werner LEMBERG  <wl@gnu.org>
717         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
718         from 2001-10-04.
719         Remove trailing zeros.
721 2003-12-17  Werner LEMBERG  <wl@gnu.org>
723         Make \? transparent to end-of-sentence recognition.
725         * src/roff/troff/input.cc (non_interpreted_node): Add
726         `ends_sentence' member function.
728 2003-12-16  Werner LEMBERG  <wl@gnu.org>
730         * doc/groff.texinfo: Document `dt' request correctly.
731         Other minor typographical improvements.
733 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
735         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
737 2003-12-10  Richard Stallman  <rms@gnu.org>
739         * LICENSE: Better wording.
741 2003-12-09  Werner LEMBERG  <wl@gnu.org>
743         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
744         * configure, NEWS: Updated.
746 2003-12-08  Werner LEMBERG  <wl@gnu.org>
748         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
750 2003-12-07  Bernd Warken  <bwarken@mayn.de>
752         * LICENSE: Updated.
754 2003-12-07  Werner LEMBERG  <wl@gnu.org>
756         * INSTALL: Improved.
758 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
760         Use path separator character of target platform for compiled-in
761         default paths.
763         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
764         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
765         * configure: Regenerated.
766         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
768 2003-12-05  Werner LEMBERG  <wl@gnu.org>
770         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
771         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
773 2003-12-04  Bernd Warken  <bwarken@mayn.de>
775         * LICENSE: New file.
777 2003-12-03  Werner LEMBERG  <wl@gnu.org>
779         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
780         ligatures present in AFM files since groff currently only
781         understands some standard ligatures and nothing else.
783 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
785         * src/roff/groff/groff.cpp (main): Don't run the spooler if
786         option -v is given.
788         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
789         messages.
790         Close stdout copy.
791         Don't use Unix wait flags.
793 2003-12-02  Werner LEMBERG  <wl@gnu.org>
795         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
796         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
797         src/roff/troff/uniuni.cpp: Moved to...
798         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
799         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
800         src/libs/libgroff/uniuni.cpp: Here.
802         * src/include/Makefile.sub.old (HDRS),
803         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
804         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
806 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
808         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
809         `DEBUG_FILE'.
810         Updated all users.
812 2003-12-01  Werner LEMBERG  <wl@gnu.org>
814         * groff.texinfo: Document special behaviour of `.vs 0'.
815         Improve documentation of `cflags' request.
816         * NEWS: Updated.
818 2003-11-29  Werner LEMBERG  <wl@gnu.org>
820         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
821         * font/devlj4/CORONET: Regenerated.
823 2003-11-24  Werner LEMBERG  <wl@gnu.org>
825         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
826         if processing hyphenation patterns in traditional mode.
827         Improve error messages.
829 2003-11-20  Werner LEMBERG  <wl@gnu.org>
831         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
832         troff_output_file::put_char): Fix type of local variable `c'.
834 2003-11-19  Werner LEMBERG  <wl@gnu.org>
836         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
837         declarations.
838         (i_to_a): Removed.  libgroff already provides this function.
839         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
841 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
843         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
844         HAVE_DECL_SYS_LIST.
846 2003-11-17  Werner LEMBERG  <wl@gnu.org>
848         * COPYING: Use correct version.
850 2003-11-11  Werner LEMBERG  <wl@gnu.org>
852         LynxOS 4.0.0 doesn't declare vfprintf.
854         * configure.ac: Check for vfprintf.
855         * configure: Regenerated.
856         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
857         * src/include/config.hin: Regenerated.
859 2003-11-10  Werner LEMBERG  <wl@gnu.org>
861         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
863         * configure.ac: Check for vsnprintf.
864         * configure: Regenerated.
865         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
866         `HAVE_VSNPRINTF'.
867         * src/include/config.hin: Regenerated.
869 2003-11-09  Werner LEMBERG  <wl@gnu.org>
871         * aclocal.m4: Updated syntax to autoconf 2.59.
872         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
873         Don't check for gsos2.
874         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
875         working abs_top_srcdir and abs_top_builddir.
877         * configure.ac: Updated syntax to autoconf 2.59.
878         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
879         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
880         * configure: Regenerated.
882         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
883         s/@groff_top_builddir@/@abs_top_builddir@/.
885         * src/roff/groff/pipeline.c (xstrsignal):
886         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
888 2003-11-07  Werner LEMBERG  <wl@gnu.org>
890         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
891         make start angle smaller than end angle to circumvent a bug in tpic
892         handling of some versions of dvipdfm (and dvipdfmx).
894 2003-10-30  Werner LEMBERG  <wl@gnu.org>
896         * src/devices/grops/grops.man: Improve section on creating EPS.
898 2003-10-29  Werner LEMBERG  <wl@gnu.org>
900         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
901         -P-pletter).
903 2003-10-28  Werner LEMBERG  <wl@gnu.org>
905         * doc/groff.texinfo: Fix documentation of `.if'.
907 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
909         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
910         the form `uniXXXX' also.
912 2003-10-27  Werner LEMBERG  <wl@gnu.org>
914         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
915         contrib/pic2graph/pic2graph.sh: Implement secure management of
916         temporary files.
917         Pass `-P-pletter' to groff to avoid data outside of the converted
918         area -- some versions of `convert' (for example 5.3.8) don't check
919         the bounding box of the image but always use a fixed image size
920         (letter paper format).
921         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
922         contrib/pic2graph/pic2graph.man: Updated.
924         * src/roff/groff/groff.man: Document $TMP and $TEMP.
926 2003-10-26  Werner LEMBERG  <wl@gnu.org>
928         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
929         troff_output::simple_ellipse, troff_output::simple_arc,
930         troff_output::simple_line, troff_output::simple_spline,
931         troff_output::simple_polygon): Insert a space before arguments.
932         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
933         latter doesn't produce a node, so the following `.sp -1' would do
934         the wrong thing.
935         Don't emit `.sp -1' after \M.  This also doesn't produce a token
936         (and we don't have to care about compatibility mode).
937         (troff_output::set_color, troff_output::reset_color): Don't emit
938         `.sp -1' after \M and \m.
940         * src/roff/troff/input.cpp (old_have_input): New global variable.
941         (input_stack::get): Handle `old_have_input'.
942         (process_input_stack) <token::TOKEN_NEWLINE>: Call
943         `trapping_blank_line' depending on `old_have_input', not
944         `have_input'.
946 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
948         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
949         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
950         default directory names for temporary files.
951         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
953         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
954         [__MSDOS__] (run_pipeline): Honour environment variables.
955         Don't use `tmpnam' but `tempnam' to work around messy
956         implementation.
958         * README.MinGW: New file.
960 2003-10-16  Werner LEMBERG  <wl@gnu.org>
962         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
963         `(*t)->next' without testing validity of `*t'.
964         (usage): Make it more readable.
966 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
968         Make html device run under both MS-DOS and Win32.
970         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
971         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
972         spawn or fork+exec has to be used, and whether parent must sleep
973         until the child process terminates.  Used in
974         `char_buffer::run_output_filter'.
975         (copyofstdoutfd): Removed.
976         (char_buffer): Replace `write_file_html' and `write_file_troff'
977         member functions with `emit_troff_output' and `run_output_filter'.
978         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
979         macros.
980         (replaceFd): Replaced with...
981         (set_redirection): New auxiliary function.
982         (waitForChild): Replaced with...
983         (save_and_redirect): New auxiliary function for.
985         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
986         functions.
988 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
990         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
991         (GROFF_LIBC): New function.
992         * configure.ac: Call GROFF_LIBC.
993         Check for `kill'.
994         * configure: Regenerated.
996         * src/include/lib.h: Handle __MINGW32__.
997         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
998         Add macro for `pipe'.
999         Define P_tmpdir.
1001         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1002         correctly.
1004         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1005         Implement.
1007 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1009         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1010         <chuq@chuq.com>.
1012         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1013         directory.
1015 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1017         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1018         src/roff/troff/input.cc (usage): Updated.
1020         * NEWS, doc/groff.texinfo: Updated.
1022 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
1024         * src/libs/libgroff/searchpath.cpp
1025         (search_path::open_file_cautious): New function which also handles
1026         `-' as stdin and stdout depending on the access mode.
1027         * src/include/searchpath.h (search_path): Updated.
1029         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1030         * src/devices/grops/ps.h: Include `searchpath.h'.
1031         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1032         Open resource file with `include_search_path.open_file_cautious'.
1033         * src/devices/grops/grops.man: Document new `-I' switch.
1035         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1036         (main), src/devices/grolj4/lj4.cpp (main),
1037         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1039         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1040         Replaced with...
1041         (include_search_path): New global variable.
1042         (include_path_append): Removed.
1043         (main): Use `include_search_path.command_line_dir' to handle `-I'.
1044         (do_file): Simplify, using new
1045         `include_search_path.open_file_cautious'.
1047         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1048         parameter.
1049         (main): Pass arguments to `-I' to both troff and devices.
1050         Improve handling of `-V'.
1051         * src/roff/groff/groff.man: Document changes to -I and -V.
1053         * src/roff/troff/input.cpp (include_search_path): New global
1054         variable.
1055         (next_file, source, ps_bbox_request, transparent_file,
1056         process_input_file): Use new
1057         `include_search_path.open_file_cautious'.
1058         (main) Handle `-I' switch.
1059         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1060         Use new `include_search_path.open_file_cautious'.
1061         * src/roff/troff/node.h: New extern symbol `include_search_path'.
1062         * src/roff/troff/troff.man: Document new `-I' switch.
1064 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
1066         Support multiple calls of .Lb in LIBRARY section.
1068         * tmac/doc-common (doc-in-library-section): New register.
1069         (doc-section-library): New string.
1070         (Sh): Set `doc-in-library-section'.
1071         (Rd): Updated.
1072         * tmac/doc-syms (Lb): Insert breaks before and after arguments
1073         if in LIBRARY section.
1074         * tmac/doc.tmac (doc-save-global-vars): Updated.
1075         * NEWS, tmac/groff_mdoc.man: Updated.
1077 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
1079         * tmac/doc-common (doc-default-operating-system): New variable.
1080         (Os): Use it.
1082 2003-09-08  Werner LEMBERG  <wl@gnu.org>
1084         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1086 2003-08-31  Werner LEMBERG  <wl@gnu.org>
1088         * contrib/mom/Makefile.sub: Fix last change to make it really work.
1089         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1090         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1091         $(DEVFILES) are not empty.
1092         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1094 2003-08-26  Chuck Silvers  <chuq@chuq.com>
1096         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1097         with parallel runs of `make'.
1099 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
1101         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1102         insert SORT_SEP.  With certain combinations of sort specifications,
1103         refer sorted entries in the wrong order.  In particular, entries
1104         with a missing field should be be sorted before all entries that
1105         have that field, before refer looks to the next field.
1107 2003-08-23  Werner LEMBERG  <wl@gnu.org>
1109         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1110         g++ linker is used.  Reported by Mark J. Reed
1111         <mark.reed@turner.com>.
1113 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1115         Add key character `x' to tbl which makes tbl call a user-defined
1116         macro on a table cell.
1118         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1119         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1120         `set_modifier' after printing the compatibility request.
1121         (set_modifier): Print call to `m->macro' if not empty.
1122         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1123         `macro'.
1124         (process_format): Implement cases `x' and `X'.
1125         * src/preproc/tbl/tbl.man, NEWS: Updated.
1127 2003-08-15  Werner LEMBERG  <wl@gnu.org>
1129         * doc/groff.texinfo: Minor fixes.
1131 2003-08-09  Werner LEMBERG  <wl@gnu.org>
1133         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1135 2003-08-07  Werner LEMBERG  <wl@gnu.org>
1137         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1138         argument list to nothing if there is no file to match.  Use `ls' as
1139         a protection, similar to autoconf.
1141         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1142         empty argument lists.
1144         * doc/groff.texinfo: Improve documentation how vertical spacing
1145         and line breaks interact.
1146         Other minor fixes.
1148         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1150 2003-08-03  Werner LEMBERG  <wl@gnu.org>
1152         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1153         EPS (using eps2eps or similar programs to compute the bounding box).
1155 2003-07-24  Werner LEMBERG  <wl@gnu.org>
1157         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1158         * doc/texinfo.tex: Updated from texinfo 4.6.
1159         * README.CVS: From now on we need texinfo 4.6.
1161 2003-07-23  Werner LEMBERG  <wl@gnu.org>
1163         Add requests `dei1' and `ami1' for completeness.
1165         * src/roff/troff/input.cc (calling_mode): Remove
1166         CALLING_DISABLE_COMP.
1167         (comp_mode): New enumeration.
1168         (do_define_string, define_string, define_nocomp_string,
1169         append_string, append_nocomp_string): Updated.
1170         (do_define_macro): Add third parameter.
1171         (define_macro, define_nocomp_macro, define_indirect_macro,
1172         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1173         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1174         functions.
1175         (ignore): Updated.
1176         (init_input_requests): Add `dei1' and `ami1'.
1178         * tmac/trace.tmac: Handle de1 and am1.
1179         (de): Improve tracing message.
1180         (am): Add missing `do'.
1181         (return): Use de1.
1183         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1184         Document new requests.
1186 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1188         Add option -G to .MPIMG to insert a gap between text and the image.
1190         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1191         www-finish-left-ll): Updated.
1192         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1193         (MPIMG): Make option -L and -R optional.
1194         Implement option -G.
1196 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
1198         * src/devices/grohtml/post-html.cpp
1199         (html_printer::do_file_components): Don't use `stdout' as lvalue
1200         since it can be a macro.
1202 2003-07-22  Werner LEMBERG  <wl@gnu.org>
1204         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1205         the corresponding test in aclocal.m4.
1207 2003-07-21  Werner LEMBERG  <wl@gnu.org>
1209         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1210         names but RGB values directly.  Otherwise pnmtopng depends on
1211         an external file `rgb.txt' which maps colour names to values.
1213 2003-07-20  Werner LEMBERG  <wl@gnu.org>
1215         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1216         * configure, src/include/config.hin: Regenerated.
1218         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1220 2003-07-19  Werner LEMBERG  <wl@gnu.org>
1222         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1224 2003-07-18  Werner LEMBERG  <wl@gnu.org>
1226         * *.man: Switch to non-compatibility mode temporarily if GNU
1227         syntax extensions are used in the particular man page.
1229         * PROBLEMS: Add solutions for SGR problems.
1231 2003-07-17  Werner LEMBERG  <wl@gnu.org>
1233         Don't ignore grotty's command line options if \X'tty: sgr ...' is
1234         used to change the drawing scheme.
1236         * src/devives/grotty/tty.cpp (bold_flag_option,
1237         underline_flag_option, italic_flag_option, reverse_flag_option,
1238         bold_underline_mode_option): New global variables.
1239         (update_options): New function.
1240         (tty_printer::special): Call update_options.
1241         (main): Don't set xxx_flag but xxx_flag_option, then call
1242         update_options.
1244 2003-07-14  Werner LEMBERG  <wl@gnu.org>
1246         Make grotty emit proper Unicode box drawing characters for -Tutf8.
1248         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1249         values.
1250         (hline_char, vline_char): New global variables.
1251         (tty_printer::tty_printer): Initialize them.
1252         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1253         horizontal and vertical lines.
1254         (crossings): New global array.
1255         (tty_printer::end_page): Use it to determine the proper crossing
1256         character for -Tutf8.
1258 2003-07-12  Werner LEMBERG  <wl@gnu.org>
1260         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1261         (HTMLDOCFILES): Revert to `pic.html'.
1262         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1264 2003-07-11  Werner LEMBERG  <wl@gnu.org>
1266         * doc/pic.ms: Improve documentation of absolute coordinates.
1267         Document absolute positioning of pictures.
1269         * NEWS: Add new pic capability.
1271 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
1273         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1274         Rewritten.
1276 2003-07-07  Werner LEMBERG  <wl@gnu.org>
1278         Implement support for dashed and dotted ellipses in pic.  Based on
1279         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1281         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1282         common_output::dashed_ellipse, common_output::dotted_ellipse): New
1283         functions.  Ellipse arcs are approximated with circle arcs.
1284         * src/preproc/pic/common.h (common_output): Updated.
1285         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1286         functions.
1287         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1289         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1291 2003-07-06  Werner LEMBERG  <wl@gnu.org>
1293         Make grotty work on platforms which have unsigned char as the
1294         default for char.  Based on a patch by Thomas Klausner
1295         <wiz@netbsd.org>.
1297         * src/devices/grotty/tty.cpp (schar): New typedef.
1298         Updated calls to declare_ptable and implement_ptable.
1299         (glyph): Use schar for back_color_idx and fore_color_idx.
1300         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1301         (tty_printer::tty_color, tty_printer::tty_printer,
1302         tty_printer::color_to_idx, tty_printer::put_color): Updated.
1304 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1306         * src/roff/nroff/nroff.sh: Add option -d for completeness.
1307         * src/roff/nroff/nroff.man: Updated.
1309 2003-07-05  Werner LEMBERG  <wl@gnu.org>
1311         * NEWS, tmac/groff_www.man: Updated.
1312         * doc/Makefile.sub: Updated.
1314 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
1316         Implement support for multiple HTML output files.
1318         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1319         -j command line option.
1321         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1322         global variables.
1323         (file): New fields `new_output_file', `require_links',
1324         `output_file_name'.
1325         (file::file): Updated.
1326         (files::set_file_name, files::set_links_required,
1327         files::are_links_required, files::is_new_output_file,
1328         files::file_name, files::next_file_name): New functions.
1329         (header_desc): New fields `no_of_level_one_headings',
1330         `header_filename'.
1331         (header_desc::header_desc): Updated.
1332         (header_desc::write_headings): Handle multiple files.
1333         (html_printer::write_header): Save file name in which header occurs.
1334         (html_printer::determine_header_level): Possibly split files on
1335         level one headings.
1336         (html_printer::do_links, html_printer::troff_tag): Updated.
1337         (html_printer::insert_split_file, html_printer::do_job_name,
1338         html_printer::emit_link, html_printer::write_navigation,
1339         html_printer::do_file_components): New functions.
1340         (html_printer::~html_printer): Handle multiple files.
1341         (main): Handle command line option `-j'.
1343         * src/devices/grohtml/grohtml.man: Updated.
1345         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1346         which splits file.
1348         * tmac/www.tmac (JOBNAME): New macro.
1349         * tmac/s.tmac (SH-NO-TAG): New macro.
1350         (@SH): Call SH-NO-TAG.
1351         (@NH): Updated.
1353 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1355         * tmac/groff_mdoc.man: Improve documentation of punctuation
1356         characters.
1358 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
1360         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1362 2003-07-03  Werner LEMBERG  <wl@gnu.org>
1364         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1366 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
1368         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1369         after `/*' and `*/'.
1370         Fix spacing.
1371         (Fn, Fo): Reduce indentation in synopsis.
1373         * tmac/doc-common (doc-check-depth): New macro.
1374         (doc-end-macro, Sh, Ss): Use it.
1375         (Cd): Fix behaviour in synopsis.
1376         (In): Make it parsed and callable.
1377         If not in the synopsis, represent the C header file enclosed in
1378         angle brackets.
1379         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1380         Use minus, not hyphen.
1382         * tmc/groff_mdoc.man: Updated.
1384 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1386         Integrated grap2graph, contributed by Eric S. Raymond.
1388         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1389         New files.
1390         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1391         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1393 2003-07-01  Colin Watson  <cjwatson@debian.org>
1395         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1396         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1398 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1400         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1402 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1404         * doc/Makefile.sub (CLEANADD): Remove all files created by
1405         running `make groff.{pdf,dvi}'.
1407         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1408         src/xditview also.
1410 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1412         * Makefile.in (SHELL): Define as @SHELL@.
1413         (mkinstalldirs): Use $(SHELL).
1414         (MDEFINES): Add $(SHELL).
1415         * Makefile.comm (SHELL): Removed.
1417 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1419         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1420         The X11 documentation files use them.
1421         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1423 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1425         * tmac/e.tmac (@C): Handle .ad also.
1427 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1429         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1431         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1432         Assign `n' even here.  It is possible to construct a node
1433         immediately following an escape character:
1435           .di xx
1436           \?\\\?a
1437           .br
1438           .di
1439           .xx
1441 2003-06-10  Werner LEMBERG  <wl@gnu.org>
1443         * README.WIN32: Removed.
1444         * MANIFEST: Updated.
1446 2003-06-07  Werner LEMBERG  <wl@gnu.org>
1448         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1450 2003-06-05  Werner LEMBERG  <wl@gnu.org>
1452         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1453         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1455 2003-06-03  Werner LEMBERG  <wl@gnu.org>
1457         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1458         is done by the calling function.
1460 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
1462         * tmac/X.tmac: Fix definition of `em'.
1464 2003-05-22  Werner LEMBERG  <wl@gnu.org>
1466         * src/roff/troff/input.cc (return_macro_request): Fix detection of
1467         argument.
1469 2003-05-18  Werner LEMBERG  <wl@gnu.org>
1471         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1472         to make items work which consist only of a tag.
1474 2003-05-17  Werner LEMBERG  <wl@gnu.org>
1476         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1477         aren't stretched in a tag (this can fail with unformatted boxes).
1478         Instead, insert a break and go back one line.
1480 2003-05-16  Werner LEMBERG  <wl@gnu.org>
1482         * src/roff/troff/input.cc (return_macro_request): If called with
1483         argument pop macro twice.  We need this to trace `return'.
1485         * tmac/trace.tmac: Handle `return'.
1486         Fix typos.
1488         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1489         Document.
1491 2003-05-15  Larry Kollar  <kollar@alltel.net>
1493         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1494         registers `FPS', `FVS', and `FPD'.
1496 2003-05-15  Werner LEMBERG  <wl@gnu.org>
1498         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1499         correctly.
1501 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
1503         * tmac/groff_mdoc.man: Slight improvements.
1505 2003-05-03  Werner LEMBERG  <wl@gnu.org>
1507         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1508         `doc-header-space' after header line if register `cR' is set.
1510 2003-05-02  Werner LEMBERG  <wl@gnu.org>
1512         * TODO: Updated.
1514 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
1516         * tmac/doc-common (Nd): Use \[em].
1518 2003-05-01  Werner LEMBERG  <wl@gnu.org>
1520         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1521         doc-footer-space): Initialize to 0.5i.
1522         (doc-setup-page-layout): Don't set doc-header-space and
1523         doc-footer-space.
1525 2003-04-30  Werner LEMBERG  <wl@gnu.org>
1527         * REVISION: Set to 1.
1529         * doc/pic.ms: Document possible problems with `figname'.
1531 2003-04-29  Werner LEMBERG  <wl@gnu.org>
1533 Version 1.19 released
1534 =====================
1536         * VERSION: Set to 1.19.
1537         * REVISION: Set to 0.
1538         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1540         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1541         Define charset as `US-ASCII' in html output.
1543         * tmac/www.tmac (ULE): Add missing scaling indicator.
1545         * win32-diffs: Removed.
1547 2003-04-28  Werner LEMBERG  <wl@gnu.org>
1549         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1550         `.da' and `.boxa'.
1551         Document how to insert discardable whitespace with `.ss'.
1553 2003-04-27  Werner LEMBERG  <wl@gnu.org>
1555         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1556         work with plain TeX also.
1558         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1560 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
1562         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1563         Use a loose DTD.
1565 2003-04-24  Werner LEMBERG  <wl@gnu.org>
1567         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1568         vbox with positive height and zero depth if in TeX mode.
1570         * NEWS: Document glyph name changes for grodvi and grolj4.
1572 2003-04-23  Werner LEMBERG  <wl@gnu.org>
1574         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1575         * doc/pic.ms: Fixed.
1577 2003-04-21  Werner LEMBERG  <wl@gnu.org>
1579         HP-UX 10.20 has `snprintf' but it isn't declared.
1581         * configure.ac: Add declaration test for snprintf.
1582         * configure: Regenerated.
1583         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1584         * src/include/config.hin: Regenerated.
1586 2003-04-19  Werner LEMBERG  <wl@gnu.org>
1588         Add keyword `figname' to pic, specifying the name of the picture
1589         box in TeX mode.  Based on a patch from William J Poser
1590         <wjposer@unagi.cis.upenn.edu>.
1592         * src/preproc/pic/pic.y: New token `FIGNAME'.
1593         (macro_name): New rule of type <str>.
1594         (placeless_element): Handle `FIGNAME'.
1595         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1596         * src/preproc/pic/main.cpp (graphname): New global variable.
1597         (do_picture): Initialize `graphname'.
1598         * src/preproc/pic/pic.h: Updated.
1599         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1600         `graphname'.
1601         Simplify TeX code.
1602         (tex_output::text): Beautify output.
1603         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1604         `shaded' and `outlined' unconditionally.
1605         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1606         Minor improvements.
1608         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1609         greater is necessary.
1611 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
1613         Add option -r to soelim to avoid emission of `.lf' lines.
1614         Add option -t to produces TeX comment lines instead of `.lf' lines.
1616         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1617         and `tex_flag'.
1618         (usage): Updated.
1619         (main): Handle `-r' and `-t'.
1620         (set_location): Handle `raw_flag' and `tex_flag'.
1621         * src/preproc/soelim/soelim.man, NEWS: Updated.
1623 2003-04-17  Werner LEMBERG  <wl@gnu.org>
1625         * tmac/hyphenex.sh: Replaced with...
1626         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1627         nightmares.
1629         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1630         if --quiet is used for the configure script.
1631         * configure: Regenerated.
1633 2003-04-16  Werner LEMBERG  <wl@gnu.org>
1635         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1636         Add `const' to second argument.
1637         (html_printer::add_table_end): Add `const' to argument.
1638         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1639         `const' to arguments.
1640         * src/devices/grohtml/html-text.h: Updated.
1642         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1643         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1644         argument.
1646         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1647         cast for integer constant.
1649         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1650         (writeNbytes): Add `const' to first argument.
1651         (writeString): Add `const' to argument.
1652         (char_buffer::can_see): Add `const' to third argument.
1653         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1654         `const' to argument.
1655         * src/preproc/html/pushback.h: Updated.
1657         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1658         (include_path_append): Add `const' to argument.
1659         (do_file): Updated.
1661         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1662         for `value'.
1663         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1664         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1665         for `value'.
1666         (unicode_decompose_init::unicode_decompose_init): Updated.
1667         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1668         for `value'.
1669         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1670         * src/roff/troff/input.cc (process_startup_file): Add `const' to
1671         argument.
1673         * tmac/hyphenex.sh: Make script more portable by using a here
1674         document.
1676 2003-04-15  Werner LEMBERG  <wl@gnu.org>
1678         Renamed all `*.cc' files to `*.cpp'.
1679         Updated all configuration files, makefiles, and documentation.
1681 2003-04-14  Werner LEMBERG  <wl@gnu.org>
1683         * tmac/hyphenex.sh: Slight improvements.
1685 2003-04-13  Werner LEMBERG  <wl@gnu.org>
1687         * font/devascii/R.proto, font/devcp1037/R.proto,
1688         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1689         character slots with unnamed glyphs.
1691         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1692         (an-first): New global variable.
1693         (an-header): Emit vertical space between multiple man pages.
1695 2003-04-11  Werner LEMBERG  <wl@gnu.org>
1697         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1698         values.
1700 2003-04-10  Werner LEMBERG  <wl@gnu.org>
1702         * PROBLEMS: Revised.
1704 2003-04-10  Bernd Warken  <bwarken@mayn.de>
1706         * doc/webpage.ms: Improved.
1708 2003-04-09  Werner LEMBERG  <wl@gnu.org>
1710         Add register \n[.height] which returns the value of \H.
1711         Add register \n[.slant] which returns the value of \S.
1713         * src/roff/troff/env.cc (init_env_requests): Implement.
1714         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1715         Document.
1717 2003-04-08  Werner LEMBERG  <wl@gnu.org>
1719         * tmac/html.tmac: Move some of the data into html-end.tmac.
1720         Remove most of the character translations for eqn since html fonts
1721         now cover those characters.
1722         Load www.tmac.
1723         * tmac/html-end.tmac: New file.
1724         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1725         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1726         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1728 2003-04-07  Werner LEMBERG  <wl@gnu.org>
1730         * man/groff_out.man: Document negative values of `N' if -Thtml is
1731         used.
1733 2003-04-06  Werner LEMBERG  <wl@gnu.org>
1735         * Makefile.comm (depend.temp): Check location of YTABC.
1737 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1739         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1740         binary path.
1741         (groff_bin_path): Rename to GROFF_BIN_PATH.
1742         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1743         * doc/Makefile.in (TROFFBIN): New variable for troff
1744         binary path.
1745         (GROFFBIN): New variable for groff binary path.
1746         (groff_bin_path): Rename to GROFF_BIN_PATH.
1747         (TROFF): Use TROFFBIN.
1748         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1749         * doc/Makefile.sub (GROFFBIN): New variable for groff
1750         binary path.
1751         (groff_bin_path): Rename to GROFF_BIN_PATH.
1752         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1754         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1755         with INSTALL_SCRIPT.
1756         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1757         * Makefile.dev (all): Depend on DEVSCRIPTS.
1758         (install_dev): Likewise.
1759         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1760         scripts.
1761         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1762         (DEVGENSCRIPTS): New variable to hold generated scripts.
1764 2003-04-05  Werner LEMBERG  <wl@gnu.org>
1766         * src/libs/libdriver/input.cc (IntArray::operator[],
1767         IntArray::get_data): Remove meaningless `const' in return value.
1769         * README.CVS: New file.
1771 2003-04-04  Werner LEMBERG  <wl@gnu.org>
1773         Check for stdint.h in C++, not in C.
1775         * aclocal.m4 (GROFF_STDINT_H): New function,
1776         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1777         AC_CHECK_HEADERS.
1778         * configure, src/include/config.hin: Regenerated.
1779         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1782         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
1783         with a negative value, representing the width of the unbreakable
1784         space (only for -Thtml).  grohtml then converts this back to
1785         &nbsp; and uses the value of N as its width.
1787         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1788         unbreakable_space_node::tprint): Emit `N-<width>'.
1789         * src/include/printer.h (printer::set_numbered_char): Make it
1790         virtual.
1791         Make members `font_table' and `nfonts' protected instead of private.
1792         * src/devices/grohtml/post-html.cc
1793         (html_printer::set_numbered_char): New member function.
1796         * src/libs/libgroff/maxfilename.cc:
1797         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1799         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1800         emit word marker.
1802 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
1804         * man/roff.man: Small fixes.
1806 2003-04-03  Werner LEMBERG  <wl@gnu.org>
1808         Make groff independent from locale's numeric settings.
1810         * configure.ac: Check for `setlocale'.
1811         * configure, src/include/config.hin: Regenerated.
1813         * src/include/lib.h: Handle HAVE_SETLOCALE.
1815         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1816         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1817         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1820         * doc/groff.texinfo: Change dir category to `Typesetting'.
1821         (Man font macros): Mention that there is no space between arguments
1822         of .BI and friends.
1824         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1825         (*printer::change_color, *printer::change_fill_color): Add missing
1826         `const'.
1828 2003-04-02  Werner LEMBERG  <wl@gnu.org>
1830         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1831         html_table::is_gap): Compute table widths after converting border
1832         positions to avoid rounding errors.
1834 2003-04-01  Werner LEMBERG  <wl@gnu.org>
1836         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1837         `space_emitted' properly.
1839 2003-03-31  Werner LEMBERG  <wl@gnu.org>
1841         * src/devices/grohtml/html-table.cc: Fix column width calculation.
1842         (html_table::set_linelength): Don't add 1.
1843         (html_table::add_indent): Don't subtract 1.
1845         * tmac/html.tmac: Set default page offset to zero.
1847 2003-03-30  Werner LEMBERG  <wl@gnu.org>
1849         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
1851         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1852         unbreakable_space_node::tprint): New functions.
1853         (troff_output_file): Make space_char_hmotion_mode::tprint and
1854         unbreakable_space_node::tprint to friends.
1855         * src/roff/troff/node.h: Updated.
1857         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
1858         in the HTML standard).
1860 2003-03-29  Werner LEMBERG  <wl@gnu.org>
1862         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1863         Otherwise, the following code
1865           .di xxx
1866           .ps 10
1867           a
1868           .br
1869           .di
1870           x\*[xxx]
1872         produces `x a' instead of `xa'.  This is a temporary fix, disabling
1873         font changes in diversions for -Thtml.
1875         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1876         `HTML-TAG'.
1877         (an-do-tag-html): Merge with ...
1878         (an-do-tag): This macro.
1879         Change code slightly to circumvent grohtml bug.
1880         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1882         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1883         html_table::is_gap): Round `width' properly.
1885         * tmac/html.tmac: Provide some default layout parameters for
1886         grohtml.
1888         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1889         command.
1891 2003-03-28  Werner LEMBERG  <wl@gnu.org>
1893         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1895 2003-03-27  Werner LEMBERG  <wl@gnu.org>
1897         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1898         defined.
1900 2003-03-20  Werner LEMBERG  <wl@gnu.org>
1902         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1903         `.vs'.
1904         * doc/groff.texinfo: Updated.
1906 2003-03-19  Werner LEMBERG  <wl@gnu.org>
1908         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1909         TOKEN_END_TRAP>: Reset `have_input'.
1911 2003-03-18  Werner LEMBERG  <wl@gnu.org>
1913         * src/roff/groff/groff.man: Mention groff_trace man page.
1915 2003-03-16  Werner LEMBERG  <wl@gnu.org>
1917         * Makefile.in (LIBEXT): New variable to indicate the file extension
1918         of library files.  Computed heuristically from $(OBJEXT).
1919         (MDEFINES): Add $(LIBEXT).
1920         * Makefile.lib, Makefile.comm: Use it.
1922         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
1923         overlong lines into smaller chunks.
1924         (get_binary): New function.
1925         (main): Use them.
1926         * src/utils/pfbtops/pfbtops.man: Updated.
1928 2003-03-15  Colin Watson  <cjwatson@debian.org>
1930         * src/roff/groff/groff.man: Minor syntax fix.
1932 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
1934         * src/devices/grops/ps.cc (ps_printer::media_set,
1935         ps_printer::~ps_printer): Handle zero paper width and length.
1937 2003-03-13  Werner LEMBERG  <wl@gnu.org>
1939         Add options -p and -l to grodvi.
1941         * src/devices/grodvi/dvi.cc: Include paper.h.
1942         (landscape_flag, user_paper_length, user_paper_width): New global
1943         variables.
1944         (dvi_printer::begin_page): Emit `papersize' special.
1945         Set color after initialization of `cur_h' and `cur_v'.
1946         (main): Add options `-l' and `-p'.
1947         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1948         * src/devices/grodvi/grodvi.man, NEWS: Updated.
1950         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1952 2003-03-12  Werner LEMBERG  <wl@gnu.org>
1954         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1955         * man/groff_tmac.man: This man page.
1956         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1957         deprecated.
1959         * tmac/X.tmac: Don't load pspic.tmac.
1961 2003-03-11  Werner LEMBERG  <wl@gnu.org>
1963         Make variable `pr' local to libdriver/input.cc.  Based on a patch
1964         by Bernd Warken <bwarken@mayn.de>.
1966         * src/include/driver.h (pr): Removed.
1968         * src/libs/libdriver/input.cc (pr): New global variable.
1969         (do_file): Deallocate `pr'.
1970         * src/libs/libdriver/printer.cc (pr): Removed.
1972         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1973         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1974         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1975         (main): Don't delete `pr'.
1977 2003-03-10  Werner LEMBERG  <wl@gnu.org>
1979         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1980         * tmac/papersize.tmac: New file.
1981         * tmac/troffrc: Include `papersize.tmac'.
1982         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1983         * tmac/an-old.tmac: Set LT to LL by default.
1985         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1986         doc/groff.texinfo: Updated.
1988         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1989         bug which caused all odd iso papers to have wrong dimensions.
1991         * src/devices/grops/ps.cc (user_paper_width): New global variable.
1992         (main) <'p'>: Set `user_paper_width' also.
1993         (ps_printer::media_width, ps_printer::media_height): Use values
1994         given with option `-p'.
1996 2003-03-09  Werner LEMBERG  <wl@gnu.org>
1998         * src/include/nonposix.h: Provide default for SET_BINARY.
2000         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2001         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2002         unconditionally.
2004         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2005         (main): Treat \r\n as \n.
2007 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2009         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2010         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2012 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2014         Added support to access more than 256 glyphs in Type 1 fonts.
2016         * src/devices/grops/ps.cc (subencoding): New structure.
2017         (style): Add `sub' field.
2018         Updated all users.
2019         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2020         Add `set_subencoding', `get_subfont' and `encode_subfont' member
2021         functions.
2022         Updated all users.
2023         (ps_printer::set_char): Use `set_subencoding'.
2024         (make_subencoding_name): New function.
2025         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2026         (ps_printer::~ps_printer): Emit subencoding definitions.
2028         * src/devices/grops/psrm.cc (valid_input_table): New array to
2029         properly support EBCDIC.
2030         (white_space): Add `\f'.
2031         (ps_get_line): Change first argument to be of type `string &'.
2032         Updated all callers.
2033         This allows to get lines of arbitrary length.
2034         Use `valid_input_table'.
2035         Remove warning about non-conforming PS line length.  This seems
2036         not to be of great importance -- for example, dvips don't emit
2037         a warning either.
2038         (PS_LINE_MAX): Removed.
2039         (matches_comment): Change first argument to be of type `string &'.
2041         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2043         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2044         %AGL_to_unicode, %default_ligatures): New hash tables.
2045         Read all map entries.
2046         Add unencoded characters.
2047         Check for default ligatures if there are no `L' entries.
2048         Print all kern entries.
2049         Print all characters in charset.
2050         * src/utils/afmtodit/afmtodit.man: Updated.
2052         * font/devps/*: Regerated all fonts.
2054         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2055         of characters, just use `.trin'.  Otherwise the mapping depends
2056         on the font encoding.
2057         * tmac/ps.tmac: Add `fi' and `fl'.
2058         Improve `Fi' and `Fl'.
2059         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2060         * tmac/Xps.tmac: Fix `em'.
2062         * NEWS: Updated.
2064 2003-03-04  Werner LEMBERG  <wl@gnu.org>
2066         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2067         `have_input'.
2069 2003-03-03  Werner LEMBERG  <wl@gnu.org>
2071         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2073         * font/devps/generate/textmap: Remove entry `similarequal'.
2074         * font/devps/symbolmap: Updated.
2076 2003-03-02  Werner LEMBERG  <wl@gnu.org>
2078         * src/libs/libgroff/font.cc (font::load): Fix error message for
2079         bad character type.
2081         * src/devices/grops/grops.man: Improve documentation of the -b
2082         flag.
2084         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2085         `ascii' and `cp1047'.
2087 2003-03-01  Werner LEMBERG  <wl@gnu.org>
2089         Document composite glyphs and the `composite' request.
2091         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2093 2003-02-28  Werner LEMBERG  <wl@gnu.org>
2095         * font/devdvi/generate/ec.map: Add some more Unicode entities.
2096         * font/devdvi/*EC: Updated.
2098         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2099         * tmac/latin1 (latin1-tr): Undo any previous mapping.
2100         * tmac/troffrc: Load `composite.tmac'.
2101         * tmac/Makefile.sub (NORMALFILES): Updated.
2103         * doc/groff.texinfo (Input Encodings): New section.
2104         * NEWS: Updated.
2106 2003-02-27  Werner LEMBERG  <wl@gnu.org>
2108         * doc/texinfo.tex: New version 2003-02-11.06.
2110         * tmac/doc-common (Dt): Don't emit warning for unknown section.
2111         * tmac/groff_mdoc.man: Fix description of `Dt'.
2113 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
2115         * font/devps/prologue.ps: Fix for included Postscript that does
2116         a setpagedevice -- which is now safely ignored.
2118         * NEWS: Updated.
2120         * src/devices/grops/ps.cc: Now sets the page size in the generated
2121         document.  This is done in two ways: Via a %%-comment for gv and
2122         the like, and via a PageSize and setpagedevice for programs that
2123         understands Postscript proper, like ps2pdf.
2125         * src/devices/grops/ps.h: New broken-flag to avoid page size
2126         definition, if required.
2128         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2130         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2131         Not really necessary due to the fix in prologue.ps, but cleaner:
2132         Such information does not belong in an .eps file.
2134         * doc/Makefile.sub: See doc/Makefile.in.
2136 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
2138         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2139         instead of P1 since the latter is broken in some versions of netpbm.
2140         * configure: Updated.
2142 2003-02-26  Larry Kollar  <kollar@alltel.net>
2144         Make man pages more customizable.
2146         * tmac/an-old.tmac (FT): New register holding footer distance from
2147         bottom.
2148         (HF): New string holding the default heading font.
2149         (TH): Handle registers `IN' and `SN' set on the command line.
2150         Use `FT'.
2151         (PT, BT): New strings to customize header and footer lines.
2152         (an-header, an-footer): Use them.
2153         (SH, SS): Use `HF'.
2154         * tmac/groff_man.man: Document changes.
2156         * doc/groff.texinfo: Document man changes.
2157         Document Ultrix extensions of man.
2159 2003-02-26  Werner LEMBERG  <wl@gnu.org>
2161         * src/roff/troff/input.cc (do_width, do_if_request): Reset
2162         `have_input' after changing back to old environment.
2164         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2165         function up to be defined before first call.  This is necessary to
2166         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2168         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2169         the default font directory also.  Based on a patch from James
2170         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2171         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2172         * src/utils/afmtodit/afmtodit.man: Document it.
2174         * NEWS: Updated.
2176         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2178 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
2180         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2181         (GROFF_PNMTOPS_NOSETPAGE): New macro.
2182         * configure.ac: Use it.
2183         * configure: Regenerated.
2184         * Makefile.in: Updated.
2186         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2187         (CLEANADD): Add www.tmac-sed.
2188         (pnmtops_nosetpage): Define default.
2189         (install_data): Handle www.tmac-sed and substitute
2190         @PNMTOPS_NOSETPAGE@.
2191         (stamp-sed): Add www.tmac.
2192         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2193         It now breaks URLs at suitable places.
2194         (www:substring_ok): New register set by...
2195         (www:@test_substring): New macro.
2196         (www:error): New alias to www-error.
2197         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2198         New macros.
2199         (URL): Use www:url_breaks.
2200         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2201         (CDS, CDE): New macros.
2203 2003-02-25  Werner LEMBERG  <wl@gnu.org>
2205         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2206         buffer overflow.
2208 2003-02-24  Werner LEMBERG  <wl@gnu.org>
2210         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2211         can be negative also.
2213         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2214         `int16'.
2215         (read_char_table): Avoid negative ascenders.
2216         (output_charset): Add cast.
2217         * font/devlj4/*: Regenerated.
2219         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2220         possible.
2222         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2223         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2224         of `<>'.
2225         * font/devdvi/*: Regenerated.
2227         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
2228         normal width, while the previously used characters (U+2329 and
2229         U+232A) are classified as wide due to canonical equivalence with the
2230         CJK punctuation characters U+3008 and U+3009.
2232         * font/devutf8/R.proto: Updated.
2233         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2235         * man/groff_char.man: Simplify handling of table traps by
2236         introducing `start block' and `end block' macros.
2237         (Ns, Ne, 2s, 2e, Ds, De): New macros.
2238         (DL): Make it work with Unix troff also.
2239         Fix code values of `la' and `ra'.
2241         * tmac/dvi.tmac: Define `<>' for CW and CWI.
2243 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
2245         * src/devices/grohtml/post-html.cc (element_list::~element_list):
2246         New destructor, fixing a major memory leak.
2248 2003-02-22  Werner LEMBERG  <wl@gnu.org>
2250         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2251         to be in conformance with Unicode 3.0 and newer.
2253         * font/devlj4/generate/text.map: Add `Eu'.
2254         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2255         * font/devlj4/S: Regenerated.
2257         * man/groff_char.man: Completely rewritten.
2259         * doc/groff.texinfo: Fix description of request and macro arguments.
2261 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
2263         Valgrind fixes.
2265         * src/devices/grohtml/html-table.cc (html_table::~html_table):
2266         Deallocate `columns' list.
2267         * src/devices/grohtml/post-html.cc (char_block::~char_block):
2268         New destructor.
2269         (text_glob::text_glob_html, text_glob::text_glob_special,
2270         text_glob::text_glob_line, text_glob::text_glob_auto_image,
2271         text_glob::text_glob_tag): Avoid memory leaks.
2272         (text_glob::remember_table): Free memory before reassigning.
2274 2003-02-19  Werner LEMBERG  <wl@gnu.org>
2276         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2277         alias `hbar'), the Planck constant over two pi.
2279         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2280         `+e' for position 34.
2281         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2282         `u2662' and `u2661'.
2283         * font/devdvi/{MI,S}: Regenerated.
2284         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2285         * font/devlbp/*: Add `hbar' alias.
2286         * font/devlj4/generate/special.map: Ditto.
2287         * font/devlj4/S: Regenerated.
2288         * font/devps/generate/symbolchars: Add `+e'.
2289         * font/devps/generate/textmap: Fix PS name for `-h'.
2290         Add `hbar' alias.
2291         * font/devps/symbolmap: Regenerated.
2293         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2295         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2296         `-h', `hbar'.
2297         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2298         `-h'.
2300         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2301         `hbar'.
2302         * tmac/tty-char.tmac: Add `+e'.
2304 2003-02-17  Werner LEMBERG  <wl@gnu.org>
2306         Another round trying to really fix problems with `have_input'.
2308         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2309         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2311         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2312         handling if both foreground and background colors are default.
2314         * doc/groff.texinfo (Debugging): Document .lf differences to
2315         AT&T troff.
2317 2003-02-16  Werner LEMBERG  <wl@gnu.org>
2319         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2320         null-bytes in created string.
2322         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2323         alias_macro, lookup_request): Improve warning messages.
2325         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2326         not `strdup'.
2327         Free `last_image_filename'.
2329         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2330         `buffer'.
2331         (imageList::createPage, imageList::createImage): Use `free', not
2332         `a_delete'.
2333         (imageItem::~imageItem): Free `imageName'.
2334         (addRegDef): Use `strsave', not `strdup'.
2335         (get_resolution): Free `pathp'.
2337 2003-02-15  Werner LEMBERG  <wl@gnu.org>
2339         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2340         to `dummy'.
2342 2003-02-14  Werner LEMBERG  <wl@gnu.org>
2344         Add memory management for colors to deallocate unnamed colors
2345         properly.
2347         * src/include/color.h (color): New members `free_list' and `next'.
2348         New member functions `new' and `delete'.
2349         Add destructor.
2350         * src/libs/libgroff/color.cc: Implement it.
2352         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2353         for array size of new operator.
2355         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2356         redundant comparison.
2358         * src/roff/troff/input.cc (word_space_node::reread,
2359         hmotion_node::reread): Avoid warning about unused parameter.
2360         (reset_output_registers): Remove redundant parameter.
2361         (define_color): Undo change 2003-02-12.
2363         * src/roff/troff/reg.h: Updated.
2365         * src/roff/troff/node.cc (troff_output_file::really_print_line,
2366         output_file::put_filename, real_output_file::really_put_filename,
2367         ascii_output_file::really_print_line,
2368         break_char_node::get_hyphen_list): Avoid warning about unused
2369         parameter.
2370         (suppress_node::tprint): Updated.
2372         * configure.ac: Check declaration for rand() and srand().
2373         * configure: Regenerated.
2375         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2376         conditionally.
2377         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2378         and srand().
2380         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2381         to avoid compiler warnings.
2383         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2384         unused.
2386         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2387         is unused.
2388         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2389         (unused) parameter.
2390         Updated all callers.
2392         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2393         is unused.
2394         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2395         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2397         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2398         Parameter is unused.
2399         (html_printer::add_table_end): Define parameter conditionally.
2400         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2401         is unused.
2403         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2404         (lbp_printer::set_char): Last parameter is unused.
2406         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2408 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2410         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2411         Make \D'f ...' move horizontally again for backwards compatibility.
2412         Replace it with \D'Fg ...' where appropriate to avoid dependency
2413         on horizontal resolution.
2415         * src/roff/troff/input.cc (do_get_long_name): New function.
2416         (get_long_name): Call it.
2418         (read_draw_node): Handle `\D'Fx ...' by calling ...
2419         (read_color_draw_node): New function.
2421         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2422         `end'.
2423         Pass it to `do_get_long_name' which is used instead of
2424         `get_long_name'.
2426         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2427         unnecessary value guard.
2428         (parse_D_command) <'f'>: Add horizontal shift.
2430         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2431         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2432         (FILL_MAX): Removed.
2434         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2435         Updated.
2437 2003-02-12  Werner LEMBERG  <wl@gnu.org>
2439         * src/roff/troff/input.cc (do_name_test, do_expr_test,
2440         do_zero_width): Push `\n' if closing delimiter is missing.
2442         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2443         <'F'>: Make \F non-transparent at the beginning of line.
2444         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2445         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2446         `have_input'.
2448         (define_color): Free color in case of reassignment.
2450         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2451         @DefescListEnd): Use @Var, not @var.
2452         Fix all calls.
2454         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2456         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2457         `shaded' and `outlined' arrays.
2458         (object_spec::object_spec): Initialize `shaded' and `outlined'.
2459         (graphic_object::set_fill_color, graphic_object::set_outline_color):
2460         Use strsave.
2461         (closed_object::set_fill_color): Ditto.
2462         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2463         instead of strdup.
2464         (troff_output::reset_color): Use a_delete instead of free.
2465         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2467 2003-02-11  Werner LEMBERG  <wl@gnu.org>
2469         * doc/groff.texinfo: Improve documentation of `ad'.
2470         Document that \D'f...' is dependent on the horizontal resolution.
2471         * man/groff_diff.man: Improve documentation of \D'f...'.
2473         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2474         compensating \h'...' for \D'f ...' since the latter no longer moves
2475         current position.
2476         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2478 2003-02-10  Werner LEMBERG  <wl@gnu.org>
2480         Improve error messages for `x F' (and `F') commands.
2482         * src/include/error.h: Add declaration for
2483         `current_source_filename'.
2484         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2485         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2486         parameter for source file string.
2487         Updated all callers.
2489         * src/libs/libdriver/input.cc: Add `current_source_filename'.
2490         (remember_source_filename): New function.
2491         (parse_x_command <'F'>, do_file <'F'>): Use it.
2493 2003-02-09  Werner LEMBERG  <wl@gnu.org>
2495         Make grotty not emit warnings about unknown colors more than
2496         necessary.
2498         * src/devices/grotty/tty.cc: Include `ptable.h'.
2499         (TTY_MAX_COLORS): Removed.
2500         (DEFAULT_COLOR_IDX): Defined to -1.
2501         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2502         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2503         Change `tty_colors' to be a ptable.
2504         First arg of `put_color' is now `char'.
2505         New functions `make_rgb_string' and `tty_color'.
2506         (tty_printer::tty_printer): Use `tty_color'.
2507         (tty_printer::color_to_idx): Return value is now `char'.
2508         Use `tty_color'.
2510         * src/include/color.h (color): Add `print_color' member function.
2511         * src/libs/libgroff/color.cc (color::print_color): Implement it.
2513 2003-02-08  Werner LEMBERG  <wl@gnu.org>
2515         Valgrind fixes.
2517         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2518         encoding file.
2520         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2521         assume that value has been allocated with `new[]', thus use
2522         `a_delete' for deallocation.
2524         * src/libs/libdriver/input.cc (get_integer_arg,
2525         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2526         where appropriate.
2528         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2529         * src/libs/libgroff/nametoindex.cc
2530         (character_indexer::named_char_index): Use `new <type>[1]'.
2532         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2533         <type>[1]'.
2534         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2535         (split_text): Use `a_delete'.
2537         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2538         <type>[1]'.
2540         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2541         harmless memory leak.
2542         (hyphen_trie::read_patterns_file): Initialize `buf'.
2543         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2544         Initialize `current_fill_color'and `current_glyph_color'.
2545         * src/roff/troff/glyphuni.cc
2546         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2547         * src/roff/troff/uniuni.cc
2548         (unicode_decompose_init::unicode_decompose_init): Ditto.
2549         * src/roff/troff/uniglyph.cc
2550         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2552 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2554         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2555         `access' before calling `unlink'.
2556         (do_file): Handle __EMX__.
2558         * src/include/nonposix.h: Handle __EMX__.
2560         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2561         (fontpath,tmacpath): Use it.
2562         (MDEFINES): Add it.
2563         Sorted alphabetically.
2565         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2566         @SEP@.
2567         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2568         @SEP@.
2570 2003-01-27  Werner LEMBERG  <wl@gnu.org>
2572         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2573         New files, copied from gnulib.
2574         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2575         * configure.ac: Updated.
2576         * configure: Regenerated.
2578         * src/include/config.hin: Regenerated.
2579         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2580         Don't define `strcasecmp' as `strcmp'.
2581         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2582         Dont define `strncasecmp' as `strncmp'.
2584         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2585         Removed.
2587 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2589         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2590         s/unline/unlink/.
2592 2003-01-25  Werner LEMBERG  <wl@gnu.org>
2594         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2596 2003-01-24  Werner LEMBERG  <wl@gnu.org>
2598         Add US-english hyphenation exceptions (converted from Barbara
2599         Beeton's hyphenation exception log reports which appear irregularly
2600         in TUGBoat).
2602         * tmac/hyphen.us: Updated to latest version.
2603         * tmac/README: Updated.
2604         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2605         * tmac/troffrc: Load `hyphenex.us'.
2606         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2607         * doc/groff.texinfo: Updated.
2609 2003-01-23  Werner LEMBERG  <wl@gnu.org>
2611         Improve hyphenation slightly.  This is a first step in redesigning
2612         the hyphenation algorithm to make it more flexible (e.g. allowing
2613         kerns and ligatures between the hyphenation character and the
2614         following character -- while not used normally in English, other
2615         languages like German would benefit).
2617         * src/roff/troff/env.cc (environment::hyphenate_line): Use
2618         assertion instead of if-clause.
2619         Let `get_hyphen_list' return the number of involved characters in
2620         the hyphenation pattern instead of computing it directly (which
2621         often yields too small values).
2622         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2623         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2624         parameter.
2626 2003-01-22  Werner LEMBERG  <wl@gnu.org>
2628         Fixing a bug which caused groff to hang if the hyphenation exception
2629         dictionary tried to grow.
2631         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2632         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2633         pointer to dictionary.
2635 2003-01-20  Werner LEMBERG  <wl@gnu.org>
2637         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2638         negative left italic correction.
2639         * src/utils/afmtodit/afmtodit.man: Document it.
2641         * font/devps/generate/Makefile (RFLAG): Add `-m'.
2642         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2643         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2645         * NEWS: Updated.
2647 2003-01-16  Werner LEMBERG  <wl@gnu.org>
2649         * NEWS: Updated.
2651 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
2653         * src/preproc/refer/refer.man: Mention REFER environment variable.
2655 2003-01-05  Werner LEMBERG  <wl@gnu.org>
2657         Similar to \[is], the square root glyph (\[sr]) and the square root
2658         extension glyph (\[radicalex]) are now text symbols.  The new
2659         mathematical versions are called \[sqrt] and \[sqrtex],
2660         respectively.
2662         * font/devX*/S: Regenerated.
2663         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2664         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2665         * font/devdvi/EX, font/devdvi/S: Regenerated.
2666         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2667         * font/devlj4/generate/special.map: Add `sqrt'.
2668         * font/devlj4/S: Regenerated.
2669         * font/devps/generate/textmap: Add `sqrt'.
2670         * font/devps/S, font/devps/symbolmap: Regenerated.
2672         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2673         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2674         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2675         overlap horizontally.
2677         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2678         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2679         Fix `radicalex'.
2681         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2682         and `sqrtex' are overlapping glyphs.
2684 2003-01-04  Werner LEMBERG  <wl@gnu.org>
2686         * font/devdvi/generate/texsy.map: Add `is'.
2687         * font/devps/symbolmap: Regenerated.
2688         * font/devdvi/*TC, MI, S: Regenerated.
2690         * tmac/dvi.tmac: Remove `is'.
2692 2003-01-03  Werner LEMBERG  <wl@gnu.org>
2694         `is' is now a text symbol (only relevant for dvi).  The math variant
2695         can be accessed with `integral'.
2697         * font/devX*/S: Regenerated.
2698         * font/devdvi/generate/texex.map: Remove `is'.
2699         * font/devdvi/EX: Updated.
2700         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2701         * font/devlj4/generate/special.map: Ditto.
2702         * font/devlj4/S: Regenerated.
2703         * font/devps/generate/textmap: Add `integral'.
2704         * font/devps/S: Regenerated.
2706         * tmac/dvi.tmac: Define `is'.
2708         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2710         * src/preproc/tbl/main.cc (process_format): Fix error message.
2712 2003-01-02  Werner LEMBERG  <wl@gnu.org>
2714         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2715         * font/devps/textmap: Fix entries for `ne' and `nc'.
2716         * font/devps/symbolmap: Regenerated.
2718         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2719         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2720         `38', `58', `78', `-+', `|=', `nc', `ne'.
2722         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2723         Use `schar' for `aq'.
2724         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2725         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2726         * tmac/tty.tmac: Add `ne'.
2728         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2729         for fallback glyphs.
2731 2002-12-29  Werner LEMBERG  <wl@gnu.org>
2733         Add glyph `|='.
2735         * font/devX*/*: Regenerated.
2736         * font/devdvi/generate/ec.map: Remove `eq'.
2737         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2738         Assign `|=' to position 39.
2739         * font/devdvi/*EC, S: Regenerated.
2740         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2741         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2742         Assign `|=' to position 549.
2743         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2744         `equalmath'.
2745         Add `uni2243' for `|='.
2747         * tmac/ec.tmac: Add `eq'.
2748         * tmac/dvi.tmac: Add `=~'.
2749         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2750         `|='.
2752 2002-12-21  Werner LEMBERG  <wl@gnu.org>
2754         * font/devdvi/generate/tc.map: Remove `**'.
2755         * font/devdvi/*TC: Regenerated.
2756         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2757         `78', `<<', `>>'.
2758         * font/devutf8/NOTES: Updated.
2760         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2761         Don't give default parameter to `set_macro'.
2762         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2763         instead of `set_macro'.
2764         (charinfo::setx_macro): Implement it.
2765         (charinfo::set_macro): Don't change `mode'.
2767         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2768         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2769         * tmac/dvi.tmac: Define `!=' with `.schar'.
2771 2002-12-20  Werner LEMBERG  <wl@gnu.org>
2773         * font/devX*/S: Regenerated.
2774         * font/devdvi/generate/ec.map: Remove `pl'.
2775         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2776         * font/devdvi/*{TC,EC}: Regenerated.
2777         * font/devhtml/R.proto: Add `-+'.
2778         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2779         * font/devlbp/*: Remove `or'.
2780         * font/devlj4/generate/special.map: Remove `or'.
2781         * font/devlj4/S: Regenerated.
2782         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2783         `seveneighths', `threeeighths'.
2784         Remove `plusmath'.
2785         Replace `minusplus' with `uni2213'.
2786         * font/devps/symbolmap: Regenerated.
2787         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2788         Add `-+'.
2790         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2791         function.
2792         * src/roff/troff/node.cc (troff_output_file::put_char_width):
2793         Call glyph_color and fill_color even if tcommand_flag isn't set.
2794         (make_node, node::add_char): Check not ci->is_fallback but
2795         ci->is_normal.
2797         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2798         * tmac/ec.tmac: Add .rchar entry for `f/'.
2799         Don't remove `12', `14', `34'.
2800         Define `pl' to be always roman.
2801         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2802         Define `18', `38', `58', `78'.
2803         * tmac/tty.tmac: Add `-+'.
2804         * tmac/dvi.tmac: Define `f/'.
2805         (dvi-frac): Use `f/'.
2806         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2807         Define `18', `38', `58', `78'.
2809 2002-12-15  Colin Watson  <cjwatson@debian.org>
2811         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2813 2002-12-10  Werner LEMBERG  <wl@gnu.org>
2815         Add glyph `tno', a textual variant of `no'.
2817         * font/devX*/*: Regenerated.
2818         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2819         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2820         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2821         * font/devdvi/*: Regenerated.
2822         * font/devlbp/*: Add `tno'.
2823         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2824         * font/devlj4/*: Regenerated.
2825         * font/devps/generate/textmap: Replace `no' with `tno'.
2826         * font/devps/generate/symbolchars: Add `no'.
2827         * font/devps/*: Regenerated.
2829         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2831         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2832         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2834         * NEWS: Updated.
2836         * tmac/dvi.tmac: Replace most `\\' with `\E'.
2837         Add definition for `sd'.
2838         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2840         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2842 2002-12-08  Werner LEMBERG  <wl@gnu.org>
2844         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2845         mode to avoid rounding errors.
2846         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2848         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2849         src/roff/troff/troff.man: Improve documentation of -T.
2851 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
2853         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2854         (run_pipeline) [_WIN32]: Provide working function without `fork'.
2856 2002-12-06  Werner LEMBERG  <wl@gnu.org>
2858         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2859         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2860         Scaling Euro.sansserif glyphs down to have the same height as
2861         digits.
2862         Removed unnecessary points; added some extrema.
2864         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2865         Regenerated.
2867 2002-12-04  Werner LEMBERG  <wl@gnu.org>
2869         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2870         and `Euro.symbol.bold.slanted'.
2871         Improve some glyph offsets and widths.
2872         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2873         Regenerated.
2874         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2875         typo.
2876         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2877         direcory.
2879         * tmac/europs.tmac: Updated to new glyph indices.
2880         Use Euro.symbol for font familiy `A'.
2882         * doc/groff.texinfo: Minor improvements.
2884 2002-12-02  Werner LEMBERG  <wl@gnu.org>
2886         * font/devdvi/generate.tc.map: s/%O/%0/.
2887         * font/devdvi/*TC: Regenerated.
2889         * src/roff/troff/div.cc (init_div_requests): Sorted.
2891         * tmac/dvi.tmac: Remove `Ye'.
2892         * tmac/ec.tmac: Remove `Ye'.
2893         Add .rchar entry for `de'.
2895         * man/groff.man, man/groff_diff.man: Document register `.pe'.
2896         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2897         * NEWS: Updated.
2899 2002-11-30  Werner LEMBERG  <wl@gnu.org>
2901         Add PS font for various Euro glyphs.
2903         * font/devps/generate/freeeuro.sfd: New master font file for
2904         pfaedit.
2905         * font/devps/generate/sfdtopfa.pe: New conversion script for
2906         pfaedit.
2907         * font/devps/generate/Makefile (FONTS): Add `EURO'.
2908         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2909         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2910         `freeeuro.sfd'.
2911         * font/devps/EURO: Generated from `freeeuro.afm'.
2912         * font/devps/download: Add `freeuro.pfa'.
2913         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2914         `freeeuro.pfa'.
2916         * tmac/europs.tmac: New file.
2917         * tmac/ps.tmac: Include `europs.tmac'.
2918         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2920 2002-11-29  Werner LEMBERG  <wl@gnu.org>
2922         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2923         * font/devdvi/S: Regenerated.
2924         * font/devhtml/R.proto: Fix `CR' and `ci'.
2925         Add `OK'.
2926         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2927         Remove `bs'.
2928         * font/devps/symbolmap: Regenerated.
2929         * font/devutf8/R.proto: Fix `CR' and `ci'.
2930         Add `OK'.
2931         * font/devutf8/NOTES: Updated.
2933         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2934         `ci'.
2935         Add `OK'.
2936         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2938         * tmac/dvi.tmac: Add `lh' and `rh'.
2939         * tmac/Xps.tmac: Fix `lh' and `rh'.
2940         * tmac/X.tmac: Add `OK'.
2941         * tmac/lj4.tmac: Ditto.
2943 2002-11-24  Werner LEMBERG  <wl@gnu.org>
2945         * font/devX*/S: Regenerated.
2946         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2947         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2948         * font/devdvi/generate/texsy.map: Remove `or' glyph.
2949         * font/devdvi/S: Regenerated.
2950         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2951         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2952         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2953         `bracketleftbt', `bracketrighttp', `bracketrightex',
2954         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2955         `braceex', `braceleftex', `bracerightex', `bracerighttp',
2956         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2957         `rb', and `bv'.
2958         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2959         * font/devutf8/NOTES: Updated.
2960         * font/devlj4/generate/special.map: Add glyph `braceex'.
2961         * font/devlj4/S: Regenerated.
2963         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2965 2002-11-14  Werner LEMBERG  <wl@gnu.org>
2967         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2968         and `vA'.
2969         Fix code for `an'.
2970         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2972         * doc/texinfo.tex: New version from texinfo 4.3.
2973         * doc/groff.texinfo: Updated for texinfo 4.3.
2974         Use @tie{} where appropriate.
2975         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2976         * font/devdvi/generate/tc.map: Remove `rn'.
2977         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2978         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2979         Fix code for `an'.
2980         * font/devX100/*, font/devX100-12/*, font/devX75/*,
2981         font/devX75-12/*: Regenerated.
2983         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2984         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2985         Improve definition of `an'.
2986         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2987         `ru'.
2988         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2989         * tmac/X.tmac: Add definition for `or'.
2990         * tmac/Xps.tmac: Undo change 2002-11-05.
2991         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2993 2002-11-11  Werner LEMBERG  <wl@gnu.org>
2995         * src/roff/troff/node.cc (troff_output_file::put_char): Always
2996         call flush_tbuf.
2998 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3000         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3001         defines a glyph which is searched after the check for fonts declared
3002         with `.special' (and before the check for all mounted special
3003         fonts).  `fschar' defines a glyph for a particular font which is
3004         searched after the check for fonts declared with `.fspecial' (and
3005         before the check for fonts declared with `.special').  `rfschar'
3006         removes glyphs defined with `fschar'.
3008         * src/roff/troff/token.h (char_mode): New enum.
3009         Declare do_define_character.
3010         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3011         `mode'.
3012         (charinfo::is_fallback): Updated.
3013         (charinfo::is_special): New method.
3014         * src/roff/troff/input.cc (do_define_character): Add and use
3015         optional second parameter used as a prefix for font-specific glyph
3016         names.
3017         (define_character, define_fallback_character): Updated.
3018         (define_special_character): New function.
3019         (init_input_requests): Add `schar'.
3020         (charinfo::charinfo, charinfo::set_macro): Updated.
3021         * src/roff/troff/node.cc: Include `stringclass.h'.
3022         (make_glyph_node): Handle special glyphs defined with `.schar' and
3023         `.fschar'.
3024         (define_font_special_character, remove_font_special_character): New
3025         functions.
3026         (init_node_requests): Sorted.
3027         Add `fschar' and `rfschar'.
3028         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3029         Document new requests.
3031         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3032         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3034 2002-11-08  Werner LEMBERG  <wl@gnu.org>
3036         Added new font `SC' (cmtex10) to devdvi.
3038         * devdvi/generate/Makefile (FONTS): Add `SC'.
3039         (SC): New rule.
3040         * devdvi/generate/textex.map: New map file for cmtex.
3041         * devdvi/SC: New.
3042         * devdvi/Makefile.sub (DEVFILES): Updated.
3043         * tmac/dvi.tmac: Add fspecial entries for SC.
3044         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
3045         found before `S' since the font position of `SC' is lower due to the
3046         gaps in DESC's `font' line.
3047         * tmac/ec.tmac: Add a `special' call.
3048         * NEWS: Updated.
3050         * font/devhtml/R.proto: Remove double entry for `ti'.
3051         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3052         * tmac/tty-char.tmac: Remove entry for `bq'.
3053         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3054         * tmac/ec.tmac: Don't remove `aq' glyph.
3055         * tmac/X.tmac: Fix entry for `em'.
3056         Add entries for `fo' and `fc'.
3057         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3059         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3060         documentation of `special' and `fspecial' requests.
3062 2002-11-05  Werner LEMBERG  <wl@gnu.org>
3064         * font/devascii/R.proto, font/devcp1047/R.proto,
3065         font/devlatin1/R.proto: Remove entry for `.i'.
3066         * font/devdvi/generate/textt.map: Add entry for `ad'.
3067         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3068         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3069         We need this for getting kerning values to compose `/l' and `/L'.
3070         * font/devdvi: Regenerated font definition files for CM fonts.
3071         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3072         * font/devutf8/R.proto: Ditto.
3073         Remove double entry for `ti'.
3075         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3076         for (groff) ligatures, `la', and `ra'.
3077         Add "'C", "'c", `IJ', and `ij'.
3078         Remove double entry for `ti'.
3079         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3080         double entries.
3081         Add "'C", "'c", `IJ', and `ij'.
3082         Fix entries for (groff) ligatures, `la', and `ra'.
3084         * tmac/ps.tmac (ps-achar): New macro.
3085         Define "'c" and "'C".
3086         * tmac/tty.tmac: Add entry for `.i'.
3087         * tmac/X.tmac (X-achar): New macro.
3088         Define "'c", "'C", and `:Y'.
3089         Add entries for `IJ' and `ij'.
3090         * tmac/Xps.tmac (Xps-achar): New macro.
3091         Define "'c" and "'C".
3092         Add entries for `IJ' and `ij'.
3093         * tmac/lbp.tmac (lbp-achar): New macro.
3094         Add fallback characters for all groff ligatures and many other
3095         glyphs.
3096         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3097         Add entries for `/l' and `/L'.
3098         Define "'c" and "'C".
3099         Add entries for `IJ' and `ij'.
3101 2002-11-02  Larry Kollar  <kollar@alltel.net>
3103         * PROBLEMS: Document how to solve Mac OS X compilation problems.
3105 2002-11-02  Werner LEMBERG  <wl@gnu.org>
3107         Adding support for composite glyphs: \[xxx yyy ...] and the
3108         `composite' request.
3110         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3111         to Unicode-based glyph names.
3112         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3113         glyph names to groff glyph names.
3114         * src/roff/troff/uniuni.cc: New file for canonically decomposing
3115         Unicode-based glyph names.
3116         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3117         for handling Unicode glyph names.
3118         * src/roff/troff/input.cc: Include unicode.h.
3119         (composite_glyph_name): New function.
3120         (token::next) <'['>: Handle Unicode glyph names and composite
3121         glyphs.
3122         (composite_dictionary): New dictionary for the `composite' request.
3123         (composite_request): Implement `composite' request.
3124         (init_input_requests): Add `composite'.
3125         Alphabetically sorted.
3126         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3127         commented out).
3128         (init_env_requests): Alphabetically sorted.
3129         Removed `tas' and `tar' (already commented out).
3130         * src/roff/troff/Makefile.sub: Updated.
3132 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
3134         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3135         of options.
3137 2002-10-29  Werner LEMBERG  <wl@gnu.org>
3139         Fix computation of .trunc register.  Additionally, its value (and
3140         the value of the .ne register) is now always set before entering the
3141         trap.
3143         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3144         `needed_space' before calling `space'.
3145         (top_level_diversion::space): Remove special code for 'sp before the
3146         first page.
3147         Call `begin_page' with the discarded space as a parameter.
3148         (top_level_diversion::begin_page): Add optional parameter to set
3149         `truncated_space'.
3150         * src/roff/troff/div.h: Updated.
3152         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3153         \n[.ne].
3155         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3156         (LP): Remove superfluous call to `br'.
3157         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3158         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3160 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3162         * tmac/doc-ditroff: Remove useless switch/variable -rC.
3163         (doc-setup-header): Don't set page register `%'.
3164         * tmac/doc-nroff: Remove variable `C'.
3165         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3166         (doc-setup-header): Don't set page register `%'.
3167         Don't call `bp'.
3168         * tmac/doc-common (doc-header): Call `ns'.
3169         (doc-paragraph): Protect .sp with .br so that it survives traps
3170         possibly set by the user.
3171         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3173         * tmac/doc*: Replace ' with . for consistency if no effect.
3175 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3177         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3178         so that it survives traps possibly set by the user.
3180         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3181         (troff_output_file::set_font): Call flush_tbuf if necessary.
3182         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3183         flush_tbuf and do_motion only if necessary.
3184         (troff_output_file::start_special,
3185         troff_output_file::put_char_width, troff_output_file::put_char,
3186         troff_output_file::draw): Updated.
3187         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3188         vmotion_node::tprint): Undo change 2002-10-23.
3190 2002-10-25  Werner LEMBERG  <wl@gnu.org>
3192         * tmac/www.tmac (DC): Fix case of overlapping images.
3194 2002-10-23  Werner LEMBERG  <wl@gnu.org>
3196         * src/roff/troff/node.cc (troff_output_file::fill_color,
3197         troff_output_file::glyph_color): Set current color before testing
3198         color_flag.
3199         (troff_output_file::put_char_width, troff_output_file::put_char,
3200         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3201         before glyph_color.
3202         (troff_output_file::file_color, troff_output_file::glyph_color):
3203         Call do_motion.
3204         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3205         vmotion_node::tprint): Move first, then call fill_color.
3207 2002-10-20  Werner LEMBERG  <wl@gnu.org>
3209         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3210         possible to use multiple main macro packages.
3212 2002-10-19  Werner LEMBERG  <wl@gnu.org>
3214         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3215         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3216         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3217         is set.
3218         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3219         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3221 2002-10-16  Werner LEMBERG  <wl@gnu.org>
3223         * NEWS, doc/webpage.ms: Updated.
3225 2002-10-14  Werner LEMBERG  <wl@gnu.org>
3227         * src/roff/troff/node.cc (troff_output_file::put_char_width,
3228         troff_output_file::put_char, troff_output_file::fill_color,
3229         troff_output_file::glyph_color): Handle case where color pointer
3230         is null.
3232 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
3234         Add the new -r option to grotty.  It is similar to the -i option
3235         except it tells grotty(1) to use the "reverse video" attribute to
3236         render italic fonts.
3238         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3239         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3240         (tty_printer::make_underline, tty_printer::put_color,
3241         tty_printer::end_page): Use it.
3242         (main): Add -r switch.
3243         (usage): Updated.
3244         * src/devices/grotty/grotty.man: Document it.
3246 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
3248         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3249         cast to `unsigned char' to properly read patterns with 8bit
3250         characters.
3252 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3254         * REVISION: Increased to 2.
3256 Version 1.18.1 released
3257 =======================
3259 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3261         * doc/webpage.ms, NEWS: Updated.
3263 2002-10-07  Werner LEMBERG  <wl@gnu.org>
3265         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3266         suppress additional whitespace after the header.
3268         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3269         with NetBSD.
3271         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3273 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
3275         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3276         (Dt): Use it to improve language localization (especially Russian
3277         and French).
3279 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
3281         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3282         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3283         drawing commands.
3284         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3285         curve type.
3286         Call `picurve' for BSPLINE.
3287         (HGPrintElt): Handle BSPLINE.
3288         * src/preproc/grn/README: Document it.
3290 2002-10-03  Werner LEMBERG  <wl@gnu.org>
3292         * src/roff/troff/node.cc (break_char_node::col): New variable.
3293         Updated constructor.
3294         (space_node::tprint, word_space_node::tprint): Call `fill_color'
3295         unconditionally.
3296         (space_node::space_node): Remove assertion.
3297         (break_char_node::add_self): Pass color argument to space node.
3298         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3299         Ditto.
3300         * src/roff/troff/env.cc (environment::do_break,
3301         environment::add_padding): Ditto.
3303 2002-10-02  Werner LEMBERG  <wl@gnu.org>
3305         Redesigning color support in troff.  Colors are no longer
3306         represented as separate nodes but are now part of glyph nodes and
3307         friends.  This fixes the current formatting misbehaviour due to the
3308         changes introduced on 2002-09-20.  Some extra code is necessary for
3309         proper grotty support: Without adding color variables to
3310         space-related nodes, the background color would be changed too late.
3312         * src/roff/troff/node.h, src/roff/troff/node.cc:
3313         s/current_pagecolor/current_fill_color/.
3314         s/current_glyphcolor/current_glyph_color/.
3315         (glyph_color_node, fill_color_node): Removed.
3316         (node::get_glyph_color, node::get_fill_color): New virtual member
3317         functions.
3318         (space_node::col): New variable.
3319         Updated constructors of space_node and derived classes accordingly.
3320         (hmotion_node::col): New variable.
3321         Updated constructors of hmotion_node and space_char_hmotion_node
3322         accordingly.
3323         (vmotion_node::col): New variable.
3324         Updated constructor accordingly.
3325         (draw_node::gcol, draw_node::fcol): New variables.
3326         Updated constructor accordingly.
3327         (special_node::gcol, special_node::fcol): New variables.
3328         Updated constructors accordingly.
3329         (troff_output_file::put_char, troff_output_file::put_charwidth,
3330         troff_output_file::draw): Set glyph and fill color.
3331         (troff_output_file::start_special): Set glyph and fill color.
3332         Always set current font.
3333         (troff_output_file::fill_color, troff_output_file::glyph_color):
3334         Don't call `do_motion'.
3335         (glyph_node::gcol, glyph_node::fcol): New variables.
3336         Updated constructors of glyph_node and ligature_node accordingly.
3337         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3338         member functions.
3339         (glyph_node::merge_glyph_node,
3340         kern_pair_node::add_discretionary_hyphen,
3341         node::add_discretionary_hyphen): Updated.
3342         (break_char_node::merge_self): Updated.
3343         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3344         vmotion_node::tprint): Handle color.
3345         (make_glyph_node, make_node, node::add_char): Updated.
3347         * src/roff/troff/env.cc (environment::space_newline,
3348         environment::space, environment::output_line, environment::do_break,
3349         environment::make_tab_node, environment::add_padding, title):
3350         Updated.
3351         (environment_switch, environment_copy): Don't add color nodes.
3353         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3354         nothing.
3355         (token::next): Updated.
3356         \m and \M now are as transparent as \s.
3357         (process_input_stack, token::add_to_node_list, token::process,
3358         read_draw_node): Updated.
3359         (charinfo_to_node_list): Don't add color nodes.
3361         * doc/groff.texinfo: Updated.
3363 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
3365         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3366         strings.
3368 2002-09-27  Colin Watson  <cjwatson@debian.org>
3370         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3372 2002-09-23  Werner LEMBERG  <wl@gnu.org>
3374         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3375         appropriate.
3376         (DEFAULT_LINEWIDTH_FACTOR): New macro.
3377         (linewidth_factor): New global variable.
3378         (lbp_printer::set_line_thickness): Fix case for size < 0, using
3379         linewidth_factor.
3380         (long_options): Add -w/--linewidth option.
3381         (usage): Updated.
3382         (main): Handle -w option to set linewidth_factor.
3383         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3384         line_thickness.
3386         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3388 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3390         Fixed a bug in the line thickness setting code.
3392         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3393         variable.
3394         (lbp_printer::set_line_thickness): Pass environment as second
3395         parameter.
3396         Implement it actually.
3397         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3398         and `set_line_thickness, depending on the current font size.
3400 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3402         Some Debian patches.
3404         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3405         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3406         `list->last'.
3408 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3410         * configure: Regenerated with autoconf 2.54.
3412 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3414         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3415         glyph_color.
3416         Rename cur_fill_color to fill_color.
3417         * src/roff/troff/env.cc: Updated.
3419 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3421         * src/roff/troff/env.cc (title): Copy color status after processing
3422         title.
3423         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3424         fill color nodes to reset colors properly.
3426         * tmac/www.tmac (DC): Fix color handling.
3428         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3429         * doc/groff.texinfo: Fixing documentation of `tl' request.
3430         * doc/webpage.ms: Updated.
3432 2002-09-19  Werner LEMBERG  <wl@gnu.org>
3434         * src/roff/troff/env.cc (environent_switch, environment_copy):
3435         Emit glyph and fill color nodes to initialize colors properly.
3437 2002-09-17  Colin Watson  <cjwatson@debian.org>
3439         * src/roff/troff/env.cc (environment::set_glyph_color,
3440         environment::set_fill_color): Fix typo which prevented \m[] work
3441         correctly.
3443 2002-09-17  Werner LEMBERG  <wl@gnu.org>
3445         Add left and right italic correction to non-slanted PS fonts.  This
3446         is an experimental feature to improve image rendering of grohtml.
3448         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3449         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3450         * font/devps/*: All non-slanted fonts regenerated.
3451         * NEWS: Updated.
3453 2002-09-16  Werner LEMBERG  <wl@gnu.org>
3455         Add a site-specific font directory.
3457         * Makefile.in (localfontdir, legacyfontdir): New variables.
3458         (fontpath): Use them.
3459         (MDEFINES, uninstall_dirs): Updated.
3460         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3461         Remove `FONTPATH' and `MACROPATH'.
3463         * src/roff/troff/troff.man, NEWS: Updated.
3464         * doc/groff.texinfo (Font Directories): New section.
3465         Other minor fixes.
3467         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3468         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3469         src/preproc/grn/grn.man: Minor fixes.
3471         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3472         Remove unused variable.
3474 2002-09-11  Werner LEMBERG  <wl@gnu.org>
3476         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3477         * man/groff_out.man: Fix documentation of 'N'.
3479 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
3481         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3482         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3483         set.
3484         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3485         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3486         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3487         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3488         PRE_TAG>: Call `begin' with `FALSE'.
3490 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3492         * src/libs/libgroff/string.cc (string::extract): Fix position of
3493         terminating null byte.
3495 2002-09-08  Werner LEMBERG  <wl@gnu.org>
3497         Add global option `nospaces' to tbl so that leading and trailing
3498         spaces in data items are ignored.
3500         * src/libs/libgroff/string.cc (string::remove_spaces): New member
3501         function to remove leading and trailing spaces.
3502         * src/include/stringclass.h: Updated.
3504         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3506         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3507         option.
3508         Fix typo in error messages.
3509         (process_data): Implement `nospaces' option.
3510         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3512 2002-09-07  Werner LEMBERG  <wl@gnu.org>
3514         * src/include/config.hin: Add `HAVE_ISATTY'.
3515         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3516         `fname' member.
3517         * src/libs/libgroff/tmpname.cc: Include `time.h'.
3518         * src/libs/libdriver/input.cc (Char): Add `operator==' and
3519         `operator!=' for `char'.
3520         * doc/groff.texinfo: Replace @ifnottex block for top node with
3521         @ifhtml block.
3523 2002-09-06  Werner LEMBERG  <wl@gnu.org>
3525         * doc/Makefile.in (.texinfo.html): Add -I switch.
3526         * doc/groff.texinfo: Add @ifnottex block for top node to make
3527         translation to HTML work.
3529 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
3531         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3532         (get_papersize, determine_vertical_offset): Removed.
3533         (char_buffer::do_image): Always specify letter size.
3534         (main): Updated.
3535         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3536         -sPAPERSIZE.
3538 2002-09-05  Werner LEMBERG  <wl@gnu.org>
3540         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3541         default indentation.
3543 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
3545         * src/preproc/html/pre-html.cc (imageList::createPage): Use
3546         -sPAPERSIZE for gs.
3547         (generateImages): Clean up push-back buffer.
3549 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3551         * doc/groff.texinfo: Minor fixes.
3553 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3555         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3556         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3557         (gsPaper): Removed.
3558         (determine_vertical_offset): Use LETTER_LENGTH.
3559         (createPage): Moved to ...
3560         (imageList::createPage): This.
3561         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3562         (imageList::getMaxX): New function.
3563         (createImage): Moved to ...
3564         (imageList::createImage): This.
3565         (imageList::createImages): New function.
3566         (generateImages): Read `maxx' directly.
3567         Updated.
3568         (scanArguments): Don't specify `gsPaper' for `-o'.
3569         (makeTempFiles): Call `xtmpfile' with the last argument set to
3570         `TRUE'.
3572 2002-08-24  Werner LEMBERG  <wl@gnu.org>
3574         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3575         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3576         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3577         * src/preproc/html/pushback.cc: Include nonposix.h.
3578         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3579         conditionally.
3581 2002-08-23  Werner LEMBERG  <wl@gnu.org>
3583         Use $(OBJEXT) for the object file extension.
3585         * Makefile.comm (.SUFFIXES): Add .obj.
3586         (.cc.obj, .c.obj): New implicit rules.
3587         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3588         (MDEFINES): Add EXEEXT and OBJEXT.
3589         * */Makefile.sub: s/.o/.$(OBJEXT)/.
3591 2002-08-22  Werner LEMBERG  <wl@gnu.org>
3593         * INSTALL: Mention texinfo 4.2 as a prerequisite.
3595 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3597         * src/devices/grohtml/post-html.cc (colType): Make enum global to
3598         the file.
3599         (html_printer::update_min_max, html_printer::add_table_end): New
3600         methods.
3601         (html_printer::lookahead_for_tables): Use them.
3602         Reset page offset correctly.
3603         (html_printer::~html_printer): Add creation of creator comment up.
3605 2002-08-20  Werner LEMBERG  <wl@gnu.org>
3607         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3608         * man/groff_tmac.man: Fix typos.
3609         * man/groff_font.man: Minor reordering.
3610         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3611         * contrib/groffer/groffer.man: Fix typos.
3613 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3615         Avoid endless loops while scanning for tables.
3617         * src/devices/grohtml/post-html.cc (list::insert): Set
3618         ptr->right->left.
3619         (html_printer::next_horiz_pos): Add `text_glob' argument; update
3620         all callers.
3621         Return immediately if that argument is NULL.
3622         (html_printer::calc_nf): Don't test if `g' is NULL.
3623         (html_printer::lookahead_for_tables): Use
3624         `glyphs.move_right_get_data'.
3625         Don't test if `g' is NULL.
3627 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3629         A better fix, replacing fix 2002-08-15, for increasing SIZE.
3631         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3632         a pointer.
3633         (char_block::char_block): Allocate `buffer'.
3634         (char_buffer::add_string): Use it.
3636 2002-08-15  Werner LEMBERG  <wl@gnu.org>
3638         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3639         src/devices/grodvi/grodvi.man: Document default line thickness.
3641 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
3643         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3644         8192.
3646 2002-08-14  Werner LEMBERG  <wl@gnu.org>
3648         * doc/webpage.ms: Updated.
3650 2002-08-09  Werner LEMBERG  <wl@gnu.org>
3652         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3653         unbreakable space.
3655 2002-08-08  Aaron Campbell  <aaron@monkey.org>
3657         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3658         (&& -> &).
3660 2002-08-08  Werner LEMBERG  <wl@gnu.org>
3662         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3663         tok.next().
3664         (read_gray): Ditto.
3665         Don't push back a space but a newline onto the stack.
3667 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
3669         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3670         inadvertently.
3672         * src/devices/grohtml/post-html.cc (html_printer::end_font,
3673         html_printer::start_font): Handle them.
3674         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3675         reset bold and tt.
3676         (html_text::do_bold): Don't reset italic and tt.
3677         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3678         * font/devhtml/DESC.proto: Add those fonts.
3679         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3681 2002-08-07  Werner LEMBERG  <wl@gnu.org>
3683         * MORE.STUFF: Added gpresent.
3685         * tmac/trace.tmac: Show nesting level by a corresponding amount of
3686         whitespace before printing the logging message.
3688 2002-07-31  Colin Watson  <cjwatson@debian.org>
3690         * src/devices/grohtml/html-table.cc (html_table::finish_row):
3691         Initialize `n' to zero.  This fixes a segfault on ARM.
3693 2002-07-30  Werner LEMBERG  <wl@gnu.org>
3695         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3697 2002-07-29  Werner LEMBERG  <wl@gnu.org>
3699         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3700         final semicolon.
3702 2002-07-28  Colin Watson  <cjwatson@debian.org>
3704         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3705         `.ps'.
3706         (html_printer::html_printer): Initialize `pointsize'.
3708 2002-07-26  Werner LEMBERG  <wl@gnu.org>
3710         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3711         gnu.png.
3712         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3713         (gnu.eps): Add -rle switch to pnmtops.
3714         (distfiles): Add gnu.eps and gnu.png.
3716 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
3718         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3719         Add `operator!='.
3721 2002-07-24  Werner LEMBERG  <wl@gnu.org>
3723         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3724         ' \+' but '  *' for sed.
3725         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3727 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3729         * doc/groff.texinfo: Document `papersize' keyword.
3730         * NEWS, man/groff_font.man: Updated.
3732 2002-07-23  Colin Watson  <cjwatson@debian.org>
3734         Extend papersize keyword to accept more than a single entry.  The
3735         first valid will be used.
3737         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3738         (font::scan_papersize): Really skip final newline.
3739         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3741 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3743         * configure.ac: Test for isatty.
3744         * configure: Regenerated.
3745         * src/include/posix.h: Check HAVE_ISATTY.
3746         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3747         * src/utils/lookbib/lookbib.cc: Include posix.h.
3748         Don't declare isatty.
3750 2002-07-21  Werner LEMBERG  <wl@gnu.org>
3752         * NEWS: Add `output' request.
3754         * REVISION: Increased to 1.
3756 Version 1.18.0 released
3757 =======================
3759 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
3761         Allow internal glyph indices > 0xFF in grohtml for input characters.
3763         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3764         as parameter.
3765         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3766         Updated all callers.
3767         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3768         (html_printer): Updated.
3770 2002-07-19  Werner LEMBERG  <wl@gnu.org>
3772         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3773         * font/devutf8/R.proto: Adding some missing glyphs.
3774         * font/devutf8/NOTES: Updated.
3776         * tmac/dvi.tmac: Add more composite glyphs.
3777         * tmac/html.tmac: Updated.
3779         * man/groff_char.man: Add `sum' and `product' entities.
3781         * NEWS: Updated.
3783 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
3785         Improved table, tab, and indenting support.
3787         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3788         string_iterator::suppress_newline_flag): Removed.  Updated all
3789         function which have used it.
3791         * src/roff/troff/env.cc: Include `input.h'.
3792         (environment::add_node): Accept 0 as parameter.
3793         (environment::add_html_tag): Add `force' parameter.
3794         Updated all callers.
3795         (environment::add_html_tag_tabs): Ditto.
3796         For the moment, support left-aligned tabs only.
3797         (environment::make_html_tag): New function.
3798         (fill, no_fill): Set .br html tag additionally.
3799         (environment::newline): Emit `eol.ce' or `eol' tag for html.
3800         (environment::add_html_tag_eol): Removed.
3801         (tab_stops::distance_to_next_tab): Add variant for handling 
3802         nextpos'.
3803         (environment::distance_to_next_tab): Ditto.
3804         Updated all callers.
3805         (environment::handle_tab): Handle tabs for html.
3806         
3807         * src/roff/troff/env.h: Updated.
3809         * src/roff/troff/div.cc: Updated all callers of
3810         `environment::add_html_tag'.
3812         * src/devices/grohtml/html-table.cc,
3813         src/devices/grohtml/html-table.h: New files.
3815         * src/devices/grohtml/html-text.cc (html_text): New members
3816         `blank_para' and `start_space'.
3817         (html_text::issue_tag): Don't emit TABLE_TAG.
3818         Handle indentation for PRE_TAG and P_TAG.
3819         (html_text::end_tag): Updated.
3820         (html_text::table_is_void, html_text::issue_table_begin,
3821         html_text::issue_table_end): Removed.
3822         (html_text::do_push): Simplified.
3823         [DEBUGGING]: Small fix.
3824         (html_text::push_para): Add new parameter for indentation; updated
3825         all callers.
3826         Handle PRE_TAG.
3827         (html_text::do_indent, html_text::do_table, html_text::done_table,
3828         html_text::is_in_table): Removed.
3829         (html_text::do_pre): Handle P_TAG also.
3830         (html_text::shutdown): Handle p->indent.
3831         (html_text::check_emit_text): Simplified.
3832         (html_text::do_emittext): Reset `blank_para'.
3833         (html_text::do_para): Add new parameter for indentation; updated
3834         all callers.
3835         (html_text::remove_indent): New function.
3836         (html_text::do_space): Handle verbatim text properly.
3837         (html_text::ever_emitted_text, html_text::starts_with_space,
3838         html_text::remove_para_align): New functions.
3839         (html_text::dump_stack_element, html_text::dump_stack): Updated.
3841         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3842         Updated.
3844         * src/devices/grohtml/post-html.cc: Include html-table.h.
3845         (INDENTATION): Removed.
3846         (text_glob): Added many `is_<foo>' functions.
3847         Added table description `tab'.
3848         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3849         member functions.
3850         (list): Add `insert' and `move_to' member functions.
3851         (page): Add `insert_tag' member function.
3852         (page::dump_page) [DEBUG_TABLES]: Improved.
3853         (html_printer): Add `table' and `max_linelength' elements.
3854         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3855         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3856         `remove_tabs', `remove_courier_tabs'.
3857         (html_printer::emit_raw): Handle indentation.
3858         (html_printer::do_center, html_printer::write_header): Updated.
3859         (html_printer::is_courier_until_eol): Check for tag.
3860         (html_printer::do_linelength): Handle max_linelength.
3861         (html_printer::do_page_offset, html_printer::do_indentation): Handle
3862         fill_on.
3863         (html_printer::do_tempindent): Updated.
3864         (html_printer::do_indentedparagraph): Removed.
3865         (html_printer::do_indent): Simplified.
3866         (html_printer::do_eol): Use `ever_emitted_text'.
3867         (html_printer::do_flush, html_printer::do_links): Don't call
3868         done_table.
3869         (html_printer::do_break): Handle end_tempindent.
3870         (html_printer::troff_tag): Get argument.
3871         Don't handle `.ip'.
3872         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3873         (html_printer::flush_page): Call `lookahead_for_tables'.
3874         Don't call `done_table'.
3875         (html_printer::add_to_sbuf): Always call do_indent.
3877         * src/devices/grohtml/Makefile.sub: Updated.
3879         * tmac/an-old.tmac (TP): Don't handle html device specially.
3880         (an-do-tag-html): New function which will be used instead of
3881         `an-do-tag' if html device is used.
3883         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3885         * tmac/s.tmac (@IP): Don't handle html device specially.
3886         (@IP-html): New function which will be used instead of `@IP' if
3887         html device is used.
3889         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3890         is a hack which will eventually vanish again.
3891         (PIMG): Handle `-C' option correctly if not html.
3892         (HR): Use HTML-NS.
3894 2002-07-17  Werner LEMBERG  <wl@gnu.org>
3896         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3898 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3900         * contrib/pic2graph/pic2graph.*: Use convert(1).
3901         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3903 2002-07-14  Bernd Warken  <bwarken@mayn.de>
3905         * tmac/groff_trace.man: New file.
3906         * tmac/Makefile.sub: Updated.
3907         * NEWS: Updated.
3909 2002-07-13  Werner LEMBERG  <wl@gnu.org>
3911         * src/roff/groff/groff.man: Add some cross references.
3913 2002-07-12  Werner LEMBERG  <wl@gnu.org>
3915         * src/roff/troff/input.cc (substring_request): Add warnings for
3916         string indices out of range.
3918 2002-07-11  Werner LEMBERG  <wl@gnu.org>
3920         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3921         * font/devdvi/*EC: Regenerated.
3923 2002-07-10  Bernd Warken  <bwarken@mayn.de>
3925         * man/groff_char.man: Updated and extended.
3927 2002-07-10  Werner LEMBERG  <wl@gnu.org>
3929         * src/roff/troff/input.cc (length_macro): Renamed to...
3930         (length_request): This.
3931         Move call of `tok.next()' to the very end, otherwise the register
3932         value hasn't been updated yet.
3933         (init_input_requests): Updated.
3935 2002-07-09  Werner LEMBERG  <wl@gnu.org>
3937         * src/roff/troff/input.cc (substring_macro): Renamed to...
3938         (substring_request): This.
3939         (init_input_requests): Updated.
3940         * src/roff/troff/request.h: Updated.
3942 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
3944         * src/roff/grog/grog.sh: Fix typo.
3946 2002-07-08  Werner LEMBERG  <wl@gnu.org>
3948         * win32-diffs: Updated.
3950         Handle `papersize' keyword properly in DESC.
3952         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3953         type.
3954         Updated all callers.
3955         * src/libs/libgroff/paper.cc: Add four more paper formats used by
3956         grolj4.
3957         * src/include/paper.h: Updated.
3959         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3960         Other minor C syntax fixes.
3961         (papersize, paperlength, paperwidth): Renamed to `user_*'.
3962         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3963         members.
3964         (lbp_printer::lbp_printer): Pass three arguments.
3965         Set paper dimensions properly.
3966         (make_printer, main): Updated.
3967         (handle_unknown_desc_command): Fix error messages.
3968         (main): Handle papersize keyword in DESC properly.
3970         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3971         `user_paper_size'.
3972         (lbp_printer::lbp_printer): Pass an argument.
3973         Set paper_size properly.
3974         (handle_unknown_desc_command): Removed.
3975         (make_printer, main): Updated.
3976         * src/devices/grolj4/grolj4.man: Minor documentation fix.
3978         * man/groff_font.man, NEWS: Updated.
3980 2002-07-07  Werner LEMBERG  <wl@gnu.org>
3982         Integrated eqn2graph, contributed by Eric S. Raymond.
3984         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3985         files.
3986         * Makefile.in, NEWS: Updated.
3988 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3990         Changing the substring request to make it fit better with other
3991         string manipulation functions in other programming languages:
3992         Index 0 is now the first character in the string, and index -1
3993         indicates the last character.  Since this request didn't work
3994         properly anyway in the last release, it doesn't harm too much to
3995         change the syntax.
3997         * src/roff/troff/input.cc (substring_macro): Use loops to get
3998         the real string length (ignoring COMPATIBLE_SAVE and
3999         COMPATIBLE_RESTORE) and offsets.
4000         Implement change described above.
4002         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4003         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4005         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4007 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4009         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4010         COMPATIBLE_RESTORE are completely ignored.
4012         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4013         functions.
4014         (macro): `length' field renamed to `len'.
4015         Added new field `empty_macro' (1 if macro is empty), to be used
4016         instead of checking `len'.
4017         Updated all callers.
4018         (macro::empty): Updated.
4019         (macro::length, macro::set, macro::get): New functions.
4020         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4021         Set `empty_macro'.
4022         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4023         COMPATIBLE_RESTORE pairs.
4024         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4025         * src/roff/troff/request.h: Updated.
4027         * doc/groff.texinfo: Document .chop's behaviour better.
4029 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4031         * doc/pic.ms: Fix documentation for the addition of positions.
4033         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4035 2002-06-29  Werner LEMBERG  <wl@gnu.org>
4037         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4039         * src/roff/troff/input.cc (have_string_arg): New global variable.
4040         (read_mode): New enumeration.
4041         (read_escape_name): Use it.  Update all calls.
4042         (read_long_escape_name): Use it.  Update all calls.
4043         Set have_string_arg if appropriate.
4044         (get_char_for_escape_name): Add parameter for handling space
4045         character.
4046         (interpolate_string_with_args, decode_string_args): New functions.
4047         (get_copy, token::next): Call it if necessary.
4048         (interpolate_string): Fix error message.
4050         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4051         Document it.
4053 2002-06-24  Bernd Warken  <bwarken@mayn.de>
4055         * man/groff_tmac.man: Updated and extended.
4057 2002-06-24  Werner LEMBERG  <wl@gnu.org>
4059         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4061 2002-06-23  Werner LEMBERG  <wl@gnu.org>
4063         * doc/pic.ms: Improve documentation of composite block objects.
4065 2002-06-22  Werner LEMBERG  <wl@gnu.org>
4067         * src/roff/troff/input.cc (init_registers): Add three registers
4068         `seconds', `minutes', and `hours' to hold the current time.
4070         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4071         Updated.
4073 2002-06-20  Werner LEMBERG  <wl@gnu.org>
4075         Make \X accept both `\ ' and `\~', converting them to single space
4076         characters.
4078         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4079         (token::unstretchable_space): New inline function.
4080         * src/roff/troff/input.cc (token::next, token::delimiter,
4081         token::description, token::add_to_node_list, token::process): Handle
4082         TOKEN_UNSTRETCHABLE_NODE.
4083         (encode_char): Handle tok.stretchable_space and
4084         tok.unstretchable_space.
4086         * NEWS, doc/groff.texinfo: Document it..
4088 2002-06-19  Werner LEMBERG  <wl@gnu.org>
4090         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4092         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4093         keyword to enable/disable SGR output.
4094         (tty_printer::change_fill_color): New function.
4095         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4097         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4098         call.
4100 2002-06-18  Werner LEMBERG  <wl@gnu.org>
4102         Add a `color' request and a `.color' register to control usage of
4103         colours.
4105         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4106         (color_flag): This (which is the inverse).
4107         (activate_color): New function.
4108         (main, init_input_requests): Updated.
4109         * src/roff/troff/troff.h, src/roff/troff/node.cc
4110         (troff_output_file::fill_color, troff_output_file::glyph_color):
4111         Updated.
4113         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4114         Document the changes.
4116 2002-06-17  Colin Watson  <cjwatson@debian.org>
4118         Circumvent bug in autoconf 2.53 regarding top_builddir.
4120         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4121         * Makefile.in, doc/Makefile.in:
4122         s/@top_builddir@/@groff_top_builddir@/.
4123         * configure: Regenerated (with autoconf 2.53).
4125 2002-06-17  Werner LEMBERG  <wl@gnu.org>
4127         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4128         `paperwidth' and `paperlength' for the `papersize' keyword.
4130 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
4132         * src/devices/grops/grops.man: Add info about Type 42 fonts.
4134 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
4136         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4137         html_printer::do_linelength, html_printer::do_pageoffset,
4138         html_printer::do_indentation, html_printer::do_tempindent,
4139         html_printer::do_break, html_printer::begin_page): Clear indented
4140         text.
4141         * tmac/html.tmac: Disable hyphenation.
4143 2002-06-15  Werner LEMBERG  <wl@gnu.org>
4145         Don't produce HTML files if utility programs are missing.
4147         * Makefile.in (make_html, make_install_html): New variables.
4148         (MDEFINES): Updated.
4150         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4151         utility programs.
4152         * configure.ac: Use it.
4153         * configure: Regenerated.
4155         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4156         (HTMLEXAMPLESFILES): This new variable.
4157         (EXAMPLESIMAGEFILES): Renamed to...
4158         (HTMLEXAMPLEIMAGEFILES): This.
4159         (CLEANADD): Add HTMLEXAMPLEFILES.
4160         (all): Use `make_html'.
4161         (html): New target.
4162         (install_data): Use `make_install_html'.
4163         Move html stuff to...
4164         (install_html): This new target.
4165         (uninstall_sub): Updated.
4167 2002-06-14  Bernd Warken  <bwarken@mayn.de>
4169         * src/roff/grog/Makefile.sub (grog): Renamed to...
4170         (grog.old): This.
4171         (grog): New rule to always install grog.sh as grog.
4173 2002-06-08  Bernd Warken  <bwarken@mayn.de>
4175         * src/roff/grog/grog.pl: Fix typo.
4177 2002-06-07  Werner LEMBERG  <wl@gnu.org>
4179         * doc/groff.texinfo: Add more info on .tr arguments.
4181 2002-06-05  Werner LEMBERG  <wl@gnu.org>
4183         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4185         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4186         * configure: Regenerated.
4188 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4190         * src/roff/troff/symbol.cc (table_sizes): Add more values.
4192         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4194 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4196         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4197         is not initialized at the time we need it in case `--prefix' hasn't
4198         been set.  Check for `ac_default_prefix' also.
4199         Test for `papersize' keyword also and generalize allowed whitespace.
4200         * configure: Regenerated.
4202         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4203         `paperlength'.
4205         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4206         with...
4207         (src_version, src_revision): New variables to avoid overwriting
4208         from parent make process.
4209         (version.cc): Updated.
4211         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4212         (linebuf, linebufsize): New global variables.
4213         (sys_fatal): Use `fatal' to abort properly.
4214         (get_line): New function.
4215         (get_resolution): Use it.
4216         Improve error messages.
4217         (get_papersize): Check `papersize' also.
4218         Use `get_line'.
4219         Improve error messages.
4221 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4223         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4224         should be removed only if builddir is not srcdir.
4225         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4226         (clean): Depend on `mostlyclean'.
4227         (distclean): Depend on `clean'.
4228         (realclean, extraclean): Depend on `distclean'.
4229         (.y.cc, .y.o): Simplified.  The output files are no longer written
4230         to srcdir but to builddir.
4231         * Makefile.in (MDEFINES): Add `version' and `revision'.
4232         (uninstall_dirs): Fix order of directories.
4233         * doc/Makefile.sub (version, revision): Removed.
4234         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4235         Added `HTMLDOCFILES'.
4236         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4237         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4238         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4239         as prefix.
4241         * doc/texinfo.tex (\authortt): New macro.
4242         (\shortcontt): Define.
4243         (\titlepage): Set \tt to \authortt while defining \authorfont.
4244         (\appendixbox): New macro.
4245         (\chapmacro, \appendixentry): Use \appendixbox to get even
4246         indentation for letters.
4247         (\summarycontents): Set \tt.
4248         (\internalpagesize): Add two arguments for real paper width and
4249         height as needed by pdfTeX.
4250         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4251         Updated.
4252         (\tempdima, \tempdimb): New temporary dimensions.
4253         (\pagesizesyyy): Updated.
4255 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4257         Adding a new keyword `papersize' to the DESC file format (similar
4258         but not completely identical to grolbp's extension).  grops now has
4259         a -p command line option to override `papersize'.  Finally, grolbp
4260         has been adapted to the new syntax.
4262         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
4263         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4264         elements.
4265         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4266         (CCSRCS): Add `paper.cc'.
4268         * src/include/font.h (font): Add `papersize' element.
4269         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4270         (font::scan_papersize): New function.
4271         (font::load_desc): Use it for handling `papersize' keyword.
4272         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4274         * src/devices/grops/ps.cc: Include paper.h.
4275         (user_paper_length): New global variable.
4276         (ps_printer): Use paper length as initializer.
4277         (make_printer): Updated.
4278         (main): Handle new `-p' option.
4279         * src/devices/grops/grops.man: Updated.
4281         * src/devices/grolbp/lbp.cc: Include paper.h.
4282         s/papersizes/lbp_papersizes/.
4283         (set_papersize): Use new `papersizes' array.
4284         (handle_unknown_desc_command): Don't handle `papersize'.
4285         (main): Use `font::scan_papersize' for handling `-p' option.
4286         * src/devices/grolbp/grolbp.man: Updated.
4288         * man/groff_font.man: Document `papersize'.
4289         * NEWS: Updated.
4291 2002-05-30  Werner LEMBERG  <wl@gnu.org>
4293         * src/devices/grops/TODO: Updated.
4294         * src/devices/grops/grops.man: More info on paper formats.
4295         * man/groff_font.man: Document `paperheight' and `paperwidth'.
4297 2002-05-29  Werner LEMBERG  <wl@gnu.org>
4299         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4300         to list only if srcdir != currdir.
4301         (distfiles): New target.
4303         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4304         (NOMAKEDIRS): New variable.
4305         (DISTDIRS): Use it.
4307 2002-05-26  Werner LEMBERG  <wl@gnu.org>
4309         Add .output request, similar to \! at top-level.
4311         * src/roff/troff/input.cc (transparent): Remove unused declaration.
4312         (output_request): New function.
4313         (init_input_requests): Add it.
4314         Sorted.
4315         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4316         Document it.
4318         * Makefile.in (MDEFINES): Add INSTALL_INFO.
4319         (prepare_examples): Fix typo.
4320         * doc/groff.texinfo (@direntry): Fix it.
4322 2002-05-25  Werner LEMBERG  <wl@gnu.org>
4324         Including the doc subdir into groff's Makefile system.
4326         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4327         * configure.ac: Use it.
4328         Generate `doc/Makefile'.
4329         * configure: Regenerated.
4331         * Makefile.in (infodir, INSTALL_INFO): New variables.
4332         (MDEFINES, uninstall_dirs): Updated.
4333         (OTHERDIRS): Add `doc'.
4334         * Makefile.comm (CLEANDIRADD): New variable.
4335         (mostlyclean): Use it.
4337         * doc/Makefile.sub, doc/Makefile.in: New files.
4338         * doc/Makefile: Removed.
4340         * NEWS, INSTALL: Updated.
4342 2002-05-24  Werner LEMBERG  <wl@gnu.org>
4344         * doc/homepage.ms: Renamed to ...
4345         * doc/webpage.ms: This.
4346         Use `.NHR'.
4348 2002-05-23  Werner LEMBERG  <wl@gnu.org>
4350         Integrating the `mom' macro package, contributed by Peter Schaffter
4351         <df191@ncf.ca>.
4353         * contrib/mom/*: New subdirectory tree.
4354         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4355         be used for documentation files.
4356         (MDEFINES, uninstall_dirs): Use them.
4357         (OTHERDIRS): Add contrib/mom.
4358         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4359         @HTMLDOCDIR@.
4360         * MANIFEST, NEWS: Updated.
4362 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
4364         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4365         if at outer level; at start-up we are at outer level.
4367         * src/roff/troff/input.cc (do_suppress): Implement it.
4368         Simplify \O[3].
4370         Add option -p to show progress information.
4371         pre-grohtml will now render only one page at a time, reducing the
4372         size of needed disk resources enormously.
4374         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4375         (imagePageName): New global variable.
4376         (psPageName, show_progress, currentPageNo): New global variables.
4377         (html_system): Close saved stderr and stdout handles.
4378         (write_end_image): Accept a parameter to control \O escape.
4379         (write_start_image): Adapted to new \O meaning.
4380         (char_buffer::write_upto_newline): Updated.
4381         (createAllPages): Replaced with...
4382         (createPage): This new function to create a single page for images.
4383         It uses `psselect' from the psutils package.
4384         (removeAllPages): Removed.
4385         (createImage): Updated.
4386         Handle progress display.
4387         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4388         (scanArguments): Add option -p.
4389         (makeTempFiles): Updated to create temp files for psPageName and
4390         imagePageName.
4391         (removeTempFiles): Removed.
4392         (main): Updated.
4394         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4395         html_printer::write_header): Append `\0' to `buffer'.
4396         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4397         (main): Handle -p.
4398         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4399         Handle `text_emitted'.
4400         (html_text::table_is_void): Slightly rewritten.
4401         (stop): New external symbol.
4402         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4403         (html_text::shutdown): Call `dump_stack'.
4404         (html_text::do_space): Rewritten.
4405         * src/devices/grohtml/grohtml.man: Document -p and the need of
4406         `psselect'.
4408         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4409         new \O syntax.
4410         Call \O[0] if `ps4html' is active.
4411         * tmac/s.tmac (@EQ, @EN): Handle html better.
4412         (@TS, TE): Ditto.
4413         * tmac/html.tmac: Don't use black for background colour.
4415         * src/roff/troff/node.cc: Include `div.h'.
4416         (troff_output_file::really_print_line): Don't use `is_on'. 
4417         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4418         troff_output_file::check_charinfo,
4419         troff_output_file::put_char_width, troff_output_file::put_char,
4420         troff_output_file::determine_line_limits, troff_output_file::draw,
4421         real_output_file::begin_page, glyph_color_node::tprintf,
4422         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4423         Use `is_on'.
4424         (troff_output_file::really_on): Call `do_motion'.
4425         (suppress_node::tprint): Use `get_page_number' instead of `%'
4426         register.
4427         Call `reset_output_registers' conditionally on `is_on'.
4429         * doc/groff.texinfo: Document new syntax of \O.
4430         * NEWS, man/groff_diff.man: Updated.
4432 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4434         * MORE.STUFF: Add info about David Frey's deroff implementation.
4435         Mention troff.org.
4437 2002-05-16  Werner LEMBERG  <wl@gnu.org>
4439         Pic's `with' attribute now accepts positions.
4441         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4442         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4443         conflicts.
4444         (object_spec): Add rule for `WITH' and `position'.
4445         (relative_path): Give `corner' the precedence of `CHOP'.
4446         * src/preproc/pic/object.h (path): New members `pos' and
4447         `is_position'.
4448         * src/preproc/pic/object.cc: Updated initializers of `path'.
4449         (path::follow): Handle `is_position'.
4451         * doc/pic.ms: Completely updated grammar description.
4452         Many typographical improvements.
4454 2002-05-15  Werner LEMBERG  <wl@gnu.org>
4456         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4457         code of x in range 0-127) also.
4458         * doc/groff.texinfo, man/groff_diff.man: Updated.
4460         Added keywords `north', `south', `east', and `west' for corners
4461         in pic.
4463         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4464         and WEST.
4465         (yylex): Handle them.
4466         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4467         (corner): Handle them.
4469 2002-05-14  Werner LEMBERG  <wl@gnu.org>
4471         * src/devices/grops/grops.man: Clarify handling of `download' file.
4473 2002-05-11  Werner LEMBERG  <wl@gnu.org>
4475         Adding `warnscale' and `spreadwarn' requests, based on a patch from
4476         Jeffrey Friedl <jfriedl@yahoo.com>.
4478         * src/roff/troff/input.cc (spread_limit, warn_scale,
4479         warn_scaling_indicator): New global variables.
4480         (warnscale_request, spreadwarn_requests): New functions.
4481         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4482         (init_input_requests): Updated.
4483         (error_type): Add `OUTPUT_WARNING'.
4484         (do_error): Handle it.
4485         (output_warning): New warning function which shows output location.
4486         * src/roff/troff/env.h (spread_limit): New external variable.
4487         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4488         `output_warning'.
4489         (distribute_space): Emit warning if added space is larger than
4490         `spread_limit'.
4491         (environment::possibly_break_line): Emit warning if a line can't
4492         be adjusted on both sides.
4494         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4496 2002-05-08  Werner LEMBERG  <wl@gnu.org>
4498         * src/roff/troff/node.cc (special_node::special_node): Use
4499         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
4500         \X''\% crashes, for example.
4502         * doc/groff.texinfo: Document \! and \? used at top-level.
4504 2002-05-06  Werner LEMBERG  <wl@gnu.org>
4506         * src/preproc/pic/pic.man: Fix some keyword syntax.
4507         Other minor typographical fixes.
4509         * src/roff/groff/groff.man: Fix typos.
4511 2002-05-04  Werner LEMBERG  <wl@gnu.org>
4513         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4514         (ShortOpt[]): This to avoid problems with refer.
4516         * doc/pic.ms: Fix typo.
4517         Fix pic grammar description.
4519         * tmac/an-old.tmac (ne): Use de1, not de.
4521 2002-05-03  Werner LEMBERG  <wl@gnu.org>
4523         * doc/groff.texinfo: Finished separation of glyphs and characters.
4524         Don't use the string `Appendix' for appendix headers (both in
4525         the text and the table of contents).
4526         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4527         directories.
4529         Use registers LL and LT (similar to -ms) for controlling the
4530         length of title and line, respectively, in the -man and -mdoc
4531         macro packages.
4533         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4534         (doc-setup-page-layout): Use \n[LL] and \n[LT].
4535         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4536         (TH): Use \n[LL].
4537         (an-header, an-p-footer): Use \n[LT].
4538         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4539         doc/groff.texinfo: Document it.
4541 2002-05-02  Werner LEMBERG  <wl@gnu.org>
4543         * doc/fdl.texi: New file.
4544         * doc/groff.texinfo: Include it.
4545         Define and use @copying.
4546         Starting with separating glyph, symbol, and character.
4548 2002-04-27  Werner LEMBERG  <wl@gnu.org>
4550         * Makefile.in (EXEEXT): Set it.
4551         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4552         programs.
4554         * src/include/nonposix.h: Define GS_NAME.
4555         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4557         Some preliminary changes for EMX support under OS/2.
4559         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4560         __EMX__ similar to __MSDOS__.
4561         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4563 2002-04-25  Werner LEMBERG  <wl@gnu.org>
4565         * doc/groff.texinfo: Integrated groff_out.man.
4566         Some macro fixes.
4568 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4570         * man/groff_out.man: Minor fixes.
4572 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4574         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4575         correct page references.
4576         Fixed many index entries.
4578 2002-04-23  Bernd Warken  <bwarken@mayn.de>
4580         * man/roff.man: Enlarged.
4582 2002-04-22  Werner LEMBERG  <wl@gnu.org>
4584         * doc/groff.texinfo: More examples, other fixes.
4586 2002-04-20  Werner LEMBERG  <wl@gnu.org>
4588         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4589         will now form a chain, e.g.
4591           .pi foo
4592           .pi bar
4594         is now the same as
4596           .pi foo | bar
4598         This is for compatibility with plan 9's troff.
4600         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4601         with UNIX troff.
4602         * NEWS: Updated.
4604         * doc/groff.texinfo: Add documentation of remaining requests and
4605         registers.
4607 2002-04-19  Werner LEMBERG  <wl@gnu.org>
4609         * doc/groff.texinfo: Add documentation of remaining escapes.
4611         * font/devdvi/generate/tc.map: Remove entry for `sr'.
4612         * font/devdvi/*TC: Regenerated.
4614 2002-04-18  Werner LEMBERG  <wl@gnu.org>
4616         * src/roff/troff/input.cc (token::next): Make \H behave consistently
4617         if not in compatibility mode, i.e., increment relative to the
4618         previous height.
4619         * doc/groff.texinfo: Updated accordingly.
4621 2002-04-17  Werner LEMBERG  <wl@gnu.org>
4623         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4625 2002-04-16  Bernd Warken  <bwarken@mayn.de>
4627         * src/roff/groff/groff.man: Improve documentation of -P option.
4628         Other minor fixes.
4630 2002-04-15  Werner LEMBERG  <wl@gnu.org>
4632         Add new escape \F to switch font family.
4634         * src/roff/troff/input.cc (token::next): Handle \F.
4635         * src/roff/troff/env.cc (environment::set_family): Handle
4636         `interrupted' flag.
4637         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4638         Document it.
4640 2002-04-14  Werner LEMBERG  <wl@gnu.org>
4642         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4643         spaces in tags.
4645 2002-04-13  Werner LEMBERG  <wl@gnu.org>
4647         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
4648         \m[] and \M[], respectively.
4650         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4651         (symbol::symbol): Handle NULL string and empty string differently.
4652         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4653         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4654         Add optional parameter.
4655         Updated calling functions.
4656         (get_copy, do_glyph_color, do_fill_color, token::next): Use
4657         `symbol::is_empty'.
4658         * src/roff/troff/env.cc (environment::set_font): Ditto.
4660         * src/preproc/pic/troff.cc (troff_output::set_fill,
4661         troff_output::reset_color: Updated.
4663         * tmac/www.tmac: Updated.
4665         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4666         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4667         Updated.
4669         * tmac/Xps.tmac: Remove some redundant code.
4671         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4672         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4673         man/groff_out.man, man/groff.man, man/groff_diff.man,
4674         src/roff/groff/groff.man: Replace \f[P] with \f[].
4676 2002-04-13  Bernd Warken  <bwarken@mayn.de>
4678         * src/include/printer.h, src/libs/libdriver/printer.cc
4679         (printer::change_fill_color): New member function.
4680         * src/libs/libdriver/input.cc (parse_D_command): Use it.
4682 2002-04-12  Werner LEMBERG  <wl@gnu.org>
4684         * doc/groff.texinfo: Completed pass on gtroff reference.
4686 2002-04-11  Werner LEMBERG  <wl@gnu.org>
4688         * doc/groff.texinfo: More fixes.
4690 2002-04-11  Bernd Warken  <bwarken@mayn.de>
4692         * src/include/color.h: Decorate with `const'.
4693         Use `size_t'.
4694         Include `stddef.h'.
4695         * src/libs/libgroff.color.cc: Decorate with `const'.
4696         Use `size_t'.
4697         (color::color): Initialize members.
4698         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4699         command according to the documentation.
4701         * man/groff_out.man: Updated.
4702         Minor fixes.
4704 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
4706         * src/preproc/html/pre-html.cc (write_start_image): Remove
4707         redundant output.
4708         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4710         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4711         \C'hy' caused an assertion failure.
4713         * src/roff/troff/env.cc (environment::environment): Initialize
4714         `emitted_node'.
4715         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4717 2002-04-10  Werner LEMBERG  <wl@gnu.org>
4719         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4720         Document pvs request and .pvs register.
4722 2002-04-09  Werner LEMBERG  <wl@gnu.org>
4724         * doc/groff.texinfo: Improve and fix documentation of diversions
4725         and environments.
4727 2002-04-08  Werner LEMBERG  <wl@gnu.org>
4729         * doc/groff.texinfo: Fix documentation of drawing functions.
4730         Other minor fixes.
4732 2002-04-07  Werner LEMBERG  <wl@gnu.org>
4734         * doc/groff.texinfo: Better documentation of double quotes as
4735         arguments.
4736         Other minor fixes.
4738 2002-04-06  Werner LEMBERG  <wl@gnu.org>
4740         * man/groff_font.man: Document names of special characters better.
4741         * doc/groff.texinfo: Minor improvements.
4743         * tmac/lbp.tmac: Load latin1.tmac.
4744         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4746         * font/devX*/*: Regenerated (all chars > 0x80 removed).
4748 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4750         * tmac/tty.tmac: Don't use shc request.
4751         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4752         * NEWS: Updated.
4754         * man/groff_diff.man: Minor fixes.
4756         * font/devlbp/*: Remove all `charXXX' entities.
4758         * src/libs/libgroff/font.cc (font::~font): Deallocate
4759         `special_device_coding'.
4760         (font::load): Use `new' for allocating `special_device_coding'.
4761         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4762         Removed unused member.
4764 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4766         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4767         (resource_manager::do_begin_binary,
4768         resource_manager::do_begin_data): Use it.
4770         * doc/texinfo.tex: Updated to version 4.2.
4772         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4773         (token::zero_width_break): New inline function.
4774         * src/roff/troff/input.cc (token::next): Use it.
4775         (token::description): Updated.
4776         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4777         (token::add_to_node_list, token::process): Use it.
4778         * NEWS, doc/groff.texinfo: Updated.
4780         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4781         * tmac/tty.tmac: Add missing backslash.
4783 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
4785         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4786         `.ps' register instead of `.s' to handle fractional point sizes.
4787         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4788         limit_box::output): Ditto.
4789         * src/preproc/eqn/other.cc (size_box::compute_metrics,
4790         size_box::output): Ditto.
4791         * src/preproc/eqn/over.cc (over_box::compute_metrics,
4792         over_box::output): Ditto.
4793         * src/preproc/eqn/script.cc (script_box::compute_metrics,
4794         script_box::output): Ditto.
4795         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4796         sqrt_box::output): Ditto.
4798 2002-04-03  Michael Selway  <mas@ssl.co.uk>
4800         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4801         Fix typo.
4803 2002-04-03  Werner LEMBERG  <wl@gnu.org>
4805         * doc/homepage.ms: Reduce title size.
4806         * doc/groff.texinfo: Fix documentation of .t register.
4807         Fix handling of colon.
4808         Fix `\' vs. `\\'.
4810         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4811         only if page length is positive to avoid a loop.
4813         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4814         tbl.
4816 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
4818         * src/include/nonposix.h, src/roff/groff/pipeline.c:
4819         s/__CYGWIN32__/__CYGWIN__/.
4821 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
4823         * doc/gnu.xpm: New image contributed by Emily Mulley.
4824         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4825         (homepage.html): Be dependent on gnu.eps.
4826         * doc/homepage.ms: Updated to new image.
4828         * src/devices/grohtml/post-html.cc (html_printer): New member
4829         `sbuf_prev_hpos'.
4830         (html_printer::flush_sbuf, html_printer::set_char): Set it.
4831         (html_printer::sbuf_continuation): Use it.
4833 2002-03-28  Werner LEMBERG  <wl@gnu.org>
4835         * src/libs/libgroff/getopt.c: Updated to latest version.
4837         * tmac/README: More on hyphen.tex license.
4839 2002-03-26  Larry Kollar  <kollar@alltel.net>
4841         * doc/groff.texinfo: Add documentation of most missing requests.
4843 2002-03-25  Werner LEMBERG  <wl@gnu.org>
4845         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4846         of `+-', `mu', and `di', respectively.
4848         * font/devascii/R.proto, font/devutf8/R.proto,
4849         font/devlatin1/R.proto, font/devhtml/R.proto,
4850         font/devcp1047/R.proto, font/devlpb/*: Add them.
4851         * font/devps/generate/textmap: Ditto.
4852         * font/devps/*: Regenerated.
4853         * font/devlj4/generate/text.map: Add them.
4854         * font/devlj4/*: Regenerated.
4855         * font/devdvi/generate/tc.map: Use them.
4856         * font/devdvi/generate/texsy.map: Add them.
4857         * font/devdvi/*: Regenerated.
4858         * font/devX*/*: Regenerated.
4860         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4861         tmac/tty-char.tmac: Updated.
4863         * NEWS, man/groff_char.man: Updated.
4865 2002-03-24  Werner LEMBERG  <wl@gnu.org>
4867         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4868         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4869         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4870         we use `.fchar' in dvi.tmac.
4871         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4872         * tmac/Xps.tmac: Simplify some char definitions.
4873         Add definition for \[f/].
4874         * man/groff_char.man: Updated for new X.tmac.
4876         * tmac/README: New file.
4878 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
4880         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4881         internal .y.o rule took precendence over the .y.cc rule, compiling
4882         the yacc files with gcc instead of g++.
4884 2002-03-23  Werner LEMBERG  <wl@gnu.org>
4886         * tmac/dvi.tmac: Add replacement font for `CB'.
4888         * tmac/doc.tmac: s/request/macro/ in messages.
4889         (doc-generic-macro): Improve error message.
4890         * tmac/groff_mdoc.man: Minor improvements.
4892 2002-03-22  Werner LEMBERG  <wl@gnu.org>
4894         * doc/groff.texinfo: Document possible conflict between `tr' and
4895         `char' requests.
4897 2002-03-21  Werner LEMBERG  <wl@gnu.org>
4899         Improve handling of hyphenation patterns.  It is now possible to
4900         use most of TeX's pattern files unmodified.  To make the process
4901         more flexible, a new request `hpfcode' has been added which
4902         provides a character code mapping for the `hpf' request.  See
4903         comment before hpf_getc() for more details.
4905         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4906         functions.
4907         (read_patterns_file): Additional parameter for exception dictionary.
4908         Extended to recognize \pattern, \hyphenation, and \endinput.
4909         (do_hyphenation_patterns_file): Updated.
4910         * src/roff/troff/env.h (hpf_code_table): New extern.
4912         * src/roff/troff/input.cc (hpf_code_table): New array.
4913         (init_hpf_code_table, hyphenation_patterns_file_code): New
4914         functions.
4915         (hyphenation_code): Handle translation from `trin' correctly.
4916         (main, init_input_requests): Updated.
4917         (charinfo::set_translation): Handle hyphenation code also.
4919         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4920         inline function.
4922         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4923         char' is used for offsets in hyphenation exceptions.
4925         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4927         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4929 2002-03-20  Larry Kollar  <kollar@alltel.net>
4931         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4932         requests.
4934 2002-03-18  Werner LEMBERG  <wl@gnu.org>
4936         * tmac/html.tmac: Fix serious typo.
4938 2002-03-17  Larry Kollar  <kollar@alltel.net>
4940         * doc/groff.texinfo: Add documentation for `writec' request.
4942 2002-03-17  Werner LEMBERG  <wl@gnu.org>
4944         Added request `hpfa' to append hyphenation patterns.
4946         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4947         parameter `append'.
4948         (hyphenation_patterns_file): Renamed to...
4949         (do_hyphenation_patterns_file): This.
4950         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4951         functions.
4952         (init_hyphen_requests): Updated.
4953         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4955 2002-03-16  Werner LEMBERG  <wl@gnu.org>
4957         Added request `writec' in analogy to `tmc'.
4959         * src/roff/troff/input.cc (write_request): Renamed to...
4960         (do_write_request): This.
4961         Added one parameter.
4962         (write_request, write_request_continue): New functions.
4963         (init_input_requests): Updated.
4964         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4966         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4967         5-10000pt.
4968         * NEWS: Document it.
4970 2002-03-15  Werner LEMBERG  <wl@gnu.org>
4972         * man/groff.man: Add writem request.
4974         Add request `trin' (translate input) to make `.asciify' work
4975         correctly.  This is necessary since `charXXX' entity names are no
4976         longer hardcoded in font definition files.
4978         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4979         `translate_input' members.
4980         (charinfo::set_asciify_code, charinfo::get_asciify_code,
4981         charinfo::set_translation_input): New methods.
4982         (charinfo::set_translation): Add third argument.
4983         * src/roff/troff/input.cc (charinfo:set_translation): Set
4984         `asciify_code'.
4985         (do_translate): Add second argument.
4986         (translate_input): New function.
4987         (init_input_requests): Updated.
4988         * src/roff/troff/node.cc (glyph_node::asciify,
4989         composite_node::asciify): Use `get_asciify_code'.
4991         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4993         * NEWS, man/groff.man, man/groff_diff.man: Updated.
4995 2002-03-14  Larry Kollar  <kollar@alltel.net>
4997         * doc/groff.texinfo: Improve documentation of .RS and .RE.
4999 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5001         Add a new request `sizes' similar to the `sizes' command in DESC
5002         files.
5004         * src/roff/troff/env.cc (override_sizes): New function.
5005         (init_env_requests): Use it.
5006         * src/roff/troff/token.h: Export `read_string'.
5007         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5009 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5011         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5013 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5015         * tmac/pspic.tmac: Add support for -Tdvi.
5016         * tmac/dvi.tmac: Include pspic.tmac.
5017         * src/devices/grodvi/grodvi.man: Document it.
5018         * NEWS: Updated.
5020         * font/devlj4/generate/Makefile: Fix URL of metric files.
5022 2002-03-09  Werner LEMBERG  <wl@gnu.org>
5024         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5026 2002-03-09  Larry Kollar  <kollar@alltel.net>
5028         * tmac/groff_ms.man: Add documentation for RS and RE macros.
5030 2002-03-08  Werner LEMBERG  <wl@gnu.org>
5032         * doc/groff.texinfo: Fixes for texinfo 4.1.
5034 2002-03-07  Werner LEMBERG  <wl@gnu.org>
5036         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5037         included.
5038         Handle CYGWIN properly.
5040 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
5042         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5043         * tmac/lbp.tmac: Add some font translations.
5045 2002-03-02  Werner LEMBERG  <wl@gnu.org>
5047         * font/devcp1047/R.proto, font/devlatin1/R.proto,
5048         font/devhtml/R.proto: Remove `charXXX'  entries.
5049         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5050         where appropriate.
5052         * font/devlj4/generate/text.map: Remove `charXXX' entries.
5053         * font/devlj4/*: Regenerated all font definition files.
5054         * tmac/lj4.tmac: Load latin1.tmac.
5056         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5057         from 2000-06-17: LJ4 metric files are *not* text files.
5059         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5060         register to test for EBCDIC.
5062 2002-03-01  Werner LEMBERG  <wl@gnu.org>
5064         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5065         files (as grops already does).
5066         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5067         files.
5068         * src/devices/grops/grops.man: Document comment lines in encoding
5069         files.
5071         * tmac/cp1047.tmac: New file.
5072         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5073         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5074         * tmac/Makefile.sub (NORMALFILES): Updated.
5076         * tmac/ec.tmac: Don't load latin1.tmac again.
5078         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5079         font/devps/generate/dingbats.map,
5080         font/devps/generate/dingbats.rmap, font/devps/text.enc,
5081         font/devps/generate/Makefile (symbolmap): Add header comment.
5082         * font/devps/generate/textmap: Ditto.
5083         Remove `charXXX' entries.
5084         * font/devps/symbolmap: Regenerated.
5085         * font/devps/*: Regenerated all font definition files.
5087 2002-02-28  Werner LEMBERG  <wl@gnu.org>
5089         Add color support to grodvi (for drawing colors are currently
5090         translated to gray values).
5092         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5093         (dvi_printer): Add `cur_color' member.
5094         (dvi_printer::set_color): New function.
5095         (draw_dvi_printer): Remove `fill'.
5096         (draw_dvi_printer::fill_next): Pass environment as parameter.
5097         Update code for new color support translated to gray.
5098         (dvi_printer::set_char): Updated.
5099         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5100         changes crossing the page border.
5101         (dvi_printer::draw): Updated.
5102         Remove cases `f' and `F'.
5103         * tmac/dvi.tmac: Add color definitions.
5104         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5106         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5107         used incorrectly.
5109         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5110         versions of autoconf.
5111         * configure: Updated.
5113         * doc/homepage.ms: Use `.blm'.
5114         * tmac/www.tmac (www-depth): New auxiliary variable.
5115         (www-pop-level): Don't issue HTML tag.
5116         (ULS, ULE, LI): Use absolute indentation.
5118         * src/devices/grops/ps.cc (ps_printer::begin_page,
5119         ps_printer::end_page): Switch forth and back to default color while
5120         starting a new page.
5122 2002-02-27  Werner LEMBERG  <wl@gnu.org>
5124         Add EC and TC fonts to devdvi.
5126         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5127         * font/devdvi/generate/cork.map: Renamed to...
5128         * font/devdvi/generate/ec.map: This.
5129         Remove entry for `aq'.
5130         * font/devdvi/generate/tc.map: New file.
5131         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5132         EC and TC fonts.
5133         (FONTS): Updated.
5134         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5135         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5136         * tmac/ec.tmac: New file.
5137         * tmac/Makefile.sub (NORMALFILES): Updated.
5138         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5139         * man/groff_char.man: Check `ECFONTS' register.
5141         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5143 2002-02-26  Werner LEMBERG  <wl@gnu.org>
5145         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5146         * font/devdvi/generate/cork.map: Add 'y and 'Y.
5147         * font/devdvi/*: Updated.
5148         * tmac/dvi.tmac: Formatting.
5150         Add font `HBI' for the dvi output.
5151         Add support for font families `T' and `H'.
5153         * font/devdvi/HBI: New file.
5154         * font/devdvi/B: Renamed to ...
5155         * font/devdvi/TB: This.
5156         * font/devdvi/BI: Renamed to ...
5157         * font/devdvi/TBI: This.
5158         * font/devdvi/I: Renamed to ...
5159         * font/devdvi/TI: This.
5160         * font/devdvi/R: Renamed to ...
5161         * font/devdvi/TR: This.
5162         * font/devdvi/H: Renamed to ...
5163         * font/devdvi/HR: This.
5164         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5165         * font/devdvi/generate/Makefile (HBI): New rule.
5166         (FONTS): Updated.
5167         (R, I, B, BI, H): Renamed to ...
5168         (TR, TI, TB, TBI, HR): This, respectively.
5169         (srcdir): Fixed.
5170         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5171         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5172         Add `styles' and `family' keywords.
5173         * tmac/dvi.tmac: Alias `H' to `HR'.
5174         Add some fspecial requests for italic fonts.
5175         Add TR and TI as special.
5176         Add support for `_' with font CWI.
5178         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5179         operator `:'.  Until now, the expression `0:1' would return 2
5180         instead of 1.
5182 2002-02-25  Werner LEMBERG  <wl@gnu.org>
5184         * man/groff_char.man: Added some missing PS glyph names (from the
5185         Adobe Glyph List).
5186         * font/devps/generate/textmap, font/devps/symbolmap: Add
5187         `arrowupdn'.
5189         * doc/groff.texinfo: Minor additions and fixes.
5190         * man/groff_diff.man: Remove documentation of fp request.  This
5191         is already covered in the original troff manual.
5192         Updated to be consistent with other doc files.
5193         * NEWS: Updated.
5195 2002-02-24  Werner LEMBERG  <wl@gnu.org>
5197         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5198         TTYDEVDIRS.
5199         Define new variable OTHERDEVDIRS (containing `font/devlj4
5200         font/devlbp' if not EBCDIC).
5201         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5202         (OTHERDEVDIRS): New variable.
5203         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5204         * configure: Regenerated.
5206         * NEWS, src/devices/grotty/grotty.man: Updated.
5208 2002-02-23  Werner LEMBERG  <wl@gnu.org>
5210         * src/roff/troff/input.cc (do_overstrike, do_bracket,
5211         get_line_arg): Honour input level.
5213         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5215         * font/*/*: Implement it in all font files.
5216         * font/devps/generate/textmap, font/devps/generate/symbolchars,
5217         * font/devps/symbolmap: Updated.
5218         * font/devlj4/generate/text.map: Updated.
5219         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5220         * font/devdvi/generate/texmi.map: Updated.
5222         * font/devutf8/R.proto: Remove all `charXXX' entries.
5223         * font/devutf8/NOTES: Updated.
5225         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5226         version 4.1.0.
5228         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5230         * NEWS, man/groff_char.man: Updated.
5232 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
5234         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5236 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5238         * src/roff/grog/grog.pl: Fix computation of $refer.
5240 2002-02-19  Werner LEMBERG  <wl@gnu.org>
5242         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5243         `snprintf' and `vsnprintf'.
5245         * src/include/htmlindicate.h: Renamed to...
5246         * src/include/htmlhint.h: This.
5247         * src/include/Makefile.sub: Updated.
5248         * src/preproc/eqn/main.cc: Updated.
5250 2002-02-18  Werner LEMBERG  <wl@gnu.org>
5252         * man/roff.man, man/groff_out.man, man/groff.man,
5253         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5254         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5256         * win32-diffs: Updated.
5258 2002-02-17  Werner LEMBERG  <wl@gnu.org>
5260         * doc/Makefile (clean): Add *.eps.
5261         (MEMACROS): Removed.
5262         (TFLAG): New variable.
5263         (TROFF): Use it.
5264         Add -ww.
5265         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5266         (.me.dit): Fixed.
5267         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5269         * tmac/www.tmac: Use dummy diversion while resetting and disabling
5270         `.tl'.
5271         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5272         unstripped.
5273         * src/roff/troff/troff.man: Fix order of parameter description.
5275         * NEWS: Updated.
5277 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
5279         Simplify image handling for grohtml.
5280         Fix <p> bug.
5282         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5283         comment out.
5284         (html_text::dump_stack): Don't emit newline while debugging.
5285         (html_text::do_push) [DEBUGGING]: Print more info.
5286         (html_text::check_emit_text): Fix handling of <p>.
5287         * src/devices/grohtml/html.h: Updated.
5288         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5289         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
5290         send its data to stderr also.
5291         Update all callers.
5292         (simple_output::space_or_newline) [DEBUGGING]: Removed.
5293         * src/devices/grohtml/post-html.cc (html_printer::do_links,
5294         html_printer::html_printer): Remove `DEBUGGING' conditionals.
5296         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5297         Removed.
5298         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5299         is_inline_image): Removed.
5300         (html_begin_suppress, html_end_suppress): Don't take a parameter.
5301         (graphic_start, graphic_end): Removed.
5302         * src/include/htmlindicate.h: Updated.
5303         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5304         (macroset_template): New global variable.
5305         (makeFileName): Use `macroset_template'.
5306         (write_end_image): Don't take a parameter.
5307         Don't emit newline.
5308         (write_start_image: Don't emit newline.
5309         (char_buffer::write_upto_newline): Updated.
5310         (char_buffer::skip_to_newline): Renamed to ...
5311         (char_buffer::skip_until_newline): This.
5312         Fix code.
5313         (char_buffer::write_file_troff, char_buffer::write_file_html):
5314         Simplified.
5315         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5316         (removeAllPages): Remove `DEBUGGING' conditionals.
5317         (addRegDef, dump_args): New functions.
5318         (char_buffer::do_html, char_buffer::do_image): Handle
5319         `www-image-template' command line variable.
5320         Add more debugging code.
5321         (addps4html): Removed.
5322         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5324         * src/preproc/eqn/main.cc: Include `ctype.h'.
5325         (suppress_html): Removed.
5326         (do_file): Updated.
5327         (inline_equation): Use `html_begin_suppress' and
5328         `html_end_suppress'.
5329         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5330         (troff_output::start_picture, troff_output::finish_picture):
5331         Updated.
5332         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5333         (process_input_file): Updated.
5335         * src/roff/troff/div.cc (page_number): Set page number only if the
5336         `ps4html' register isn't defined.
5337         * src/roff/troff/input.cc (image_no): New external variable.
5338         (do_suppress): Use it.
5339         * src/roff/troff/node.h (suppress_node::image_id): New member.
5340         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5341         (suppress_node::suppress_node): Initialize `image_id' member.
5342         (suppress_node::same): Handle `image_id' also.
5343         (suppress_node::copy): Updated.
5344         (last_image_id): New global variable.
5345         (suppress_node::tprint): Use it.
5347         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5348         HTML-IMAGE-END.
5349         * tmac/pspic.mac (PSPIC): Fix html support.
5350         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5351         * tmac/www.tmac (www-image-template): Set up.
5352         (HTMLINDEX): Renamed to...
5353         (HX): This.
5354         (BODYCOLOR): Renamed to...
5355         (BCL): This.
5356         (BACKGROUND): Renamed to...
5357         (BGIMG): This.
5358         (URL): Change order of parameters for consistency.
5359         (MAILTO): Renamed to...
5360         (MTO): This.
5361         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5362         (IMG, PIMG, MPIMG): This.
5363         (HTML-H-BEGIN, HTML-H-END): Renamed to...
5364         (HnS, HnE): This.
5365         (LINKS): Renamed to...
5366         (LK): This.
5367         (LINE): Renamed to...
5368         (HR): This.
5369         (NO-AUTO-RULE): Renamed to...
5370         (NHR): This.
5371         (HTML-TL): Renamed to...
5372         (HTL): This.
5373         (UL-BEGIN, UL-END): Renamed to...
5374         (ULS, ULE): This.
5375         (DROPCAP): Renamed to...
5376         (DC): This.
5377         (TS, TE, EQ, EN): Provide default definitions.
5378         (www-make-unique-name): Updated.
5379         (HTML-IMAGE-INLINE): Fix typo.
5380         * tmac/groff_www.man: Updated.
5382         * doc/Makefile (homepage.html): Add option -r to grohtml.
5383         Use shortened image name.
5384         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5385         * doc/homepage.ms: Updated and extended.
5387 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5389         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5391         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5392         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5393         (tty_printer::put_color): Use it.
5394         (ttr_printer::end_page): Simplify.
5396 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5398         * tmac/groff_tmac.man: Moved to...
5399         * man/groff_tmac.man: This place.
5400         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5402 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5404         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5405         $(COMPILE.c) to not include groff's assert.h.
5407         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5408         variable.
5409         * NEWS, src/drivers/grotty/grotty.man: Document it.
5411 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5413         * src/libs/snprintf/snprintf.c: Updated to latest version
5414         (2002-02-11).
5416         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5417         test whether there is `.]' also.
5418         Don't check for spaces after `.['.
5419         * src/roff/grog/grog.sh: Do the same.
5421 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5423         Illegal -> Invalid.
5425         * src/libs/libgroff/illegal.cc: Renamed to ...
5426         * src/libs/libgroff/invalid.cc: This.
5427         (illegal_char_table): Renamed to ...
5428         (invalid_char_table): This.
5429         * src/libs/libgroff/Makefile.sub: Updated.
5430         * win32-diffs: Updated.
5432         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5433         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5434         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5435         font::load), src/preproc/eqn/main.cc (read_line, main),
5436         src/preproc/eqn/lex.cc (file_input::read_line),
5437         src/preproc/pic/lex.cc (file_input::read_line,
5438         simple_file_input::get, simple_file_input::peek),
5439         src/preproc/pic/main.cc (top_input::get, top_input::peek),
5440         src/preproc/pic/pic.man, src/preproc/refer/main.cc
5441         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5442         do_bib), src/preproc/tbl/main.cc (table_input::get),
5443         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5444         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5445         do_zero_width, read_request, encode_char, ps_get_line,
5446         transparent_file, get_char_for_escape_name, transparent_translate,
5447         asciify, input_char_description, read_string, set_string),
5448         src/roff/troff/env.cc (environment::add_html_tag),
5449         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5451         * src/include/lib.h: Updated.
5453         * src/preproc/eqn/eqn.cc: Removed.
5455         * NEWS: Updated.
5457         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5459 2002-02-09  Werner LEMBERG  <wl@gnu.org>
5461         * doc/gnu.xpm: New image.
5462         * doc/Makefile (DOCS): Add homepage.ps.
5463         Add rules for converting xpm->png and xpm->eps.
5464         Use `gnu.{xpm,eps}' as image names.
5465         * doc/homepage.ms: Updated.
5467 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
5469         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5470         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5471         Remove calls to `B1' and `B2'
5472         (PNG-IMAGE): New macro for inclusion of images in PNG format.
5473         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5474         auxiliary variables for MARGIN-PNG-IMAGE.
5475         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5476         auxiliary macros for MARGIN-PNG-IMAGE.
5477         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5478         the margin.
5479         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5480         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5481         (DROPCAP): New macro to produce dropcap characters.
5482         (www-do-image): Renamed back to...
5483         (HTML-DO-IMAGE): This.
5484         Updated all callers.
5486         * doc/Makefile (gnubw.eps): Updated.
5487         * doc/homepage.ms: Updated.
5489 2002-02-08  Werner LEMBERG  <wl@gnu.org>
5491         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5492         Added `linethick' to table in section `Style Variables'.
5494 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
5496         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5498 2002-02-07  Werner LEMBERG  <wl@gnu.org>
5500         Adding options -C (compatibility mode) and -c (grotty's old output
5501         scheme) to nroff.
5503         * src/roff/nroff/nroff.sh: Implement it.
5504         Remove `-Wall'.
5505         * NEWS, src/roff/nroff/nroff.man: Updated.
5507         * PROBLEMS: Document bison 1.32 bug.
5509         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5511         * src/roff/troff/node.cc (make_tfont): Define it earlier.
5512         * src/roff/troff/div.h: Add prototype for `end_diversions'.
5513         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5514         * src/roff/troff/env.h: Add prototype for `title'.
5516         Adding EBCDIC support to grotty.
5518         * src/devices/grotty/tty.cc (CSI): New macro.
5519         (SGR_*, tty_printer::put_color): Use it.
5521 2002-02-06  Werner LEMBERG  <wl@gnu.org>
5523         Implementing color support in grotty.  The new switch -c activates
5524         the old drawing scheme, disabling color at the same time.  The new
5525         switch `-i' selects italic instead of underlining (SGR only).
5527         * src/devices/grotty/tty.cc (putstring): New define instead of
5528         `fputs'.  Updated all callers.
5529         (old_drawing_scheme): New global variable.
5530         (COLOR_CHANGE): New enum value.
5531         (SGR_*): New defines containing color handling escape sequences.
5532         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5533         (glyph): New members `back_color_idx' and `fore_color_idx'.
5534         (glyph::order): Add COLOR_CHANGE.
5535         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5536         `is_underline', `is_bold', `cu_flag', `tty_colors'.
5537         New methods `make_underline', `make_bold', `color_to_idx',
5538         `change_color', `put_color'.
5539         (cu_flag): Moved into `tty_printer' class.
5540         (tty_printer::tty_printer): Initialize colors.
5541         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5542         tty_printer::draw, tty_printer::end_page): Handle colors also.
5543         (main): Add options `-c' and `-i'.
5544         (usage): Updated.
5545         * NEWS, src/devices/grotty/grotty.man: Updated.
5547         * src/include/errarg.h (errarg): Add support for `unsigned int'.
5548         * src/libs/libgroff/errarg.c: Implement it.
5550         * src/include/printer.h (printer): Add `change_color' method
5551         (currently used by grotty only).
5552         * src/libs/libdriver/printer.cc: Implement it.
5553         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5554         call to `pr->change_color'.
5556         * src/roff/troff/node.cc (troff_output_file::fill_color,
5557         troff_output_file::glyph_color): Call `do_motion'.
5559         * tmac/tty.tmac: Add color definitions.
5561         * src/roff/groff/groff.man: Minor fixes.
5563 2002-02-05  Bernd Warken  <bwarken@mayn.de>
5565         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5566         it.  This is a preparation for future changes.
5568 2002-02-05  Werner LEMBERG  <wl@gnu.org>
5570         * src/roff/troff/input.cc (process_input_stack): Fix the case
5571         where leading spaces are followed by \f or \s; previously, an
5572         incorrect space width has been used.
5574         * doc/roff.man (quoted_char): Fix argument.
5575         (comment): Define string.
5577 2002-02-04  Larry Kollar  <kollar@alltel.net>
5579         * doc/groff.texinfo: More fixes.
5581 2002-02-04  Werner LEMBERG  <wl@gnu.org>
5583         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5584         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5585         `restore_compatibility' before `output_string' -- the LINE_STRING
5586         register now already contains proper switches from and to
5587         compatibility mode.
5589         * man/groff_char.man: Add Euro symbol.
5590         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5591         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5592         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5593         Other minor fixes.
5595         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5596         texinfo->pdf.
5597         (.texinfo.html): Add support for texinfo->html.
5599 2002-02-03  Werner LEMBERG  <wl@gnu.org>
5601         Added three new requests `ds1', `as1', and `ami'.  The former two
5602         are equivalent to `ds' and `as' with the difference that
5603         compatibility mode is saved on entry, switched off during string
5604         expansion, and restored on exit.  The latter is the pendant to `dei'
5605         for `am'.
5607         (do_define_string): Use `define_mode' and `calling mode'.
5608         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5609         end of string, respectively.
5610         (define_string, append_string): Use `calling_mode'.
5611         (define_nocomp_string, append_nocomp_string,
5612         define_string_indirect): New functions.
5613         (init_input_requests): Updated.
5614         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5616         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5617         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
5618         mm macro package accesses this string register directly.
5619         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5621         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
5622         compatibility mode.
5624 2002-02-02  Larry Kollar  <kollar@alltel.net>
5626         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5628 2002-01-31  Werner LEMBERG  <wl@gnu.org>
5630         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5632 2002-01-31  Bernd Warken  <bwarken@mayn.de>
5634         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5635         * man/groff_out.man: Revised and updated.
5637 2002-01-30  Bernd Warken  <bwarken@mayn.de>
5639         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5640         out the unused `{' and `}' commands.  Undefined by default.
5641         (IntArray): Make `data' private.
5642         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5643         new methods instead.
5644         (skip_line_D, skip_to_end_of_line): New functions.
5645         (get_D_fixed_args): Use `skip_line_D'.
5646         Changed to handle dummy odd arguments by ...
5647         (get_D_fixed_args_odd_dummy): This new function.
5648         (get_D_variable_args): Split some code into ...
5649         (get_possibly_integer_args): This new function.
5650         (send_draw): Use more `const'.
5651         (delete_current_env): New function.
5652         (position_to_end_of_args): Use `size_t'.
5653         Updated.
5654         (send_draw): Updated.
5655         (parse_D_command): Handle `c', `C', and `t' better.
5656         Updated.
5657         (do_file): Updated.
5659 2002-01-29  Werner LEMBERG  <wl@gnu.org>
5661         * NEWS: Revised.
5662         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5663         @Def...ListEnd which replaces @Def...x.  This is necessary to get
5664         proper HTML output -- see the comment in the file for more
5665         information.
5666         Updated all calls.
5668 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
5670         Fixes to make color changes of 2002-01-21 work with grohtml.
5672         * src/devices/grohtml/post-html.cc (style): Updated.
5673         (html_printer): Remove unused methods.
5674         (html_printer::do_font, html_printer::draw, html_printer::set_char,
5675         html_printer::special): Updated.
5676         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5677         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5678         Added some debugging code.
5679         (html_text::start_tag): Updated.
5680         (html_text::do_push): New method.
5681         (html_text::push_para): Call it.
5682         Add method for handling color.
5683         (html_text::do_color): Updated.
5684         (html_text::shutdown): Handle color.
5685         * src/devices/grohtml/html-text.h (tag_definition): New member
5686         `col'.
5687         Updated.
5689 2002-01-28  Werner LEMBERG  <wl@gnu.org>
5691         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5693 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
5695         Add two switches -a and -g to control the antialiasing bits for
5696         text and graphics, respectively.
5698         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5699         `-g'.
5700         * src/devices/grohtml/grohtml.man: Document them.
5701         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5702         New macros.
5703         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5704         (setupAntiAlias): New function.
5705         (createAllPages): Updated.
5706         (scanArguments): Handle `-a' and `-g'.
5707         (main): Call `setupAntiAlias'.
5708         * NEWS: Updated.
5710 2002-01-27  Werner LEMBERG  <wl@gnu.org>
5712         * doc/groff.texinfo (Def*): Call index function after deffn.
5714         * tmac/html.tmac: Call `nroff' request.
5716 2002-01-26  Larry Kollar  <kollar@alltel.net>
5718         * tmac/groff_ms.man: Add some omissions.
5720 2002-01-25  Larry Kollar  <kollar@alltel.net>
5722         * tmac/groff_ms.man: Typographical improvements.
5724 2002-01-25  Werner LEMBERG  <wl@gnu.org>
5726         * doc/groff.texinfo: Updated version and copyright.
5727         * src/devices/grops/grops.man: Updated.
5729         * tmac/groff_tmac.man: Fix `ig' macro.
5731         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5732         nroff mode.
5733         Use `.ne' unconditionally everywhere.
5734         (TS): Only insert some vertical space.  Doing a page break is no
5735         longer necessary due to the redefinition of the `ne' request.
5737         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5738         warning for unknown subcommands but parse and pass them to the
5739         device driver.
5741 2002-01-24  Werner LEMBERG  <wl@gnu.org>
5743         * tmac/groff_www.man, NEWS: Fix typos.
5745 2002-01-21  Werner LEMBERG  <wl@gnu.org>
5747         Complete revision of color support:
5749           Adapt programs to the new libdriver/input.cc.
5751           Color spaces are no longer converted to RGB but transferred as-is
5752           in the troff intermediate output format.
5754           Handle default color gracefully.  troff now supports a `default'
5755           color (which can't be changed).
5757           grops will now use the proper color space functions if available.
5759           Update pic.
5761         Note that currently grohtml doesn't handle colors properly.  This
5762         has to be fixed.
5764         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5765         (ui_to_a): New function.
5766         * src/include/lib.h: Updated.
5768         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5769         (color): Simplified; removed all `double' members and methods.
5770         A new array `components' now holds the color parameters.
5771         (color::is_default, color::get_components): New methods.
5772         (color::operator==, color:operator!=): New.
5773         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5774         to make access to the `components' array more comprehensible.
5775         * src/libs/libgroff/color.cc: Implement new color support.
5776         (atoh): Small fixes.
5777         (color::read_encoding): Simplified for new troff intermediate color
5778         output format.
5779         (default_color): New global variable.
5781         * src/roff/troff/input.cc (default_symbol): New global variable.
5782         (lookup_color): Use it.
5783         (default_black): Removed.
5784         (do_glyph_color, do_fill_color): Simplified.
5785         (define_color): Handle default color.
5786         Improve warnings.
5787         (do_if_request): Handle default color.
5788         * src/roff/troff/env.cc (environment::environment): Initialize
5789         colors with `default_color'.
5790         * src/roff/troff/node.cc (troff_output_file::put): Add method
5791         for `unsigned int'.
5792         (troff_output_file::hex): Removed.
5793         (troff_output_file::fill_color, troff_output_file::glyph_color):
5794         Updated to include/color.h and libdriver/input.cc.
5796         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5797         fill color properly (identically to the outline color).  \D'f...'
5798         doesn't work any more.
5799         All function calls to it updated.
5801         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5802         Updated.
5803         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5804         Updated.
5806         * src/devices/grops/ps.cc (ps_output::put_color): New method.
5807         (ps_printer::sbuf_color): Make a real member instead of pointer.
5808         (ps_printer::fill_color, ps_printer::output_color): Removed.
5809         (ps_printer::ps_printer): Updated.
5810         (ps_printer::set_char): Ditto.
5811         (ps_printer::set_color): Use various color schemes.
5812         Use `put_color' method.
5813         (ps_printer::flush_sbuf): Don't set color.
5814         (ps_printer::fill_path): Take `environment' as parameter.
5815         Simplify color handling.
5816         (ps_printer::set_line_thickness): Renamed to ...
5817         (ps_printer::set_line_thickness_and_color): This (and updated).
5818         (ps_printer::set_color): Change second parameter from `complete'
5819         to `fill' which better describes what it does.
5820         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5821         and text in the right order.
5822         Updated.
5823         Remove branches for `f' and `F'; this is handled by
5824         libdriver/input.cc.
5825         * src/devices/grops/ps.h: Updated.
5826         * font/devps/prologue (FL): Redefined.
5827         ({F,C}r,k,g: New color functions (with and without filling).
5829         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5830         * man/groff_diff.man, man/groff.man, man/groff_out.man,
5831         doc/groff.texinfo, NEWS: Updated.
5833 2002-01-20  Bernd Warken  <bwarken@mayn.de>
5835         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
5836         in this file for what has been changed.
5838 2002-01-19  Werner LEMBERG  <wl@gnu.org>
5840         * test-groff: Fix GROFF_FONT_PATH.
5841         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5842         is read before .TH or .Dd is parsed.
5844 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
5846         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5847         quadrant boundaries.
5849 2002-01-18  Werner LEMBERG  <wl@gnu.org>
5851         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
5852         applied last patch.
5854 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
5856         * tmac/doc.common: Initialize %I register for the %I macro to
5857         avoid (harmless) warning.
5858         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5859         when in the SYNOPSIS section.
5861 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
5863         * src/preproc/pic/lex.cc (get_token): Fix typo.
5865 2002-01-17  Werner LEMBERG  <wl@gnu.org>
5867         * devices/grops/ps.cc: Fix incorrectly applied last patch.
5869 2002-01-17  Larry Kollar  <kollar@alltel.net>
5871         * tmac/groff_ms.man: Completely rewritten.
5873 2002-01-16  Werner LEMBERG  <wl@gnu.org>
5875         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5877 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5879         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5880         fill colors.
5881         (ps_printer::draw): Ditto.
5883 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
5885         * tmac/groff_mdoc.man: Minor fixes.
5887 2002-01-13  Werner LEMBERG  <wl@gnu.org>
5889         * man/groff_out.man: Some fixes.
5891 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
5893         * doc/pic.ms: Fix typos.
5895 2002-01-12  Werner LEMBERG  <wl@gnu.org>
5897         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5899 2002-01-10  Werner LEMBERG  <wl@gnu.org>
5901         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5902         symbols.
5903         * NEWS: Updated.
5905 2002-01-09  Bernd Warken  <bwarken@mayn.de>
5907         * man/groff_out.man: Revised.
5908         * man/roff.man: Minor fixes.
5909         * src/roff/troff/troff.man: Some reordering.
5911 2002-01-09  Werner LEMBERG  <wl@gnu.org>
5913         * tmac/an-old.tmac: Add dummy macros for equation support.
5915 2002-01-07  Werner LEMBERG  <wl@gnu.org>
5917         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5919         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
5920         man pages.
5921         * tmac/groff_man.man: Small improvements.
5923 2002-01-07  Bernd Warken  <bwarken@mayn.de>
5925         * man/groff_diff.man: Revised.
5927 2002-01-06  Werner LEMBERG  <wl@gnu.org>
5929         * tmac/www.tmac: Remove extraneous backslash.
5931 2002-01-06  Bernd Warken  <bwarken@mayn.de>
5933         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5935 2002-01-05  Werner LEMBERG  <wl@gnu.org>
5937         Integrated groffer, contributed by Bernd Warken.
5939         * contrib/groffer/*: New.       
5940         * Makefile.in, NEWS: Updated.
5942 2002-01-04  Werner LEMBERG  <wl@gnu.org>
5944         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5945         registers defined in macro packages.
5946         Revising the ms part.
5948 2002-01-04  Larry Kollar  <kollar@alltel.net>
5950         * doc/groff.texinfo: Add documentation for ms macros.
5952 2002-01-02  Werner LEMBERG  <wl@gnu.org>
5954         First step in adding PS support for the Euro symbol.  `eu' is the
5955         official Euro logo, `Eu' is a font-specific glyph variant.
5957         * font/devps/text.enc: Add `Euro' at position 9.
5958         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5959         * font/devps/symbolmap: Regenerated.
5961         * NEWS: Updated.
5963 2002-01-02  Bernd Warken  <bwarken@mayn.de>
5965         * man/roff.man: Revised.
5967 2002-01-01  Bernd Warken  <bwarken@mayn.de>
5969         * src/roff/groff/groff.man: Completely rewritten.
5971 2001-12-31  Werner LEMBERG  <wl@gnu.org>
5973         * doc/Makefile: Updated.
5975 2001-12-30  Werner LEMBERG  <wl@gnu.org>
5977         * tmac/www.tmac: Make all names of internal macros/registers/strings
5978         lowercase, and prepend `www-'.
5979         Other minor changes.
5980         * src/roff/troff/troff.man: Add preprocessor string at BOF.
5982 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
5984         Implement option `-b' in grohtml to set the HTML background colour.
5986         * src/devices/grohtml/post-html.cc (default_background): New global
5987         variable.
5988         (html_printer::html_printer): Initialize `background' to
5989         `default_background'.
5990         (main): Implement option `-b'.
5991         (usage): Updated.
5992         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5993         of `-b' option.
5994         * src/devices/grohtml/grohtml.man: Updated.
5995         * doc/Makefile (.ms.html): Use `-b'.
5996         * tmac/html.tmac: Don't set background color.
5998         Add new grohtml tag `.html-tl'.
6000         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6001         member variable.
6002         (title_desc::title_desc): Updated.
6003         (html_printer::troff_tag): Handle `.html-tl'.
6004         (html_printer::write_title): Use `with_h1'.
6005         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6006         (HTML-TL): New macro.
6008         Add support for unordered lists in HTML.
6010         * tmac/www.tmac (www-level): New auxiliary register.
6011         (www-level1, www-level2, www-level3): New auxiliary strings.
6012         (www-push-level, www-pop-level): New auxiliary macros
6013         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6015         Miscellaneous.
6017         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6018         (DEFAULT_VERTICAL_OFFSET): Removed.
6019         (IMAGE_BOARDER_PIXELS): Set to 0.
6020         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6021         (vertical_offset): Initialize with 0.
6022         (gsPaper): New global variable.
6023         (get_resolution): Scan for and return unsigned int.
6024         (get_papersize): New function to get paper length from devps/DESC.
6025         (determine_vertical_offset): New function.
6026         (createAllPages): Produce gray-level images and use proper page
6027         length.
6028         (createImage): Use `-quiet' option of pnmcrop.
6029         (addZ): Fix passing of `-Z'.
6030         (scanArguments): Fix handling of `-o'.
6031         (main): Call `determine_vertical_offset'.
6032         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6033         code for `l'.
6035         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6036         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6037         glyph descenders properly.
6039         * doc/homepage.ms: Include `gnubw.eps'.
6040         * doc/Makefile (gnubw.eps): New rule.
6041         (homepage.html): Depend on `gnubw.eps'.
6043 2001-12-25  Werner LEMBERG  <wl@gnu.org>
6045         * src/roff/troff/input.cc (default_black): Fix return value.
6047 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
6049         * tmac/doc-common (Dt): Change output of architecture strings.
6050         Do some syntax cleanup.
6051         * tmac/groff_mdoc.man: Updated.
6053 2001-12-23  Werner LEMBERG  <wl@gnu.org>
6055         Adding an `itc' request (input line trap accepting \c).
6057         * src/roff/troff/env.h (environment): New member
6058         `continued_input_trap'.
6059         Make `do_input_trap' a friend function instead of `input_trap'.
6060         * src/roff/troff/env.cc (environment::environment,
6061         environment::copy): Updated.
6062         (environment::newline): Implement it.
6063         (do_input_trap): New function.
6064         (input_trap): Call `do_input_trap'.
6065         (input_trap_continued): New function.
6066         (init_env_requests): Updated.
6067         * src/roff/troff/TODO: Updated.
6069         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6070         `.it'.
6072         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6074 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
6076         * tmac/doc-common, tmac/doc-syms: Small updates.
6078 2001-12-22  Colin Watson  <cjwatson@debian.org>
6080         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6082 2001-12-22  Bernd Warken  <bwarken@mayn.de>
6084         * MANIFEST: New file.
6086 2001-12-22  Werner LEMBERG  <wl@gnu.org>
6088         * src/preproc/grn/grn.man: Updated.
6090 2001-12-22  Solar Designer  <solar@openwall.com>
6092         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6093         (DBRead): Use it.
6095 2001-12-19  Werner LEMBERG  <wl@gnu.org>
6097         Implement a fallback character request `.fchar'.
6099         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6100         (is_fallback): New inline function.
6101         * src/roff/troff/input.cc (do_define_character): New function.
6102         (define_character): Call `do_define_character'.
6103         (define_fallback_character): New function.
6104         (init_input_requests): Add `fchar'.
6105         (charinfo::charinfo): Updated.
6106         (charinfo::set_macro): New argument to set `fallback' flag.
6107         * src/roff/troff/node.cc (make_glyph_node, make_node,
6108         node::add_char): Check `fallback' flag.
6109         * NEWS, man/groff_diff.man, man/groff_man: Updated.
6111 2001-12-16  Werner LEMBERG  <wl@gnu.org>
6113         * groff.texinfo: Document exact search algorithm for glyphs.
6115 2001-12-15  Werner LEMBERG  <wl@gnu.org>
6117         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6118         the left side of $(MANPAGES) rule to make it always non-empty.
6120 2001-12-14  Werner LEMBERG  <wl@gnu.org>
6122         * src/roff/troff/input.cc (default_black): Define default color
6123         `black' if not yet defined.
6125 2001-12-13  Werner LEMBERG  <wl@gnu.org>
6127         Implement new string-valued register `.fn' to return the current
6128         real (internal) font name.
6130         * env.cc (environment::get_font_name_string): New function.
6131         (init_env_requests): Add `.fn' register.
6132         * env.h (environment): Updated.
6133         * node.cc (font_info): Make `get_font_name' a friend.
6134         (get_font_name): New function.
6135         * node.h: Updated.
6137         * man/groff_diff.man, man/groff.man, NEWS: Updated.
6139 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6141         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6143 2001-12-12  Werner LEMBERG  <wl@gnu.org>
6145         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6147 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
6149         * man/groff_diff.man: Adding documentation for \O.
6151 2001-12-10  Werner LEMBERG  <wl@gnu.org>
6153         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6154         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6156 2001-12-09  Werner LEMBERG  <wl@gnu.org>
6158         * man/roff.man: Revised.
6159         * src/roff/groff/groff.man: Replace man page references with a
6160         pointer to roff.man.
6162 2001-12-09  Bernd Warken  <bwarken@mayn.de>
6164         * man/roff.man: Completely rewritten.
6166 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6168         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6170 2001-12-05  Werner LEMBERG  <wl@gnu.org>
6172         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6173         longer used.
6174         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6175         order of initializers.
6176         * NEWS: Updated.
6178 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
6180         * doc/groff.texinfo: Fix documentation of \O.
6182         * src/devices/grohtml/html-text.cc (html_text::do_indent,
6183         html_text::do_table, html_text::do_emittext, html_text::do_para):
6184         Use `const' for first argument.
6185         (html_text::do_table): Use cast.
6186         * src/devices/grohtml/html-text.h: Updated.
6187         * src/devices/grohtml/output.cc (simple_output::put_string): Add
6188         method for `const string &s'.
6189         * src/devices/grohtml/html.h: Updated.
6190         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6191         (ANCHOR_TEMPLATE): Modified.
6192         (manufacture_headings): New global variable to handle `-h' option.
6193         (is_subsection): Removed.
6194         (char_buffer::add_string): Add `const' to first argument.
6195         Protect against invalid string argument.
6196         Add method for `const string &s'.
6197         (text_glob): Completely redesigned.
6198         (page): Use `const' for strings and remove string length variable.
6199         (page::add_html): Removed.
6200         (page::add_end_encode): New member function.
6201         (to_unicode): Moved upwards.
6202         (title_desc, header_desc): Updated.
6203         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6204         definition.
6205         (html_printer::is_bold, html_printer::make_bold): New member
6206         functions.
6207         (html_printer::end_of_line): Updated.
6208         (generate_img_src, html_printer::do_auto_image,
6209         html_printer::do_title, html_printer::write_header,
6210         html_printer::determine_header_level, html_printer::do_heading,
6211         html_printer::do_linelength, html_printer::do_pageoffset,
6212         html_printer::do_indentation, html_printer::do_tempindent,
6213         html_printer::do_indentedparagraph, html_printer::do_break,
6214         html_printer::flush_sbuf, get_html_translation,
6215         html_printer::begin_page, html_printer::special): Rewritten to get
6216         rid of static string length limit.
6217         (html_printer::troff_tag): Added `.no-auto-rule'.
6218         (html_printer::flush_globs): Small fix.
6219         (html_printer::determine_space): Don't compute `space_width'.
6220         (html_printer::translate_to_html): Renamed to ...
6221         (html_printer::emit_html): This (with updates).
6222         (html_printer::write_header): Implement `-h' option.
6223         (html_printer::draw): Remove commented-out code.  Handle `F'
6224         command.
6225         (html_printer::add_char_to_sbuf): Removed.
6226         (html_printer::add_to_sbuf): Rewritten.
6227         (html_printer::sbuf_continuation): Fixed.
6228         (html_printer::seen_backwards_escape, reverse,
6229         html_printer::remove_last_char_from_sbuf): Removed.
6230         (char_translate_to_html, str_translate_to_html): Removed.
6231         (html_printer::overstrike): New function member.
6232         (html_printer::set_char): Use it.
6233         (html_printer::do_body): New function member.
6234         (html_printer::~html_printer): Use it.
6235         (main): Handle `-h' option.
6236         (usage): Updated.
6237         * src/devices/grohtml/grohtml.man: Document -h switch.
6239         * src/preproc/html/pre-html.cc: Include searchpath.h
6240         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6241         (get_resolution): New function.
6242         (checkImageDir): Use `0777' permissions in mkdir()
6243         (write_start_image): Rewritten to use `\O[5...]'.
6244         (createImage, generateImages): Updated.
6245         (main): Handle `F' and `h' options.
6246         Use `get_resolution'.
6248         * src/roff/troff/input.cc (begin, end, image): Removed.
6249         (do_suppress): Take parameter.
6250         Handle modified syntax of `\O'.
6251         (token::next): Updated.
6252         (init_markup_requests): Removed.
6253         (main): Updated.
6255         * src/roff/troff/div.h: Add declaration for begin_page().
6257         * tmac/color-html.tmac: Removed.  Contents moved to...
6258         * tmac/html.tmac: Here.  Set background color.
6259         * tmac/color.tmac: Removed.  Contents moved to...
6260         * tmac/ps.tmac: Here.
6261         * tmac/www.tmac: Remove the title command when generating images
6262         for html.
6263         (NO_AUTO_RULE): New macro.
6264         (HTML_DO_IMAGE): Use revised `\O' escapes.
6265         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6267 2001-12-02  Werner LEMBERG  <wl@gnu.org>
6269         * tmac/groff_mdoc.man: Fix typo.
6271 2001-12-01  Colin Watson  <cjwatson@debian.org>
6273         * man/roff.man: Fix typo.
6275 2001-11-29  Werner LEMBERG  <wl@gnu.org>
6277         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6278         stdlib.h.
6280         * src/roff/troff/input.cc (read_draw_node): Emit error message if
6281         more than one argument to \D'f ...'.
6283         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6285 2001-11-28  Werner LEMBERG  <wl@gnu.org>
6287         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6288         loaded only once.
6290         * tmac/groff_man.man: Minor cosmetic fix.
6292 2001-11-27  Werner LEMBERG  <wl@gnu.org>
6294         * src/roff/groff/groff.man, tmac/groff_tmac.man,
6295         tmac/groff_www.man: s/mwww/www/.
6297 2001-11-26  Werner LEMBERG  <wl@gnu.org>
6299         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6300         * configure: Regenerated.
6301         * win32-diffs: Updated.
6303         * tmac/groff_mwww.tmac: Renamed to ...
6304         * tmac/groff_www.tmac: This.
6305         * tmac/mwww.tmac: Removed.
6306         * NEWS, tmac/Makefile.sub: Updated.
6308 2001-11-21  Werner LEMBERG  <wl@gnu.org>
6310         * doc/groff.texinfo: Improve documentation of the `\v' escape.
6311         Fix explanation of `\D' and `rt'.
6313 2001-11-20  Werner LEMBERG  <wl@gnu.org>
6315         * tmac/an-old.tmac (an-header): Set header length equal to page
6316         width.
6317         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
6318         minor fixes.
6319         * NEWS: Small fix.
6321 2001-11-19  Werner LEMBERG  <wl@gnu.org>
6323         * NEWS, man/Makefile.sub: Updated.
6325 2001-11-19  Bernd Warken  <bwarken@mayn.de>
6327         * man/ditroff.man: New file.
6329 2001-11-17  Werner LEMBERG  <wl@gnu.org>
6331         * man/groff_differences.man: Renamed to ...
6332         * man/groff_diff.man: This.  Updated.
6333         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6335         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6336         * src/preproc/html/pushback.cc: This.  Updated.
6337         * src/preproc/html/pushbackbuffer.h: Renamed to ...
6338         * src/preproc/html/pushback.h: This.
6339         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6340         Updated.
6342         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6343         * src/libs/libgroff/htmlhint.cc: This.
6344         * src/libs/libgroff/Makefile.sub: Updated.
6346         * tmac/an-old.tmac (an-end): Fix page length.
6348 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6350         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6351         * man/Makefile.sub: Include groff_differences.man.
6352         * VERSION: Set to 1.18.
6353         * REVISION: Set to 0.
6355 2001-11-16  Bernd Warken  <bwarken@mayn.de>
6357         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6358         the second dot (or ending macro name) to end a macro.
6359         * doc/groff.texinfo: Doc fix.
6361 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
6363         * tmac/doc-common (doc-header): Handle very long document titles
6364         better.
6366 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6368         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6370 2001-11-15  Werner LEMBERG  <wl@gnu.org>
6372         * src/roff/troff/troff.man: Revised and split into troff.man and...
6373         * man/groff_differences.man: New file.
6374         * NEWS: Updated.
6376 2001-11-13  Werner LEMBERG  <wl@gnu.org>
6378         * tmac/an-old.tmac (TS, TE): New macros for table support.
6380 2001-11-12  Werner LEMBERG  <wl@gnu.org>
6382         * src/include/lib.h: Provide a fix for emx to not include
6383         groff-getopt.h.
6385 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6387         * src/roff/troff/input.cc (substring_macro): Fix computation of
6388         boundary values.
6390 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6392         Undo change from 2001-08-28.
6394         * src/roff/troff/input.cc (have_input): New global variable.
6395         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6396         in compatibility mode.
6397         (process_input_stack): Use it.
6399 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6401         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6402         being handled as end-of-sentence characters,
6404 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6406         * src/roff/troff/input.cc (file_iterator): New members
6407         `suppress_newline_flag' and `seen_escape'.
6408         (file_iterator::next_file): Updated.
6409         (file_iterator::fill): Use it.
6410         (string_iterator): New member `suppress_newline_flag'.
6411         (string_iterator::fill): Set it.
6412         (get_color_element): Use MAX_COLOR_VAL.
6413         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6414         (no_fill): Don't set `env->ignore_next_eol'.
6415         (environment::newline): Handle `eol' tag properly.
6416         Emit `eol.ce'.
6417         (environment::add_html_tag): Set `env->ignore_next_eol'.
6418         Don't handle `.ce'.
6419         * src/roff/troff/env.h (environment): Updated.
6421         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6422         member function.
6423         (html_printer::outstanding_eol): New member function.
6424         (html_printer::do_title): Use new functions.
6425         (html_printer::troff_tag): Test `id_eol_ce'.
6427 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6429         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6430         files work with -C also.
6432 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6434         * doc/pic.ms: Minor fix.
6435         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6436         as a valid command line switch.
6437         * src/devices/grohtml/post-html.cc (main): Ditto.
6438         (usage): Updated.
6439         * src/devices/grohtml/grohtml.man: Updated.
6440         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6442 2001-10-04  Werner LEMBERG  <wl@gnu.org>
6444         Implementing color support in troff, pic, grops, and grohtml.  These
6445         changes are based on a major patch provided by Gaius Mulley
6446         <gaius@glam.ac.uk>.
6448         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6449         definitions with both hex values and fractions.
6451         New escapes: \m and \M for drawing and background color,
6452         respectively.  This corresponds to the troff output commands `m'
6453         and `DF'.
6455         groff and troff accept command line switch `-c' to disable color
6456         output (which is automatically disabled in compatibility mode).
6458         New scaling indicator `f' for fractions (1f = 65536u).
6460         New conditional operator `m' to test for defined colors with `if'
6461         and `ie'.
6463         New keywords `color' (or `colour', `colored', `coloured'), `outline'
6464         (or `outlined'), and `shaded' added to pic.
6466         * src/include/color.h: New file.
6467         * src/include/driver.h: Include it.
6468         * src/include/printer.h: Include color.h.
6469         (environment): New members `col' and `fill'.
6470         (printer): Remove `adjust_arc_center' member function.
6471         * src/include/Makefile.sub: Updated.
6473         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6474         `env.fill'.
6475         Handle `m' and `DF' troff commands.
6476         * src/libs/libgroff/color.cc: New file.
6477         * src/libs/libgroff/Makefile.sub: Updated.
6479         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6480         (stop): Removed.
6481         (createImage): Fix computation of `y2'.
6482         Use `pnmcrop' also.
6483         (buffer::write_file_html): Remove calls to `stop'.
6485         * src/preproc/pic/common.h (common_output): New abstract function
6486         members `set_color', `reset_color', `get_last_filled', and
6487         `get_outline_color'.
6488         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6489         (object_spec): Add members `shaded' and `outlined'.
6490         * src/preproc/pic/output.h (output): `command' is now abstract.
6491         New function members `set_color', `reset_color', `get_last_filled',
6492         and `get_outline_color'.
6493         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6494         `outline[d]', and `shaded'.
6495         * src/preproc/pic/object.cc (output::command): Removed.
6496         (output::set_location): Moved to output.h.
6497         (graphic_object): Add protected members `outline_color' and
6498         `color_fill'.
6499         Add member functions `set_outline_color', `get_outline_color', and
6500         `set_fill_color'.
6501         (closed_object): Add member function `set_fill_color'.
6502         Add member `color_fill'.
6503         (graphic_object::print_text): Use `out->set_color' and
6504         `out->reset_color'.
6505         (box_object::print, ellipse_object::print, circle_object::print,
6506         line_object::print, spline_object::print, arc_object::print): Ditto.
6507         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6508         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6509         `SHADED', making them `%left'.
6510         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6511         * src/preproc/pic/tex.cc (tex_output): New dummy function members
6512         `set_color', `reset_color', `get_last_filled', and
6513         `get_outline_color'.
6514         * src/preproc/pic/troff.cc (simple_output): New abstract function
6515         members `set_color', `reset_color', and `get_last_filled'.
6516         (simple_output::polygon, simple_output::circle,
6517         simple_output::ellipse): Use `get_last_filled'.
6518         (troff_output): New members `last_filled' and `last_outlined'.
6519         New function members `set_color', `reset_color', `get_last_filled',
6520         and `get_outline_color'.
6521         (troff_output::finish_picture): Use `reset_color'.
6522         (troff_output::set_fill): Test `last_filled'.
6523         * src/preproc/pic/pic.man: Updated.
6525         * src/roff/groff/groff.cc (main): Implement `-c' option.
6526         (synopsis, help): Updated.
6527         src/roff/groff/groff.man: Updated.
6529         * src/roff/troff/troff.h: Include color.h.
6530         (warning_type): Add WARN_COLOR.
6531         * src/roff/troff/env.h (environment): New members
6532         `{cur,prev}_{glyph,fill}_color'.
6533         New member functions `get_{prev_,}{glyph,fill}_color'.
6534         * src/roff/troff/env.cc: Initialize and implement them.
6535         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6536         Replace `NULL' with `0' everywhere for consistency.
6537         (lookup_color, default_black, do_glyph_color, do_fill_color,
6538         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6539         define_color): New functions.
6540         (token::next): Implement \M and \m escapes.
6541         (do_if_request): Implement `m' operator.
6542         (usage): Updated.
6543         (main): Implement `-c' option.
6544         (init_markup_requests): Add `defcolor' request.
6545         (warning_table): Add `color' warning.
6546         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6547         classes.
6548         * src/roff/troff/node.cc (troff_output_file): New members
6549         `current_{page,glyph}color'.  New member functions `put_hex',
6550         `glyph_color', and `fill_color'.
6551         (glyph_color_node::*, fill_color_node::*): Implement it.
6552         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6553         (parse_term): Add support for `f'.
6554         * src/roff/troff/troff.man: Updated.
6556         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6557         entry for `F'.
6558         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6559         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6561         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6562         (tag_definition): Use `void *' for arg1.
6563         (html_text): New member functions `do_color' and `done_color'.
6564         Use `void *' for second parameter of `push_para' member function.
6565         New `push_para' member function with a single parameter.
6566         Use `char *' for parameter of `issue_table_begin' member funtion.
6567         New `issue_color_begin' member function.
6568         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6569         COLOR_TAG.
6570         (html_text::issue_color_begin): New function.
6571         (html_text::issue_table_begin): Use `char *' for parameter.
6572         (html_text::start_tag, html_text::shutdown,
6573         html_text::check_emit_text): Updated.
6574         (html_text::push_para): Use `void *' for second parameter.
6575         Add same function with only one parameter.
6576         (html_text::do_*): Updated.
6577         (html_text::do_color, html_text::done_color): New functions.
6578         * src/devices/grohtml/post-html.cc (style): New member `col'.
6579         Mew member `style' with 6 parameters.
6580         (style::style, style::operator==): Updated.
6581         (html_printer::do_font): Use it.
6582         (html_printer::draw): Add dummy entry for `F'.
6583         (html_printer::set_char): Updated.
6584         * src/devices/grohtml/grohtml.man: Updated.
6586         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6587         trailing zeroes removed.
6588         (ps_printer): New members `sbuf_color', `fill_color', and
6589         `output_color'.
6590         Removed member `fill'.
6591         New member function `set_color'.
6592         (ps_printer::ps_printer, ps_printer::set_char): Updated.
6593         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6594         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6596         * tmac/color-html.tmac, tmac/color.tmac: New files.
6597         * tmac/troffrc: Include them.
6598         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6599         * tmac/Makefile.sub: Updated.
6601         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6602         man/groff.man: Updated.
6603         * font/devps/prologue.ps: Define FC and CO functions.
6605 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
6607         Fix incorrect cropping of images and incorrect handling of special
6608         characters.  Fix handling of file names in \O.
6610         * src/include/geometry.h: New file.
6611         * src/libs/libgroff/geometry.cc: New file.
6612         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6613         to `geometry.cc'.
6614         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6615         initial spaces.
6616         (do_suppress): Updated.
6617         * src/roff/troff/node.cc: Include geometry.h.
6618         (troff_output_file::flush_tbuf): Fixed parameters to
6619         `check_output_limits'.
6620         (troff_output_file::check_charinfo): Ditto.
6621         (troff_output_file::determine_line_limits): Add support for `Da'
6622         and `Dl' commands.
6624         * src/devices/grohtml/post-html.cc (str_translate_to_html):
6625         Add new parameter `is_special' to decode special characters from
6626         escape sequences.
6627         (html_printer::do_title, html_printer::do_heading,
6628         html_printer::do_indentedparagraph,
6629         html_printer::translate_to_html, html_printer::special): Updated.
6631 2001-10-03  Werner LEMBERG  <wl@gnu.org>
6633         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6634         Fix entry for config.h.
6635         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6636         * tmac/troffrc: Translate nonbreakable space character to `\~'.
6637         * src/preproc/eqn/eqn.man: Document -d command line option.
6639 2001-09-27  Werner LEMBERG  <wl@gnu.org>
6641         * man/groff.man: Use
6643           .ev xxx
6644           .na
6645           .nh
6646           <table>
6647           .ev
6649         instead of the old code (`.ad .hy' after the table) to suppress
6650         incorrect hyphenation for grohtml output.
6652 2001-09-22  Werner LEMBERG  <wl@gnu.org>
6654         * man/groff_font.man, man/groff_out.man: Minor fixes.
6656 2001-09-20  Werner LEMBERG  <wl@gnu.org>
6658         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
6659         Arnold Robbins <arnold@skeeve.com>).
6661 2001-09-09  Werner LEMBERG  <wl@gnu.org>
6663         * configure: Regenerated with autoconf 2.52.
6665         * doc/groff.texinfo: Complete revision of indices.
6667 2001-09-07  Werner LEMBERG  <wl@gnu.org>
6669         * doc/Makefile (clean): Updated to delete all indices.
6671 2001-09-05  Werner LEMBERG  <wl@gnu.org>
6673         * src/roff/troff/troff.man: Remove superfluous line.
6675         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6676         given on the command line (or rather, if only the default warnings
6677         are set).
6679 2001-09-03  Werner LEMBERG  <wl@gnu.org>
6681         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6682         use .ne for TTY devices.
6684 2001-08-31  Werner LEMBERG  <wl@gnu.org>
6686         * src/roff/troff/token.h, src/roff/troff/input.cc:
6687         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6689 2001-08-28  Werner LEMBERG  <wl@gnu.org>
6691         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6692         * src/roff/troff/input.cc (token::next): Return
6693         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6694         compatibility mode.
6695         (token::description): Updated.
6696         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6697         (token::add_to_node_list, token::process): Ignore
6698         TOKEN_TRANSPARENT_ESCAPE.
6700 2001-08-27  Werner LEMBERG  <wl@gnu.org>
6702         * tmac/an-old.tmac: Fix `S' string.
6704 2001-08-26  Werner LEMBERG  <wl@gnu.org>
6706         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6708 2001-08-25  Werner LEMBERG  <wl@gnu.org>
6710         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6711         backslashes).
6712         Many other minor fixes.
6714         * configure.ac: Add message at end to inform how to compile
6715         xditview.
6716         * configure: Regenerated.
6718 2001-08-24  Werner LEMBERG  <wl@gnu.org>
6720         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6721         Updated to latest version of libc.
6723 2001-08-23  Werner LEMBERG  <wl@gnu.org>
6725         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6726         Autoconf 2.50 and newer can handle this.
6727         * configure: Regenerated.
6729 2001-08-21  Werner LEMBERG  <wl@gnu.org>
6731         * doc/pic.ms: Fix typo.
6732         * src/preproc/tbl/tbl.man: Document case of global options.
6734 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
6736         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6737         handling of `CR' font.
6739 2001-08-20  Werner LEMBERG  <wl@gnu.org>
6741         Use a config.h file.
6743         * src/include/lib.h: Include config.h.
6744         * All C files: Ditto (if necessary).
6745         * All C++ source and header files: Include lib.h first (if
6746         necessary).
6748         * src/include/config.hin: New file (autogenerated by autoheader).
6749         * stamp-h.in: New file.
6750         * configure.ac: Updated.
6751         * aclocal.m4: Add third parameters to AC_DEFINE macros.
6752         (GROFF_ARRAY_DELETE): Simplified.
6753         * Makefile.sub (DISTCLEANFILES): Updated.
6754         Added targets for remaking config.status, config.hin, config.h,
6755         stamp-h.in, and stamp-h.
6756         * configure: Regenerated.
6758 2001-08-19  Werner LEMBERG  <wl@gnu.org>
6760         * NEWS: Updated.
6762 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
6764         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6765         (do_sprintf): Use snprintf().
6767 2001-08-18  Werner LEMBERG  <wl@gnu.org>
6769         * src/libs/snprintf/*: Added an snprintf module written by Mark
6770         Martinec.
6771         * src/libs/libgroff/Makefile.sub: Updated.
6772         * configure.ac: Add test for snprintf().
6773         * Makefile.in: Updated.
6774         * configure: Regenerated.
6776         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6777         uses snprintf().
6779 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
6781         * tmac/doc.tmac (Ex): New implementation.
6782         * tmac/doc-common, tmac/groff_tmac.man: Updated.
6784 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
6786         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6787         argument.
6788         * tmac/groff_tmac.man: Updated.
6790 2001-08-13  Werner LEMBERG  <wl@gnu.org>
6792         * src/preproc/tbl/tbl.man: Minor documentation update.
6794 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6796         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6797         * configure.ac: Add declaration test for gettimeofday().
6798         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6799         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6800         * configure: Regenerated.
6802 2001-08-11  Werner LEMBERG  <wl@gnu.org>
6804         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6805         * configure.ac: Add declaration test for strcasecmp().
6806         * Makefile.in: Updated.
6807         * configure: Regenerated.
6808         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6809         this is necessary because groff's mkstemp.cc is C++.
6810         Add declaration conditionally for strcasecmp().
6812 2001-08-10  Werner LEMBERG  <wl@gnu.org>
6814         Integrated pic2graph, contributed by Eric S. Raymond.
6816         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6817         files.
6818         * Makefile.in, NEWS: Updated.
6820         * src/preproc/tbl/tbl.man: Revised.
6822 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
6824         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6826 2001-08-09  Werner LEMBERG  <wl@gnu.org>
6828         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6829         requests.
6831 2001-08-08  Paul Eggert  <eggert@twinsun.com>
6833         * Makefile.sub (configure): Depend on configure.ac, not
6834         configure.in.
6835         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6837 2001-08-07  Werner LEMBERG  <wl@gnu.org>
6839         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6840         fixes.
6842 2001-08-06  Werner LEMBERG  <wl@gnu.org>
6844         * src/roff/troff/troff.man: Improve documentation of -E option.
6846 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6848         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6849         Simplified.
6851 2001-07-27  Werner LEMBERG  <wl@gnu.org>
6853         * src/preproc/refer/refer.cc: Undo last change.
6854         * src/devices/grohtml/post-html.cc: Ditto.
6856 2001-07-26  Werner LEMBERG  <wl@gnu.org>
6858         * src/preproc/refer/refer.cc: Include `lib.h'.
6859         * src/devices/grohtml/post-html.cc: Ditto.
6861 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
6863         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6864         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6865         * Makefile.in: Comment updated.
6866         * configure: Regenerated.
6868 2001-07-25  Werner LEMBERG  <wl@gnu.org>
6870         * src/preproc/pic/pic.cc: Removed.
6871         * src/preproc/pic/pic_tab.h: Removed.
6872         * src/preproc/refer/label.cc: Removed.
6874         * doc/Makefile (.ms.html): Don't use a file name extension in
6875         argument to grohtml's -I option.
6876         * Makefile.in (dist): Remove CVS directories.
6877         Call `distfiles' target.
6879         * src/devices/grohtml/grohtml.man: Add information about valid
6880         versions of pnmtopng.
6881         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6882         name instead of number.
6884 2001-07-24  Werner LEMBERG  <wl@gnu.org>
6886         * doc/groff.texinfo: Minor fixes.
6888 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
6890         * doc/Makefile (.ms.html): Put image files into a subdirectory.
6891         (clean): Updated.
6893 2001-07-20  Werner LEMBERG  <wl@gnu.org>
6895         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6896         * src/libs/libgroff/mkstemp.cc: New file.
6897         * src/libs/libgroff/mksdir.cc: New file.
6898         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6899         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6900         * src/libs/libgroff/Makefile.sub: Updated.
6901         * src/include/lib.h: Add mksdir() prototype.
6902         * src/include/posix.h: Define S_IXUSR if not yet defined.
6904         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6905         (createAllPages): Use mksdir() instead of current code.
6906         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6907         (main): [!HAVE_MKSTEMP]: Removed.
6909         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6910         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6911         macros.
6912         * configure.ac: Add tests for stdint.h, sys/time.h, and
6913         gettimeofday().
6914         Call new GROFF_xxx macros.
6915         * configure: Regenerated.
6916         * Makefile.in: Comments updated.
6918 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
6920         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6921         instead of current code.
6922         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6923         * src/roff/groff/groff.cc (possible_command::insert_args): New
6924         function.
6925         (main): Use it for predriver handling instead of insert_arg().
6927 2001-07-19  Werner LEMBERG  <wl@gnu.org>
6929         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6930         groff also.
6932         * src/include/posix.h: Define S_IWUSR if not yet defined.
6934 2001-07-18  Werner LEMBERG  <wl@gnu.org>
6936         * NEWS: Updated.
6938 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
6940         * tmac/groff_mdoc.man: Document new -width and -column syntax.
6941         Some other minor fixes.
6942         * tmac/an-old.tmac: Add `AT' and `UC' macros.
6944 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
6946         Replace call to `troff' with `groff -Z' to make it aware of
6947         GROFF_BIN_PATH.
6949         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6950         (troff_command, command_prefix): Removed.
6951         (alterDeviceTo): Use groff.
6952         (addZ): New function.
6953         (char_buffer::do_html): Use it.
6954         (scanArguments): Use TROFF_COMMAND.
6955         (findPrefix): Removed.
6956         (main): Updated.
6957         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6959 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
6961         * doc/pic.ms: Documentation fixes.
6963 2001-07-17  Werner LEMBERG  <wl@gnu.org>
6965         Replace atexit() with global destructor.
6967         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6968         (xtmpfile_list_init): New global structure to deallocate
6969         xtmpfile_list on exit.  Its destructor inherits most code from
6970         remove_tmp_files().
6971         (remove_tmp_files): Deleted.
6972         (add_tmp_file): Simplified.
6974 2001-07-16  Werner LEMBERG  <wl@gnu.org>
6976         Replace strdup() with strsave().
6978         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6979         (set_papersize): Use strsave() and a_delete.
6980         (main): Use strsave().
6981         * src/preproc/html/pre-html.cc (make_message, createAllPages,
6982         removeAllPages): Use strsave() and a_delete.
6984         * configure.ac: Remove test for strdup.
6985         * Makefile.in: Comment updated.
6986         * configure: Regenerated.
6988 2001-07-15  Werner LEMBERG  <wl@gnu.org>
6990         * win32-diffs: Updated.
6992 2001-07-14  Werner LEMBERG  <wl@gnu.org>
6994         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6995         removing the old one.
6996         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6998 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7000         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7002 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7004         Merge -xwidth into -width.  Add -xwidth functionality to -column
7005         also.
7007         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7008         avoid warning.
7009         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7010         string immediately following a leading dot starts with a valid mdoc
7011         argument.
7012         Add similar code to the -column branch.
7013         (doc-Bl-usage): Updated.
7014         * groff_mdoc.man: s/-xwidth/-width/.
7016 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7018         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7019         running into centered or non-formatted text.
7021 2001-07-11  Werner LEMBERG  <wl@gnu.org>
7023         Introduce short and long prefixes to have the selection at run-time
7024         whether there is a 8+3 limit for names of temporary files.
7026         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7027         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7028         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7029         variables.
7030         (temp_init): New global structure to initialize above three
7031         variables.
7032         (xtmptemplate): Use two parameters for long and short prefix.
7033         Simplify code use above three variables.
7034         (xtmpfile): Use long and short prefixes as parameters.
7035         * src/include/lib.h: Updated.
7037         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7038         with ...
7039         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7040         (createAllPages, makeTempFiles): Updated.
7042 2001-07-09  Werner LEMBERG  <wl@gnu.org>
7044         * REVISION: Increased to 3.
7046 Version 1.17.2 released
7047 =======================
7049 2001-07-07  Werner LEMBERG  <wl@gnu.org>
7051         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7052         to size_t.
7054 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7056         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7057         Fix synopsis.
7058         * tmac/groff_mdoc.man: Fix synopsis.
7060 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
7062         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7063         Restore `doc-Pa-font'.
7065 2001-07-04  Werner LEMBERG  <wl@gnu.org>
7067         * src/utils/indxbib/dirnamemax.c: Moved to ...
7068         * src/libs/libgroff/maxfilename.cc: Here.
7069         s/dir_name_max/file_name_max/.
7070         Add copyright.
7071         * src/include/lib.h: Add file_name_max.
7072         * src/utils/indxbib/indxbib.cc: Updated.
7073         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7074         Updated.
7076         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7077         as empty.
7078         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7080         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7081         REGION_TEMPLATE): New macros.
7082         (createAllPages, makeTempFiles): Use them.
7083         Include `nonposix.h'.
7084         (html_system): New function.
7085         (createAllPages, createImage): Use it.
7086         Use EXE_EXT.
7088         * tmac/www.tmac: Fix typos.
7090 2001-07-03  Werner LEMBERG  <wl@gnu.org>
7092         * tmac/www.tmac: Disable hyphenation in normal text only if output
7093         device is html.
7094         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7095         * tmac/groff_mwww.man, NEWS: Updated.
7097 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
7099         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7100         image location.
7102 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
7104         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7105         doc-display-ps-stack): Implement font and font size stack for
7106         displays.
7108 2001-07-02  Werner LEMBERG  <wl@gnu.org>
7110         * REVISION: Increased to 2.
7111         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7113         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7114         beginning of a line.
7115         * src/groff/grog/grog.sh: Ditto.
7117 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
7119         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7120         make it portable.
7122 2001-06-27  Werner LEMBERG  <wl@gnu.org>
7124         Fix problems with preprocessor string for `man' program.
7126         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
7127         Updated/added copyright.
7128         Moved Emacs's local variable to identify nroff mode to the end of
7129         the file; add local variable if missing.
7131 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
7133         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7134         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7135         * configure: Regenerated.
7137 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
7139         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7140         * configure: Regenerated.
7142 2001-06-24  Werner LEMBERG  <wl@gnu.org>
7144         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7145         but www.tmac.
7146         * doc/pic.ms: Fix typos.
7148 Version 1.17.1 released
7149 =======================
7151 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
7153         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7154         * configure: Updated.
7156 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
7158         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7159         image names.
7160         * src/roff/troff/dic.cc (blank_line): Add html tag.
7162 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
7164         * src/roff/troff/input.cc (do_suppress): Fix typo.
7166 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
7168         Added two new options (-D and -I) to specify image names and a
7169         subdirectory to place the images in.
7171         Change syntax from \\Ox to \\O[x].
7173         * src/devices/grohtml/post-html.cc (main): Add options.
7174         (usage): Updated.
7175         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7176         Use `NULL' instead of `0' for null string pointers.
7177         (MAX_RETRIES): New macro.
7178         (lengthOfintToStr, intToStr, make_message): New functions.
7179         (makeFileName): Make function static.
7180         Implement -D and -I options.
7181         (checkImageDir): New function.
7182         (write_end_image, write_start_image): Use new syntax of \O.
7183         (createAllPages, removeAllPages): Implement -D and -I options.  Use
7184         make_message().
7185         (createImage): Use make_message().
7186         (addps4html): Add guard for malloc().
7187         (usage, scanArguments): Updated.
7188         (makeTempFiles): Use mkstemp().
7189         (removeTempFiles): Use unlink().
7190         (findPrefix): Add guard for malloc().
7191         (main): Updated.
7192         * src/roff/troff/input.cc (get_delim_file_name): New function to
7193         parse \O.
7194         (do_suppress): Updated to parse new syntax.
7195         * src/devices/grohtml/grohtml.man: Updated.
7196         * tmac/www.tmac: Updated to new syntax.
7198         * NEWS: Updated.
7200 2001-06-15  Werner LEMBERG  <wl@gnu.org>
7202         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7204         * src/devices/grohtml/grohtml.man: Minor improvements.
7206 2001-06-14  Werner LEMBERG  <wl@gnu.org>
7208         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7210 2001-06-11  Werner LEMBERG  <wl@gnu.org>
7212         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7213         line to specify preprocessor options -- mandb 2.3.1 only recognizes
7214         the former.
7215         * src/preproc/grn/grn.man: Add proper '\" string.
7217 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
7219         * test-groff: Don't use PATH but GROFF_BIN_PATH.
7221 2001-06-08  Werner LEMBERG  <wl@gnu.org>
7223         Updated to autoconf 2.50.
7225         * configure.in: Renamed to...
7226         * configure.ac: This.
7227         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7228         (GROFF_OS390): Updated.
7229         * configure: Regenerated.
7231 2001-05-18  Werner LEMBERG  <wl@gnu.org>
7233         * src/roff/troff/env.c, src/roff/troff/env.h,
7234         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7235         from 2000-12-21.
7237 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
7239         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7241 2001-05-16  Werner LEMBERG  <wl@gnu.org>
7243         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7244         less than or equal zero; set it to 1 then.
7245         * src/roff/troff/node.h (node::node): Initialize `last'.
7247 2001-05-08  Werner LEMBERG  <wl@gnu.org>
7249         * tmac/an-old.tmac: Make predefined strings work in compatibility
7250         mode.
7251         Add troff version guard.
7252         * tmac/doc.tmac: Simplify version guard.
7254 2001-05-07  Werner LEMBERG  <wl@gnu.org>
7256         The .ns and .rs requests are now honoured not only in the top-level
7257         but in all diversions (similar to UNIX troff).
7259         This change is based on a patch from Tadziu Hoffmann
7260         <hoffmann@usm.uni-muenchen.de>.
7262         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7263         (top_level_diversion): Remove `no_space_mode' member.
7264         * src/roff/troff/div.cc (diversion::diversion,
7265         top_level_diversion::top_level_diversion): Updated.
7266         (macro_diversion::output): Reset `no_space_mode'.
7267         (no_space, restore_spacing): Use `curdiv' unconditionally.
7268         (space_request, blank_line): Check `curdiv->no_space_mode'.
7269         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7270         `curdiv' unconditionally.
7271         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7272         Updated.
7274 2001-05-06  Werner LEMBERG  <wl@gnu.org>
7276         Added two new requests `de1' and `am1' which are similar to `de' and
7277         `am' with the difference that compatibility mode is saved on entry,
7278         switched off during macro execution, and restored on exit.
7280         * src/roff/troff/input.h: Added two new special characters
7281         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7282         * src/roff/troff/input.cc (input_iterator): Added two member
7283         functions `save_compatible_flag' and `get_compatible_flag'.
7284         (input_stack): Ditto.
7285         (string_iterator): Ditto.  Also add private member
7286         `saved_compatible_flag'.
7287         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7288         (calling_mode): New enumeration.
7289         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
7290         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7291         (define_macro, define_indirect_macro, append_macro, ignore): Use
7292         `calling_mode'.
7293         (define_nocomp_macro, append_nocomp_macro): New functions.
7294         (init_input_requests): Updated.
7295         (do_request): Rename local variable `saved_compatible_flag' to
7296         `old_compatible_flag'.
7297         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7299         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7300         public and trap-invoked macros.  As a consequence, the man macros
7301         work in compatibility mode also.
7303 2001-05-06  Solar Designer  <solar@openwall.com>
7305         * Makefile.in: Use $(mandir).
7307 2001-05-06  Alexios Zavras  <zvr@pobox.com>
7309         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7311 2001-05-05  Werner LEMBERG  <wl@gnu.org>
7313         Added `.ns' number register: Returns 1 in no-space mode (if in
7314         top-level diversion), 0 otherwise.
7316         * src/roff/troff/div.cc (no_space_mode_reg): New class.
7317         (init_div_requests): Updated.
7318         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7319         Document it.
7321 2001-05-04  Werner LEMBERG  <wl@gnu.org>
7323         * src/roff/nroff/nroff.man: Improved documentation (especially
7324         locales).
7326 2001-05-02  Werner LEMBERG  <wl@gnu.org>
7328         Added `brp' request: This is \p as a request.
7330         * src/roff/troff/env.cc (environment::do_break): Add parameter
7331         `spread'.
7332         (do_break_request): New function (was `break_request').
7333         (break_request): Calls `do_break_request'.
7334         (break_spread_request): New; calls `do_break_request'.
7335         (init_env_requests): Updated.
7336         * src/roff/troff/env.h: Updated.
7337         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7339         * REVISION: Increased to 1.
7340         * win32-diffs: Updated.
7342 2001-05-01  Werner LEMBERG  <wl@gnu.org>
7344         * tmac/an-old.tmac: Fix minor compatibility mode issue.
7345         * tmac/troffrc-end: Make it really work in compatibility mode.
7347 2001-04-27  Werner LEMBERG  <wl@gnu.org>
7349         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7350         stdlib.h.
7352 2001-04-22  Werner LEMBERG  <wl@gnu.org>
7354         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7355         latest versions from glibc CVS archive.
7357         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7358         <c.zeelenberg@hccnet.nl>.
7360 2001-04-21  Werner LEMBERG  <wl@gnu.org>
7362         * configure.in: Move check for mkstemp() to...
7363         * aclocal.m4 (GROFF_MKSTEMP): This new function.
7364         * configure: Regenerated.
7366         * src/include/groff-getopt.h: Don't use variable names in
7367         declarations.
7369         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
7370         * src/devices/grohtml/Makefile.sub,
7371         src/devices/grohtml/post-html.cc: Updated.
7373 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
7375         * configure.in: Add special check for mkstemp().
7376         * src/libs/libgroff/tmpfile.cc: Use it.
7377         * src/utils/indxbib/indxbib.cc: Ditto.
7378         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7379         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7380         `const'.
7382 2001-04-20  Bruce Lilly  <blilly@erols.com>
7384         `Version_string' as C++ object was not visible to linker from C
7385         object files.
7386         Add `const' to `Version_string'.
7388         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7389         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7390         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7391         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7392         (scanArguments), src/preproc/refer/refer.cc (main),
7393         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7394         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7395         (main), src/devices/grohtml/post-html.cc (main),
7396         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7397         (main), src/utils/hpftodit/hpftodit.cc (main),
7398         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7399         (main), src/utils/lkbib/lkbib.cc (main),
7400         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7402         * src/roff/groff/pipeline.c: Add _UWIN.
7403         * src/include/nonposix.h: Ditto.
7405 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7407         * src/include/lib.h: Use HAVE_STRERROR.
7408         * src/roff/groff/pipeline.c: Ditto.
7409         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7410         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7411         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7412         * win32-diffs: Updated.
7413         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7415 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7417         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7418         instead of hardwired `"troff"'.
7419         (char_buffer::read_file): Remove unused variables.
7420         (char_buffer::write_file_troff): Ditto.
7421         (char_buffer::write_file_html): Ditto.
7422         (generateImages): Ditto.
7423         (abs): Removed.
7424         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7426         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7428         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7429         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7430         index_search_item::search1): Ditto.
7431         * src/roff/troff/node.h (width_list): Reorder members.
7432         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7433         (lookup_warning): Ditto.
7434         (prepend_string): Commented out.
7435         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7436         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7437         * src/preproc/tbl/main.cc (process_format): Ditto.
7438         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7439         compiler warnings.
7440         * src/preproc/pic/pic.cc: Updated.
7441         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7442         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7443         * src/preproc/refer/command.cc (execute_command): Ditto.
7444         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7445         * src/preproc/refer/token.cc (lookup_token): Ditto.
7446         * src/preproc/soelim/soelim.cc: Ditto.
7447         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7448         (isHexDigit): Commented out.
7449         (pushBackBuffer::isString): Remove unused variable.
7450         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7451         warning.
7452         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7453         resource_manager::read_resource_arg, read_one_of, parse_extensions):
7454         Ditto.
7455         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7456         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7457         lookup_paper_size): Ditto.
7458         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7459         (text_glob, element_list): Reorder members.
7460         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7461         compiler warning.
7462         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7463         return value to `void'.
7464         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7465         of initializers.
7466         * src/devices/grohtml/html.h (simple_output::check_newline,
7467         simple_output::space_or_newline, simple_output::enable_newlines):
7468         Add return value.
7469         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7470         compiler warnings.
7471         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7472         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7473         output_ligatures, output_charset, read_map): Ditto.
7474         * src/utils/lookbib/lookbib.cc (main): Ditto.
7475         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7476         (do_file): Fix typo (`=' -> `==').
7477         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7478         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7480 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
7482         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7483         Fix usage of GROFF_BIN_PATH.
7484         * src/roff/nroff/nroff.man: Updated.
7486 2001-04-18  Werner LEMBERG  <wl@gnu.org>
7488         * NEWS: Fixing typos.
7489         Updated.
7491 Version 1.17 released
7492 =====================
7494 2001-04-17  Werner LEMBERG  <wl@gnu.org>
7496         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7497         directory, not in $(srcdir).
7499 2001-04-16  Werner LEMBERG  <wl@gnu.org>
7501         * doc/groff.texinfo: More info on conditionals.
7503 2001-04-15  Werner LEMBERG  <wl@gnu.org>
7505         * doc/groff.texinfo: Added some info about groff internals.
7507         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7508         about missing special character only if the name is non-null.
7510 2001-04-14  Werner LEMBERG  <wl@gnu.org>
7512         Removing the grohtml-old device driver which is now obsolete.
7514         * src/devices/grohtml-old/*: Removed.
7515         * font/devhtml-old/*: Removed.
7516         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7517         Remove comments.
7518         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7519         * test-groff (PATH): Updated.
7520         * tmac/Makefile.sub (NORMALFILES): Updated.
7521         * tmac/an-old.tmac: Remove special code for html-old device.
7522         Replace `html-or-html-old' register with `an-html'.
7523         * tmac/eqnrc: Updated.
7524         * tmac/html-old.tmac: Removed.
7525         * tmac/troffrc, tmac/troffrc-end: Updated.
7526         * tmac/www.tmac: Remove special code for html-old device.
7527         Replace `html-or-html-old' register with `www-html'.
7529         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7530         src/libs/libgroff/htmlindicate.cc (graphic_end),
7531         include/htmlindicate.h, src/preproc/grn/*.cc,
7532         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7533         single argument for consistency with rest of source code.
7535         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7537 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
7539         * src/roff/troff/troff.man: Fixing typos.
7541 2001-04-13  Werner LEMBERG  <wl@gnu.org>
7543         * doc/pic.ms: Fixing many font switches.
7544         * doc/groff.texinfo: Fixes, additions.
7545         * MORE.STUFF: Updated.
7547 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
7549         * src/devices/grohtml/grohtml.man: Updated manual page regarding
7550         simple anchor.
7551         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7552         cropping of images.
7553         (removeTempFiles): New function to tidy up temporary files.
7554         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7555         Many fixes to do with the new inline suppress node and image regions
7556         are much tighter.
7557         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7558         (generate_img_src): New function.
7559         (html_printer::do_auto_image): Utilizes it.
7560         (do_heading, do_title): Include inline images within their contents.
7561         (html_printer::begin_page): Tidied up comments that are issued to
7562         the html output file.
7563         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7564         than courier.
7565         (text_glob::is_br): New method used by do_heading.
7566         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7567         equivalent diversion.
7568         * src/include/html-strings.h: Altered image tags to reflect the
7569         inline image node.
7570         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7571         parameter.
7572         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7573         it is already inside a pic image.  Only emit tags if the argument
7574         `-Tps:html' is present.
7575         * src/preproc/tbl/main.cc: Changes to reflect additional
7576         `html_end_suppress' parameter.
7577         * src/roff/troff/env.cc: Only emit eol tag if a node has been
7578         emitted since the last eol tag was written.
7579         * src/roff/troff/env.h: New boolean `emitted_node'.
7580         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7581         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
7582         * src/roff/troff/node.cc (check_charinfo): New method. 
7583         (troff_output_file::determine_line_limits): Alterations to limit
7584         checking.
7585         * tmac/www.tmac: Changes to reflect new suppress nodes.
7586           
7587 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
7589         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7590         Escape the html_glyph in the buffer.
7591         (str_translate_to_html): Output the unescaped escaped_char.
7592         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7593         `frame=void', not `frame=none'.  Add `border=0'.
7595 2001-04-12  Werner LEMBERG  <wl@gnu.org>
7597         * PROBLEMS: Add some words on how to avoid wrapper macros.
7599 2001-04-11  Blake McBride  <blake@florida-software.com>
7601         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7603 2001-04-11  Werner LEMBERG  <wl@gnu.org>
7605         * font/devlbp/Makefile.sub (CLEANADD): Set it.
7606         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7607         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7608         * Makefile.sub (DISTCLEANFILES): Here.
7610         * libs/libgroff/new.cc: Include `nonposix.h'.
7611         * win32-diffs: Updated.
7613 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
7615         Added skeleton macro for defunct macros.
7617         Updated documentation.
7619         When inside displays, an empty input line warning should be
7620         suppressed.  If another macro call is put inside a display,
7621         all subsequent empty lines found in that display caused a
7622         warning to be emitted.
7624         * tmac/doc.tmac (doc-defunct-macro): New macro.
7625         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7626         (doc-restore-global-vars): Fixed typo.
7627         (doc-empty-line): Check the `doc-display-depth' register to
7628         determine whether we are inside display or not.
7630         * tmac/doc-common: Removed `Or' and `Sf' registers.
7631         Moved obsolete `Ds' macro to doc.tmac.
7633         * tmac/groff_mdoc.man: Bump document date.
7634         Document `.Vt' under ``Variable Types''.
7635         Removed documentation for obsolete `.Or' macro.
7637 2001-04-10  Werner LEMBERG  <wl@gnu.org>
7639         * NEWS: Updated.
7640         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7642 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
7644         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7645         (usage): Add stream argument. Don't exit.
7646         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7647         Write --version output to stdout, not stderr.
7648         (usage): Add stream argument. Don't exit.
7649         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7650         (usage): Add stream argument. Don't exit.
7651         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7652         constants.
7653         (usage): Add stream argument. Don't exit.
7654         (main): Write --help output to stdout, not stderr.
7655         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7656         (usage): Add stream argument. Don't exit.
7657         * src/devices/grops/ps.cc (main): Accept --help and --version.
7658         (usage): Add stream argument. Don't exit.
7659         * src/devices/grotty/tty.cc (main): Accept --help and --version.
7660         (usage): Add stream argument. Don't exit.
7661         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7662         (main): Accept --help and --version.
7663         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7664         (main): Accept --help and --version.
7665         * src/preproc/html/pre-html.cc (usage): Add stream argument.
7666         (scanArguments): Accept --help and --version.
7667         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7668         (main): Accept --help and --version.
7669         * src/preproc/refer/refer.cc (main): Accept --help and --version.
7670         (usage): Add stream argument. Don't exit.
7671         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7672         exit.
7673         (main): Accept --help and --version.
7674         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7675         (main): Accept --help and --version.
7676         * src/roff/groff/groff.cc (main): Accept --help and --version.
7677         (synopsis): Add stream argument.
7678         (help): Write --help output to stdout, not stderr.
7679         (usage): Add stream argument. Don't exit.
7680         * src/roff/grog/grog.pl: Accept --help and --version.
7681         (help): New sub.
7682         * src/roff/grog/grog.sh: Accept --help and --version.
7683         * src/roff/nroff/nroff.sh: Accept --help and --version.
7684         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7685         (usage): Add stream argument. Don't exit.
7686         (main): Accept --help and --version.
7687         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7688         (usage): New function with stream argument, doesn't exit.
7689         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7690         (usage): New function with stream argument, doesn't exit.
7691         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7692         (usage): Add stream argument. Don't exit.
7693         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7694         (main): Accept --help and --version.
7695         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7696         exit.
7697         (main): Accept --help and --version.
7698         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7699         (main): Accept --help and --version.
7700         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7701         (usage): Add stream argument. Don't exit.
7703 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
7705         Fix indentation in SYNOPSIS.
7707         Updated to include changes of latest BSD mdoc version (basically,
7708         the only change is that `.Fn' and `.Fc' put a final semicolon after
7709         a function declaration in the SYNOPSIS section).
7711         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7712         (doc-in-synopsis-section): New variable.  Updated all related
7713         functions.
7714         (doc-indent-synopsis-active): New register.
7715         (Nd, Fn, Fo): Use it.
7716         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7717         `.Cd' with long argument line produces indented wrapped lines. 
7718         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7719         undesirable line break to be output.
7720         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7721         `.rs'.
7722         (Fn, Fc): Add final `;' to output.
7723         (doc-save-global-vars, doc-restore-global-vars): Updated.
7724         * tmac/doc-common: Remove `Ex' register.
7725         Updated.
7726         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7727         copyright.
7729 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7731         * tmac/doc.tmac (Cd): Simplify code.
7732         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7734 2001-04-06  Werner LEMBERG  <wl@gnu.org>
7736         Implement continuous underlining for nroff mode.  To do that, a new
7737         request in the ditroff language has been added: `x u N' (N is 0
7738         or 1).
7740         \X and \Y are now transparent to end-of-sentence recognition.
7742         * src/include/printer.h (printer): Add `type' parameter to `special'
7743         method.
7744         * src/libs/libdriver/printer.cc (printer::special): Updated.
7745         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7747         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7748         specials of type `p'.
7749         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7750         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7751         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7752         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7753         (glyph::order): New method.
7754         (tty_printer::add_char): Use it.
7755         (tty_printer::special): New method.
7756         (tty_printer::end_page): Implement it.
7758         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7759         * src/roff/troff/node.cc (special_node::special_node): Add parameter
7760         to set `no_init_string'.
7761         (special_node::tprint_start): Use it.
7762         (special_node::same, special_node::copy): Updated.
7763         (special_node::ends_sentence): New method.
7764         (troff_output_file::start_special): Add parameter to include
7765         inititialization of special conditionally.
7767         * src/roff/troff/env.h (environment): New member `underline_spaces'.
7768         * src/roff/troff/env.cc (do_underline_special): New function.
7769         (environment::set_font): Use it.
7770         (do_underline): Use it.  This was `underline()'.
7771         (underline): Call `do_underline()'.
7772         (continuous_underline): New function which calls `do_underline()'.
7773         (environment::newline): Use `do_underline_special()'.
7774         (init_env_requests): Updated.
7776         * NEWS, man/troff_out.man: Updated.
7778 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
7780         * font/devutf8/R.proto: Fix code of 'shc'.
7782 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7784         Many fixes.  Diag lists can now be nested also; additionally,
7785         `-compact' and `-offset' are supported.
7787         * tmac/doc.tmac (doc-have-indent): Replaced with ...
7788         (doc-list-have-indent-stackXXX): A new register stack.
7789         (doc-have-diag-list): Removed.
7790         (Bl): Use `doc-list-have-indent-stackXXX'.
7791         (El): Updated.
7792         (doc-diag-list): Use `doc-compact-list-stackXXX'.
7793         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7794         (doc-set-vertical-and-indent): Ditto.
7795         (doc-next-list-depth): Removed.
7796         (doc-increment-list-stack): Updated.
7797         (doc-decrement-list-stack): Use `doc-list-depth' instead of
7798         `doc-next-list-depth'.
7799         (doc-end-list, doc-end-column-list): Don't use
7800         `doc-increment-list-stack'.
7801         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7802         (doc-save-global-vars, doc-restore-global-vars): Updated.
7803         * tmac/doc-common: Updated.
7804         * tmac/groff_mdoc.man: Updated.
7805         * NEWS: Fix typo.
7807 2001-04-02  Werner LEMBERG  <wl@gnu.org>
7809         * src/devices/grotty/grotty.man: Fix grammatical error.
7811 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
7813         Remove .Ld from mdoc package; replace it with special handling of
7814         `...'.
7816         * tmac/doc-common: Remove `Ld' register.
7817         Uncomment `doc-volume-ds-*' strings.
7818         Remove `doc-operating-system-default'.
7819         (Os): Updated.
7820         * tmac/doc-syms (Ld): Removed.
7821         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7822         `...' specially.
7823         * NEWS: Updated.
7825         * tmac/groff_mdoc.man: Many fixes and updates.
7827 2001-03-29  Werner LEMBERG  <wl@gnu.org>
7829         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
7830         Bond <tkb@tkb.mpl.com>.
7831         * tmac/www.tmac: Save compatibility mode.
7833 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
7835         * tmac/groff_mdoc.man: Many fixes.
7837 2001-03-28  Werner LEMBERG  <wl@gnu.org>
7839         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7840         isn't recognized.
7842 2001-03-27  Werner LEMBERG  <wl@gnu.org>
7844         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7845         diversion.  This fixes overlong tags.
7847 2001-03-26  Werner LEMBERG  <wl@gnu.org>
7849         * doc/groff.texinfo: Fixed and improved documentation of fonts.
7850         * tmac/doc-syms: Fix error messages.
7851         * tmac/an-old.tmac: Remove incorrect double backslashes.
7853 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
7855         * tmac/Makefile.sub: Strip mdoc.local also
7856         * tmac/strip.sed: Fixed.
7858 2001-03-24  Werner LEMBERG  <wl@gnu.org>
7860         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7861         selecting the font size.
7862         * tmac/groff_mdoc.man, NEWS: Document it.
7864 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7866         * src/roff/troff/div.cc (save_vertical_space): Add default argument
7867         to `sv' request.
7868         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7869         argument to restore previous font family.
7870         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7872         * doc/groff.texinfo: More fixes and additions (mainly for font
7873         manipulating commands).
7875         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7876         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
7877         * tmac/Makefile.sub, NEWS: Updated.
7879 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7881         Replaced mdoc implementation.  The new version is `state of the
7882         art', using almost all new features of groff 1.17 -- it won't run
7883         with older versions.
7885         * tmac/doc.tmac: Completely rewritten.
7886         * tmac/doc-common: Ditto.
7887         * tmac/doc-nroff: Ditto.
7888         * tmac/doc-ditroff: Ditto.
7889         * tmac/doc-syms: Ditto.
7890         * tmac/mdoc.local: New file.
7891         * tmac/groff_mdoc.samples.man: Replaced with ...
7892         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7893         * tmac/strip.sed: Updated.
7894         * tmac/Makefile.sub: Updated.
7895         * INSTALL: Updated.
7897         * tmac/groff_man.man: Add `man.local' to the FILES section.
7899 2001-03-22  Werner LEMBERG  <wl@gnu.org>
7901         * doc/groff.texinfo: Added many @noindent.
7902         Replaced @end_Example -> @endExample.
7903         Added info whether registers are r/o.
7904         Many other additions and fixes.
7906 2001-03-21  Werner LEMBERG  <wl@gnu.org>
7908         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7909         in makeinfo of texinfo 4.0) to be used in @Def* macros.
7910         Improved @Def* macros: Now the exact syntax of request, register,
7911         and escapes is shown.
7912         Added macros for parentheses and brackets to be used in @Def*.
7913         Many fixes and improvements of the documentation.
7915 2001-03-20  Werner LEMBERG  <wl@gnu.org>
7917         * doc/groff.texinfo: Added new index: `st' (for strings).
7918         Added macros @Defstr(x).
7919         Added macro @Example (adding @group).
7920         Other minor improvements.
7922 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7924         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7925         `rq' for requests.  `fn' is no longer used.
7926         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7927         Removed @Deffn(x).
7929         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7930         number with name of man page.
7932 2001-03-19  Larry Kollar  <kollar@alltel.net>
7934         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
7935         consistency.
7937 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7939         * man/groff_font.man: Document `prepro', `postpro', and `print'.
7940         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7941         * src/devices/grohtml/grohtml.man: Fixing typos.
7943 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
7945         * tmac/s.tmac (@IP): Pass `.ip' html tag.
7946         * tmac/groff_mwww.man: Remove .LINE macro
7947         * tmac/www.tmac (LINE): Add `.ti'.
7949         * src/devices/grohtml/post-html.cc (html_printer): New member
7950         `indent'.
7951         (html_printer::emit_raw): Use it.
7952         (html_printer::do_linelength): Ditto.
7953         (html_printer::do_pageoffset): Ditto.
7954         (html_printer::do_indentation): Ditto.
7955         (html_printer::do_tempindent): Ditto.
7956         (html_printer::do_break): Ditto.
7957         (html_printer::begin_page): Ditto.
7958         (html_printer::do_indentedparagraph): New function.
7959         (html_printer::troff_tag): Handle `.ip'.
7960         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7961         Add `<td width=...>' handling.
7962         (html_text::do_table): Add parameter.
7963         (html_text::do_indent): Updated.
7964         * src/devices/groohtml/html-text.h: Updated.
7966 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
7968         Introduced simple html tables to implement indentation.
7970         * src/devices/grohtml/html.h (word, word_list): New structures.
7971         (simple_output): Use it.
7972         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7973         (html_printer): Improve indentation handling.
7974         (html_printer::emit_raw): Set `in_table' element.  Handle
7975         indentation if set.
7976         (html_printer::write_header): Move conditional downwards.
7977         Don't allow whitespace in tags.
7978         (html_printer::do_linelength): Handle line length and indentation
7979         conditionally.
7980         (html_printer::do_pageoffset): Handle indentation conditionally.
7981         (html_printer::do_indentation): Ditto.
7982         (html_printer::do_tempindent): New function member.
7983         (html_printer::do_fill): Take care of indentation.
7984         (html_printer::do_flush): Finish table.
7985         (html_printer::do_links): Ditto.
7986         (html_printer::do_break): New function for handling `.br' and `.ti'.
7987         (html_printer::troff_tag): Use it.
7988         Handle `.ti'.
7989         (html_printer::flush_globs): Fix.
7990         (html_printer::flush_page): Finish table.
7991         (html_printer::html_printer): Fix error message.  Set up
7992         `linelength'.
7993         (html_printer::add_to_sbuf): Remove special handling of character
7994         code 255.
7995         (to_unicode): Remove `stop()'.
7996         (html_printer::write_title): Cleanup.
7997         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
7998         (html_printer::~html_printer): Flush text and end the line.
7999         Use `put_string()'.
8000         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8001         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8002         emission of tags.
8003         (html_text::start_tag): Disable newlines.
8004         (html_text::table_is_void): New function.
8005         (html_text::issue_table_begin): Ditto.
8006         (html_text::issue_table_end): Ditto.
8007         (html_text::push_para): Better table handling.
8008         (html_text::do_indent): New function.
8009         (html_text::do_table): Ditto.
8010         (html_text::done_table): Ditto.
8011         (html_text::do_tt): Handle PRE_TAG.
8012         (html_text::is_in_table): New function.
8013         (html_text::check_emit_text): Handle tables.
8014         (html_text::do_emittext): Use `nl()'.
8015         (html_text::do_para): Handle table.
8016         (html_text::remove_def): New function.
8017         * src/devices/grohtml/output.cc (word, word_list): Implement
8018         methods.
8019         (simple_output::end_line): Flush last word.
8020         (simple_output::simple_comment): Ditto.
8021         (simple_output::begin_comment): Recoded.
8022         (simple_output::end_comment): Ditto.
8023         (simple_output::comment_arg): Removed.
8024         (simple_output::check_newline): Improve test and flush last word.
8025         (simple_output::space_or_newline): Improved.
8026         (simple_output::write_newline): Replaced with...
8027         (simple_output::nl): This.
8028         (simple_output::put_raw_char): Flush last word.
8029         (simple_output::check_space): Removed.
8030         (simple_output::put_translated_string): Ditto.
8031         (simple_output::put_string): Simplified.
8032         (simple_output::put_number): Updated.
8033         (simple_output::put_float): Ditto.
8034         (simple_output::put_symbol): Removed.
8035         (simple_output::enable_newlines): Add `check_newline()'.
8036         (simple_output::flush_last_word): New function.
8038         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8039         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8041         * tmac/s.tmac (@PP, @IP): Add html conditional code.
8042         * tmac/an-old.tmac (TP): Ditto.
8044 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
8046         * mdate.sh: Make it POSIX compliant.
8048 2001-03-09  Werner LEMBERG  <wl@gnu.org>
8050         Added the `return' request to end a macro immediately.  It simply
8051         pops iterators from the input stack until a macro iterator is found.
8053         * src/roff/troff/input.cc (input_iterator::is_macro,
8054         macro_iterator::is_macro): New member.
8055         (input_return_boundary): New class to signal an immediate return
8056         to while_request().
8057         (input_stack::add_return_boundary, input_stack::is_return_boundary):
8058         New functions.
8059         (input_stack::clear): Use it.
8060         (input_stack::pop_macro): New function.
8061         (while_request): Use `is_return_boundary()'.
8062         (return_macro_request): New function.
8063         (init_input_requests): Use it.
8065         * src/roff/troff/TODO: Updated.
8066         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8068 2001-03-08  Werner LEMBERG  <wl@gnu.org>
8070         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8071         cleanup.
8073 2001-03-07  Werner LEMBERG  <wl@gnu.org>
8075         Make `\B' more rigid.
8077         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8078         parameter.
8079         (get_number_rigidly): New function.
8080         * src/roff/troff/input.cc (do_expr_test): Use it.
8081         * src/roff/troff/token.h: Updated.
8083         * src/roff/troff/request.h: Fix typo (init_html_request ->
8084         init_markup_request).
8086 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
8088         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
8089         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8090         are now `.begin', `.end', `.image'.
8092         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8093         (html_printer::add_to_sbuf): Changing type of `code' parameter.
8094         Use add_char_to_sbuf().
8095         (to_unicode): New function.
8096         (char_translate_to_html): Changing type of `ch' parameter.
8097         Use `to_unicode()'.
8098         (html_printer::~html_printer): Comment out doctype string.
8099         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8100         instead of `.html-end'.
8101         (write_start_image): Use `.begin' and `.image' instead of
8102         `.html-begin' and `.html-image'.
8103         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8104         (html_begin): Renamed to ...
8105         (begin): This.
8106         (html_end): Renamed to ...
8107         (end): This.
8108         (html_image): Renamed to ...
8109         (image): This.
8110         (init_html_requests): Renamed to ...
8111         (init_markup_requests): This.
8112         * tmac/www.tmac: Updated.
8114 2001-02-28  Bram  <bram@avontuur.org>
8116         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8117         constructor.
8119 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
8121         * doc/meref.me: Fixing some typos.
8123 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8125         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8126         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
8127         * src/roff/troff/node.h: Updated.
8129 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
8131         * tmac/groff_tmac.man: Fix typo.
8133 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8135         Fixing a bug which prevented proper end-of-sentence recognition
8136         between an `unformatted' box and the following text.  As a
8137         consequence, vertical line distances are no longer preserved in
8138         boxes after a call to `.unformat' -- because boxes aren't
8139         line-oriented (contrary to diversions), this doesn't make sense
8140         anyway.
8142         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8143         value.
8144         (vertical_size_node::set_unformat_flag): New method.
8145         * src/roff/troff/node.hh: Updated.
8146         * src/roff/troff/input.cc (word_space_node::reread,
8147         hmotion_node::reread): Reset `unformat' flag after usage.
8148         (unformat_macro): Append only if `set_unformat_flag()' returns
8149         non-zero.
8150         * src/roff/troff/troff.man: Updated.
8152 2001-02-15  Werner LEMBERG  <wl@gnu.org>
8154         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8155         documentation of `asciify' and `unformat' requests.
8157 2001-02-13  Werner LEMBERG  <wl@gnu.org>
8159         Redesigned the `unformat' request.  It is no longer connected with
8160         `asciify' but rather uses new `reread()' methods if the `unformat'
8161         flag is set.  Additionally, the handling of space characters after
8162         unformatting has been fixed so that they retain their width.
8164         * src/roff/troff/node.h (width_list): New structure to store
8165         original widths of spaces.
8166         (node): Added `unformat' member.
8167         Replaced `num_spaces' variable with `orig_width' list.
8168         * src/roff/troff/node.cc (*node::asciify,
8169         asciify_reverse_node_list): Removed `unformat_only' flag and related
8170         code.
8171         (word_space_node::asciify, word_space_node::word_space_node): Use
8172         `orig_width'.
8173         (word_space_node::~word_space_node): New destructor.
8174         (word_space_node::copy): Updated to handle `orig_width'.
8175         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8176         (*node::merge_space): Update `orig_width' list if necessary.
8177         (*node::set_unformat_flag): New methods to set the `unformat' flag.
8178         * src/roff/troff/enc.cc (environment::space_newline): Use
8179         `width_list'.
8180         (environment::space): Added method to handle space width and
8181         sentence space width as parameters.  Use `width_list'.
8182         (environment::make_tab_node): Updated.
8183         * src/roff/troff/env.h: Updated.
8184         * src/roff/troff/input.cc (word_space_node::reread,
8185         unbreakable_space_node::reread, hmotion_node::reread): New methods
8186         to handle nodes specially if `unformat' flag is set.
8187         (do_asciify_macro): Renamed back to ...
8188         (asciify_macro): This.
8189         (unformat_macro): New implementation to simply set the `unformat'
8190         flag.
8192         * MORE.STUFF: Added more info about deroff.
8194 2001-02-08  Werner LEMBERG  <wl@gnu.org>
8196         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8197         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8198         and `add_self()' methods to avoid hyphenation.  For example, the
8199         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8200         soft hyphen after `foo'.  Now the hyphen list is correctly
8201         `foo<ignore><ignore>bar'.
8203 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
8205         * tmac/groff_tmac.man: Fix `BIR' macro.
8207 2001-02-04  Werner LEMBERG  <wl@gnu.org>
8209         A new escape sequence `\:', inserting a zero-width break point.
8211         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8212         * src/roff/troff/input.cc (get_copy, token::next, asciify):
8213         Implement it.
8214         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8215         method.
8216         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
8217         and `asciify()' methods.
8218         * src/roff/troff/node.cc (space_node::space_node): Updated.
8219         (space_node::asciify): Handle `was_escape_colon'.
8220         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8222         Handle `\~' similar to other comparable requests.
8224         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8225         label.
8226         (token::next): Move creation of an unbreakable_space_node to...
8227         (token::add_to_node_list): Here.
8229         Fix a bug which sometimes prevented hyphenation of words connected
8230         with `\~' or `\ ' (and other escape sequences handled as
8231         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
8232         (after a call to the `unformat' request).
8234         * src/roff/troff/env.h (environment::possibly_break_line,
8235         environment::hyphenate_line): Introducing `start_here' parameter.
8236         * src/roff/troff/env.cc (environment::space_newline,
8237         environment::space): Use it.
8238         (environment::possibly_break_line, environment::hyphenate_line):
8239         Implement it.
8240         * src/roff/troff/input.cc (process_input_stack): Use it.
8241         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8242         space_char_hmotion_node, overstrike_node): Add
8243         `get_hyphenation_type()' method.
8244         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8245         if `unformat_only' is active.
8247 2001-01-30  Werner LEMBERG  <wl@gnu.org>
8249         Implemented new read-only number register `.linetabs' which
8250         returns 1 if in line-tabs mode, 0 otherwise.
8252         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8253         * src/roff/troff/env.cc (get_line_tabs): New function.
8254         (init_env_requests): Use it.
8255         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8257         * VERSION, REVISION: Changing to 1.17.0.
8259 2001-01-28  Werner LEMBERG  <wl@gnu.org>
8261         Fixed a bug which prevented hyphenation of words which are finished
8262         with `\)'.
8264         * src/roff/troff/token.h (token): Add enum type
8265         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8266         * src/roff/troff/input.cc (token::next, token::description,
8267         get_line_arg, token::add_to_node_list, token::process): Use it.
8269 2001-01-27  Werner LEMBERG  <wl@gnu.org>
8271         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8272         * src/roff/troff/div.cc (do_divert): Use it.
8274         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8276 2001-01-25  Werner LEMBERG  <wl@gnu.org>
8278         Adding the `linetabs' request.  If set, tab distances are not
8279         computed relative to the input line but relative to the output line.
8281         * src/roff/troff/env.h (environment): New member `line_tabs'.
8282         * src/roff/troff/env.cc (line_tabs_request): Implement request.
8283         (environment::environment, environment::copy): Updated.
8284         (environment::distance_to_next_tab): Use `line_tabs'.
8285         (init_env_requests): Register request.
8286         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
8287         fixes.
8289 2001-01-24  Werner LEMBERG  <wl@gnu.org>
8291         Introducing a new read-only register `.int' which is set to a
8292         positive value if the last output line is interrupted (i.e., if it
8293         contains `\c').
8295         * src/roff/troff/env.cc (init_env_requests): Add it.
8296         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8298 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
8300         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8301         * src/preproc/html/pre-html.cc (findPrefix): New function which
8302         generates the troff executable name via the system prefix.
8303         * src/preproc/eqn/main.cc: Modified warning message.
8305 2001-01-23  Werner LEMBERG  <wl@gnu.org>
8307         troff's `box' and `boxa' requests didn't preserve temporary
8308         indentation.
8310         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8311         `saved_target_text_length' members.
8312         * src/roff/troff/div.cc (do_divert): Use them.
8314         Tabs (but not yet leaders and fields) are now handled correctly by
8315         `asciify' request.
8317         * node.h (hmotion_node): Add field `was_tab'.
8318         * env.cc (environment::make_tab_node): Set it.
8319         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8321         Added new request `unformat' which will, contrary to `asciify',
8322         preserve font information after unformatting (i.e., only nodes
8323         dealing with horizontal space are converted back to input
8324         characters).
8326         * input.cc (asciify_macro): Renamed to ...
8327         (do_asciify_macro): this, having a new parameter `unformat_only'.
8328         (asciify_macro, unformat_macro): New; using do_asciify_macro.
8329         (init_input_requests): Added `unformat'.
8330         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8331         parameter to control asciification process.
8332         * node.h (*_node::asciify): Ditto.
8333         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8335 2001-01-20  Werner LEMBERG  <wl@gnu.org>
8337         * doc/groff.texinfo: Minor improvement of `.in' documentation.
8339 2001-01-18  Werner LEMBERG  <wl@gnu.org>
8341         * tmac/ps.tmac: Remove call of psold.tmac.
8342         * tmac/psold.tmac: Comment updated.
8343         * tmac/psnew.tmac: Removed since no longer needed.
8344         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8346         * font/devutf8/R.proto: Adding `shc' glyph.
8347         * font/devutf8/NOTES: Updated.
8349         * test-groff: Updated.
8351 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8353         First cut of the new html device driver.  Changes to pre-html and
8354         the new grohtml are too numerous to be documented here.
8356         Stuff related to `html' has been renamed to `html-old' and `html2'
8357         stuff has been renamed to `html' (including directories).  The new
8358         html device driver is therefore invoked as `-Thtml'.
8360         Added new `\O' escape to suppress output (needed by html driver).
8362         Added functions and code to pass info about input-level commands
8363         (`.in', `.fl', etc.) to html driver.
8365         Three new functions (.html-begin, .html-end, and .html-image) for
8366         better html handling: `html-begin' will execute the remaining line
8367         if at the outermost nesting level, increasing an internal counter.
8368         `html-end' does the same but decreases the internal counter.
8369         `html_image' puts its arguments into a special node (suppress_node)
8370         to define an image region.
8372         The `output' request has been removed.
8374         * tmac/html-tags.tmac: Removed.
8375         * tmac/arkup.tmac: Updated and renamed to ...
8376         * tmac/www.tmac: New file.
8377         * tmac/markup.tmac Updated and renamed to ...
8378         * tmac/mwww.tmac: New file.
8379         * tmac/Makefile.sub: Updated.
8380         * tmac/an-old.tmac: Updated.
8381         * tmac/eqnrc: Updated.
8382         * tmac/groff_man.man
8383         * tmac/groff_markup.man: Updated and renamed to ...
8384         * tmac/groff_mwww.man: New file.
8385         * tmac/groff_tmac.man: Updated.
8386         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8387         * tmac/html.tmac: Updated and renamed from html2.tmac.
8388         * tmac/pspic.tmac: Updated html support.
8389         * tmac/s.tmac: Added html output support.
8390         * tmac/troffrc, tmac/troffrc-end: Updated.
8392         * Makefile.in, doc/Makefile: Updated.
8393         * doc/groff.texinfo: Added info about new `\O' escape.
8394         * doc/homepage.ms: Use `MAILTO' macro.
8396         * font/devhtml/DESC.proto: Add `C' font.
8397         * font/devhtml/Makefile.sub: Updated.
8398         * font/devhtml/R.proto: Minor fixes.
8399         * font/devhtml-old/Makefile.sub: Updated.
8401         * src/devices/grohtml-old/Makefile.sub: Updated.
8403         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8404         method.
8405         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8406         graphic_start): Add `inline' parameter.  Update.
8407         (html_end_suppress, graphic_end): Update.
8409         * src/include/html-strings.h: New file.
8410         * src/include/htmlindicate.h: Comments updated.
8411         * src/include/printer.h: Updated.
8413         * src/preproc/eqn/main.cc (do_file, main): Updated.
8414         * src/preproc/pic/troff.cc (troff_output::start_picture,
8415         troff_output::finish_picture): Updated.
8416         * src/preproc/tbl/main.cc (process_input_file): Updated.
8418         * src/roff/groff/groff.cc (main): Updated.
8419         Pass device arguments to predrivers also.
8420         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8421         * src/roff/troff/env.h (environment): Updated.
8422         New elements `need_eol' and `ignore_next_eol' (for html output).
8423         * src/roff/troff/env.cc (environment::environment): Add initializers
8424         for `need_eol' and `ignore_next_eol'.
8425         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8426         functions.
8427         (point_size, fill, no_fill, center, right_justify, line_length,
8428         indent, temporary_indent, break_request, handle_tab): Use
8429         `add_html_tag()'.
8430         (set_tabs): Use `add_html_tag_tabs()'.
8431         (environment::add_html_tag): Updated.
8432         (environment::do_break): Updated.
8433         * src/roff/troff/div.cc (space_request, flush_output): Use
8434         `environment::add_html_tag()'.
8435         * src/roff/troff/input.cc: Updated.
8436         New variable `html_level' to indicate nested `html-begin' requests.
8437         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8438         (non_interpreted_char_node, token_node, non_interpreted_node): Add
8439         `force_tprint()' method.
8440         (token::next): Handle `\O'.
8441         (do_suppress): Implement it.
8442         (html_begin, html_end, html_image): New functions.
8443         (init_output_requests): Renamed to ...
8444         (init_html_requests): this.
8445         (main): Use it.
8446         (macro::append_str, macro::append_unsigned, macro::append_int): New
8447         methods.
8448         New variable `output_low_mark_miny' to limit minimal value of y.
8449         (reset_output_registers): Use it.
8450         (output_request): Removed.
8451         (get_output_registers): New function.
8452         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8453         (*_node): Added `force_tprint()' if necessary.
8454         (special_node): New elements `tf' and `get_tfont()'.
8455         (suppress_node): New class.
8456         * src/roff/troff/node.cc:
8457         New global variables `image_no' and `suppress_start_page'.
8458         (real_output_file): New method `is_on()'.
8459         (troff_output_file): New method `start_special(tfont)'.
8460         (troff_output_file::really_print_line): Use `tprint' conditionally.
8461         (real_output_file::print_line): Updated.
8462         (real_output_file::on): Updated.
8463         (*_node): Added `force_tprint()'.
8464         (special_node::special_node): Initializer updated.
8465         (special_node::same, special_node::copy, special_node::tprint_start):
8466         Updated.
8467         (get_reg_int, get_reg_str): New functions.
8468         (suppress_node::*): New methods.
8469         New global variables last_position, last_image_filename;
8470         (min): New inline function.
8471         * src/roff/troff/reg.h, src/roff/troff/request.h,
8472         src/roff/troff/troff.h: Updated.
8474 2001-01-13  Werner LEMBERG  <wl@gnu.org>
8476         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8477         documentation of `asciify' request.
8479 2001-01-12  Werner LEMBERG  <wl@gnu.org>
8481         * src/roff/troff/input.cc: Move definition of special characters
8482         like `ESCAPE_TILDE' to ...
8483         * src/roff/troff/input.h: New file.
8484         * src/roff/troff/Makefile.sub (HDRS): Add it.
8486         Extending the .asciify request to `unformat' space characters also.
8488         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8489         to count input space characters.
8490         Update constructors to take care of it.
8491         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8492         `ESCAPE_SPACE' instead of normal space.
8493         (word_space_node::asciify): New method.
8494         (unbreakable_space_node::asciify): New method.
8495         (word_space_node::merge_space): New method.
8496         * src/roff/troff/env.cc (environment::space_newline,
8497         environment::space): Add code to initialize `num_spaces' (using the
8498         constructor of `word_space_node').
8499         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8500         Document it.
8502 2001-01-09  Werner LEMBERG  <wl@gnu.org>
8504         * man/groff_char.man: Use table header traps only conditionally.
8506 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
8508         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8510 2001-01-08  Werner LEMBERG  <wl@gnu.org>
8512         Introducing the `box' and `boxa' requests which are similar to
8513         `di' resp. `da' but omitting a partially filled line (which is
8514         restored after ending the diversion).
8516         * src/roff/troff/div.h (diversion): Add elements to save partially
8517         filled line.
8518         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8519         partially filled line.
8520         (divert, divert_append): Updated.
8521         (box, box_append): New functions.
8522         (init_div_requests): Use them.
8523         * src/roff/troff/env.h (environment): do_divert() is now a friend.
8524         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8526         * doc/groff.texinfo: Fix documentation of `lf' request.
8528 2000-12-25  Werner LEMBERG  <wl@gnu.org>
8530         * src/roff/troff/troff.man, NEWS: Document `writem' request.
8532 2000-12-21  Werner LEMBERG  <wl@gnu.org>
8534         Ignore `ss' request if in compatibility mode.
8536         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8537         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8538         * src/roff/troff/env.cc (space_size): Use it.
8540         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8541         `ss' request in nroff mode.
8543         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8544         changes.
8546 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
8548         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8550 2000-12-13  Werner LEMBERG  <wl@gnu.org>
8552         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8553         * src/preproc/eqn/neqn.man: Small fixes and additions.
8555 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
8557         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8558         Fixing typo.
8560         * src/preproc/eqn/neqn.man: New file.
8562         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8563         negative' warning.
8565         * tmac/e.tmac: Add `T&' macro.
8566         Fix `indent cannot be negative' warning.
8567         * tmac/s.tmac: Fix `indent cannot be negative' warning.
8569 2000-12-07  Werner LEMBERG  <wl@gnu.org>
8571         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8573 2000-12-06  Werner LEMBERG  <wl@gnu.org>
8575         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8576         `alloca' symbol .
8578         * MORE.STUFF: Added info about deroff for djgpp.
8580         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8581         documentation of -rcR switch.
8583 2000-12-03  Werner LEMBERG  <wl@gnu.org>
8585         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8586         if -rcR=1 (which is now the default in nroff mode), a single, very
8587         long page is created instead of multiple pages: All `ne' and `wh'
8588         requests are put into conditionals; a new macro `an-end' is added to
8589         be called with `em'.
8591         Some other minor cleanups.
8593         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8595 2000-12-02  Werner LEMBERG  <wl@gnu.org>
8597         Fixing a bug which prevented hyphenation in words followed
8598         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8600         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8601         Adding possibly_break_line().
8602         * src/roff/troff/env.h (environment): Make possibly_break_line()
8603         public.
8605         Make `\~' usable in .tr request.
8607         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8608         (token): Add stretchable_space().
8609         * src/roff/troff/input.cc (token::next, token::delimiter,
8610         token::description, process_input_stack, do_translate,
8611         add_to_node_list, token::process): Use it.
8612         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8613         for adjusting the space.
8614         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
8615         for stretchable space.
8616         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8617         (make_node): Add code for stretchable space.
8618         * src/roff/troff/env.cc (environment::add_char): Use it.
8619         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8620         (get_copy, token::next, transparent_translate, asciify): Use it.
8622         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8623         doc/groff.texinfo: Updated.
8624         * man/groff.man: Small reorderings.
8626 2000-11-23  Werner LEMBERG  <wl@gnu.org>
8628         * NEWS: Fixes.
8629         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8630         option.
8631         * src/roff/troff/input.cc (main): Add `config_macro_path' and
8632         `safer_macro_path' to -M option.
8633         * src/roff/troff/troff.man: Fixes.
8635 2000-11-22  Werner LEMBERG  <wl@gnu.org>
8637         Use safer path (except for config files) if -U isn't specified.  Add
8638         a special macro path (without home and current directory) for config
8639         files.  Add home directory to unsafe path for consistency.  Don't
8640         include the home directory in the font path.
8642         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8643         `macro_path'.
8644         * src/include/macropath.h: Add `config_macrp_path'.
8645         * src/libs/libgroff/fontfile.cc: Fix font path.
8646         * src/roff/troff/input.cc (process_startup_file): Use
8647         `config_macro_path'.
8648         (main): Select unsafe path if -U is given.
8650         * src/preproc/eqn/main.cc (main): Fixing search path for
8651         configuration file.
8652         * src/preproc/eqn/eqn.man: Updated.
8654         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8655         Updated.
8657         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8658         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8659         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8660         src/devices/grotty/grotty.man: Updated.
8662         * Makefile.in: Fix comments.
8664 2000-11-17  Werner LEMBERG  <wl@gnu.org>
8666         * tmac/safer.tmac: Empty file added (again) for compatibility
8667         reasons.
8668         * tmac/Makefile.sub: Updated.
8670 2000-11-16  Werner LEMBERG  <wl@gnu.org>
8672         * src/devices/grodvi/dvi.cc (main),
8673         src/devices/grohtml2/post-html.cc (main),
8674         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8675         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8676         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8677         (main), src/preproc/html2/pre-html.cc (main),
8678         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8679         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8680         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8681         (main), src/utils/hpftodit/hpftodit.cc (main),
8682         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8683         (main), src/utils/lookbib/lookbib.cc (main),
8684         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8685         (main): Use stdout for -v.
8686         * src/roff/groff/groff.cc (run_commands),
8687         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8688         to make direct printing to stdout possible.
8689         * src/roff/groff/pipeline.h: Updated.
8691         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8692         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8693         * src/utils/afmtodit/afmtodit.man: Updated.
8695         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8696         (version): New function.
8697         (usage): Updated.
8698         * src/utils/addftinfo/addftinfo.man: Updated.
8700         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8701         Fixing copyright dates.
8703         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8704         replacing it.
8706         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8707         version_string.
8709         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8711 2000-11-15  Werner LEMBERG  <wl@gnu.org>
8713         In all programs, make -v return immediately with exit status 0 to
8714         be compliant with the GNU standard.
8716         * src/devices/grodvi/dvi.cc (main),
8717         src/devices/grohtml2/post-html.cc (main),
8718         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8719         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8720         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8721         (main), src/preproc/html2/pre-html.cc (main),
8722         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8723         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8724         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8725         (main): Implement it.
8726         * NEWS: Updated.
8728         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
8729         and postprocessors to the -v option.
8731         * src/roff/grog/grog.pl: Implement -v.
8732         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8733         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8735         * src/roff/nroff/nroff.sh: Implement -v.
8736         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8737         * src/roff/nroff/nroff.man: Updated.
8738         
8739         * src/preproc/eqn/main.cc (main): Fix comment typo.
8741         * MORE.STUFF: Added info about djgpp port of grap.
8743 2000-11-14  Werner LEMBERG  <wl@gnu.org>
8745         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8746         mode (or rather, implemented non-compatibility mode).
8747         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8749         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8750         replacing it -- we don't find gxditview otherwise.
8751         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8753         * src/preproc/pic/depend: Removed.  Unnecessary.
8755         Implemented dummy keyword `solid' in pic for compatibility with
8756         AT&T pic.
8758         * lex.cc (lookup_keyword): Added `solid'.
8759         * pic.y: Added SOLID with dummy rule.
8760         * pic.cc, pic_tab.h: Regenerated.
8761         * doc/pic.ms: Updated.
8763 2000-11-13  Werner LEMBERG  <wl@gnu.org>
8765         For security reasons, don't use the current directory but the home
8766         directory while searching and scanning troffrc and troffrc-end.
8767         Similarly, replace the current directory with the home directory
8768         in the font path.
8770         * Makefile.in (fontpath, tmacpath): Remove current directory.
8772         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8773         two parameters `add_home' and `add_current'.
8774         (search_path::~search_path, search_path::command_line_dir,
8775         search_path::open_file): Remove tests for `dirs' being zero.
8776         * src/include/searchpath.h: Adjust.
8777         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8778         `safer_macro_path'.
8779         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8781         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8782         * src/roff/troff/input.cc: Use `mac_path', initialized with
8783         `macro_path'.
8784         (process_startup_file): Set `mac_path' to `safer_macro_path'.
8785         * src/roff/troff/env.cc: Use `mac_path'.
8787         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8789         * NEWS, man/roff.man, src/roff/troff/troff.man,
8790         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8791         Updated.
8793 2000-11-12  Werner LEMBERG  <wl@gnu.org>
8795         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8797         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8798         * configure.in: Fix typo in comment.
8799         * configure: Regenerated.
8801         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8802         copyright dates.
8804 2000-11-08  Werner LEMBERG  <wl@gnu.org>
8806         Add system tmac directory (/usr/local/lib/groff/site-tmac).
8808         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8809         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8810         $(systemtmacdir).
8811         Use @libdir@.
8812         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8813         * tmac/Makefile.sub (install_data): Create
8814         $(systemtmacdir) and $(localtmacdir).
8815         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8816         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8817         NEWS, doc/groff.texinfo: Updated and minor fixes.
8819         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8820         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8821         $(systemtmacdir) since the wrapper files are platform-dependent.
8823 2000-11-01  Werner LEMBERG  <wl@gnu.org>
8825         * doc/groff.texinfo: Fix typo.
8827 2000-10-26  Werner LEMBERG  <wl@gnu.org>
8829         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
8830           tmac.doc.old -> doc-old.tmac
8831           tmac.an.old  -> an-old.tmac
8833         * tmac/tmac.*: Moved to ...
8834         * tmac/*.tmac: this.
8835         * tmac/man.local: Fix comment.
8836         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8837         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
8838         Added some `FILES' sections.  More use of @...@ directives.  Other
8839         minor updates.
8840         * arch/djgpp/README, font/devutf8/NOTES: Updated.
8841         * doc/homepage.ms, doc/groff.texinfo: Updated.
8842         * man/groff.man, man/roff.man: Updated.
8843         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8844         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8845         src/devices/grotty/grotty.man: Updated.
8846         * src/preproc/pic/pic.man: Updated.
8847         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8848         instead of -mdoc.old.
8849         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8850         * src/roff/nroff/nroff.man: Updated.
8851         * NEWS: Updated.
8853         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8855         * tmac/mm.diff: Removed -- it has no use now since the mm package
8856         is part of groff.
8858         * tmac/*: Removed trailing spaces.
8860         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8861         the tmac subdirectory also).
8863         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8864         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8865         stuff since it is no longer needed.
8867         * README, PROBLEMS: Updated.
8869 2000-10-25  Werner LEMBERG  <wl@gnu.org>
8871         Invert current behaviour: Search first FOOBAR.tmac, then
8872         tmac.FOOBAR.
8874         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8875         (open_mac_file, macro_source): Implement it.
8876         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8877         doc/groff.texinfo, NEWS: Document it.
8879         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8880         Small documentation improvements.
8882         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8883         subdirectory also).
8885         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8887 2000-10-24  Werner LEMBERG  <wl@gnu.org>
8889         Add local tmac directory (groff/site-tmac).
8891         * Makefile.in: Add $(localtmacdir).
8892         (uninstall_dirs): Add $(localtmacdir).
8893         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8894         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8895         in $(localtmacdir).  Create $(localtmacdir).
8896         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8897         Updated and minor fixes.
8899         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8901         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8903 2000-10-23  Werner LEMBERG  <wl@gnu.org>
8905         Move hyphen.us to tmac directory.
8907         * src/roff/troff/hyphen.us: Removed.
8908         * src/tmac/hyphen.us: Added.
8909         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8911         Change installation structure for data files from .../groff/... to
8912         .../groff/<version><revision>/... to be conform with other GNU
8913         programs.
8915         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8916         doc/Makefile: Implement it.
8917         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8918         * configure: Updated.
8919         * arch/djgpp/README, font/devutf8/NOTES: Use it.
8920         * NEWS: Document it.
8921         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8922         @MACRODIR@ instead of hard-coded directories.
8924 2000-10-22  Werner LEMBERG  <wl@gnu.org>
8926         Implement $GROFF_BIN_PATH environment variable (which defaults to
8927         $bindir) used for child programs of groff and similar wrappers.
8929         * gendefs.sh: Improve documentation.
8930         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8931         src/preproc/eqn/Makefile.sub (neqn),
8932         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8933         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8934         $GROFF_BIN_PATH.
8935         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8936         $GROFF_PATH__ (the latter for communication with troff).
8937         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8938         set.
8939         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8940         doc/groff.texinfo: Document it.
8942         * doc/groff.texinfo: Improve documentation of troff's -a option.
8944 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
8946         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8947         non-intrusive eol marker.
8948         (troff_output_file::determine_line_limits): New function.
8949         (troff_output_file::draw): Use it.
8950         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8951         output_pending_lines() instead of output_line().
8952         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8953         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8954         createImage): Small fixes.
8955         
8956 2000-10-14  Werner LEMBERG  <wl@gnu.org>
8958         Replace tmac.safer with a real secure solution.
8960         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8961         system_request, pipe_output): Disable requests if in safer mode.
8962         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8963         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8964         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8965         doc/groff.texinfo, src/roff/groff/groff.man,
8966         src/roff/troff/troff.man, arch/djgpp/README: Updated.
8968         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8969         (resource_manager::output_prolog): Replace setenv() with putenv().
8971 2000-10-09  Werner LEMBERG  <wl@gnu.org>
8973         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8974         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8975         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8976         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8977         compilation errors with some compilers.  It seems that this code
8978         is no longer necessary -- if yes, it is easy to add some #ifdef's
8979         for that particular old-fashioned compiler.
8981         * MORE.STUFF: Added info about Meta-tbl.
8983         * doc/groff.texinfo: Added more info about `.if "..."..."'.
8985 2000-10-07  Werner LEMBERG  <wl@gnu.org>
8987         Adding a new escape sequence \B'...': If the string between
8988         the delimiters is a valid numeric expression, return the character
8989         `1', and `0' otherwise.  This is an analogon to \A.
8991         * src/roff/troff/input.cc (do_expr_test): Implement it.
8992         (token::next): Use it.
8993         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8995         * tmac/tmac.trace: Made independent from escape character.
8997 2000-10-06  Werner LEMBERG  <wl@gnu.org>
8999         Adding a new request .dei: define indirect.  The first and second
9000         parameter of .dei are taken from string registers instead directly;
9001         this very special request is needed to make tmac.trace independent
9002         from the escape character (which might even be disabled).
9004         * src/roff/troff/input.cc (do_define_macro): Implement it.
9005         (define_macro_indirect): New function.
9006         (init_input_requests): Use it.
9008         Adding two requests .ecs and .ecr: Save and restore the escape
9009         character.  These two requests are needed to make tmac.trace
9010         independent from the escape character (which might even be
9011         disabled).
9013         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9014         Implement it.
9015         (init_input_requests): Use it.
9017         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9019 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
9021         Adding a new option -P and new environment variable GROPS_PROLOGUE
9022         to grops, selecting a different prologue file (minor modifications
9023         by WL).
9025         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9026         src/devices/grops/ps.cc (main): Implement it.
9027         * src/devices/grops/grops.man, NEWS: Document it.
9029 2000-09-22  Werner LEMBERG  <wl@gnu.org>
9031         * INSTALL: Add info about selecting paper format.
9033 2000-09-21  Werner LEMBERG  <wl@gnu.org>
9035         * src/roff/troff/input.cc (main): Fixing compiler warning.
9036         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9037         strings.h from the former to the latter.
9038         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9039         stuff from the former to the latter.
9041 2000-09-11  Werner LEMBERG  <wl@gnu.org>
9043         Implementing two new requests .tm1 and .tmc: The former is similar
9044         to .tm but can output leading spaces; its syntax is similar to
9045         defining a string, i.e., a `"' can be used to mark the beginning of
9046         the string to be written to stderr: `.tm1 " test'.  The latter is
9047         similar to .tm1 but doesn't write out a final newline character.
9049         * src/roff/troff/input.cc (terminal1, terminal_continue,
9050         do_terminal): New functions.
9051         (init_input_requests): Use them.
9052         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9054 2000-09-09  Werner LEMBERG  <wl@gnu.org>
9056         * tmac/groff_mdoc.samples.man: Small fixes.
9058 2000-09-08  Werner LEMBERG  <wl@gnu.org>
9060         * tmac/groff_mdoc.man: Fixing typo.
9062 2000-09-02  Werner LEMBERG  <wl@gnu.org>
9064         Implementing a .nop request which does nothing.
9066         * src/roff/troff/input.cc (nop_request): New function.
9067         (init_input_requests): Use it.
9068         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9070 2000-09-01  Werner LEMBERG  <wl@gnu.org>
9072         * doc/groff.texinfo: Added some comments.
9074 2000-08-30  Werner LEMBERG  <wl@gnu.org>
9076         * src/roff/troff/TODO: Updated.
9078 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9080         * doc/groff.texinfo: Fix comment how to compile the DVI file.
9082 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9084         * font/devps/generate/Makefile (SHELL): Define explicitly to
9085         "/bin/sh", for non-Unix platforms.
9086         (extraclean): Use a more portable "" quoting instead of a
9087         backslash (which doesn't work on DOS/Windows).
9088         
9089         * font/devlj4/generate/Makefile (extraclean): Ditto.
9091         * font/devdvi/generate/Makefile (extraclean): Ditto.
9093 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9095         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9096         src/roff/troff/troff.man: Document Eli's latest changes.
9098 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9100         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9101         macro file names of the form NAME.tmac as well as tmac.NAME.
9103 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9105         * src/include/posix.h: Remove definition of FILENAME_MAX.
9107         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9108         `sys_fatal' and `stop' function().
9110         * test-groff: Updated.
9112 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
9114         Added the new troff command .output <arg> to suppress output (while
9115         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9116         registers (for passing the output dimensions to the output device).
9118         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9119         parameter.
9120         * src/roff/troff/node.h, src/roff/troff/node.cc
9121         (troff_output_file::really_print_line,
9122         ascii_output_file::really_print_line,
9123         supress_output_file::really_print_line): Use `width' parameter.
9124         (troff_output_file::really_on, troff_output_file::really_off,
9125         output_file::on, output_file::off, real_output_file::on,
9126         real_output_file::off, real_output_file::really_on,
9127         real_output_file::really_off): New functions.
9128         (real_output_file:public output_file): New variable `output_on'.
9129         (real_output_file::begin_page, real_output_file::copy_file,
9130         real_output_file::transparent_char, real_output_file::print_line):
9131         Use it.
9132         (real_output_file::print_line): Use check_output_limits.
9133         * src/roff/troff/reg.h, src/roff/troff/request.h,
9134         src/roff/troff/input.cc (assign_registers): New function to remove
9135         two `goto's.
9136         (do_ps_file): Use it.
9137         (check_output_limits, reset_output_registers, output_request,
9138         init_output_requests): New functions.
9139         (init_input_requests): Updated.
9141         Added new grohtml2 device and html2 preprocessor (coding
9142         not yet finished) which will eventually replace grohtml.
9144         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9145         Updated.
9146         * src/include/htmlindicate.h, src/include/htmlindicate
9147         (html_begin_suppress, html_end_suppress): New functions.
9148         * src/preproc/tbl/main.cc: Use it.
9149         * src/roff/groff/groff.cc: Add support for html2 device (which will
9150         automatically invoke the html2 preprocessor).
9151         * src/roff/troff/input.cc (is_html2): New variable.
9152         * src/roff/troff/troff.h, src/roff/troff/env.h,
9153         src/roff/troff/env.cc (environment::add_html_tag): New function
9154         (uses `is_html2').
9155         (environment::do_break): Use it.
9156         * font/devhtml2/*: New files.
9157         * src/devices/grohtml2: New device.
9158         * src/preproc/html2: New preprocessor.
9159         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9161 2000-08-23  Werner LEMBERG  <wl@gnu.org>
9163         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9165 2000-08-22  Werner LEMBERG  <wl@gnu.org>
9167         * src/include/lib.h: Provide a fix for IRIX to not include
9168         groff-getopt.h.
9170 2000-08-18  Werner LEMBERG  <wl@gnu.org>
9172         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9173         since some non-GNU sed programs can't handle null regexps.
9174         * configure, src/preproc/eqn/Makefile.sub,
9175         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9177         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9178         bug (string.h and strings.h are both needed according to latest
9179         POSIX standard).
9181         * MORE.STUFF: Added info about unroff and troffcvt.
9183 2000-08-08  Werner LEMBERG  <wl@gnu.org>
9185         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9186         used before -ms.
9188         * tmac/tmac.man.old: Remove unused number register.
9190         * tmac.doc: Minor documentation fix.
9192 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9194         * src/roff/groff/pipeline.c (is_system_shell):
9195         Fix typo: "monocased_shell" no longer exists.
9197 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9199         Remove FILENAME_MAX limits.
9201         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9202         that the argument length is less than FILENAME_MAX.
9203         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9204         Use struct hack to allocate and free file name.
9205         (struct xtmpfile_list): fname is now part of the structure,
9206         not a pointer to another string.
9208 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
9210         * src/include/posix.h: Add a default value for FILENAME_MAX.
9212 2000-08-06  Paul Eggert  <eggert@twinsun.com>
9214         Add support for new BSD-style man pages (with ".Dd" instead of
9215         ".TH"), so that "groff -man" understands both styles, even
9216         when running "groff -man" on a host whose system man page
9217         macros don't support ".Dd".
9219         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9220         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9221         in case the system man macros don't define Dd or TH.
9223         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9224         * tmac/tmac.an: New one-line file.
9225         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9227 2000-08-06  Werner LEMBERG  <wl@gnu.org>
9229         * src/roff/troff/troff.man: Fixing typos.
9231 Version 1.16.1 released
9232 =======================
9234 2000-07-31  Werner LEMBERG  <wl@gnu.org>
9236         Preparing release 1.16.1.
9238         * REVISION: Revision number set to 1.
9239         * MORE.STUFF: Added info about port to DOS.
9240         * NEWS, win32-diffs: Updated.
9242         * src/include/nonposix.h: Remove first line -- this file is used
9243         in C also.
9245         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9246         link to it.
9248 2000-07-30  Werner LEMBERG  <wl@gnu.org>
9250         * doc/texinfo.tex: Update to latest version.
9252 2000-06-28  Paul Eggert  <eggert@twinsun.com>
9254         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9255         commands that fail.  Don't assume that "export a=b" is valid shell
9256         syntax.  This is needed for Solaris 2.5.1.
9258         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9259         comment about missing Solaris headers.
9261         * PROBLEMS: Add section about problems with Sun Make and VPATH.
9263 2000-06-25  Werner LEMBERG  <wl@gnu.org>
9265         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9266         SET_BINARY().
9268         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9270         * win32-diffs: Updated.
9271         * README.WIN32: Added CRs to make all Windows editors happy.
9273         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9274         src/roff/groff/pipeline.c).
9276 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
9278         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9279         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9281 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
9283         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9284         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9285         are binary files.
9286         (main): Support non-Posix systems with several different styles of
9287         slash characters in file names.
9289         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9290         (main) [SET_BINARY]: Switch stdin into binary mode.
9292         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9293         (main): Support file names with several possible slash-type
9294         characters, as given by DIR_SEPS[] in nonposix.h.
9295         (main) [__MSDOS__]: If renaming the temporary index file fails
9296         because it has more than one dot in its trunk, replace the dot
9297         with an underscore and try again.
9298         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
9299         Newline.
9300         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9302         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9303         (File::File): Open the input file in binary mode.  Strip CR
9304         characters from each CR-LF pair.
9305         (xbasename): Support file names with several possible slash-type
9306         characters, as given by DIR_SEPS[] in nonposix.h.
9308         * src/include/Makefile.sub (HDRS): Add nonposix.h.
9310         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9311         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9312         [!_POSIX_VERSION]: Define for traditional Unix systems.
9313         (real_output_file::real_output_file): Remove the MSVC-specific
9314         call to popen, use instead POPEN_WT, appropriately defined on
9315         nonposix.h.  #include nonposix.h.
9316         (real_output_file::~real_output_file): Remove the MSVC-specific
9317         call to pclose, a suitable macro is now defined on nonposix.h.
9318         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9319         and WEXITSTATUS instead of assuming traditional Unix
9320         interpretation of the status returned by pclose.
9322         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9323         call to popen, use POPEN_RT instead (appropriately defined on
9324         nonposix.h).  #include nonposix.h.
9325         (ps_bbox_request): Open the PostScript file in binary mode.
9326         Close the file after processing it.
9327         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9328         nonposix.h.
9330         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9331         A version of run_pipeline that doesn't use `fork'.
9332         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9333         (system_shell_name, system_shell_dash_c)
9334         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9335         the ugliness of testing DOS/Windows file names for equality, and
9336         support both stock shells and ports of Unix shells.
9338         * src/roff/groff/groff.cc: #include nonposix.h.
9339         (BSHELL): Definition moved to nonposix.h.
9340         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
9341         instead of a literal "-c".
9342         (xbasename): Support file names with several possible slash-type
9343         characters, as given by DIR_SEPS[] in nonposix.h.
9344         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9345         of literal strings.
9347         * src/preproc/soelim/soelim.cc: #include nonposix.h.
9348         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9350         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9351         pic_tab.h.
9353         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9355         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9356         eqn_tab.h.
9358         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9360         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9361         P_tmpdir is defined, use it instead of the literal "/tmp".
9362         (remove_tmp_files, add_tmp_file): New functions.
9363         (xtmpfile): Record temporary files and register an atexit function
9364         to delete them explicitly, instead of relying on the OS to do
9365         that, which doesn't work on non-Unix systems.
9367         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9368         (search_path::search_path): Use PATH_SEP instead of a literal
9369         colon.
9370         (search_path::command_line_dir): Ditto.
9371         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9372         to support non-Posix systems.
9374         * src/libs/libbib/search.cc: #include nonposix.h.
9375         (search_list::add_file): Open the file in binary mode.
9377         * src/libs/libbib/linear.cc: #include nonposix.h.
9378         (file_buffer::load): Remove \r characters preceding \n from the
9379         loaded buffer.
9381         * src/libs/libbib/index.cc: #include nonposix.h.
9382         (make_index_search_item): Open index_filename in O_BINARY mode.
9383         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9384         characters before \n characters.
9385         (index_search_item::check_files): Open files in binary mode.
9386         (index_search_item::munge_filename): Support DOS-style file names
9387         with backslashes and drive letters, use IS_ABSOLUTE.
9389         * src/devices/grops/ps.cc: #include nonposix.h.
9390         (main) [SET_BINARY]: Switch stdout to binary mode.
9392         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9393         (main) [SET_BINARY]: Switch stdout to binary mode.
9395         * src/devices/grolbp/lbp.cc: #include nonposix.h
9396         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9398         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9399         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9400         nonposix.h).
9401         (main) [SET_BINARY]: Switch stdout to binary mode.
9402         [_MSC_VER]: Remove an explicit call to _setmode.
9404         * src/include/nonposix.h: New file.
9406         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9407         operation when building with DJGPP.
9408         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9409         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9410         ENVSETUP.
9412         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9413         MS-DOS.
9414         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9415         etc. can include a semi-colon on DOS/Windows.
9416         (depend.temp): Use depend1.temp instead of depend.temp1, to
9417         prevent files from overerwiting each other on 8+3 filesystems.
9419         * gendef.sh (t): Change definition to work with DOS/Windows.
9421         doc/groff.texinfo: Apart of some typo corrections, I also changed
9422         some index entris, to make them more non-ambiguous, and also put
9423         @ignore around some parts that are not yet written, to allow the
9424         Info output be readable.
9426 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9428         Replaced specific checks for function declarations with a generic
9429         routine taken from GNU bfd.
9431         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9432         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9433         * configure.in: Use it.
9434         * src/devices/grolbp/lbp.cc, src/include/lib.h,
9435         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9436         src/roff/groff/groff.cc: Use it.
9437         * Makefile.in, configure: Updated.
9439 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
9441         * src/devides/grolbp/lbp.h: Removed unused variables.
9443 2000-05-31  Keith Thompson  <kst@sdsc.edu>
9445         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9446         strncasecmp().
9448 2000-05-31  Werner LEMBERG  <wl@gnu.org>
9450         * aclocal.m4 (GROFF_SRAND): New function to test the return value
9451         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9452         * configure.in: Use it.
9453         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9454         * configure, Makefile.in: Updated.
9456         * configure.in: Add test for strncasecmp().
9457         * src/include/lib.h: Use it.
9459 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
9461         * src/preproc/grn/Makefile.sub: Add MLIB.
9463 2000-05-29  Nix  <nix@esperi.demon.co.uk>
9465         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9467 2000-05-29  Werner LEMBERG  <wl@gnu.org>
9469         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9471         * PROBLEMS: Small update.
9473         * src/devices/grolbp/lbp.cc: Various small fixes.
9475 2000-05-28  Keith Thompson  <kst@sdsc.edu>
9477         * src/roff/nroff/nroff.sh: Fix main loop syntax.
9479         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9481 2000-05-25  Werner LEMBERG  <wl@gnu.org>
9483         * man/roff.man: Removed unused macro.
9485 2000-05-24  Werner LEMBERG  <wl@gnu.org>
9487         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
9488         This is needed e.g. if you do
9489         `make distclean; ./configure; make dist'.
9491 Version 1.16 released
9492 =====================
9494 2000-05-23  Werner LEMBERG  <wl@gnu.org>
9496         Adding font CWI (constant width italic) to devdvi.
9498         * font/devdvi/CWI: New file.
9499         * font/devdvi/generate/Makefile: Add generating rule.
9500         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9501         tmac/tmac.dvi: Use it.
9502         * NEWS: Announce it.
9504         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9505         * font/devlj4/generate/Makefile: Cosmetic changes only.
9507         * man/groff.man: Removed most of the redundant description of
9508         special characters (which is in groff_char.man).  Added font
9509         translation CB->CR for devdvi.  Other minor fixes.
9511         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9512         (registered) symbols.
9514 2000-05-22  Werner LEMBERG  <wl@gnu.org>
9516         * doc/Makefile: Added rule for creating info files.
9518         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
9519         AMS font metrics.
9520         * font/devdvi/generate/Makefile: Fixed dependencies.
9522         * font/devps/*: Regenerated.  Heavy changes for Bookman and
9523         NewCentury Schoolbook!
9524         * font/devps/generate/afmname: Will now run with GNU awk.
9525         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9526         * font/devps/generate/Makefile: Cosmetic changes only.
9528 2000-05-21  Werner LEMBERG  <wl@gnu.org>
9530         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9531         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
9532         `.SS' now produces a heading with a smaller size than `.SH'. 
9533         Completely formatted.
9534         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9536         * man/groff.man: Improved table appearance.  Use of `eo' request
9537         to reduce number of doubled backslashes in macro definitions.
9538         Replacing `\e' with `\(rs'.  Other minor fixes.
9540         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9541         to have correct line number.
9543         * INSTALL: Small improvement.
9545 2000-05-20  Bernd Warken  <bwarken@mayn.de>
9547         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9548         WL).
9550 2000-05-19  Bernd Warken  <bwarken@mayn.de>
9552         * man/groff.man: Complete update (with a lot of corrections by WL).
9554 2000-05-18  Werner LEMBERG  <wl@gnu.org>
9556         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9558         * font/*/*: Implement it.
9559         * man/groff_char.man, NEWS: Document it.
9561         * src/include/unix.h: Removed.  It isn't used.
9563         * doc/groff.texinfo: Slight improvements.
9565 2000-05-17  Werner LEMBERG  <wl@gnu.org>
9567         * README, win32-diffs: Small fixes and improvements.
9569 2000-05-16  Werner LEMBERG  <wl@gnu.org>
9571         * FDL: New file (the Free Documentation License version 1.1).
9573         * doc/groff.texinfo: Added many start-up values for gtroff.
9574         Some structural improvements of the source code.
9576 2000-05-15  Werner LEMBERG  <wl@gnu.org>
9578         * src/roff/troff/input.cc: Added small comment about troffrc-end.
9579         * src/roff/troff/troff.man: Added info about troffrc-end.
9581 2000-05-14  Werner LEMBERG  <wl@gnu.org>
9583         * Makefile.in (EXTRADIRS): Fix typos.
9584         (dist): Handle deletion of old .tar.gz file correctly.
9585         (DISTDIRS): Include all tty output devices.
9587         * doc/groff.texinfo: Adding more cross references; countless other
9588         fixes.
9590 2000-05-13  Werner LEMBERG  <wl@gnu.org>
9592         * MORE.STUFF: Added Robert Marks's utilities.
9594 2000-05-12  Werner LEMBERG  <wl@gnu.org>
9596         Added win32 port contributed by Blake McBride
9597         <blake@florida-software.com>.
9599         * README.WIN32, win32-diffs: New files.
9600         * NEWS: Updated.
9602         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9603         (tmove, tmove2): Added parentheses to avoid compiler warnings.
9604         (change): Removed unused variables.
9606         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9607         (savebounds): Changed return value from `int' to `void'.
9608         * src/preproc/grn/hdb.cc: Ditto.
9610         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9611         final backslash in comment to avoid compiler warning.
9613         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9615         * doc/groff.texinfo: More fixes.
9617 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
9619         * tmac/tmac.doc: Documentation fix.
9621 2000-05-11  Werner LEMBERG  <wl@gnu.org>
9623         * doc/groff.texinfo: Reading the source code shows up a lot of
9624         omissions and incorrect data...  More conversion to @Deffn macros.
9626 2000-05-10  Werner LEMBERG  <wl@gnu.org>
9628         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9629         dependency.
9631         * src/roff/troff/request.h: Removing unused `no_break_flag'.
9633 2000-05-09  Werner LEMBERG  <wl@gnu.org>
9635         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9636         improvements.
9638         * doc/groff.texinfo: Extended history section.  More conversion to
9639         @Deffn macros.  More .tr documentation.
9641 2000-05-07  Werner LEMBERG  <wl@gnu.org>
9643         * doc/groff.texinfo: Completed tab section.  Added info about
9644         fields.
9646 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
9648         * PROBLEMS: Describe configure script fix for OS/390 Unix.
9650 2000-05-05  Werner LEMBERG  <wl@gnu.org>
9652         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9653         LaTeX 2e).
9654         * NEWS: Document it.
9656         * man/troff.man: Minor optical improvements.
9658 2000-05-03  Werner LEMBERG  <wl@gnu.org>
9660         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9662         * font/*/*: Implement it.
9663         * man/groff_char.man, NEWS: Document it.
9665 2000-05-02  Werner LEMBERG  <wl@gnu.org>
9667         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9668         expansion.
9669         * NEWS: Document the three new man pages.
9671         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9672         * configure: Updated.
9674         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9676 2000-05-01  Werner LEMBERG  <wl@gnu.org>
9678         Added grap support to grog.
9680         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9681         * src/roff/grog/grog.man: Document it.
9683         * doc/groff.texinfo, NEWS: Add info about grap support.
9685         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9686         (with slight fixes by me).
9688         * tmac/groff_tmac.man: New file documenting tmac mechanism.
9689         * tmac/Makefile.sub: Add groff_tmac.man.
9690         * man/roff.man: New file giving overview of roff system.
9691         * man/troff.man: A short reference of troff.
9692         * man/Makefile.sub: Add roff.man and troff.man.
9694 2000-04-30  Werner LEMBERG  <wl@gnu.org>
9696         Added grap support to groff.
9698         * src/roff/groff/groff.cc: Implement it.
9699         * src/roff/groff/groff.man: Document it.
9701         * src/devices/grotty/grotty.man: Add cp1047 device.
9702         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9703         Ditto.
9704         * src/roff/groff/groff.man: Ditto.
9705         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9706         * doc/groff.texinfo: Ditto.
9708         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9709         for cp1047.
9711 2000-04-29  Werner LEMBERG  <wl@gnu.org>
9713         * man/groff_char.man: Add `pc' glyph.
9714         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9715         * tmac/tmac.tty: Add `pc' glyph.
9716         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
9717         we use cp1047 output device.
9719         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9720         there are still hardcoded latin1->unicode values in utf8's font
9721         definition files.
9722         * configure: Updated.
9723         * NEWS: Minor clarification.  Updated.
9725         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
9726         Unix.
9728 2000-04-28  Werner LEMBERG  <wl@gnu.org>
9730         Adding EBCDIC code page 1047.
9732         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9733         font/devcp1047/DESC.proto: New files.
9735         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9736         either ascii/latin1 or cp1047.
9737         * Makefile.in: Use it.
9738         * configure: Updated.
9740         Replacing and/or adding `md' (mathdot) glyph with `pc'
9741         (periodcentered) in all text fonts.
9743         * font/*/*: Change it.
9745 2000-04-27  Werner LEMBERG  <wl@gnu.org>
9747         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9749         * configure.in: Add check for strings.h.
9750         * src/include/driver.h: Use HAVE_STRINGS_H.
9751         * src/devices/grolbp/lpb.cc: Remove string.h.
9753         * src/include/groff-getopt.h: New file.  It will be used instead of
9754         getopt.h (to be included in lib.h) to avoid endless problems with
9755         picky C++ compilers.
9756         * src/include/lib.h: Use groff-getopt.h.
9757         * src/include/Makefile.sub: Updated.
9759         * configure: Updated.
9760         * Makefile.in: Updated.
9762         * NEWS: Mention EBCDIC support.
9764 2000-04-26  Werner LEMBERG  <wl@gnu.org>
9766         * TODO: Some additions.
9768 2000-04-25  Werner LEMBERG  <wl@gnu.org>
9770         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9771         of mso request.
9773 2000-04-23  Werner LEMBERG  <wl@gnu.org>
9775         * src/roff/troff/troff.man: Minor fixes.
9777 2000-04-22  Werner LEMBERG  <wl@gnu.org>
9779         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9780         `.T' string register and the incompatible definition of the `.T'
9781         number register (compared to Unix troff).
9783         * man/groff_char.man: Add some missing characters.
9784         * font/devutf8/NOTES: Update.
9786 2000-04-21  Werner LEMBERG  <wl@gnu.org>
9788         * src/include/htmlindicate.h, src/include/lib.h,
9789         src/include/posix.h: Fix copyright.
9791         * src/include/Makefile.sub: Update.
9793 2000-04-20  Werner LEMBERG  <wl@gnu.org>
9795         * src/roff/troff/input.cc (input_char_description): Removing
9796         superfluous space char.
9798         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9800         * doc/groff.texinfo: Document EBCDIC.
9802 2000-04-19  Werner LEMBERG  <wl@gnu.org>
9804         Introducing `shc' as the glyph name for the soft hyphen character.
9806         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9807         font/devlatin1/R.proto: Use it.
9809         * NEWS: Updated.
9811 2000-04-18  Werner LEMBERG  <wl@gnu.org>
9813         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9814         dependency on ASCII order.
9816 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
9818         * src/libs/libgroff/illegal.c: Added EBCDIC table.
9819         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9821         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9822         to increase portability.
9824 2000-04-15  Werner LEMBERG  <wl@gnu.org>
9826         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9827         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9828         the generic `\n' if under OS/390 Unix.
9830         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9832         * configure: Regenerated.
9834 2000-04-14  Werner LEMBERG  <wl@gnu.org>
9836         * doc/groff.texinfo: More conversions to @Deffn.
9838 2000-04-12  Werner LEMBERG  <wl@gnu.org>
9840         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9841         with `:'.
9843         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9845 2000-04-10  Werner LEMBERG  <wl@gnu.org>
9847         * doc/groff.texinfo: More conversions to @Deffn.
9849 2000-04-08  Werner LEMBERG  <wl@gnu.org>
9851         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9852         Updated to latest version (glibc 2.1.3).
9854 2000-04-07  Werner LEMBERG  <wl@gnu.org>
9856         * doc/Makefile (clean): Include more index files.
9857         Add rule texinfo->dvi.
9859 2000-04-05  Werner LEMBERG  <wl@gnu.org>
9861         * doc/groff.texinfo: Added new index `op' for operators.  More
9862         info on end of sentence characters.  More use of @Deffn.
9864 2000-03-30  Werner LEMBERG  <wl@gnu.org>
9866         * */*.man: Adding a note that a whitespace can be inserted between
9867         a command line option and its parameter -- we are using GNU getopt.
9869         * src/roff/groff/groff.man: Add example of `-m mandoc'.
9871 2000-03-28  Werner LEMBERG  <wl@gnu.org>
9873         Correct anachronism of calling the man macro file with `-man'
9874         instead of `-m man' etc.
9876         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9877         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9878         load tmac.<package>.
9880         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
9882         * NEWS: Updated.
9884         * doc/groff.texinfo: Updated.
9886         * tmac/groff_man.man: Copyright added.
9888 2000-03-27  Werner LEMBERG  <wl@gnu.org>
9890         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9891         typeset the request resp. escape name with a tt font -- due to a
9892         bug in texinfo.tex it is necessary to use the `-e' switch with
9893         texi2dvi.
9895         Improving info about usage of groff units.
9897         Other minor fixes.
9899 2000-03-20  Werner LEMBERG  <wl@gnu.org>
9901         * doc/groff.texinfo: Added section about man macro package
9902         (I've basically taken groff_man.man).  Introducing new indices `ma'
9903         for macros/strings and `gl' for glyph names.  Other minor fixes.
9905         * tmac/groff_man.man: Fixed some typos.
9907 2000-03-19  Werner LEMBERG  <wl@gnu.org>
9909         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9910         Other minor fixes.
9912         * doc/texinfo.tex: New file.
9914 2000-03-18  Werner LEMBERG  <wl@gnu.org>
9916         * doc/groff.texinfo: Improved section on number registers.  Other
9917         minor updates.
9919 2000-03-16  Werner LEMBERG  <wl@gnu.org>
9921         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
9922         synopsis.
9924         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9925         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9926         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9927         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9929         * src/preproc/grn/grn.man: Better synopsis; added copyright.
9931         * src/roff/grog/grog.man: Updated copyright date.
9933 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
9935         * configure.in: Added test for strdup.
9937         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9938         is available.
9940         Replaced dynamic allocation of arrays `[...]' with `new' operator.
9942         Other minor fixes.
9944 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
9946         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9948 2000-03-11  Werner LEMBERG  <wl@gnu.org>
9950         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9951         compilers silent.
9952         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9953         * src/include/lib.h: Remove some spaces.
9955 2000-03-10  Werner LEMBERG  <wl@gnu.org>
9957         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9958         initializers from arguments (some compilers don't like this).
9960 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
9962         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9963         used by pic and eqn to tell grohtml where the graphic regions start
9964         and end.
9965         * src/libs/libgroff/Makefile.sub: Use it.
9966         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9967         graphic_start() and graphic_end() from htmlindicate.cc.
9969 2000-03-09  Werner LEMBERG  <wl@gnu.org>
9971         * tmac/tmac.safer: Will now work correctly in compatibility mode.
9972         * tmac/groff_man.man: More fixes.
9974 2000-03-08  Werner LEMBERG  <wl@gnu.org>
9976         * doc/Makefile: Added texput.log to the `clean' target.
9977         * doc/groff.texinfo: Added info about delimiters for escapes.
9979 2000-03-08  Bernd Warken  <bwarken@mayn.de>
9981         * src/preproc/pic/pic.man: Add info on conversion of pic images to
9982         other graphic formats.
9984 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
9986         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9987         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9988         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9989         files.
9991 2000-03-07  Werner LEMBERG  <wl@gnu.org>
9993         * doc/groff.texinfo: Spelling fixes.
9995 2000-03-06  Werner LEMBERG  <wl@gnu.org>
9997         * tmac/groff_man.man: Completely revised to cover everything in
9998         tmac.an.
10000         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10001         Other minor fixings.
10002         * src/roff/troff/env.cc (environment_copy): Improve error message and
10003         fix itoa->i_to_a.
10004         * src/roff/troff/TODO: Updated.
10006         * doc/Makefile: Bug fixes -- this is still provisional, though...
10008         * tmac/eqnrc: Small fixes.
10010 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10012         Adding a request `evc' to copy environments.
10014         * src/roff/troff/env.cc (environment::copy, environment_copy):
10015         Implement it.
10016         * src/roff/troff/env.h: Add prototype.
10018 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
10020         Adding strsep() -- Solaris 8 doesn't have it.
10022         * configure.in: Test it.
10023         * src/devices/grolbp/lbp.cc: Add code.
10025 2000-03-05  Werner LEMBERG  <wl@gnu.org>
10027         * src/roff/troff/div.cc (macro_diversion::output,
10028         top_level_diversion::output): Fixing an incompatibility with
10029         original troff: \x'0' updates the .a register also.  Thanks to
10030         <Andries.Brouwer@cwi.nl> for pointing this out.
10031         * doc/groff.texinfo: Document it.
10033         * Makefile.in: Create Makefile.dep if necessary before calling the
10034         submake process to avoid warning about nonexistent file.
10036         * NEWS, PROJECTS: Updated.
10038 2000-03-04  Werner LEMBERG  <wl@gnu.org>
10040         * tmac/troffrc: Add tmac.lbp.
10042 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
10044         * tmac/tmac.lbp: New file.
10045         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10046         command.
10048 2000-03-03  Werner LEMBERG  <wl@gnu.org>
10050         * Makefile.in: Fixing $(subdir).
10052         * README, NEWS: Small fixes.
10054         * test-groff: Adding path to grolbp.
10056         * configure.in: The (new) file src/xditview/Imakefile.in will be
10057         also configured -- it is now possible to build gxditview in a
10058         directory different from $srcdir.
10060 2000-03-02  Blake McBride  <blake@florida-software.com>
10062         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10064         * MORE.STUFF: Added website of bell labs and info about plot2dev.
10066 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
10068         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10069         files.
10071 2000-02-29  Werner LEMBERG  <wl@gnu.org>
10073         Adding GNU getopt to the groff distribution.
10075         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10076         New files.
10077         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10078         * aclocal.a4: Remove GROFF_GETOPT function.
10079         * configure.in, Makefile.in, PROBLEMS: Update.
10080         * src/include/lib.h: Replace getopt tests with getopt.h.
10081         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10083         * doc/groff.texinfo: Further checking/updating.  Adding more index
10084         entries.
10086         * man/groff_out.man: Fix nroff mode activation (for emacs).
10087         * man/groff_font.man: Add missing ligature.
10089 2000-02-28  Werner LEMBERG  <wl@gnu.org>
10091         * doc/groff.texinfo: Further checking/updating.  Adding more index
10092         entries.
10094         * src/devices/grolbp/grolbp.man: Added a comment line at the
10095         beginning of the file (similar to shell scripts) which indicates
10096         that `tbl' should be used as a preprocessor.
10098 2000-02-27  Blake McBride  <blake@florida-software.com>
10100         Adapting groff to MS Visual C++ 6.0 compiler (tested with
10101         Windows NT 4.0).  Uses _MSC_VER define where necessary.
10103         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10104         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10105         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10106         src/include/lib.h, src/libs/libgroff/errarg.cc,
10107         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10108         src/preproc/refer/label.y, src/preproc/refer/label.cc,
10109         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10110         src/roff/troff/div.cc, src/roff/troff/env.cc,
10111         src/roff/troff/input.cc, src/roff/troff/node.cc,
10112         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10113         if_to_a() to avoid name clashes.
10114         * src/include/posix.h: Don't use unistd.h.
10115         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10116         clause for integrating non-Unix xtmpfile() code.
10117         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10118         structure; use "rt" for popen() in pipe_source(); add getpid()
10119         dummy function.
10120         * src/roff/troff/node.cc: Use special versions of popen() in
10121         real_output_file() and pclose() in ~real_output_file().
10123 2000-02-27  Werner LEMBERG  <wl@gnu.org>
10125         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10126         LBP-8 series laser printers).  This code has been contributed by
10127         Francisco Andrés Verdú <pandres@dragonet.es>.
10129         * src/devices/grolbp/*: The grolbp output device.
10130         * font/devlpb/*: The font description files.
10131         * Makefile.in: Add grolpb and devlbp subdirectories.
10133         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10134         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10135         typographic fixes.
10137         * doc/groff.texinfo: Further checking/updating.  Adding more index
10138         entries.
10140         * NEWS: Updated.
10142         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10144         * man/groff_font.man: Adding info about obsolete DESC keywords.
10145         * src/devices/grolj4/grolj4.man: Documenting additional DESC
10146         keywords.
10148 2000-02-26  Werner LEMBERG  <wl@gnu.org>
10150         * src/preproc/grn/grn.man: Added info about the gremlin file format
10151         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10153 2000-02-25  Werner LEMBERG  <wl@gnu.org>
10155         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10156         friends to be non-integer.
10158         * src/preproc/grn/grn.man: Document it.
10160         * doc/groff.texinfo: Further checking/updating.  Adding more index
10161         entries.
10163 2000-02-24  Werner LEMBERG  <wl@gnu.org>
10165         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10166         line thicknesses to be integer multiples of this value.
10168         * src/preproc/grn/grn.man: Commenting out the -s option -- the
10169         corresponding code doesn't work (yet).
10171         * doc/groff.texinfo: Further checking/updating.  Adding more index
10172         entries.
10174 2000-02-23  Werner LEMBERG  <wl@gnu.org>
10176         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10177         specify line thickness instead of base units.  The new default
10178         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10179         thick lines respectively.
10181         Removed unused variable `prevval'.
10183         * src/preproc/grn/grn.man: Updated.
10185 2000-02-22  Werner LEMBERG  <wl@gnu.org>
10187         * src/preproc/grn/main.cc: Slight formatting.
10189         * src/roff/groff/groff.man: Formatting fix.
10190         * src/preproc/grn/grn.man: Ditto.
10192         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10194         * doc/groff.texinfo: Further checking/updating.
10196 2000-02-21  Werner LEMBERG  <wl@gnu.org>
10198         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10200         * test-groff: Added grn subdir to path.
10202         * doc/groff.texinfo: Some restructing and other small improvements.
10204         * src/roff/groff/groff.cc (help): Fixed info string.
10206 2000-02-20  Werner LEMBERG  <wl@gnu.org>
10208         * doc/meref.me: Fix description of .GS request.
10210         * src/roff/troff/troff.man: Fixing typo.
10212         Adding the `grn' preprocessor for gremlin graphic files.
10214         * src/preproc/grn/*: This is the Berkeley distribution written by
10215         David Slattengren and Barry Roitblat, adapted to groff by Daniel
10216         Senderowicz and Werner Lemberg.
10218         * doc/grnexampl.{me,g}: A sample for grn.
10220         * Makefile.in: Added subdirectory entry for grn.
10222         * src/roff/groff/groff.cc: Added support for grn.  It can be now
10223         called with the switch `-g'.
10225         * src/roff/groff/groff.man: Updated.
10227         * src/roff/grog/grog.{man,pl,sh}: Updated.
10229         * NEWS: Updated.
10231 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
10233         * src/include/lib.h: Added xtmptemplate and made xtmpfile
10234         parametrically polymorphic.
10236         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10237         and the alterations to xtmpfile.
10238         xtmpfile can be requested to return the filename created
10239         and asked not to unlink the temp file.  The default behaviour
10240         if parameters are absent is exactly the same as before.
10242 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
10244         A new request `length' is available which returns the length of a
10245         string in a number register:
10247         * src/roff/troff/input.cc (length_macro): Implement it.
10248         * src/roff/troff/input.cc (init_input_requests): Register it.
10250 2000-02-11  Werner LEMBERG  <wl@gnu.org>
10252         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10253         of the `substring' request.
10255         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10256         request.
10258         * src/roff/troff/TODO, NEWS: Updated.
10260 2000-02-09  Werner LEMBERG  <wl@gnu.org>
10262         * src/roff/groff/groff.man: Added an example.
10264 2000-02-06  Werner LEMBERG  <wl@gnu.org>
10266         I've considerably modified the directory structure of the
10267         distribution to get a more vertical layout.  For example, the number
10268         of top level directories has been reduced from 42 to 6.
10270         As a consequence, many changes, especially to the makefiles, were
10271         necessary:
10273         * The makefile variables `top_builddir' and `top_srcdir' have been
10274         introduced.  Virtually all relative paths have been replaced with
10275         absolute ones using these two variables.
10277         * Dependencies (in the files `Makefile.dep') are no longer part of
10278         the distribution.  Instead, they are created during a `make install'
10279         in the build directory.
10281         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10282         make `top_srcdir' and `top_builddir' absolute.
10284         Some other changes:
10286         * Man pages now depend on the files `VERSION' and `REVISION'.
10288         * The added shell script `mkinstalldirs' will replace `mkdir' in
10289         almost all cases.
10291         * VERSION: Version number increased to 1.16.
10293 2000-02-04  Werner LEMBERG  <wl@gnu.org>
10295         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10297         * Makefile.in: Removed $(tmac_m) since it is no longer needed
10298         (after an update of the mm stuff).
10300         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10302 2000-02-03  Werner LEMBERG  <wl@gnu.org>
10304         The .psbb request will now also accept Mac PS images (i.e. using LF
10305         as the EOL character).
10307         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10308         (with slight modifications).
10309         * troff/input.cc (do_ps_file): Use it.
10311         * test-groff: Add grohtml and grolj4 output devices to PATH.
10313 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10315         * NEWS, MORE.STUFF: Updated.
10317 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
10319         Add the `srand' command to pic.
10321         * pic/lex.cc, pic/pic.y: Implement it.
10322         * pic/pic.man: Document it.
10323         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10325 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10327         Add a new request `.psbb'.  This does exactly what the external
10328         program psbb did.  It scans a PostScript image file for a
10329         %%BoundingBox comment and extracts the bounding box values (in
10330         PostScript units) which are then stored in the four new (read-only)
10331         number registers `llx', `lly', `urx', and `ury'.
10333         This will allow the usage of the .PSPIC macro without worrying
10334         about unsafe behaviour of groff, i.e., it will work without the
10335         `-U' switch of groff.
10337         * troff/input.cc: Implement it.
10338         * tmac/tmac.pspic: Use it.
10339         * troff/troff.man, grops/grops.man, NEWS: Document it.
10340         * psbb/*, Makefile.in: Remove it since it is no longer needed.
10342         This is bloody C code simply adapted from psbb.c!  Any improvements
10343         welcome.
10345 2000-01-29  Werner LEMBERG  <wl@gnu.org>
10347         * man/groff_font.man: Minor clarifications.
10349         * NEWS: Updated.
10351 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10353         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10355 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
10357         * man/groff_font.man: Brought up to date regarding tcommand
10358         extensions.
10359         * libgroff/font.cc: Handle everything after `--' as a comment
10360         in the font files.
10361         * devps/*: Added comment delimiter inside devps font files.
10363 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10365         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10366         \fC...\fP (which now works as expected).
10368         * troff/troff.man: Fix typo.
10370 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
10372         Completed the pass_filenames implementation in troff.
10374         * libdriver/input.cc: Will read the new `F' tcommand.
10375         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10376         * troff/input.cc: Use it.
10378 2000-01-26  Werner LEMBERG  <wl@gnu.org>
10380         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
10381         font will now be updated even if an invalid font is selected.
10383 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10385         * doc/homepage.ms: Updated for new tmac.arkup.
10387         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10389         * tmac/tmac.arkup: Cleanup.
10391         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10393         Removed obsolete .LINK macro completely.
10395         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10396         will be immediately appended to the second argument (to be used with
10397         punctuation, for example).
10399         Disabled .CDFTP macro temporarily for security reasons.
10401         * tmac/groff_markup.man: Complete revision for latest changes in
10402         tmac.arkup -- note that it does not yet format correctly with
10403         grohtml :-(
10405 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10407         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10408         * devutf8/R.proto: Add mappings for wp, lh, rh.
10409         * devutf8/NOTES: Updated.
10411 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10413         * doc/groff.texinfo: Updated version/copyright info.
10415 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10417         Added support for two new directives in device descriptions:
10418         `pass_filenames' (to pass the input file name to the output device)
10419         and `use_charnames_in_special' (to support e.g. accented characters
10420         in the `X' request).
10422         * include/font.h, troff/charinfo.h: Declare it.
10424         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10426         * devhtml/DESC: Use it.
10428         * troff/input.cc: New function encoded_char.
10430         * troff/token.h: Add test for `specialness'.
10432 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10434         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10435         mistake from the list of files to be installed.
10437 2000-01-18  Werner LEMBERG  <wl@gnu.org>
10439         * README: Added info how to apply patches.
10441 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
10443         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
10445 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10447         * troff/input.cc: Add support for troffrc-end.
10449         * tbl/main.cc: Altered to issue table-start and table-end special
10450         characters if using the html device.
10452         * devhtml/*: Modified font files to incorporate html encoding of
10453         characters.
10455         * tmac/groff_markup.man: New file documenting tmac.arkup.
10457         * tmac/troffrc-end: New file.  This is invoked after all user
10458         specified macros.  Currently used by the html device to include
10459         tmac.html.  Thus no need for users to specify -mhtml anymore.
10461         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10462         (MAN7): Add groff_markup.man.
10464         * tmac/tmac.an, tmac/tmac.html: Small html updates.
10466         * tmac/troffrc: tmac.arkup will now be called for the html device.
10468         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10469         extra device specific information about fonts.
10471         * doc/homepage.ms: New file.  It is an example how an HTML home page
10472         could look like with grohtml.
10474         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
10476 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
10478         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
10479         of Im, Re.
10481         * devutf8/NOTES: Updated.
10483 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
10485         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10486         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10487         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10488         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10489         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10490         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10491         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10492         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10493         warnings.
10495         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10497 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
10499         grolj4: Paper size will be searched case-insensitively.
10501         * include/lib.h: Add check for strcasecmp().
10502         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10503         * configure.in: Check for strcasecmp().
10505 2000-01-11  Werner LEMBERG  <wl@gnu.org>
10507         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10508         `REVISION'.
10510 2000-01-10  Werner LEMBERG  <wl@gnu.org>
10512         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10513         revision scheme.
10515         Add a new read-only register, `.Y', which contains the groff
10516         revision.
10518         * troff/input.cc (init_input_requests): Define it.
10519         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10520         * doc/groff.texinfo, troff/troff.man: Document it.
10522         * libgroff/Makefile.sub (version.cc): Add definition of
10523         `Version_string[]', consisting of `<major>.<minor>.<revision>'
10524         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10525         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10526         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10527         troff/input.cc, pfbtops/pfbtops.c: Use it.
10529 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
10531         Add a revision scheme to the groff package.
10533         * REVISION: New file.
10534         * libgroff/Makefile.sub (version.cc): Use it to define
10535         `revision_string[]'.
10536         * grops/psrm.cc: Use revision_string (converted to an unsigned
10537         integer) in constructor of resource_manager.
10539 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
10541         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10542         files.
10543         * Makefile.in (DEVDIRS): Add devutf8.
10544         * grotty/tty.cc: Include device.h.
10545         (glyph): Change type of `code' to `unsigned int'.
10546         (tty_printer): New field is_utf8.  Constructor takes device argument.
10547         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10548         (tty_printer::add_char): Change type of first arg to `unsigned int'.
10549         (tty_printer::put_char): New function.
10550         (tty_printer::end_page): Use put_char() instead of ::putchar().
10551         (make_printer): Pass device to tty_printer constructor.
10552         * nroff.sh: Determine default device by calling 'locale'.  As a
10553         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10554         Recognize UTF-8 locales.
10555         * tmac/eqnrc: Recognize utf8 like latin1.
10556         * tmac/troffrc: Device utf8 needs tmac.tty.
10558 2000-01-07  Werner LEMBERG  <wl@gnu.org>
10560         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10562 2000-01-07  Paul Eggert  <eggert@twinsun.com>
10564         Add a new predefined writeable number register, `year',
10565         which contains the current year.
10567         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10568         * tmac/tmac.s: Use it.
10569         * troff/input.cc (init_registers): Initialize it.
10571 2000-01-06  Werner LEMBERG  <wl@gnu.org>
10573         * PROBLEMS: Fixed typo.
10575 2000-01-04  Paul Eggert  <eggert@twinsun.com>
10577         * PROBLEMS: Add Y2k advice for the yr number register.
10579 2000-01-03  Paul Eggert  <eggert@twinsun.com>
10581         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10583 2000-01-02  Werner LEMBERG  <wl@gnu.org>
10585         * tmac/tmac.arkup: Slight modification of macros to provide better
10586         appearance for non-HTML formats.
10588 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
10590         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10591         does not automatically translate to malloc(n) on all OSes
10592         (e.g., SunOS) so do it explicitly.  Also, check the returned
10593         value.
10595 2000-01-01  Werner LEMBERG  <wl@gnu.org>
10597         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
10599         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10600         expects this variable
10602 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
10604         * doc/Makefile: Added instructions to create HTML and text
10605         versions of some files.
10607 1999-12-31  Werner LEMBERG  <wl@gnu.org>
10609         * Updated INSTALL.gen.
10611         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10612         better resp. correctly with non-HTML devices.
10614 Version 1.15 released
10615 =====================
10617 1999-12-28  Werner LEMBERG  <wl@gnu.org>
10619         * NEWS, VERSION: Changed to 1.15
10621 1999-12-27  Paul Eggert  <eggert@twinsun.com>
10623         * nroff/nroff.man: -S is safer, not safe.
10625         * groff/groff.cc (main): Use `safer', not `safe', in variable
10626         names.  This does not change the behavior.
10628         * troff/input.cc (main): Likewise.
10630         * nroff/nroff.sh: Likewise.
10632         * troff/input.cc (prepend_string): New function.
10633         (main): Prepend -msafer, so that we check macro libraries for
10634         safety.
10636         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10638 Version 1.14 released
10639 =====================
10641 1999-12-26  Werner LEMBERG  <wl@gnu.org>
10643         * NEWS, VERSION: Changed to 1.14.
10645 1999-12-24  Werner LEMBERG  <wl@gnu.org>
10647         * refer/refer.cc: Fixing the last fix.
10649 Version 1.13 released
10650 =====================
10652 1999-12-23  Werner LEMBERG  <wl@gnu.org>
10654         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10655         number disappear.
10657         * NEWS: Updated.
10659         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10661         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10662         document conventions, the version number must be a real.
10664 Version 1.12.1 released
10665 =======================
10667 1999-12-22  Werner LEMBERG  <wl@gnu.org>
10669         * VERSION: Changed to 1.12.1.
10671 1999-12-22  Alan Rooks  <arooks@istar.ca>
10673         * refer/refer.cc (do_file): Slight modification to satisfy the
10674         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10675         UnixWare 7.1.
10677 1999-12-20  Werner LEMBERG  <wl@gnu.org>
10679         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10680         notices.
10682         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10683         list of unsafe requests.
10685         * pic/pic.man: Fixed a typo.
10687         * man/groff_out.man: Fixed a typo.
10689 1999-12-18  Werner LEMBERG  <wl@gnu.org>
10691         * Makefile.in: Doc fixes.
10693 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
10695         * groff/groff.cc: Missing `U' option added to getopt().
10697         * troff/troff.man: Missing `U' option added to synopsis.
10699 Version 1.12 released
10700 =====================
10702 1999-12-14  Werner LEMBERG  <wl@gnu.org>
10704         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10705         to the synopsis.
10707         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10708         with the more appropriate terms `safer' and `unsafe'.
10710         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10711         sys_nerr and sys_errlist[].
10713         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10715         * pic/pic.y, pic/pic.cc: Added check for fmod().
10717 1999-12-13  Werner LEMBERG  <wl@gnu.org>
10719         * VERSION: Changed to 1.12.
10721         Here some patches from various sources; most of them taken from
10722         the Debian distribution.
10724         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10725         tmac/Makefile.sub: New files copied directly from the NetBSD
10726         distribution.  Probably, some additional adaptation later on is
10727         necessary...
10729         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10730         of unsafe requests.
10732         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10733         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10734         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
10735         (`-S') is now the default.
10737         * README, NEWS: Updated.
10739 1999-12-09  Werner LEMBERG  <wl@gnu.org>
10741         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10743         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10745 1999-12-06  Werner LEMBERG  <wl@gnu.org>
10747         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10748         grief than relief today.  Additionally, it is against the GNU
10749         coding standards.
10751         * configure: Recreated.
10753 1999-12-05  Werner LEMBERG  <wl@gnu.org>
10755         * configure.in: Added GROFF_LIBM.
10757         * configure: Recreated.
10759         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10760         necessary.
10762         * Makefile.in: Added definition of $(LIBM).
10764         * Makefile.comm (LIBM): Removed.
10766         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10768 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
10770         * doc/Makefile: Added rule for generation pic.html.
10772         (clean): Files produced by grohtml will be removed also.
10774         * doc/pic.ms: Small fix.
10776         * tmac/tmac.html: Fixed suppression of headers.
10778 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
10780         * tmac/tmac.html: Fixing horizontal arrows.
10782         Turning off hyphenation.
10784         * tmac/tmac.an: Improved support for grohtml; better indentation,
10785         no footers/headers.
10787 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
10789         * tmac/tmac.arkup: Added CDFTP macro
10791         * tmac/tmac.html: All headers are turned off for ms, me, and mm
10792         macros.
10794         * tmac/troffrc: Some additions for HTML stuff.
10796 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
10798         * tmac/tmac.html: Small changes.
10800 1999-09-26  Werner LEMBERG  <wl@gnu.org>
10802         * doc/groff.texinfo: Minor fixes.
10804 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
10806         * devhtml/TR: Changed spacewidth to 3.
10808         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10810         * tmac/tmac.html: Moved markup macros to tmap.arkup.
10812         * tmac/tmac.arkup: New file.
10814         * grohtml/ChangeLog: New file.
10816 1999-09-16  Werner LEMBERG  <wl@gnu.org>
10818         * doc/groff.texinfo (Common Features): Added Copying chapter.
10819         Changed format to @smallbook.
10821 1999-09-15  Werner LEMBERG  <wl@gnu.org>
10823         * NEWS: Added info about groff.texinfo.
10825         * doc/groff.texinfo: Will now compile (using texi2dvi) without
10826         warning messages.
10828 1999-09-14  Werner LEMBERG  <wl@gnu.org>
10830         * groff/groff.man: More updates.
10832 1999-09-13  Werner LEMBERG  <wl@gnu.org>
10834         * doc/groff.texinfo: New file.  This manual is still very
10835         rudimentary.  It has been originally contributed by Trent
10836         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10837         additions by me.
10839         * INSTALL: Added information about the `doc' subdir
10841         * troff/troff.man: Minor fixes.
10843         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10844         reordered options.
10846         * troff/input.cc (usage): Added missing `-ffam' to usage message.
10848         * Makefile.in (dist): groff-$(version).tar.gz must be removed
10849         also, otherwise it is included itself in another call of `make
10850         dist'.
10852         * groff/groff.cc (synopsis): Removed superfluous space.
10854         * PROJECTS, PROBLEMS, NEWS: Updated.
10856         * VERSION: Updated to 1.12beta.
10858         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
10860         * README: Updated: Included documentation about CVS repository,
10861         mailing lists, and daily snapshots.
10863         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10865 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
10867         * tmac/tmac.an: If the tag didn't fit into the space that the
10868         macro `TP' specifies, the rest of the tag went into the space for
10869         the next line.
10871 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
10873         * grolj4/lj4.cc: Added duplex printing (option `-d').
10875         * grolj4/grolj4.man: Document duplex printing.
10877 1999-09-12  Werner LEMBERG  <wl@gnu.org>
10879         * doc/Makefile (pic.ps): Fixed rule which caused problems with
10880         non-GNUish sed programs.
10882         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10883         definition.
10885         * configure.in (LIBS): Added `-lc'
10887         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10889         * pic/tex.cc (solid_arc): Casting M_PI to double.
10891         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10893         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10894         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10895         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10897         * groff/groff_man.man: New file.  This manual page was originally
10898         written for the Debian GNU/Linux system by Susan G. Kleinmann
10899         <sgk@debian.org>.
10901         * eqn/list.cc (list_box::compute_metrics,
10902         list_box::compute_sublist_width): Removed variable declaration to
10903         avoid shadowing warnings.
10905         * grops/psrm.cc (resource_manager::process_file): Ditto.
10907         * tfmtodit/tfmtodit.cc (main): Ditto.
10909         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10910         to avoid shadowing warnings.
10912         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10913         shadowing loop variable.
10915         * groff/groff.man, troff/troff.man: Added doc about grohtml.
10917 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
10919         New grohtml frontend to convert groff input to html.
10921         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10923         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10925         * tmac/eqnrc: Added html device.
10927         * tmac/tmac.html: New file.
10929         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10930         (troff_output::start_picture, troff_output::finish_picture),
10931         tbl/main.cc (process_input_file):
10932         Surrounded output with `graphics_start' and `graphics_end' so that
10933         the html driver can identify non-text portions.
10935         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10936         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10937         grotty/tty.ps (tty_printer::set_char): Additional parameter
10938         `name'.
10940         * include/printer.h: Class printer: New function
10941         set_char_and_width; new variables (is_char_named, is_named_set,
10942         named_command, named_char_s, named_char_n) to hold information
10943         about named characters -- needed by the html driver.
10945         * libdriver/printer.cc (printer::set_ascii_char,
10946         printer::set_special_char): Use set_char_and_width.
10948         * devhtml/*: New device files for html driver.
10950         * grohtml/*: New driver grohtml.
10952 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
10954         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10955         default strings.
10957 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
10959         * libgroff/string.cc (search): Small fix to test against NULL
10960         pointer.
10962 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
10964         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10965         \b'abc') were stacked in reverse order when processed in a
10966         diversion.
10968         * troff/node.h: Added `*last' to struct `node' to make the above
10969         fix work.
10971         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10972         The default scale for the 'f' and 't' graphics functions were 'm'
10973         rather than 'u' (i.e., no scaling).
10975 1999-09-11  Peter Miller  <peterm@jna.com.au>
10977         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10978         do_file), soelim/soelim.man: Added `-I file' option to soelim,
10979         defining include paths.
10981         * soelim/soelim.cc (include_path_append): New function.
10983 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
10985         * tbl/main.cc (process_options): Unix (at least Documenter's
10986         Workbench) tbl allows arbitrary non-alpha characters between
10987         options.
10989 1999-09-11  Paul Eggert  <eggert@twinsun.com>
10991         Y2k fixes.  Don't assume that the current year precedes 2000.
10993         * doc/meref.me: Add \n(y2, \n(y4.
10995         * tmac/doc-common (Yr): New number register.
10996         (Dd): Don't assume current year precedes 2000.
10998         * tmac/tmac.e (td): Likewise.
10999         (y2, y4): New number registers.
11001         * pic/pic.man: Update reference for pic paper to May, 1991
11002         version.
11004 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11006         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11007         Removed quotation marks which prevented correct expansion of
11008         $(tmac_wrap).
11010         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11012 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11014         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11015         `config.cache'.
11017         * Removed configure.old.
11019 1999-08-31  Werner LEMBERG  <wl@gnu.org>
11021         * VERSION: Updated to 1.11.1
11023 1999-05-27  Werner LEMBERG  <wl@gnu.org>
11025         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11027         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11028         added quotations around $(tmac_wrap) to avoid syntax error if
11029         variable is empty.
11031         * configure: Newly generated using autoconf 2.13.
11033         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11035 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
11037         * README, PROJECTS, NEWS, INSTALL, VERSION, 
11038         doc/Makefile. doc/pic.ms, groff/groff.man:
11039         Prepare for 1.11 release.  No code changes.
11040         Documentation for pic added (doc/pic.ms).
11042 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
11044         * Version 1.10 released.
11046 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
11048         * afmtodit/afmtodit.pl: Avoid comment on first line.
11050 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
11052         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11053         * configure.in: Call it.
11055         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11056         (distfiles): Doesn't depend on config.log or config.cache.
11058 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
11060         * grog/grog.sh: Use print "" rather than print in END rule.
11062 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
11064         * tbl/main.cc (process_data): Don't give error for excess data
11065         entries that are comments.
11067 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
11069         * tbl/main.cc (process_data): Fix case where new for-scope rules
11070         silently change meaning of code.
11072 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
11074         * troff/env.cc (hyphenate): Loop over all consecutive sequences
11075         of non-zero hyphenation codes.
11077 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
11079         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11081 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
11083         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11085 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
11087         * tmac/tmac.andoc: Make it work in compatibility mode.
11089         * refer/token.h (token_info::is_range_sep): New function.
11090         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11091         * refer/ref.cc (reference::output): More sophisticated check for
11092         multiple pages.
11094         * devps/prologue.ps (MANUAL): New procedure.
11095         * grops/ps.cc (main): New -m option.
11096         (usage): Include -m.
11097         (ps_printer::~ps_printer): Implement -m.
11099         * aclocal.m4 (GROFF_G): New macro.
11100         * configure.in: Call it.
11101         * Makefile.in (g): Provided by configure.
11103         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11105         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
11106         translations.
11108         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11109         (tmac_m, tmac_s): Deleted.
11110         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11111         tmac_s_prefix): New variables.
11112         (MDEFINES): Change accordingly.
11113         * Makefile.comm (.man.n): Use new TMAC_* variables.
11114         * configure.in (GROFF_TMAC): Call.
11115         * aclocal.m4 (GROFF_TMAC): Define.
11116         * tmac/Makefile.sub (stamp_wrap): New target.
11117         (install_data, uninstall_sub): Handle macro wrapping.
11119 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
11121         * tbl/main.cc (main): Ignore -T option.
11123 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
11125         * devlj4/generate/special.map: Add definition of \(nb.
11127         * tmac/tmac.dvi: Add definition of \(nb.
11129         * troff/dictionary.c (dictionary::dictionary): association::v gets
11130         initialized by association::association.
11132         * tmac/Makefile.sub: Avoid using temporary files when installing.
11134         * troff/env.cc (environment::set_font): Make bad font number a
11135         warning.
11137         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11139         * Makefile.in (datadir): Use share rather than lib.
11141         * groff/groff.cc (basename): Rename to xbasename.
11143 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
11145         * Makefile (CCLIBS): Don't use.
11146         * Makefile.ccpg: Likewise.
11148         * acgroff.m4: Rename to...
11149         * aclocal.m4: Modify extensively for autoconf 2.
11150         * configure.in: Likewise.
11151         * Makefile.in: Likewise.
11153         * groff/pipeline.c (const): Declare as empty if __STDC__ not
11154         defined.
11155         (xstrsignal): Check for definition of NSIG. Conditionalize
11156         on SYS_SIGLIST_DECLARED.  Make return type const.
11158 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
11160         * troff/input.cc (interpolate_macro): Rephrase missing space
11161         warning.
11163 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
11165         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11166         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11167         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11168         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11169         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11170         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11171         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11172         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11173         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11174         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11175         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11176         Fix 'for' scoping.
11178 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
11180         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11181         string_iterator.
11182         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11183         file.
11184         (macro_iterator::macro_iterator): Add additional argument.
11186 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
11188         * troff/div.cc (vertical_size::vertical_size): In place of integer
11189         specifying line spacing use cunits specifying post vertical
11190         space.
11191         (macro_diversion::output, top_level_diversion::output): Likewise.
11192         * troff/div.h: Change declarations accordingly.
11193         * troff/env.cc (pending_output_line): Replace ls field by post_vs
11194         field.
11195         (pending_output_line::pending_output_line,
11196         pending_output_line::output, environment::output,
11197         environment::output_line, environment::output_title,
11198         environment::hyphenate_line):  In place of
11199         integer specifying line spacing use cunits specifying post vertical
11200         space.
11201         (environment::environment): Add post_vertical_spacing and
11202         prev_post_vertical_spacing arguments.
11203         (environment::get_post_vertical_spacing): New function.
11204         (environment::total_post_vertical_spacing): New function.
11205         (environment::post_vertical_spacing): New function.
11206         (init_env_requests): Initialize pvs request and .pvs register.
11207         * troff/env.h: Change declarations.
11209 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
11211         * tmac/tmac.pspic: Immediately remove the temporary file.
11213 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
11215         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11216         height is specified.
11218 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
11220         * tbl/table.c (struct vertical rule, class table_entry): Use int
11221         not short for start_row and end_row.
11223 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
11225         * troff/input.cc (trapping_blank_line, blank_line_macro): New
11226         functions.
11227         (diverted_space_node::reread, process_input_stack): Call
11228         trapping_blank_line() rather than blank_line().
11229         (init_input_requests): Bind "blm" to blank_line_macro().
11231         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11233 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
11235         * troff/env.cc (environment::possibly_break_line): Require that
11236         width total excluding width of final space node be greater than
11237         the target text length.
11239 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
11241         * troff/node.cc (kern_pair_node::vertical_extent): New function.
11243 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
11245         * troff/node.cc (charinfo_node): New class.
11246         (glyph_node, composite_node): Derive from charinfo_node.  Change
11247         member functions accordingly.
11249 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
11251         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11253 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
11255         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11257         * devps/generate/textmap (notsubset): Add.
11259         * tmac/tmac.a4: New file.
11261 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
11263         * pic/main.cc (had_parse_error): New variable.
11264         (do_picture, do_whole_file): Set had_parse_error if yyparse()
11265         returns non-zero.
11266         (main): Return 1 if had_parse_error is true.
11268 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
11270         * grolj4/lj4.cc (main): Avoid use of strtoul.
11272 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
11274         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11275         iso_8859_1 or $LESSCHARSET is latin1.
11277 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
11279         * hpftodit: New directory.
11280         * Makefile.in (CCPROGDIRS): Add hpftodit.
11281         * devlj4/generate: New directory.
11283 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
11285         * configure.in: Don't use AC_VFORK.
11286         * groff/pipeline.c (run_pipeline): Use fork() always.
11288 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
11290         * grops/ps.cc (main): Use %1 not %s in error message for -w.
11292         * Makefile.in (CCPROGDIRS): Add grolj4.
11293         (DEVDIRS): Add devlj4.
11294         * grolj4, devlj4: New directories.
11295         * tmac/troffrc: Handle lj4.
11296         * tmac/tmac.lj4: New file.
11298 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
11300         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11302 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
11304         * troff/input.cc (do_if_request): At end of second string, switch
11305         environments before getting next token.
11307 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
11309         * devps/psstrip.sed: Split rule that strips whitespace on either
11310         side of delimiters.
11312 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
11314         * troff/node.h (font_family::make_definition): Add return value to
11315         declaration.  * troff/symbol.h (symbol::operator==,
11316         symbol::operator!=): Likewise.
11318 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
11320         * groff/groff.cc (main, help, synopsis): Handle -S.
11321         (possible_command::insert_arg): New function.
11323         * tmac/tmac.safer: New file.
11324         * tmac/msafer.man: New file.
11325         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11327 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
11329         * pic/pic.h, pic/main.cc (safer_flag): New variable.
11330         * pic/pic.y (placeless_element): Avoid unsafe operations if
11331         `safer_flag' is set.
11332         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11334 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
11336         * eqn/lex.cc (get_token): Put call to add_context() in block to
11337         work around Sun C++ 4.0 bug.
11339         * include/stringclass.h (operator +): Use ?: instead of `if' to
11340         work around Sun C++ 4.0 bug.
11342 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
11344         * tbl/main.cc (process_format): Accept - as a synonym for the _
11345         key letter.
11347         * libbib/index.cc (minus_one): Don't declare as const.
11349 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
11351         * troff/input.cc (get_char_for_escape_name): Push back a newline.
11353 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
11355         * troff/input.cc (write_macro_request): New function.
11356         (init_input_requests): Bind write_macro_request to writem.
11358 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
11360         * tmac/tmac.s (@EN): Turn filling back on even if there was no
11361         equation.
11363         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11365         * tmac/tmac.s (@TS): Renamed from TS.
11366         (TS): Call LP then TS again.
11367         (cov*ab-init): Alias @TS to TS.
11369         * tmac/tmac.s: Allow QP or RS to initialize.
11371         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
11372         Move initializations of PS and LL here.
11373         (par@init): Don't initialize HY.  Avoid changing environment 0.
11374         (par*env-init): Don't all par@reset.
11376 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
11378         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11380 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
11382         * Makefile.in (MDEFINES): Add LDFLAGS.
11383         (LDFLAGS): Add definition line.
11385 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11387         * troff/input.cc (get_optional_char): Split off error check into...
11388         (check_missing_character): New function.
11389         * troff/token.h: Declare it.
11390         * troff/env.cc (margin_character): Don't call get_optional_char.
11391         Only call tok.next() after making the node.
11393         * include/lib.h (getopt): Make 2nd argument char *const *.
11395 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11397         * nroff/conftest.sh: Deleted.
11399 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11401         * pic/make-dos-dist: Deleted.
11403 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11405         * devps/psstrip.sed: Strip comments before stripping trailing
11406         white space.
11408 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11410         * Version 1.09 released.
11412 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11414         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11416 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11418         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11420 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11422         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11423         about returning without a value.
11425         * troff/charinfo.h (charinfo::get_special_translation): Cast
11426         TRANSLATE_NONE to int.
11428         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11429         test.  Fix test so that it works with n unsigned.
11431         * pic/pic.y (defaults_table): Fully bracket initializer.
11432         * pic/lex.cc (lookup_keyword): Likewise.
11433         * eqn/lex.cc (token_table, def_table): Likewise.
11434         * eqn/box.cc (param_table): Likewise.
11435         * troff/input.cc (warning_table): Likewise.
11436         * libgroff/font.cc (table): Likewise.
11437         * grops/ps.cc (ps_printer::special): Likewise.
11438         * grops/psrm.cc (resource_manager::process_file): Likewise.
11439         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11440         * refer/command.cc (command_table): Likewise.
11441         * addftinfo/addftinfo.cc (param_table): Likewise.
11443         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11444         about temp's being unused.
11445         (unused): New function.
11447         * groff/pipeline.cc: Declare c_fatal.
11449         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11450         uchar.
11452         * libbib/index.cc (index_search_item::load): Prevent compiler
11453         warnings about fd_closer's being unused.
11454         (unused): New function.
11456 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
11458         * troff/input.cc (copy_mode_error): Make `prefix' static.
11459         Fix typo.
11461         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11462         defined.
11463         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11464         HAVE_CC_OSFCN_H and modify accordingly.
11466         * troff/input.cc (init_charset_table): radicalex overlaps
11467         horizontally.
11469         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11470         udodo!hans@relay.NL.net).
11471         * groff/configure.in: Call it.
11473         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11474         * groff/configure.in: Call it.
11475         * include/lib.h: Conditionalize declaration of pclose.
11477         * troff/div.cc (last_page_number): New global variable.
11478         (top_level_diversion::begin_page): Exit if we just printed the
11479         last page.
11480         * troff/div.h (last_page_number): Declare it.
11481         * troff/input.cc (parse_output_page_list): Set last_page_number.
11483         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11484         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11485         tmac/tmac.X: Likewise.
11486         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11487         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11489 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
11491         * tmac/doc-ditroff (hK): Remove groff specific code which
11492         prevented page-breaks between separate manual entries.  If this is
11493         the first page, don't set the page number to 1.
11495         * acgroff.m4 (GROFF_POSIX): New macro.
11496         * configure.in: Use it.
11498         * troff/node.cc (class real_output_file,
11499         real_output_file::real_output_file,
11500         real_output_file::~real_output_file): Conditionalize use of
11501         popen/pclose on POPEN_MISSING.
11502         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11503         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11504         (pipe_source): Similarily.
11506         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11508         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11509         presence of declarations by trying to compile example with
11510         conflicting declarations.  (gcc only gives a warning for missing
11511         declarations.)
11513 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
11515         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11516         (from Ulrich Lauther).
11518 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
11520         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11522 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
11524         * indxbib/indxbib.cc (write_hash_table): Add code for case where
11525         pointers and ints have different sizes.
11527 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
11529         * tmac/tmac.s (par*env-init): Call par@reset.
11531 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
11533         * tmac/tmac.s (@IP): Switch to a new environment when diverting
11534         tag.
11535         (par*push-tag-env, par*pop-tag-env): New macros.
11537 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
11539         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11540         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
11542         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11543         comment.  Include <time.h>.
11545 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
11547         * grops/ps.cc (is_small_h, is_small_v): Deleted.
11548         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11549         lines.
11551 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
11553         * troff/input.cc (read_request): Only print a prompt if reading
11554         from the terminal.  Also clearerr on EOF if reading from the
11555         terminal.  Declare isatty.
11557 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
11559         * refer/label.y: Rename map_t to map_func and extractor_t to
11560         extractor_func.
11562 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
11564         * include/assert.h: Don't use volatile.
11565         * libgroff/assert.cc: Likewise.
11567 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
11569         * troff/input.cc (abort_request): Look at character in tok before
11570         calling get_copy().
11572 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
11574         * troff/troff.h (NO_RETURN): Deleted.
11575         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
11576         * troff/input.cc (exit_troff): Likewise
11578         * Makefile.in: Remove `Making ...' messages since GNU make now
11579         gives these. 
11581         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11583 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
11585         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11586         to constant 1 inch.
11588 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
11590         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11592 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
11594         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11595         MARK_REG if there was no left delimiter.
11597 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
11599         * pic/troff.cc (troff_output::text): Set line thickness to
11600         relative before outputting text.
11602         * tmac/tmac.e (@k): Don't zero ?T.
11603         ((z): Likewise.
11605 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
11607         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11609 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
11611         * troff/input.cc (decode_args): Warn about unquoted tabs (from
11612         Paul Eggert).
11614 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
11616         * troff/input.cc (ignoring): New variable.
11617         (ignore): Set ignoring during call to do_define_macro.
11618         (do_define_macro): Clear ignoring before interpolating terminating
11619         macro.
11620         (copy_mode_error): New function.
11621         (get_char_for_escape_name, read_long_escape_name,
11622         interpolate_arg): Use copy_mode_error.
11623         (warning_table): Add WARN_IG.
11624         * troff/troff.h (WARN_IG): Declare.
11625         (WARN_TOTAL): Change accordingly.
11627         * groff/pipeline.c (strsignal): Rename to xstrsignal.
11628         * groff/groff.cc (strsignal): Delete declaration.
11630 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
11632         * troff/div.cc (page_offset): Use 'm' as default scaling.
11634 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
11636         * nroff/nroff.sh: Ignore -u.
11638 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
11640         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11642 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
11644         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11645         drawing box.
11646         (B2): With -Tascii, leave additional vertical space before
11647         and after. Ensure that the left and right indent is restored to
11648         what it was even if the point size changes.  Don't call
11649         par@finish. Change the indent, line length and title length
11650         directly.  With -Tascii, make the width of the box 1n less.
11651         (B1): Remember 1n at the current point size.  Don't call
11652         par@reset.  Change the indent, line length and title length
11653         directly.  Ensure that the temporary indent is preserved.
11654         (par*box-mark-top): Turn off no spacing mode.
11656 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
11658         * Makefile.in (dist): Use .gz suffix.
11660 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
11662         * troff/input.cc (main): Add return 0.
11663         * pic/main.cc (main): Use return instead of exit.
11664         * tbl/main.cc (main): Likewise.
11665         * eqn/main.cc (main): Likewise.
11666         * grops/ps.cc (main): Likewise.
11667         * grotty/tty.cc (main): Likewise.
11668         * groff/groff.cc (main): Likewise.
11669         * grodvi/dvi.cc (main): Likewise.
11670         * refer/refer.cc (main): Likewise.
11671         * indxbib/indxbib.cc (main): Likewise.
11672         * lkbib/lkbib.cc (main): Likewise.
11673         * soelim/soelim.cc (main): Likewise.
11674         * addftinfo/addftinfo.cc (main): Likewise.
11675         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11676         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11678         * troff/token.h (process_input_stack): Don't declare as static.
11679         * troff/input.cc: Likewise.
11681         * troff/node.c (invalidate_fontno): Make it a static member of
11682         class font_family.  Change callers.
11683         * troff/node.c: Change declaration.
11685         * tbl/main.cc (struct input_entry_format): Add explicit public
11686         specifier.
11687         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11688         struct double_hline_stuff): Likewise.
11689         * tbl/table.h (struct entry_format): Likewise.
11690         * pic/object.h (struct saved_state): Likewise.
11692         * include/stringclass.h: Add forward declarations of friend
11693         functions that are later declared as inline.  Don't include inline
11694         specifier in friend declaration.
11696         * libgroff/lib.h: Declare popen and pclose.
11697         * acgroff.m4 (GROFF_POPEN): New macro.
11698         * configure.in: Call it.
11700         * include/lib.h (PI): New constant. Undef first if necessary.
11701         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11702         * grops/ps.cc (degrees, radians): Likewise.
11703         * libgroff/font.cc (font::get_skew): Likewise.
11705         * grops/ps.cc (is_ascii): New function.
11706         (ps_output::put_string): Use is_ascii.  Use csprint rather than
11707         isprint.
11708         (ps_printer::define_encoding): Use csspace.
11709         * libgroff/strtol.c (ISASCII): New macro.
11710         (strtol): Cast arguments to is*() and tolower() to unsigned char.
11711         Use ISASCII rather than isascii.
11712         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11713         * libgroff/cset.cc: Likewise.
11714         * libdriver/input.cc: Include cset.h.
11715         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11716         than isdigit().
11718         * refer/refer.cc (main): Use %ld rather than %d for longs.
11720         * libbib/index.cc (index_search_item_iterator::get_tag): Use
11721         S_ISREG macro.
11723         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11725 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
11727         * troff/input.cc (hyphenation_code): Skip white space between
11728         char/code pairs.
11730 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
11732         * tbl/table.h (table::entry_list_tailp): New member.
11733         (table::table): Initialize it.
11734         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11735         behaviour.
11737 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
11739         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11740         with negative horizontal positions. Remove casts of glyph::hpos to
11741         int.
11742         (USHRT_MAX): Delete definition.
11743         (SHRT_MAX, SHRT_MIN): New definitions.
11744         (glyph::hpos): Change type to short.
11745         (tty_printer::end_page): Output multiple backspaces if necessary.
11746          Remove casts of glyph::hpos to int.
11747         
11748 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
11750         * tmac/tmac.s (@RT): New definition.
11752 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
11754         * refer/refer.cc (do_file): Make sure current_filename is set when
11755         filename is "-".
11757         * pic/common.cc (common_output::dot_line): Handle zero length
11758         lines.
11760 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
11762         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11763         (par@init): Initialize \n[HY].
11765 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
11767         * troff/dictionary.cc (dictionary::remove): Continue when
11768         r < j < i.
11770 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
11772         * Makefile.com (.y.cc): Avoid ending up with two versions of
11773         $(YTABH).
11775 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
11777         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11778         (\(,C): Likewise.  Also fix typo.
11780 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
11782         * lib.h: Delete extraneous semi-colon.
11784         * Add pso request: `so' from a pipe.
11785         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11786         (file_iterator::close): New function.
11787         (file_iterator::~file_iterator, file_iterator::next_file): Use
11788         file_iterator::close.
11789         (file_iterator::backtrace): Say `process' rather than `file' when
11790         the stream is popened.
11791         (pipe_source): New function.
11792         (init_input_requests): Bind ".pso" to pipe_source.
11794 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
11796         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11798         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
11799         digits in lower case.
11801 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
11803         * Version 1.08 released.
11805         * Makefile.in (dist): Insert || true after ln -s commands that
11806         might fail.
11808         * mm: Update to mm 1.16.
11810         * acgroff.m4 (GROFF_CSH_HACK): New macro.
11811         * configure.in: Call GROFF_CSH_HACK.  Substitute for
11812         SH_SCRIPT_SED_CMD.
11813         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
11814         MDEFINES.
11815         * nroff/Makefile.sub (nroff): New target.
11816         (install_data): Install nroff.
11817         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11818         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11820 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
11822         * eqn/Makefile.sub (neqn): Add chmod +x.
11824         * grog/Makefile.sub (grog): Remove spurious semi-colon.
11826 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
11828         * troff/input.cc (string_iterator::string_iterator()): Initialize
11829         lineno and count.
11831 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
11833         * troff/div.cc (macro_diversion::space,
11834         top_level_diversion::space): Don't set high_water_mark.
11835         (macro_diversion::output, top_level_diversion::output): Don't
11836         include post line space in high water mark.
11838 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
11840         * eqn/eqn.y: Don't define YYDEBUG.
11841         * pic/pic.y: Likewise.
11843 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
11845         * tmac/tmac.e ([3): Add space after comma following editors.
11846         Change double spaces to single spaces.
11847         ([4): Change double spaces to single spaces.
11849         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11850         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11851         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11852         after %!PS-Adobe- (for Newsprint).
11854         * troff/div.cc (top_level_diversion::begin_page): When
11855         before_first_page is 1, set page_number to 1.
11857 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
11859         * eqn/box.cc (box::top_level): Protect equation with \&.
11861 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
11863         * groff/groff.cc (possible_command::set_name): Delete old name.
11865         * groff/groff.cc (possible_command::~possible_command): Use
11866         a_delete.
11868         * troff/node.cc (troff_output_file::begun_page): New member.
11869         (troff_output_file::troff_output_file): Initialize it.
11870         (troff_output_file::really_begin_page): Only output V command if a
11871         page has been begun.
11873         * pic/pic.y (placeless_element): Delete argument to PRINT after
11874         use.
11876 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
11878         * Make wrapman work.
11879         * troff/div.h (class top_level_diversion): Replace
11880         first_page_begun by before_first_page (with opposite sense).
11881         * Change first_page_begun to before_first_page inverting sense.
11882         * troff/div.cc (class nl_reg): New class.
11883         (init_div_requests): Use class nl_reg for \n(nl.
11884         (top_level_diversion::begin_page): Don't call
11885         output_file::begin_page if before_first_page is 2;
11886         reset before_first_page afterwards.  If have_next_page_number is
11887         false, then always increment page_number.
11888         * tmac/tmac.an: Set traps within TH rather than at the top-level.
11889         Restore compatibility mode after loading, and then disable
11890         compatibility mode in TH.
11892 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
11894         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11895         past last line.
11896         * troff/node.h (output_file::trailer): Declare.
11897         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11898         * troff/node.cc (output_file::trailer): New function.
11899         (troff_output_file::~troff_output_file): Move most code into...
11900         (troff_output_file::trailer): New function.
11901         (class troff_output_file): Delete page_length member. Declare
11902         trailer().
11903         (troff_output_file::really_begin_page): Use current page length
11904         for final V command.
11906         * tbl/main.cc (struct options): New decimal_point_char member.
11907         (options::options): Initialize this.
11908         (process_options): Implement decimalpoint option.
11909         (process_data): Pass decimal_point_char option to table::table.
11910         * tbl/table.h (class table): New decimal_point_char member.
11911         (table::table): Add additional argument.
11912         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11913         second argument specifying decimal point character.  Use this
11914         instead of '.'.
11915         (table::table): Initialize decimal_point_char.
11916         (table::add_entry): Change call to find_dot.
11918         * troff/input.cc (get_copy, token::next): Implement \V.
11919         (interpolate_environment_variable): New function.
11921 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
11923         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11924         * pic/pic.y: Likewise.
11926         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11927         Add casts to int.
11928         * refer/ref.cc (reference::insert_field, reference::delete_field):
11929         Likewise.
11930         * troff/number.cc (parse_term): Likewise.
11932         * acgroff.m4 (GROFF_PROG_YACC): New macro.
11933         * configure.in: Use GROFF_PROG_YACC.
11935         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11936         and g++.
11937         * Makefile.in (OPTIMIZE): New define.
11938         (DEBUG): Empty by default.
11939         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11941         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11942         (GROFF_ARRAY_DELETE): Likewise.
11943         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11945         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11947         * devps/psstrip.sed: Use different delimiter on last line (so that
11948         it works with BSD 4.4 sed.)
11950 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
11952         * devps/psstrip.sed: Delete comments.
11954         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11955         optind, opterr, optarg.
11956         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11957         opterr, optarg.
11959 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
11961         * Makefile.in (check): Dummy target.
11963 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
11965         * Version 1.07 released.
11967         * Integrate mm 1.11.
11969         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11970         where start_col was meant.
11972 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
11974         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11976 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
11978         * troff/input.cc (token::next): Make \z\o'...' and similar things
11979         work.
11981         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11982         constants.
11983         (environment): Add margin_character_flags member.
11984         * env.cc (environment::environment(symbol),
11985         environment::environment(const environment *): Initialize
11986         margin_character_flags.
11987         (margin_character): Rewrite.
11988         (environment::output_line): Add a margin character if
11989         margin_character_flags is non-zero.  Turn off the
11990         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
11991         zero, use margin_character_node without copying and then set
11992         margin_character_node to 0.
11994         * devps/DESC.in: Change minimum size to 1000.
11996 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
11998         * troff/symbol.h (symbol::hash): Change return type to unsigned
11999         long.
12000         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12001         Add casts to int.
12003         * test-groff: Use -r rather than -x.
12005         * grops/psfig.diff: Include in distribution again.
12007 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12009         * Makefile.in (dist): Use gzip.
12011 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12013         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12014         unistd.h as well as in stdlib.h.
12015         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12016         defined; otherwise include <sys/types.h> and <unistd.h> if
12017         UNISTD_H_DECLARES_GETOPT is defined.
12019         * configure.in: use builtin(include, ... rather than include(...
12020         * configure: Regenerate with autoconf 1.3.
12022         * libdriver/print.cc (printer::adjust_arc_center): Use new
12023         algorithm suggested by Andy Fyfe.
12025         * libdriver/printer.cc (printer::adjust_arc_center): New function.
12026         * include/printer.h: Declare this.
12027         * grops/ps.cc (ps_printer::draw): Use it.
12028         * grodvi/dvi.cc (dvi_printer::draw): Use it.
12030 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
12032         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12034 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
12036         * eqn/main.cc (main): Handle "eqn -".
12038 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
12040         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12042         * mm: Integrate version 1.08.
12044         * pic/troff.cc (troff_output::finish_picture): Set
12045         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12046         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12047         if it's not defined. Check whether the register is non-zero rather
12048         than whether it's not defined.
12049         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12051         * indxbib/indxbib.cc: Move all signal handling into...
12052         * indxbib/signal.c: New file.
12053         * configure.in: Call AC_RETSIGTYPE.
12055         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12056         * configure.in: Call GROFF_STRUCT_EXCEPTION.
12057         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12059         * troff/input.cc (token::token, token::operator=): Work round SGI
12060         C++ bug.
12061         * pic/object.cc (position::position): Likewise.
12063 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
12065         * pic/pic.h: Move declaration of hypot().
12067 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
12069         * pic/pic.h: Declare hypot().
12071         * pic/pic.h: Define M_PI if necessary.
12073 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
12075         * tmac/tmac.e (re): Add alternative version that doesn't use groff
12076         `.ta T' feature.
12078         * devps/prologue.ps (RE): Handle the possibility that the old font
12079         doesn't have a FontName entry.
12081 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
12083         * tmac/tmac.e (fam): Redefine to set family in environment 2.
12084         (@C): Use @fam not fam.
12086 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
12088         * lookbib/lookbib.cc (main): Change type of start to const char *.
12089         * lkbib/lkbib.cc (main): Likewise.
12091         * eqn/lex.cc (definition::definition): Don't use member
12092         initializer syntax for members of anonymous unions.
12094         * troff/input.cc (input_stack::backtrace): Change type of to const
12095         char *.
12097 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
12099         * include/stringclass.h (class string): Declare inline friend
12100         functions as inline in class declaration.
12101         * troff/hvunits.h (class hunits, class vunits): Likewise.
12102         * include/refid.h (class reference_id): Likewise
12103         * troff/troff.h (points_to_units(units), scale(units, double)):
12104         Delete declarations.
12105         * libdriver/input.cc (get_char): Delete declaration.
12106         * include/lib.h: Change 2nd argument of getopt from const char **
12107         to char **.
12108         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12109         char **' before assigning to a `const char **'.
12110         * tbl/table.cc: Delete extra declarations of prints().
12112 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
12114         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12115         char **' before assigning to a `const char **'.
12117         * libgroff/errarg.cc (errarg::errarg): Don't use member
12118         initializer syntax for members of anonymous unions.
12120 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
12122         * mm: Integrate version 1.07.
12124 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
12126         * troff/input.c (translate2): Rename to
12127         (translate_no_transparent).
12128         (init_input_requests): Rename tr2 to trnt.
12130 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
12132         * troff/charinfo.h (class charinfo): Add transparent_translate field.
12133         (charinfo::set_translation, charinfo::set_special_translation):
12134         Add second argument that specifies value for
12135         transparent_translate.
12136         (charinfo::get_translation, charinfo::get_special_translation):
12137         Add optional second argument that specifies whether translation is
12138         being used for transparent throughput.
12139         * troff/input.cc (charinfo::set_translation,
12140         charinfo::set_special_translation): Handle second argument.
12141         (charinfo::charinfo): Initialize transparent_translate.
12142         (translate): Split main part off into
12143         (do_translate): New function.  Pass argument saying whether
12144         translation applies to transparent throughput.
12145         (translate2): New request.
12146         (init_input_requests): Bind translate2 to `tr2'.
12148 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
12150         * tbl/table.h (class table): Add `nokeep' flag.
12151         * tbl/main.cc (process_options): Handle `nokeep' option.
12152         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12153         table::do_bottom): Don't output keep/release macro definitions or
12154         calls when `nokeep' option has been specified.
12156 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
12158         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12160 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
12162         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12163         block_entry::divert, alphabetic_block_entry::divert): Add extra
12164         argument giving column separation.
12165         (table::compute_widths): Pass column separation to
12166         table_entry::divert().
12167         (block_entry::do_divert): If an entry spans multiple columns and a
12168         minimumum width has been specified for each column, then set the
12169         line length to the sum of the widths (plus possibly the column
12170         separations).
12172         * troff/input.cc (set_escape_char): Don't set the escape_char
12173         until after calling has_arg().
12175 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
12177         * tbl/table.cc (table::do_top): Add missing \s0 for double box
12178         case.
12180         * tbl/table.cc (table::print_double_hline): Avoid extra new line
12181         in case where r > nrows - 1.
12183         * tbl/table.cc (BODY_HEIGHT): Deleted.
12184         (LINE_SEP): New definition.
12185         (table::print_single_hline, table::print_double_hline,
12186         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12187         table::do_row, table::do_top): Use LINE_SEP space before a line
12188         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12190         * tbl/table.cc (text_entry::print_contents): New function.
12191         (text_string_name, right_text_string_name): Deleted.
12192         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12193         (simple_text_entry::do_width, numeric_text_entry::do_width,
12194         alphabetic_text_entry::do_width): Don't store the contents of the
12195         entry in a string.
12196         (left_text_entry::simple_print, right_text_entry::simple_print,
12197         center_text_entry::simple_print,
12198         alphabetic_text_entry::simple_print,
12199         numeric_text_entry::simple_print): Print the entry directly
12200         instead of using the stored string.
12202 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
12204         * devps/Makefile: Strip PostScript files.
12205         * devps/prologue: Rename to...
12206         * devps/prologue.ps.
12207         * devps/psstrip.sed: New file.
12208         * devps/download: Use .pfa rather than .ps for installed versions
12209         of fonts.
12211 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
12213         * troff/env.cc (input_trap): Give a warning if the argument is out
12214         of range.
12216         * troff/env.cc (adjust): Treat negative argument as missing. Round
12217         argument > 5 down to 5.
12219         * troff/env.cc (center, right_justify): Make negative argument zero.
12221         * troff/div.cc (page_offset, vertical_position_traps): Treat
12222         invalid argument as missing.
12223         * troff/env.cc (line_spacing, line_length, title_length, indent,
12224         underline, hyphen_line_max_request, control_char,
12225         no_break_control_char, widow_control_request, adjust, input_trap,
12226         point_size): Likewise.
12227         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12228         constant_space): Likewise.
12229         * troff/input.cc (compatible, shift, warn_request,
12230         set_escape_char): Likewise.
12232         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12233         * tbl/table.cc (table::table): Likewise.
12235         * Makefile.dev (install_dev): depends on $(DEVFILES).
12237 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
12239         * devX75, devX75-12, devX100, devX100-12: New directories.
12240         * Makefile.in: Add these to DEVDIRS.
12242         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12243         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12244         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12245         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12246         targets.
12247         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12248         (uninstall): New target.
12249         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12250         uninstall_prog, uninstall_dev): New targets.
12252         * troff/div.cc (return_request): Treat an invalid argument as
12253         missing.
12255 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
12257         * tmac/tmac.e ((f): Set up the environment even when there's a
12258         current diversion.  Transperently throughput a call to @N.
12259         (@N): New macro.
12261 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
12263         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12264         up to vertical resolution.
12266         * tbl/table.cc (table::do_row): Change row number after printing
12267         stuff list.
12269         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12271 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
12273         * Rename CHANGES to NEWS.
12275 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
12277         * libgroff/new.cc (operator new): Avoid calling malloc(0).
12279 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
12281         * man.ultrix: Removed.
12283 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
12285         * Makefile.comm (extraclean): Delete files whose names begin with
12286         `='.
12288         * pic/troff.cc (troff_output::text): Fix typo in implementation of
12289         aligned text.
12291 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
12293         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12294         * troff/div.cc (page_length, need_space, space_request): Treat
12295         invalid optional argument as missing.
12296         * troff/env.cc (number_lines): If the first argument is present
12297         but not a number, turn on line numbering, don't change the next
12298         line number and parse the remaining arguments.
12300         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12302 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
12304         * eqn/box.h: Change declaration accordingly.
12305         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
12306         the specified size was bad but don't give an error.  Check for
12307         overflow.
12308         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12309         * eqn/lex (do_size): Likewise.
12311 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
12313         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12314         compatible headers.
12316 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
12318         * tbl/table.cc (table::init_output): Improve error message when
12319         table won't fit on one page.
12321 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
12323         * pic/troff.cc (troff_output::start_picture): Generate line
12324         containing a horizontal motion equal to the width of the picture.
12326         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12327         using GROFF_COMMAND_PREFIX environment variable.
12329 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
12331         * mdate.sh: Use $NF rather than $(NF).
12333 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
12335         * pic/main.cc (main):  Use %1 not %c in argument to warning.
12337         * eqn/main.cc (main): Output code to check that geqn was given the
12338         correct -T option.
12340 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
12342         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12343         `ln -s ../Makefile .; make; rm -f Makefile'.
12345         * troff/hyphen: Rename to...
12346         * troff/hyphen.us:
12347         * troff/input.cc (main): Delete -H option. Don't call
12348         read_hyphen_file().
12349         * troff/env.cc: Include searchpath.h and macropath.h.
12350         (exception_dictionary): Deleted.
12351         (ht): Deleted.
12352         (read_hyphen_file): Deleted.
12353         (hyphenation_language): New struct.
12354         (class trie, class hyphen_trie): Move declarations up.
12355         (trie_node::~trie_node): Deleted.
12356         (trie::delete_trie_node): New function.
12357         (trie::do_delete): New pure virtual function.
12358         (hyphen_trie::do_delete): New function.
12359         (trie::~trie): New function.
12360         (hyphen_trie::~hyphen_trie): New function.
12361         (trie::clear): No need to chcek that tp is not 0.
12362         (current_language, language_dictionary): New variables.
12363         (hyphen_word): Give an error if no current language.  Use
12364         exceptions dictionary in current language.
12365         (hyphen_trie::read_patterns_file): Find file using macro_path.
12366         Allow comments (starting with %) in patterns file.  Don't make it
12367         a fatal error if the file can't be found.
12368         (hyphenate): Return if no current language.  Get the exceptions
12369         dictionary and the hyphenation patterns from the current language.
12370         (set_hyphenation_language): New variable.
12371         (hyphenation_patterns_file): New function.
12372         (hyphenation_language_reg): New class.
12373         (hyphenation_language_reg::get_string): New function.
12374         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12375         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
12376         register.
12377         * groff/groff.cc (main, help, synopsis): Delete -H option.
12378         * include/Makefile.sub: Don't define HYPHENFILE.
12379         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12380         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12381         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12382         hyphenation patterns.
12384 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12386         * eqn/neqn.sh: New file.
12387         * eqn/Makefile.sub: Handle neqn.sh.
12389         * eqn/eqn.h: Declare `nroff' variable.
12390         * eqn/box.cc (param_table): Add `nroff' param.
12391         (nroff): Define it.
12392         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12393         variable.
12394         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12396         * troff/troff.h (WARN_FONT): New warning.
12397         (WARN_TOTAL): Change accordingly.
12398         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12399         (warning_table): Add WARN_FONT.
12400         * troff/node.cc (mount_font_no_translate): Pass argument to
12401         font::load_font.  If this is non-zero, give a warning.
12402         Don't give an error message when accessing a font that has already
12403         been found to be invalid.
12404         * include/font.h (font::load, font::load_font): Add additional
12405         optional argument which suppresses error message if the font is
12406         not found.
12407         * libgroff/font.cc (font::load_font): Handle additional argument.
12408         (font::load): Add additional argument. If this is non-null, set it
12409         to 1 and don't give error message.
12411         * include/printer.h (printer::end_page): Add argument giving
12412         length of page.
12413         * libdriver/input.cc (do_file): Pass this.
12414         * grops/ps.cc (ps_printer::end_page): Add argument.
12415         * grodvi/dvi.cc (dvi_printer::end_page,
12416         draw_dvi_printer::end_page): Add argument.
12417         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12418         columns_per_page members. New member nlines.
12419         (DEFAULT_LINES_PER_PAGE): Deleted.
12420         (tty_printer::tty_printer): Don't compute lines_per_page from
12421         font::paperlength. Don't compute columns_per_page from
12422         font::paperwidth.
12423         (tty_printer::add_char): Don't check horizontal position against
12424         columns_per_page. Grow glyphs vector if neccessary.
12425         (tty_printer::end_page): Add argument giving page_length in units.
12426         Discard lines past end of page.
12428 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12430         * tmac/tmac.tty-char: Fix definition of \(/l.
12432         * tmac/tmac.X: Define \(en.
12434 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
12436         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12437         lpq, then use lp rather than lpr.
12439         * tmac/tmac.s (par@reset): Don't call `ad'.
12440         (par*env-init): Call `ad'.
12442 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
12444         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12445         date.
12447         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12448         * indxbib/indxbib.cc: Likewise.
12450 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
12452         * libgroff/putenv.c: New file.
12453         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12454         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12455         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12456         stdlib.h with AC_HAVE_HEADERS.
12458 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
12460         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12461         does not exist.
12463 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
12465         * eqn/box.cc (gsize): Make it an int.
12466         (set_gsize): Parse argument handling increment or decrement.
12467         (box::top_level): Convert gsize to a string.
12469         * troff/input.cc (exit_troff): Make buf unsigned char [].
12470         Call to make_temp_iterator casts buf to char*.
12472         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12474         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12475         * Makefile.cpg (depend.temp): Likewise.
12477         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12479         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12481 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
12483         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12485 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
12487         * Version 1.06 released.
12489         * Integrate mm 1.04.
12491 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
12493         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12495 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
12497         * afmtodit/afmtodit.pl: Add -n option that disables generation of
12498         ligatures command.
12499         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12500         afmtodit. Regenerate.
12502         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12503         @f back past the current position.
12505         * tmac/tmac.e: Change calls to @R so that comments are not part of
12506         arguments.
12508 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
12510         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12512         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12513         check that we can link a call to a function declared in <stdio.h>.
12514         (GROFF_UNISTD_H): New macro.
12515         * configure.in: Call it.
12516         * Makefile.in: Document it.
12517         * include/posix.h: New file.
12518         * troff/troff.h: Don't include <osfcn.h>
12519         * troff/input.cc: Include posix.h.
12520         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12521         osfcn.h.
12522         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12523         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12524         <fcntl.h>.
12525         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12526         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12527         * libbib/search.cc (O_RDONLY): Delete definition.
12528         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12529         Don't include <osfcn.h>.
12531         * acgroff.m4 (GROFF_TIME_T): New macro.
12532         * configure.in: Call it.
12533         * Makefile.in: Document it.
12535         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12536         * configure.in: Call it.
12537         * Makefile.in: Document -DTRADITIONAL_CPP.
12538         * include/ptable.h: Don't include generic.h.
12539         (name2): Define it.
12541         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12542         Afterwards remove [T1 and [T2.
12543         (ref*spec!0, ref*spec!2): Use T1 rather than T.
12544         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12545         (ref*add-T2): Renamed from ref*add-T.
12546         (ref*add-T1): New macro.
12548 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
12550         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12552         * libbib/index.cc: Include <fcntl.h>.
12553         (O_RDONLY): Define if necessary.
12554         (make_index_search_item, index_search_item_iterator::get_tag,
12555         index_search_item::check_files): Use O_RDONLY.
12556         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12557         (O_RDONLY): Define if necessary.
12558         (search_list::add_file): Use O_RDONLY.
12559         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12560         <sys/stat.h>.
12561         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12562         (main): Use these.
12564         * libbib/index.cc (S_ISREG): Define it if necessary.
12565         (index_search_item::load): Use S_ISREG.
12567         * include/driver.h: Include <errno.h>.
12569 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
12571         * eqn/box.cc (body_height): Increase default value to 85.
12572         (body_depth): Increase default value to 35.
12574 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
12576         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12577         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12578         protected from expansion with \E.
12580         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12582         * Makefile (Makefile): New target.
12584         * Makefile.sub (configure, distfiles): New targets.
12586         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12587         construct.
12589 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
12591         * eqn/box.cc (param_table): Add body_height and body_depth.
12593         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12595 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
12597         * psbb/Makefile.sub: Don't link with libgroff.a.
12599         * acgroff.m4 (GROFF_PUTENV): New macro.
12600         * configure.in: Call GROFF_PUTENV.
12601         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12602         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12603         is defined.
12605         * troff/env.cc (distribute_space): Rename force_forward argument
12606         to force_reverse.  Reverse the list if force_reverse is true.
12608 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
12610         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12612         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12613         height or depth to be negative.  Guard against SUP_RAISE quantity
12614         being negative.
12616 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
12618         * devps/generate/textmap: Add `an' (arrowhorizex).
12619         * tmac/tmac.ps: \(an overlaps horizontally.
12620         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12622         * devps/symbolchars: Add arrowverttp, arrowvertbt.
12623         * devps/textmap: Add arrowvertex.
12624         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12625         updownarrow delimiters.
12626         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12628         * tbl/table.cc (simple_entry::position_vertically,
12629         block_entry::position_vertically):  For a centered entry, perform
12630         the motion in two stages.
12632         * refer/refer.cc (split_punct): Don't call lookup_token if there
12633         is no token.
12635 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
12637         * troff/input.cc (token::next): Delete token_node after copying
12638         token.
12640         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12641         cur_point_size.
12643         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12645         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12647 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
12649         * grops/ps.cc (usage): -b option takes an argument.
12651         * devps/prologue (PLG): New procedure.
12652         * grops/ps.cc (main, usage): New -g option.
12653         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
12654         length using PLG.
12656 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
12658         * include/cset.h: Include <limits.h> if we have it.
12660         * libgroff/illegal.cc: New file.
12661         * include/lib.h (illegal_input_char): Use table.
12662         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12663         * pic/lex.cc (ARG1): Renumber to 14.
12664         * eqn/lex.cc (ARG1): Likewise.
12666         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12667         (eg 1.05.90) correctly.
12669 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
12671         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12672         Rename $r and $R registers to $v and $V.
12673         ($r, $R): Initialize to 0.
12674         (@v, @V): New macros.
12675         (sz): Call @v.
12676         (@M): Call @V.
12678         * troff/input.cc (main, usage): Add -R option that says not to
12679         load troffrc.
12680         * eqn/main.cc (main, usage): Rename -n to -R.
12682 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
12684         * devps/DESC.in: Leave font positions 5-9 blank.
12685         * devdvi/DESC.in: Likewise.
12687         * grog/grog.pl: Handle `.PS <file' correctly.
12689         * troff/input.cc (input_stack::push): Improve error message when
12690         input stack limit exceeded.
12692 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
12694         * refer/refer.cc (main): Fix typo in handling of `a' option.
12696         * refer/refer.cc (do_bib): In state START after a newline remain
12697         in state START.
12699         * groff/groff.sh: Deleted.
12700         * groff/Makefile.sub: Delete handling of groff.sh.
12702         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12703         to determine whether to use \X'ps:...'.
12704         * tmac/troffrc: Set 0p register to 0.
12705         * tmac/tmac.ps: Set 0p register to 1.
12707         * groff/groff.cc: Support -X option. Give warning for -TXps and
12708         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12709         * tmac/troffrc: Support -r.X=1.
12711         * pic/troff.cc (troff_output::dot): Don't test
12712         zero_length_line_flag.
12714 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
12716         * include/lib.h: Declare getopt() and friends unless
12717         STDLIB_H_DECLARES_GETOPT is defined.
12719         * doc/chars.tr: Delete.
12720         * man/groff_char.man: New file.
12722 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
12724         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12725         user has changed register format.
12727 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
12729         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
12730         `postpro' command in DESC file.  Get spooler command from `print'
12731         command in DESC file.  Execute spooler command with /bin/sh.
12733         * groff/groff.cc: Split Unix-specific parts into...
12734         * groff/pipeline.c: New file.
12736         * LICENSE: Delete.
12737         * COPYING: New file.
12738         * all files: Update copyright notices.
12740         * Rearrange files.  Redo Makefiles.  Use autoconf.
12742 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
12744         * troff/input.c (charinfo_to_node_list): Interpret character
12745         definition with escape_char of `\'.
12747 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
12749         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12750         Define INT_DIGITS as big enough for 64-bit integer.
12751         * lib/strtol.c: Don't include lib.h.
12752         * lib/lib.h: Delete ifdef __cplusplus stuff.
12754 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
12756         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
12757         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
12758         get DESC from current directory.
12760 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
12762         * tbl/main.c (main): Always reset the line number when reading
12763         from stdin.
12765         * tbl/table.c (table::print_single_hline, table::print_double_hline,
12766         table::define_bottom_macro, table::do_row, table::do_top): Round
12767         vertical spacing up to vertical resolution.
12769 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
12771         * ps/ps.h (enum resource_type): Avoid comma at end of
12772         enumerator-list.
12773         * dvi/dvi.c (class dvi_printer): Likewise.
12774         * dvi/tfmtodit.c (gf::load): Likewise.
12775         * refer/label.y (struct expression): Likewise.
12776         * refer/refer.c (class label_processing_state): Likewise.
12777         * refer/indxbib.c (do_file): Likewise.
12778         * troff/troff.c (enum warning_type): Likewise.
12779         * tbl/main.c (process_data): Likewise.
12780         * troff/charinfo.h (class charinfo):
12782 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
12784         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
12786 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
12788         * groff.c: Move to new groff subdirectory.
12789         * groff/Makefile: New file.
12790         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12792         * man/mdate.sh: Use ls -L if supported.
12794         * Consolidate all header files produced by gendef into lib/defs.h.
12795         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12796         Don't include path.h.
12797         * lib/Makefile (path.h): Don't generate.
12798         * troff/input.c: Include defs.h. Don't include config.h.
12799         * troff/Makefile (config.h): Don't generate.
12800         * refer/index.h: Don't include suffix.h.
12801         * refer/index.c: Include defs.h.
12802         * refer/indxbib.c: Include defs.h.
12803         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12804         defs.h.
12805         * refer/Makefile (suffix.h, path.h): Don't generate.
12806         * groff.c: Don't include config.h. Include defs.h.
12807         * Makefile (config.h): Don't generate.
12808         (lib/defs.h): Generate.
12809         (topclean): Remove lib/defs.h.
12811 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
12813         * lib/malloc.c, lib/getpagesize.h: Deleted.
12814         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
12815         related stuff.
12816         * lib/Makefile: Delete malloc-related stuff.
12817         * lib/new.c: Workaround COOKIE_BUG if necessary.
12819         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
12820         needed header files directly.
12821         * refer/refer.h: Omit definition of DEFAULT_INDEX.
12822         * Makefile: Include definition of DEFAULT_INDEX in path.h.
12824 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
12826         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12827         argument.
12828         * lib/font (font::load_desc, font::load): Don't split argument of
12829         unknown command.
12830         (font::handle_unknown_font_command): Change type.
12831         * ps/ps.c (ps_font::handle_unknown_font_command,
12832         handle_unknown_desc_command): Change type.
12833         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12835 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
12837         * lib/font.h (font::handle_unknown_font_command): Add file and
12838         line arguments.
12839         * lib/font.c (font::handle_unknown_font_command):
12840         * ps/ps.c (ps_font::handle_unknown_font_command):
12841         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12842         lineno arguments.  Use _with_file_and_line functions for error
12843         reporting.
12845         * lib/fontfile.c (font::unknown_desc_command_handler): New static
12846         data member.
12847         * lib/font.c (font::set_unknown_desc_command_handler): New
12848         function.
12849         (font::load_desc): For unknown commands, call
12850         unknown_desc_command_handler if not null.
12851         * lib/font.h (class font): Declare them.
12852         (FONT_COMMAND_HANDLER): New typedef.
12853         * ps/ps.c (handle_unknown_desc_command): New function.
12854         (main): Set bflag if we had a -b option. Call
12855         font::set_unknown_desc_command_handler.
12856         (broken.h): Don't include.
12857         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
12858         submake 
12859         * ps/devps/Makefile: Add `broken' command to DESC file using
12860         BROKEN_SPOOLER_FLAGS.
12862         * macros/tmac.e ([, ]): Add as synonyms for { and }.
12864         * macros/tmac.e ($p): Only exdent if \$3 > 0.
12866         * macros/tmac.e (@R, @S): New macros.
12867         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12868         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12869         Declare $H, $[0-9], .. macros with @S.
12870         Declare |0, |1, |2, |3 strings with @S.
12872         * macros/tmac.e (@S): Rename to @U.
12874         * macros/tmac.e (@z): Define @b and bp as empty instead of
12875         deleting them,
12877         * macros/tmac.e (@m): Deleted.
12878         (@h): Don't call @m.
12879         (@z): Don't set @m trap.
12881         * macros/tmac.e ($h, $f): Define |z as empty string.
12883         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12884         (@q): Likewise.
12886         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12887         removing them.
12888         ()f): Likewise for * register.
12890         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12891         argument is missing, don't change $R.  Call sr with three
12892         arguments when initializing.
12894 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
12896         * macros/tmac.e (sr): New macro.
12897         Initialize $r and $R using sr.
12899         * macros/tmac.e (,): Delete \*(#[.
12901         * troff/env.c (set_tabs): Read the tab type even if the position
12902         is bad.  Allow the position of the first tab stop to be negative.
12904 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
12906         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12907         _POSIX_VERSION.
12908         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12909         rather than -DPATHCONF_MISSING.
12910         * Makefile: Get rid of PATHCONF_MISSING.
12912         * refer/map.c: New file.
12913         * refer/index.c: Interface to mmap through map.c.  Rename map_size
12914         to map_len.
12915         * refer/Makefile: Handle map.c.
12916         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12918 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
12920         * Makefile: RANLIB should be `true' if there is no ranlib.
12921         * lib/Makefile (libgroff.a): Simplify.
12922         * driver/Makefile (libdriver.a): Simplify.
12924         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12925         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
12926         defined.
12928 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
12930         * troff/env.c (compare_ranges): Declare as extern "C".
12932         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12934         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12936 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
12938         * pic/troff.c (troff_output::text): Merge in grops_output::text,
12939         but conditionalize use of \X based on \*(.T.
12940         (grops_output::*): Deleted.
12941         * pic/output.h: Delete declaration of make_grops_output.
12942         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
12943         by default. -n sets it to 0.
12944         (usage): Corresponding changes.
12945         * groff.c (main): Don't pass -x or -p to pic.
12946         * groff.sh: Likewise.
12948         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12949         to be non-zero.
12951         * ps/devps/afmtodit: Change calculation of asc_boundary and
12952         desc_boundary.  Make these bounds inclusive.
12953         * ps/devps: Regenerate font files.
12955 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
12957         * macros/tmac.latin1: New file.
12958         * macros/tmac.tty-char: Use tmac.latin1.
12959         (tmac.tty-tr): Deleted.
12960         * macros/Makefile: Install tmac.latin1.
12961         * macros/tmac.dvi: Use tmac.latin1.
12962         * macros/troffrc: Translate \[char160] onto no-break space here.
12963         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12965 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
12967         * macros/tmac.Xps: Use `do' request.
12969         * macros/tmac.ps: Use `do' request.
12971         * macros/tmac.e (@C): Use `do' request.
12973         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12974         * macros/Makefile: Install tmac.X*.
12976         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12977         * tty/Makefile: Don't install tmac.tty*.
12978         * macros/Makefile: Install tmac.tty*.
12980         * dvi/tmac.dvi: Move to macros.
12981         * dvi/Makefile: Don't install tmac.dvi.
12982         * macros/Makefile: Install tmac.dvi.
12984         * ps/tmac.ps*: Move to macros.
12985         * ps/Makefile: Don't install tmac.ps*.
12986         * macros/Makefile: Install tmac.ps*.
12988         * eqn/box.c: Provide draw_lines parameter corresponding to -D
12989         option.
12990         * macros/eqnrc: Set draw_lines parameter based on device.
12991         * groff.c: Don't pass -D flag to eqn.
12992         * groff.sh: Likewise.
12993         * eqn/main.c: Warn about use of -D.
12995         * troff/input.c (process_startup_file): New function.
12996         (main): Call process_startup_file().
12997         * macros/troffrc: New file.
12998         * macros/Makefile: Install troffrc.
12999         * groff.c (main): Don't pass extra -m option to troff. For a 
13000         pseudo device pass the name of the pseudo device to troff using
13001         -d.
13002         * groff.sh: Likewise.
13003         * groff.c (possible_command::prepend_arg): Deleted.
13005         * troff/input.c (do_request): New function.
13006         (init_input_requests): Bind "do" to do_request.
13008         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13009         load eqnrc from macro directory.
13010         * macros/eqnrc: New file.
13011         * macros/Makefile: Install eqnrc.
13012         * ps/devps/eqnchar: Deleted.
13013         * ps/devps/Makefile: Don't install eqnchar.
13014         * dvi/devdvi/eqnchar: Deleted.
13015         * dvi/devdvi/Makefile: Don't install eqnchar.
13016         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13017         variable optM.
13019         * lib/device.[ch]: New files.
13020         * lib/font.h (font::set_device_name, font::get_device_name):
13021         Deleted.
13022         * lib/fontfile.c: Use device.h.
13023         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13024         * troff/input.c: Delete definition of `device'.
13025         (main): Don't initialize device.
13026         * troff/troff.h: Include device.h rather than declaring device.
13027         * troff/Makefile: No need to handle DEVICE.
13028         * driver/input.c: Include device.h. Don't use
13029         font::{set,get}_device_name.
13030         * groff.c, Makefile: Rename device.h to config.h.
13031         * groff.c: Use library device variable.
13032         * eqn/main.c: Use library device variable.
13033         * eqn/Makefile: No need to handle DEVICE.
13035         * lib/searchpath.[ch]: New files.
13036         * lib/Makefile: Handle searchpath.[ch].
13037         * troff/input.c (open_file, init_dirs): Deleted.
13038         (macro_dirs): Deleted.
13039         (open_mac_file, macro_source): Use class search_path.
13040         (add_string, struct string_list): Move definition.
13041         (main): Change -M option to use macro_path. Delete call to
13042         init_dirs().
13043         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13044         Rewrite to use class search_path.
13045         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13046         * lib/Makefile: fontfile.c depends on searchpath.h.
13047         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13048         MACROPATH.
13049         * lib/macropath.[ch]: New files.
13050         * troff/Makefile: No need to handle MACROPATH.
13052         * troff/input.c: Delete DUMP code.
13053         * lib/fontfile.c, lib/font.h: Delete
13054         font::forget_command_line_font_dirs.
13056         * troff/input.c (push_token): New function.
13057         (handle_first_page_transition): Use push_token().
13058         (process_input_stack): Change handling of a space at the beginning
13059         of the line.
13061 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
13063         * troff/input.c (font_dirs): Delete unused variable.
13065         * eqn/lex.c (do_set): Correct error messages.
13067 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
13069         * troff/input.c (do_define_string): Allow the string name to be
13070         followed immediately by a tab.
13071         (define_character): Likewise.
13073 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
13075         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13076         be negative.
13078         * troff/input.c (input_iterator::is_file): New virtual function.
13079         (file_iterator::is_file): New function.
13080         (input_stack::end_file): New function.
13081         (input_stack::next_file): Handle the situation where there is no
13082         file on the input stack correctly.  Avoid making two passes over
13083         the input stack.
13084         (next_file): Make the filename optional; in this case call
13085         input_stack::end_file().
13087 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
13089         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13090         produce a real _ charater when the current font is CW and _
13091         otherwise.
13093         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13094         expression to work around gcc 2.2 bug.
13096 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
13098         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13100         * troff/env.c (environment::add_padding): New function.
13101         (environment::add_char): Use add_padding().
13102         (environment::space): Likewise.
13103         (environment::wrap_up_field): Add some padding if there is none
13104         and there's no current tab.
13105         * troff/env.h: Declare environment::add_padding.
13107 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
13109         * pic/pic.y: undef fmod and rand before declaring them.
13111 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
13113         * troff/input.c (main): If the DESC file specifies a font name of
13114         0, then leave the corresponding font position empty.
13116         * nroff.sh: New file.
13117         * Makefile (install.nobin): Install nroff.sh.
13119         * tty/devlatin1/R.proto: Add ao as synonym for de.
13120         * tty/tmac.tty-char: Define ao as o.
13122         * tty/dev{ascii,latin1}/R.proto: Add aq.
13123         * tty/tmac.tty-char: Delete definition of aq.
13125 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
13127         * troff/input.c (init_charset_table): Don't translate 0240.
13128         * ps/tmac.ps: Translate char160 to space.
13129         * dvi/tmac.dvi: Likewise.
13130         * tty/tmac.tty: Likewise.
13132 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
13134         * dvi/tmac.dvi: Add support for all Latin-1 characters.
13136         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13137         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13138         \(oe, \(r?, \(r!.
13140         * tty/tmac.tty-char: Add \(ah.
13142         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13143         No need to define \(FM and \(!/. Conditionalize all character
13144         definitions.
13146         * ps/devps/lgreekmap: Add +h, +f, +p.
13148         * ps/tmac.psnew: New file.
13149         * ps/Makefile: Install tmac.psnew.
13151         * troff/input.c (charinfo_to_node_list): Don't ever interpret
13152         character definitions in compatible mode.
13154         * troff/input.c (remove_character): New function.
13155         (init_input_requests): Bind remove_character to "rchar".
13157         * ps/tmac.psold: New file.
13158         * ps/Makefile: Install tmac.psold.
13159         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13160         characters into tmac.psold.  Make these definitions unconditional.
13162         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13164         * ps/tmac.ps: Don't define \('c and \('C.
13166         * ps/devps/textmap: Move Greek characters to...
13167         * ps/devps/symbolchars:
13169 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
13171         * ps/devps/text.enc: Add quotesingle.
13172         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13173         * tty/tmac.tty-char: Likewise.
13174         * dvi/devdvi/texmi.map: Add +h, +f, +p.
13175         * dvi/devdvi/texi.map: Add Fn.
13176         * dvi/devdvi/msam.map: Add lz.
13177         * dvi/tmac.dvi: Handle Bq, bq, aq.
13179         * pic/lex.c (get_token): Recognize 'th.
13180         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13182 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
13184         * ps/devps/textmap: Move di, mu, +- to...
13185         * ps/devps/symbolchars:
13187         * macros/tmac.s (@XS): Don't call par@reset or fi.
13188         (XA): Call LP. Turn off adjustment. Reduce line length.
13190         * macros/tmac.s: Initially alias XS to LP.
13191         (XS): Rename to @XS.
13192         (cov*ab-init): Alias XS to @XS.
13194 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
13196         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13197         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13198         (token::is_size, token::changes_env): Deleted.
13199         * troff/number.c (parse_term): No need to process \s explicitly.
13200         Call tok.next() only after scale indicator has been processed.
13201         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13202         \f etc explicitly.
13203         (token::next): Handle \s, \f, \S, \H immediately rather than
13204         returning them as tokens.
13205         (token::operator==, token::description, token::add_to_node_list,
13206         token::process): Remove handling of deleted tokens.
13208         * troff/env.c (environment::add_char): When adding padding
13209         indicator character, call start_line() if necessary.
13211 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
13213         * ps/devps/afmtodit: Don't output 0 kerns.
13215         * ps/devps/afmtodit: Remove directory from name of encoding in
13216         font description file.
13218         * ps/devps/afmtodit: Improve error messages.
13220         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13222         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13223         * ps/devps/FontMakefile: Deleted.
13224         * ps/devps/afmname: New file.
13226         * ps/devps/symbol.sed: New file.
13227         * ps/devps/symbol.diff: Deleted.
13228         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13229         Generate zapfdr.afm from zapfd.afm.
13231         * tty/tmac.tty (tty-char): Prefix definition with ".
13233         * macros/tmac.an (TP): Don't start a diversion if one has already
13234         been started.
13236         * tty/tmac.tty-char: Add Latin-1 characters.
13238         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13240 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
13242         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13243         Move declaration of struct horizontal_span.
13245         * tbl/table.c (table::table): Initialize span_list.
13246         (table::~table): Delete span_list.
13248         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13250         * ps/devps/Makefile: Avoid dependency on GNU make.
13252         * ps/tmac.ps: Check that character does not already exist before
13253         defining it.
13255         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13256         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13257         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13258         files.
13260         * tty/tmac.tty-char: New file.
13261         * tty/Makefile: Install tmac.tty-char.
13262         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13263         tmac.tty-char.
13265         * tty/tmac.tty: Fix definition of \(34.
13267         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13268         bracket-drawing characters onto |. Add *o.
13270         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13271         only if current_field.
13273         * troff/dictionary.c (dictionary::lookup): Free old_table after
13274         rehashing. 
13276 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
13278         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13279         whose glyphs are identical to glyphs of some Roman character.
13281         * tty/devlatin1/R.proto (bu): Deleted.
13282         * tty/devascii/R.proto (bu): Deleted.
13283         * tty/tmac.tty: Add definition of \(bu.
13285         * eqn/main.c (do_file): Pass FILE as argument.
13286         (main): Automatically load eqnchar.  New options -F and -n.
13287         Pass do_file an opened FILE.
13288         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13289         No need to include font.h.
13290         * groff.sh: Likewise.  Don't need to use - for standard input.
13291         Prefix files with -- if first file starts with -.
13293         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13295         * troff/env.c (environment::possibly_break_line): Don't set line
13296         to 0 across call to output_line().  Don't call output_line() until
13297         after discarding nodes after break.
13299 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
13301         * request.h (macro::empty): Declare it.
13302         * input.c (macro::empty): New method.
13303         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
13304         macro is empty.
13306 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
13308         * troff/env.c (environment::start_field): Decrement space_total
13309         when a space is frozen.
13311 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
13313         * macros/tmac.an (R): Delete macro.
13315         * troff/input.c (get_copy, token::next): Support \# (like \" but
13316         newline is ignored).
13318         * troff/input.c (token::next): Fix error message in 'Y' case.
13320 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
13322         * eqn/delim.c (define_extensible_string): Recognize any prefix of
13323         a delimiter name.
13325 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
13327         * c++test.c: Include <osfcn.h>.
13329         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13330         <errno.h> doesn't.
13332 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
13334         * tbl/table.c (table::divide_span): Don't count column separation
13335         if expand was specified.
13337         * tbl/main.c (process_format): Don't ignore width specs in
13338         continued format.  Give warning for changing equal widths or
13339         column separation in continued format.
13340         (process_data): Set column separation, minimum width, equal
13341         columns at end of table.
13343 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
13345         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13346         node::add_discretionary_hyphen): Use soft_hyphen_char.
13347         (set_soft_hyphen_char): New function.
13348         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
13350         * Makefile (c++tested): Give more helpful message if test fails.
13352 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
13354         * troff/input.c (init_charset_table): Translate 0240 to
13355         an unbreakable space.
13357         * troff/token.h (token::hyphen_indicator): New function.
13358         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13359         translation.
13360         * troff/input.c (translate): Allow translation to \%.
13361         * troff/node.c (node::add_char): Handle
13362         TRANSLATE_HYPHEN_INDICATOR.     
13363         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13365         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13366         for \(hy.
13368         * tty/devlatin1/R.proto: \(hy and - should print as 055.
13370 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
13372         * groff.c (run_commands): If the last command gets a SIGPIPE send
13373         a SIGPIPE to all children than haven't yet terminated.  When
13374         command terminates, set pid field to -1.
13376 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
13378         * groff.c (main): Pass an appropriate -filename option to gxditview.
13380 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
13382         * Makefile.bd (install): Remove existing program before copying.
13384         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13385         programs which have Unix counterparts to be installed with
13386         user-specified prefix.
13388         * troff/input.c (exit_troff): Don't check if exit_started.
13389         (exit_request): Don't call exit_troff if exit_started.
13391         * Makefile.bd (install.mm): Rename to install.dwbmm.
13393 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13395         * driver/input.c (do_file): Add missing break for '#' case.
13397 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13399         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13400         then add the boundaries back.
13402         * troff/input.c (exit_troff): Return immediately if already
13403         exiting.
13405         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13406         end macro.
13407         (pg*end-page): If the text has ended and there are no more
13408         footnotes or keeps, exit.
13410         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13412         * troff/input.c (init_charset_table): Make \(rq transparent by
13413         default.
13415         * macros/tmac.an: Define lq and rq strings.
13417         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13419 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13421         * troff/env.c (environment::final_break): New function.
13422         (environment::newline): Set prev_line_interrupted to 2 if
13423         exit_started.
13424         * troff/env.h: Declare environment::final_break.
13425         * troff/input.c (exit_troff): Call environment::final_break()
13426         instead of environment::do_break().
13428         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13429         doesn't already exist.
13430         * macros/man.local: New file.
13431         * macros/tmac.an: Load man.local.
13432         * macros/man.ultrix: New file.
13434 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
13436         * troff/input.c (exit_groff): Rename to...
13437         (exit_troff): New function.
13439         * troff/div.c (exit_started, done_end_macro,
13440         seen_last_page_ejector): New global variables.
13441         (began_page_in_end_macro): New static variable.
13442         (exit_flag): Deleted.
13443         (top_level_diversion::top_level_diversion): Initialize
13444         last_page_count.
13445         (top_level_diversion): More elaborate test for whether
13446         cleanup_and_exit() should be called.
13447         Set began_page_in_end_macro if the end macro isn't yet finished.
13448         * troff/div.h (top_level_diversion::last_page_count): New data
13449         member.
13450         (top_level_diversion::set_last_page): New function.
13451         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13452         * troff/env.c (do_break): Zero prev_line_interrupted.
13453         * troff/input.c (exit_flag): Delete declaration.
13454         (LAST_PAGE_EJECTOR): New magic cookie.
13455         (token::next): Handle LAST_PAGE_EJECTOR.
13456         (exit_groff): Set exit_started and done_end_macro instead of
13457         exit_flag.  Call top_level_diversion::set_last_page.  Push a
13458         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
13459         another ejection after setting seen_last_page_ejector.
13461 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13463         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13465         * macros/tmac.e (TH): Make sure there's room for the initial
13466         header.
13468         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13469         Set FVS in points rather than units.
13471 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
13473         * troff/div.c (top_level_diversion::add_trap): Don't consider the
13474         position of empty slots.
13476 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
13478         * ps/devps/S: Fix height and depth of parenrightex.
13479         * ps/devps/symbol.diff: Regenerate.
13481 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
13483         * tmac.e (u): Do underlining as in -mgs.
13485 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
13487         * tty/tty.c (tty_printer::end_page): If overstriking is
13488         suppressed, still turn overstruck horizontal and vertical lines
13489         into +.
13491         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13492         2.1.
13494         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13496 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
13498         * Version 1.05 released.
13500 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
13502         * tty/tty.c: Instead of keeping an array of glyphs and then
13503         sorting it, keep a ordered linked list of glyphs for each line.
13505         * driver/driver.h: Include stddef.h.
13507         * tty/tty.c (compare_glyph):
13508         * refer/refer.c (rcompare):
13509         * troff/env.c (compare_ranges): Arguments of qsort comparison
13510         function should be const void *.
13512         * troff/number.c (parse_term):
13513         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13514         switch statement.
13516         * refer/label.y (consider_authors): Don't access variables
13517         constructed under a condition outside that condition: put braces
13518         round for statement containing declaration; redeclare use of same
13519         variable later.
13521         * pic/pic.y (text_expr): Delete production that allows
13522         parenthesised text_expr.
13523         (expr): Allow a conditional_expr to appear in parentheses.
13524         (conditional_expr): Rename to any_expr.
13526         * mm: Install new version 1.01 from jh.
13528         * lib/font.c (font::get_width): Cache scaled widths.
13529         (font::font): Initialize widths_cache.
13530         (font::~font): Destroy widths_cache.
13531         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13533 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
13535         * c++test.c, c++test.ref: New files.
13536         * Makefile: Check that the C++ compiler works.
13538         * ps/tmac.pspic (PSPIC): Do a break.
13540         * ps/tmac.ps: Move definition of PSPIC into...
13541         * ps/tmac.pspic: New file.
13542         (PSPIC): Draw box around picture, but make it invisible to grops.
13543         * ps/tmac.ps: Load tmac.pspic.
13544         * ps/Makefile: Install tmac.pspic.
13546 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
13548         * lib/font.c (scale_round): If n is negative,
13549         subtract .5 before truncating floating point result.
13551         * lib/fontfile.c: Include <errno.h>.
13553 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
13555         * driver/input.c (get_char): Inline. Don't update current_lineno.
13556         Change callers to up date current_lineno if necessary.
13557         Use get_char() instead of getc(current_file).
13559 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
13561         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13563 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
13565         * tty/tty.c (tmac.tty): Define \(rg as (R).
13567 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
13569         * lib/lib.h: New define a_delete.
13570         * Use a_delete instead of delete when deleting an array of objects
13571         without destructors.
13573         * lib/lib.h: Rename adelete to ad_delete.
13574         * Change uses of adelete.
13576 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
13578         * eqn/eqn.y: Include lib.h.
13580         * troff/node.c (grow_font_table): Delete old_font_table.
13582         * mm: Install new version from jh.
13584 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
13586         * tbl/table.h (format_type): Make global instead of local to class
13587         entry_format.  Prefix enumerators with FORMAT_.
13588         * tbl/table.c, tbl/main.c: Corresponding changes.
13589         * refer/token.h (token_type): Make global.  Prefix enumerators
13590         with TOKEN_.
13591         * refer/token.[ch]: Corresponding changes.
13592         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13594         * troff/div.c (node::set_vertical_size): Don't name argument.
13596 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
13598         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13599         * lib/lib.h: Define adelete accordingly.
13600         * pic/object.c (graphic_object::graphic_object):
13601         * tbl/main.c (format::~format):
13602         * tbl/table.c (table::~table):
13603         * refer/ref.c (reference::~reference, reference::merge,
13604         reference::insert_field, reference::delete_field): Use adelete.
13606         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13607         * refer/token.h:
13608         * tbl/table.h: Corresponding changes.
13610         * common.c (common_output::dashed_arc, common_output::dotted_arc):
13611         Ensure total_angle is positive.
13613 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
13615         * refer/ref.c (reference::merge, reference::insert_field,
13616         reference::delete_field): Avoid delete[0].
13618         * refer/token.c (init_special_chars): Move calls to cmupper
13619         outside calls to init_two_char_letter to work around bug in gcc
13620         2.0.
13622 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
13624         * lib/new.c (operator new): Use __builtin_new for g++.
13626         * pic/object.c (graphic_object::~graphic_object):  Don't use
13627         delete [] on 0.
13629         * pic/object.c (output::compute_scale): Initialize max_width and
13630         max_height.
13632 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
13634         * troff/input.c (write_request): Call fflush.
13636         * troff/node.h (class composite_node): Move declaration to node.c
13637         * troff/input.c (charinfo_to_node): Rename to ...
13638         (charinfo_to_node_list): Return node list rather than composite
13639         node.
13640         * troff/node.c (make_composite_node): New function.
13641         (make_node, add_char): Call make_composite_node instead of
13642         charinfo_to_node.
13643         (class composite_node): Add a tfont * member.  Delete font_size
13644         member.
13645         (composite_node::composite_node, composite_node::copy,
13646         composite_node::size): Corresponding changes.
13647         (composite_node::tprint): Provide constant spacing, emboldening
13648         and track kerning as specified in tfont.
13649         (composite_node::width): Change width calculation accordingly.
13650         * troff/env.h (environment::composite): New member.
13651         (environment::is_composite, environment::set_composite): New
13652         functions.
13653         * troff/env.c (environment::environment): Initialize composite.
13654         * troff/input.c (charinfo_to_node): Call
13655         environment::set_composite.
13656         * troff/node.c (make_composite_node, make_glyph_node): Use the
13657         plain version of the tfont if the environment is composite.
13659         * troff/node.c (font_info::get_space_width): Additional argument
13660         giving space_size.  Handle constant space correctly. Scale by
13661         space_size unless constant spaced.
13662         (env_sentence_space_width): New function.
13663         * troff/node.h: Declare it.
13664         * troff/env.h (environment::get_space_size,
13665         environment::get_sentence_space_size,
13666         environment::get_narrow_space_width,
13667         environment::get_half_narrow_space_width): Make inline.
13668         (environment::get_space_width): Make inline.  Just call
13669         env_space_width.
13670         * troff/env.c: Delete definitions for funtions made inline.
13671         (environment::space_newline, environment::space): Use
13672         env_sentence_space_width(). Don't scale by space_size.
13673         * troff/node.h: Move declarations of env*space_width() functions
13674         into env.h.
13676 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
13678         * macros/tmac.s (PS): Don't try to set negative indent.
13680 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
13682         * pic/pic.y: Fix min function.
13684 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
13686         * man/mdate.sh: Clear LANGUAGE.
13688 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
13690         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13691         * pic/lex.c: New COMMAND keyword.
13692         * pic/pic.y (print_args, print_arg): New rules.
13693         (placeless_element): Use print_args for PRINT.
13694         New COMMAND element.
13696 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
13698         * troff/input.c (terminal): Handle missing argument correctly.
13700         * pic/pic.y (text_expr): New rule.
13702         * pic/pic.y: Implement := operator.
13704 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
13706         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13707         mdoc.
13709 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
13711         * ps/devps/dingbatsrmap: Include this in the distribution.
13713         * macros/tmac.doc: Replace with new version from 2nd Networking
13714         Release. Fix loading of doc-* files.
13715         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13716         * macros/tmac.doc.old: New file.  Apply fixes that had been
13717         applied to old tmac.doc.
13718         * macros/tmac.andoc: Check that we're running under groff.
13719         * macros/Makefile: Rework.
13721 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
13723         * tbl/table.h (format_type): 
13724         * refer/token.h (token_type): If NESTED_TYPES is defined, use
13725         typedef to make these types visible at file scope.
13726         * Makefile: Add NESTED_TYPES configuration option.
13728         * troff/div.c (mark): At the top level use the value of
13729         nl_reg_contents rather than the current vertical position.
13731 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
13733         * tty/tty.c: Implement \D for horizontal or vertical lines.
13734         (tty_printer::set_char): Use vec_used+2 as serial number.
13735         Don't allow size of vector to exceed USHRT_MAX-2.
13736         Split off part into...
13737         (tty_printer::add_char): New function.
13738         (tty_printer::draw): New function.
13739         (compare_glyph): Handle equal serial numbers.
13740         (tty_printer::end_page): Handle overstruck characters from \D.
13741         (main, usage): Implement -d option.
13743 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
13745         * tbl/main.c (process_format):
13746         * eqn/text.c (split_text):
13747         * troff/input.c (token::next): Use inner block for declarations
13748         with initializers in switch statement.
13750 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
13752         * pic/common.c (common_output::dash_line): Cope with zero-length
13753         lines.
13755 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
13757         * Version 1.04 released.
13759 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
13761         * macros/tmac.an (TH): Define a macro an-init to define variables
13762         based on command line arguments.
13763         (an-header): Call it.
13765 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
13767         * Makefile (install.mm): Rename to install.dwbmm.
13769         * Makefile: Integrate mm.
13770         * mm: New directory.
13772 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
13774         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13775         <sys/types.h>.
13777         * pic/troff.c (troff_output::simple_spline,
13778         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13779         shadowing parameter.
13781         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13783         * lib/ptable.h: Add explicit casts when converting from unsigned
13784         long to unsigned.
13786         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13787         * dvi/devdvi/Makefile: Install SA, SB.
13789         * refer/indxbib.c: Add declaration of mktemp.
13791         * refer/lookbib.c: Add declaration of isatty.
13793 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
13795         * pic/lex.c (interpolate_macro_with_args):  While collecting
13796         arguments, keep track of whether we're in a string.
13798 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
13800         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13801         down with \v, so as to avoid problems with top of page trap
13802         setting no space mode.
13804 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
13806         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13808 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
13810         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13811         Improve error message.
13813 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
13815         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13816         printf("%03o");
13818 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
13820         * groff.c (possible_command::execp): Always use _exit() after a
13821         failed exec.
13823         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13824         NO_SYS_WAIT_H   configuration options.
13825         * groff.c: Use these options.  Use POSIX-style macros to extract
13826         fields from the status returned by wait().
13828 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
13830         * tbl/table.c (table::compute_separation_factor): Allow the
13831         separation factor to drop to 0.
13833 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
13835         * refer/search.c: Include <errno.h>.
13837 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
13839         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13841         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13842         C++. 
13844         * pic/lex.c (input_stack::bol): Move definition out of class body.
13846         * pic/main.c: On MSDOS munge argv[0].
13848         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13850         * lib/ptable.c (hash_string): Use unsigned long rather than
13851         unsigned.
13852         (next_ptable_size): Use unsigned rather than int.  Give an error
13853         message if we've hit the largest table size.
13854         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
13855         table size.
13857         * pic/object.h (object_spec): Make flags unsigned long.  Declare
13858         flags as const unisgned long rather than as enums.
13860         * pic/output.c: Deleted.
13862         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13864         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13865         Add additional argument.
13866         (line_entry::note_double_vrule_on_{left,right}): Set value of
13867         douvle_vrule_on_{right,left} flag according to argument.
13868         (simple_line_entry::simple_print,
13869         simple_line_entry::double_line_print): If adjacent to double vrule
13870         on a corner extend rather than shorten the rule by half the double
13871         vrule sep.
13873         * troff/number.c (parse_term): In checking for overflow, handle the
13874         case where the current horizontal position is negative.
13876 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
13878         * pic/object.c (draw_arrow): Check for object having zero length.
13880 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
13882         * eqn/main.c (do_file): Split off inline equation handling into...
13883         (inline_equation): New function.  Search for starting delimiter
13884         using...
13885         (delim_search): New function. Don't recognize a delimiter that
13886         occurs in the name of an escape sequence, number register, string
13887         etc.
13889 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
13891         * eqn/delim.c (delim_box::compute_metrics): Don't call
13892         define_extensible_string if left is 0.
13893         (delim_box::output):  Don't print the left delimiter if left is 0.
13894         (delim_box::debug_print): Check for left == 0 before calling printf.
13896 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
13898         * troff/Makefile (majorminor.c): Include only digits in
13899         minor_version.
13901 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
13903         * refer/dirnamemax.c: new file.
13904         * refer/genlimits.c: Deleted.
13905         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13906         Don't check path length.
13907         * refer/Makefile: Add dir_name_max.o; delete genlimits.
13908         * Makefile: Add PATHCONF_MISSING option.
13910         * refer/indxbib.c (get_cwd): New function.
13911         (main): Use get_cwd().
13912         * lib/getcwd.c: New file.
13913         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13914         GETCWD in SUBFLAGS.
13915         * lib/Makefile: Compile getcwd.o.
13917         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13918         userdict.
13920         * refer/indxbib.c (main): Check success of mktemp.
13922         * lib/tmpfile.c: New file.
13923         * lib/Makefile: Add tmpfile.c.
13924         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13925         * ps/ps.h: Delete declaration of mktemp().
13926         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13927         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13928         * driver/driver.h: No need now to include errno.h.
13930         * everywhere: Set errno to 0 before calling fopen().
13932         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13933         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13934         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13936 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
13938         * troff/env.h (translate_space_to_dummy): Declare it.
13939         * troff/env.c (environment::space_newline, environment::space):
13940         If translate_space_to_dummy is set then make the width of spaces 0.
13941         * troff/input.c (translate): If the second character of a
13942         translation is a space, translate to unbreakable space.  If the
13943         first character is a space, set or clear translate_space_to_dummy
13944         according to whether the second character is \&.  Weird!
13946 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
13948         * groff.c (run_commands): Don't use non-zero exit code because a
13949         command gets SIGPIPE.
13951         * groff.c, groff.sh: Use -mXps with -TXps.
13953         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13954         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13955         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13956         (ps_printer::special): New specials invis and endinvis.
13957         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13958         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
13959         (ps_printer::end_page): Check that invis_count == 0.
13960         (ps_printer::invis_count): New member.
13961         (ps_printer::ps_printer): Initialize invis_count to 0.
13963         * troff/env.c (environment::hyphenate_line): Hyphenation
13964         indicator at beginning of word inhibits splitting after -, \(em
13965         etc.
13967         * pic/pic.y (element): Allow another element to follow } without
13968         any intervening separator.
13970 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
13972         * pic/lex.c (get_delimited): Allow tabs before delimiter.
13974 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
13976         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
13977         declaration of wait() in header files.
13978         * Makefile: Get rid of -DHAVE_UNION_WAIT.
13980         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13982         * lib/lib.h: Declare return type of strerror as char *.
13984         * man/Makefile: Add g flag to sed substitutions.
13985         * Makefile (shgroff, bindist): Likewise.
13987 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
13989         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13990         * ps/devps/prologue (PBEGIN): Define showpage after pushing
13991         userdict.
13993 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
13995         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13996         userdict.
13998 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14000         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14001         group.
14003 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14005         * troff/input.c (define_number_reg):  If currently undefined,
14006         don't define it if the argument is an invalid expression.
14008         * Makefile: Ignore return value of `if' commands without `else'
14009         parts.
14011         * Makefile: Split up CPPDEFINES into a series of separate
14012         configuration options.
14014         * troff/input.c (init_registers): Use time_t instead of long
14015         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14016         than passing pointer.
14017         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14019         * lib/Makefile (fontpath.h): Use gendef.
14021 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
14023         * troff/input.c (input_iterator::shift): Delete argument name.
14024         * troff/node.c (suppress_output_file::really_begin_page,
14025         suppress_output_file::really_transparent_char, node::ascii_print,
14026         node::tprint): Delete names of unused arguments.
14028 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
14030         * refer/label.y (string):  Pass $4 to command_error.
14032 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
14034         * Version 1.03 released.
14036 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
14038         * Makefile: Pass definition of SHELL in SUBFLAGS.
14040         * gendef: New file.
14041         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14042         ps/Makefile: Use gendef to construct header files that are
14043         constructed from the Makefile.
14045         * macros/Makefile: make all should build stripped version of tmac.e.
14047         * refer/Makefile (clean): Remove y.output.
14049 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
14051         * ps/pfbtops.c (main): Add -v option which prints out a version
14052         number.
14053         * ps/Makefile (pfbtops): Link with libgroff.a.
14055 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
14057         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14058         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14060         * refer/lkbib.c (main): Always terminate reference with blank
14061         line.
14062         * refer/lookbib.c (main): Likewise.
14064         * refer/linear.c (file_buffer::load): Check that the file is not a
14065         binary file.
14067         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14068         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14069         Delete second inclusion of <sys/param.h>.
14071 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
14073         * troff/token.h (token::special): Deleted.
14075         * tbl/main.c (process_format): Rework so that opt->tab_char is
14076         recognized only when appropriate.
14078         * ps/Makefile (clean): Remove pfbtops.
14080 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
14082         * lib/font.c (text_file::next): Don't return if we have got a
14083         blank line.
14085 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
14087         * refer/refer.c (store_reference): Get hash code from old_table[i]
14088         when rehashing the table.
14090 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
14092         * eqn/box.c (box::top_level): Save size and prev size using \R and
14093         restore it afterwards. Set the size to the size at the beginning
14094         of the line.
14095         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14096         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14098         * refer/Makefile (limits.h): Use ./genlimits.
14100 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
14102         * refer/index.c: Delete declarations of stat() and fstat().
14104 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
14106         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14108 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
14110         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14112 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
14114         * troff/input.c (token::get_char): Handle \e.
14116         * refer/linear.c: Delete declarations of fstat() and stat().
14118 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
14120         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14121         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14123 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
14125         * troff/input.c (do_define_macro): Improve error handling for end
14126         of file while defining macro.
14128 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
14130         * eqn/box.h: Fix declaration of set_gsize.
14131         * eqn/box.c (set_gsize): Make argument const char *.
14132         (gsize): Declare as char *.
14133         * eqn/main.c (main): Don't convert gsize to int.
14134         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14136         * Version 1.02 released.
14138 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
14140         * macros/tmac.andoc: New file.
14141         * macros/Makefile: Install tmac.andoc.
14143         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14144         operator new and delete on OP_DELETE_BROKEN not being defined.
14145         * Makefile: Mention OP_DELETE_BROKEN.
14147 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
14149         * Makefile (bindist): Pass SUBFLAGS.
14151 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
14153         * Makefile, groff.c: Pass definitions to groff.c via device.h.
14155         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14156         parameter.
14158         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14160         * ps/ps.h, ps/psrm.c: Make comment_table and
14161         header_comment_table local to resource_manager::process_file.
14163         * groff.sh: With -TXps pass -printCommand option to gxditview.
14165         * groff.c (possible_command::print): Implement using
14166         append_arg_to_string.
14168         * xditview: Merge in new implementation with own ChangeLog.
14170 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
14172         * groff.c (main): Implement PRINT_OPTION.
14173         (append_arg_to_string): New command.
14174         (device_table): Set PRINT_OPTION flag for Xps.
14176 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
14178         * troff/groff.h: Rename to troff.h.
14180         * pic/lex.c (lookup_keyword, docmp): New functions.
14181         (get_token): Use new lookup_keyword.
14182         Don't include key.h.
14183         * pic/key.[ch], pic/pic.gperf: Deleted.
14184         * pic/Makefile: Remove gperf stuff.
14186         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14187         into output.h.
14188         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14190         * troff/Makefile, troff/node.c: Move definition of
14191         STORE_WIDTH into node.c.
14193         * etc/grog.pl, etc/grog.sh: Support -mdoc.
14195 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
14197         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14198         dvi/devdvi/texb.map: Add lq and rq.
14199         dvi/devdvi: Regenerate fonts.
14200         * ps/devps/textmap: Add lq and rq.
14201         * ps/devps: Regenerate fonts.
14202         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14203         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14205         * pic/object.c (position_rectangle): When checking radius
14206         cope with possiblity that width or height is negative.
14207         (box_object::box_object): Have separate xrad and yrad with
14208         signs matching signs of dim components.
14209         (box_object::{north,south}_{east,west}): Use xrad and yrad.
14210         (box_object::print): With rounded boxes use absolute values
14211         for dim and rad arguments.
14213         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14214         in fontpath.h.
14216         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14218         * various files: Add explicit destructors to keep Saber CC +d
14219         happy.
14221 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
14223         * eqn/box.c (box::top_level): Restore fonts correctly after
14224         font changes in line containing inline equation.  Also
14225         restore previous font as well as current font.
14226         * eqn/pbox.h: Define necessary string and register names.
14228         * troff/input.c (token::next): Case 'R' calls do_register.
14229         (do_register): New function.
14231 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
14233         * groff.c, groff.sh: Support Xps device.  Allow each device
14234         to have a pseudo_name and a real_name.
14236         * groff.c (run_commands): Don't print `Broken pipe' messages.
14238         * ps/pfbtops.c: New file.
14239         * ps/Makefile: Add pfbtops.
14241         * troff/number.c (parse_term): Improved error message.
14243 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
14245         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14247         * Makefile: Integrate refer.
14248         * refer: New directory.
14249         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14250         man/lkbib.man: New files.
14251         * man/Makefile: Support refer man pages.
14253         * lib/lib.h: Declare is_prime.
14254         * lib/prime.c: New file.
14256         * troff/input.c (macro_source): New function.
14257         (init_input_requests): Bind "mso" to macro_source.
14259         * troff/env.c (environment::possibly_break_line): Maintain
14260         pointer to pointer to node to be split in ndp so as to avoid
14261         using address of freed node.
14263         * troff/env.c (environment::hyphenate_line): Maintain pointer to
14264         pointer to first node to be hyphenated in startp so as to
14265         avoid using address of freed node.
14267         * troff/env.c (class trie, class hyphen_trie): Make the
14268         elements of the trie be of type char not unsigned char.
14269         Declare arguments to be const char* instead of unsigned char *.
14270         
14271         * troff/env.c (hyphenate): Initialize hbuf[0].
14273         * troff/input.c (set_string): Declare p to be char * and cast
14274         *p to unsigned char when necessary.
14276         * troff/input.c (do_define_macro): Declare s to be const
14277         char*. Cast element to unisgned char when necessary, Declare
14278         d to be an int.  Handle EOF better.
14280         * troff/Makefile, troff/input.c: Different scheme for passing
14281         definitions of MACROPATH, HYPHENFILE and DEVICE.
14283 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
14285         * tty/devascii/R.proto: Delete entry for em.
14286         * tty/devlatin1/R.proto: Likewise.
14288 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
14290         * troff/input.c (translate): Stop when we get a space. Treat eof
14291         like newline.
14293         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14295 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
14297         * tbl/main.c (process_format): A font name following a `f'
14298         modifier that starts with a digit can be only one character long.
14299         Also deal with EOF on the second character of the font name.
14301 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
14303         * troff/input.c (token::next): Turn \~ into an
14304         unbreakable_space_node.
14305         * troff/node.c (unbreakable_space_node): New class.
14306         * troff/node.h: Declare it.
14308 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
14310         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
14311         it's >= 0, before outputting it as a single byte.
14313 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
14315         * lib/font.c: Make font_char_metric::code an int.
14316         (font::get_code): Change return type to int.
14317         (font::load): Allow code to be arbitrary integer.
14318         * lib/font.h (font::get_code): Change return type to int.
14319         (font::number_to_index): Change argument type to int.
14320         * troff/input.c (token::next):  In case 'N', allow any value.
14321         Store value in token::val.
14322         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14323         (token::get_char, token::add_to_node_list, token::process): Get
14324         number from val.
14325         (charinfo::set_number): Change argument to int.
14326         (charinfo::get_number):  Require that NUMBERED flag be set.
14327         (get_charinfo_by_number): Store numbered characters not between 0
14328         and 255 in a dictionary.
14329         * troff/charinfo.h (get_charinfo_by_number): Change argument type
14330         to int.
14331         (charinfo::number): Change type to int.
14332         (charinfo::set_number): Change type of set_number to int.
14333         * troff/node.c (troff_output_file::put_char_width,
14334         troff_output_file::put_char): Test whether character is numbered
14335         using charinfo::numbered().
14336         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14337         values of num.
14338         * lib/nametoindex.c: New implementation to cope with arbitrary
14339         number characters.
14341         * troff/input.c (token::operator==): Test val for
14342         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14343         TOKEN_SIZE.
14345         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14346         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
14348 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
14350         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
14351         variable.
14353         * all Makefiles: rm targets of cp and >.
14355         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14356         it.
14358         * eqn/lex.c (def_table): Add dollar.
14360 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
14362         * troff/input.c (do_width): Push back newline before closing delim
14363         like do_bracket.
14365 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
14367         * groff.c (possible_command::prepend_arg): New function.
14368         (main): Prepend device -m option.
14369         * groff.sh: Put device -m options before command-line options.
14371 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
14373         * macros/tmac.an (IP): Quote argument to TP.
14375         * ps/ps.c (main): New option -b, which sets...
14376         (broken_flags): New variable.
14377         (ps_printer::~ps_printer): Incorporate the setup section in the
14378         prolog if (broken_flags & NO_SETUP_SECTION).
14379         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14380         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14381         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14382         ps_printer::print_needed_font_comment,
14383         ps_printer::print_supplied_font_comment,
14384         ps_printer::print_include_font_comments,
14385         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14386         ps_printer::read_download_file, read_document_fonts, add_font,
14387         skip_line, parse_fonts_arg, document_font::document_font,
14388         document_font::~document_font, document_font::download,
14389         ps_output::include_file):  Deleted.
14390         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14391         rather than %!PS-Adobe-2.0.  Make calls to
14392         resource_manager::need_font for each font that we used. Replace
14393         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14394         print_supplied_font_comment, print_needed_font_comment by call to
14395         resource_manager::print_header_comments. Output %%Orientation
14396         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14397         Don't output the prolog directly.  Instead call
14398         resource_manager::output_prolog.  Only define #copies when ncopies
14399         > 1.  Delete calls to print_include_font_comments  and
14400         download_fonts.  Add call to resource_manager::document_setup.
14401         (ps_printer::do_file): Call resource_manager::import_file instead
14402         of including it ourselves.
14403         (ps_printer::do_import): Likewise.  Also don't call
14404         merge_import_fonts. Push userdict on the dictionary stack before
14405         and pop it afterwards.
14406         Move declaration of ps_output into ps.h.
14407         * ps/psrm.c: New file implementing resource_manager class.
14408         * ps/ps.h: New file declaring ps_output and resource_manager
14409         classes.
14410         * ps/devps/zapfdr.ps:
14411         * ps/devps/symbolsl.ps:
14412         * ps/devps/prologue:  Use 3.0 conventions.
14413         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14414         Add default definition of BROKEN_SPOOLER_FLAGS.
14415         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14416         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14418 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14420         * etc/grog.pl: New file.
14421         * Makefile (GROG): New variable.
14422         Add GROG to SUBFLAGS.
14423         * etc/Makefile (GROG): New variable.
14424         (install.nobin): Install $(GROG) rather than grog.sh.
14426 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14428         * eqn/special.c (special_box::compute_metrics): Make the input and
14429         output strings the same.  Get the new height and depth from the
14430         predefined height and depth registers.  Also make subscript kern
14431         and skew available.
14432         (special_box::compute_subscript_kern, special_box::compute_skew):
14433         New functions.
14435         * eqn/box.c (pointer_box::compute_skew,
14436         simple_box::compute_metrics, box::top_level)
14437         * eqn/text.c (prime_box::compute_metrics,
14438         prime_box::comput_subscript_kern)
14439         * eqn/limit.c (limit_box::compute_metrics):
14440         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14441         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14442         negative numbers in `nr' requests with a leading 0.
14444 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
14446         * eqn/special.c: New file.
14447         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
14448         Add new rule for simple.
14449         * eqn/lex.c (token_table): Add SPECIAL.
14450         * eqn/box.h: Declare make_special_box.
14451         * eqn/Makefile: Add special.[co].
14453 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
14455         * ps/devps/prologue: Possibly set packing to true while defining.
14456         Create grops dictionary here.  Initialize local variables before
14457         defining procedures.
14458         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14459         the dictionary stack. Set strokeadjust and overprint to false if
14460         the relevant operators are defined.
14461         (PEND): New procedure.
14462         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14463         prologue.  Do everything else in the setup section.
14464         (ps_printer::do_import): Just call PBEGIN and PEND around the
14465         picture. Also push userdict before, and pop it afterwards.
14467 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
14469         * troff/node.c (bracket_node::tprint): Brackets were being printed
14470         1m too low.
14472         * macros/tmac.an (SH, SS): Set fill mode.
14474 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
14476         * troff/div.c (top_level_diversion::begin_page): Set
14477         high_water_mark to 0.
14479 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
14481         * man/mdate.sh: New file.
14482         * man/mdate.c: Deleted.
14483         * man/Makefile: Use mdate.sh instead of mdate.
14484         (mdate): Deleted.
14486         * eqn/lex.c (do_gsize): Supply missing argument to error message.
14488 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
14490         * man/mdate.c: New file.
14491         * man/*.man: Replace modification date by @MDATE@.
14492         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14493         (mdate): New target.
14495         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14496         Remove illegal input characters.
14498 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
14500         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14502 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
14504         * troff/div.c (begin_page): Change behaviour when
14505         !first_page_begun and !break_flag.
14507         * troff/input.c (do_name_test): Return 0 if argument is empty.
14509         * troff/input.c (read_long_escape_name): Require closing ] to be
14510         at same input level as opening [.
14512         * troff/input.c (read_increment_and_escape_name): New function.
14513         (get_copy, process_input_stack): Use this for \n.
14515 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
14517         * troff/div.c (top_level_diversion::begin_page): Ignore the
14518         current value of page_number if !first_page_begun.
14520         * groff.c (main): Fix declaration of buf.
14522         * troff/input.c (do_name_test): New function.
14523         (token::next): Implement \A.
14524         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14525         (token::description, token::add_to_node_list, token::process):
14526         Handle TOKEN_ESCAPE.
14527         * troff/token.h: New token TOKEN_ESCAPE.
14529 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
14531         * pic/main.c (do_picture): Allow space before and after filename
14532         following `<'.  Check that the filename is not empty.
14534 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
14536         * Version 1.01 released. 
14538         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14540         * dvi/tmac.dvi: ftr HR to H.
14542         * macros/tmac.e: Round up computation of $r.
14544         * xditview/tmac.X:  Don't give up completely in compatibility mode.
14545         Use \n(.s instead of \n[.s].
14547         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14548         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14549         Add u to factors inside \s[...]. Rename frac to dvi-frac.
14550         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14551         short names in the char definitions.
14553         * ps/tmac.ps: Don't give up completely in compatibility mode.
14554         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14555         quote in front of \n(.s. Add u to factors inside \s[...].
14557 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
14559         * tty/tmac.tty: Call the nroff request.
14561         * macros/tmac.e ((x, )x):  Better definitions that work properly
14562         in a diversion.
14563         (@0, @1): Helper macros for (x.
14565         * macros/tmac.e ($s, hl): Use \l rather than \D.
14567         * tty/tmac.tty: Make it work better in compatibility mode.
14568         (pchar): Rename to tty-char.
14570         * macros/tmac.e (@E): New macro.
14571         (r, i, b, rb, bi): Use @E.
14573         * macros/tmac.e (@F): Don't use (;...) syntax.
14575         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
14576         it was modified for groff.
14578         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14580         * macros/tmac.e (<., .>): Removed.
14581         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14583         * macros/tmac.e: Remove check that groff is being used.
14585         * macros/tmac.e (@C): Change families only if using groff; turn
14586         compatibility mode off while changing familes. Save compatibility
14587         mode before changing families and restore it afterwards.
14589         * macros/tmac.e (@h): Remove test for offset + line length.
14591         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
14592         (lo, th, ac): Define to call @S instead of using als.
14594         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14595         the ratio of the vertical spacing to the point size in units
14596         expressed as a percentage.  Use these instead of $10r and $10R,
14597         Delete $10r and $10R.
14599         * lib/font.c (font::load): In default computation of space_width,
14600         divide by sizescale.  Use scale_round.
14602         * macros/tmac.an (TP): Don't call `nf'.
14603         (an-do-tag): Don't call `fi'.
14605 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
14607         * troff/input.c (process_input_stack): Handle the case where
14608         spaces at the beginning of an input line are followed by a
14609         newline.
14611 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
14613         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14614         * groff.sh: Use pic -x with the dvi device.
14616         * dvi/devdvi/FontMakefile (H): Don't use -s.
14618         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14619         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14620         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14621         in FONTS.
14623 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
14625         * ps/psfig.diff: New file.
14626         * ps/tmac.psfig: New file.
14628 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
14630         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14631         (]-): Don't call ref*do-tl.
14633         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14635         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14636         (fn@do-FS): Rename to fn*do-FS.
14638         * troff/input.c (transparent_translate): New function.
14639         (process_input_stack): Apply transparent_translate before calling
14640         diversion::transparent_output(unsigned char).
14642 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
14644         * troff/input.c (do_define_macro): Define the macro before calling
14645         skip_line.
14647         * xditview/Makefile: Add DEVICES variable.  Change install target
14648         to use this.
14650 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
14652         * groff.c (run_commands): Handle the possibility that there are
14653         child processes other than those forked by us.
14655 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
14657         * lib/string.c (string::append): New function.
14658         * lib/stringclass.h: Declare it.
14660 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
14662         * eqn/main.c (main): New option -N which sets
14663         no_newline_in_delim_flag. 
14664         (do_file): If no_newline_in_delim_flag is set don't allow newlines
14665         in delimiters.
14666         * groff.c (main): Pass -N on to eqn.
14667         (help, synopsis): Mention -N.
14668         * groff.sh: Implement -N.
14670 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
14672         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14673         (]-): Call ref*do-tl if ref*need-tl is non-zero.
14674         (XP): Allow as initializer.
14676 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
14678         * troff/env.c (environment::wrap_up_field): If field_spaces are
14679         non-zero and we have a current_tab, subtract padding from
14680         tab_distance.  If this makes tab_distance <= 0, use the next tab
14681         stop instead.  If there isn't any next tab or it's a left tab,
14682         wrap up the current tab.
14683         (environment::start_field): Initialize tab_precedes_field.
14684         (environment::wrap_up_tab): If there's a current field, update
14685         pre_field_width, field_distance and tab_precedes_field.
14686         * troff/env.h (environment::tab_precedes_field): New member.
14688 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
14690         * ps/ps.c (ps_printer::do_file): New function.
14691         (ps_printer::special): Bind to `file' special.
14692         (ps_printer::do_exec): Set ndefined_styles to 0.
14694 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
14696         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14697         Avoid stripping first character from the start of unrecognized
14698         escapes.  Use lex_error instead of error to report errors.
14699         * eqn/lex.c (get_token): Rework handling of escapes.
14700         (lex_error): Move declaration into...
14701         * eqn/eqn.h.
14703         * xditview/xditview.c (main): Make -page option work.
14705         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14707 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
14709         * macros/tmac.s (B2): Correct size of box.
14711 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
14713         * macros/tmac.s (B2): Postpone drawing the box until in the
14714         top-level diversion.
14716         * tty/tmac.tty: Add font translations for C, CR, CW.
14718         * groff.c (synopsis, help): Document -i.
14719         * groff.sh: Implement -i.
14721         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14722         Simplify the construction of SN.
14724         * troff/number.c (parse_term): Give `|' a higher precedence.
14725         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14726         accordingly.
14728         * macros/tmac.s (B2): Use par@finish instead of par@reset.
14730 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
14732         * lib/string.c (string::move): New function.
14733         * lib/stringclass.h: Declare it.
14735 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
14737         * troff/env.c (distribute_space): Add optional argument
14738         `force_forward'.
14739         (environment::wrap_up_field): Call distribute_space with
14740         `force_forward' argument of 1.
14742 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
14744         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14745         Inline it.  Move reallocation into...
14746         (string::grow1): New function.
14747         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14748         dependencies to include library header files.
14749         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14751 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
14753         * macros/tmac.s (@NH): Use the same number registers than -ms does
14754         for the heading level counters.  Use the same string that -ms does
14755         for the number for this heading.
14757 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
14759         * lib/new.c (operator new): Cast result of malloc to char *.
14761         * troff/input.c (spring_trap, lookup_request): Add assert that nm
14762         is not null.
14764 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
14766         * groff.c (main): Support -i.
14768 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
14770         * pic/pic.h: Include <osfcn.h>.
14772         * ps/ps.c: Add declaration of mktemp.
14774         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14775         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14776         argument as union wait *.
14777         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14778         argument to union wait *.
14780 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
14782         * tty/tmac.tty: Add definition of \(co.
14784         * pic/object.c (make_arc): Only increase radius when radius
14785         strictly less than d.
14786         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14787         more than once.
14789         * troff/env.c (environment::environment(symbol),
14790         environment::environment(const environment *)):  Initialize
14791         input_trap_count.
14793 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
14795         * tbl/main.c (main): Add exit(0).
14797         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14799         * pic/main.c (main):
14800         * eqn/main.c (main):
14801         * tbl/main.c (main):
14802         * etc/soelim.c (main):
14803         * driver/printer.c (printer::~printer):
14804         * troff/node.c (real_output_file::~real_output_file,
14805         real_output_file::flush):  Check for errors on stdout.
14807         * most files: Add 1991 to copyright notice.
14809         * macros/tmac.s: Don't test \n(.x and \n(.y.
14811         * troff/input.c (token::next): Rename `escape_char' label to
14812         `handle_escape_char' and `normal_char' label to
14813         `handle_normal_char'.
14815 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
14817         * groff.c (main, synopsis, help): Support -a option.
14818         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
14819         to trflags while parsing options.
14821 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
14823         * troff/number.c (parse_term): With `m', `M' and `n' scale
14824         indicators, convert scale factor to hunits before scaling.
14826 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
14828         * lib/font.c (scale_round): Better test for overflow when n is
14829         negative.
14831 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
14833         * tbl/main.c (process_format): Add second argument of type
14834         options*. Change callers.  Allow opt->tab_char as well as '\t'
14835         between format items.
14837 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
14839         * macros/tmac.an (PD): With no arguments, make sure register PD is
14840         at least \n[.V].
14841         (TH): Call PD with no argument, instead of setting register PD
14842         directly.
14844 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
14846         * Version 1.00 released.
14848 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
14850         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14852         * dvi/devdvi/DESC: Mount CW instead of CR.
14854         * dvi/tmac.dvi: Add definition of \(tm.
14856         * dvi/devdvi/texsy.map: Add lh, and rh.
14857         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14858         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14860         * dvi/devdvi/FontMakefile: Generate H from cmss10.
14861         * dvi/devdvi/Makefile: Install H.
14862         * dvi/devdvi/H: New file.
14864 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
14866         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14867         be 0.
14869 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
14871         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14873         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14875         * macros/tmac.s (@EN): Handle the case where the equation is empty
14876         but the label is not.
14878 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
14880         * troff/groff.h: New warning category WARN_SPACE.
14881         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14882         WARN_SPACE to warning_table.
14883         (interpolate_macro): Give a warning of type WARN_SPACE if the name
14884         is longer than two characters and is not defined, but the first
14885         two characters do make a defined name.
14887         * PROBLEMS: New file.
14889         * CHANGES: New file.
14890         * README-0.6, README-1.00: Deleted.
14892         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14893         * xditview/devX75/Makefile: Make devX75-12.
14894         * xditview/devX100/Makefile: Make devX100-12.
14896         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14897         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14899 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
14901         * README-0.7: Rename to README-1.00.
14903         * macros/tmac.pic: New file.
14904         * macros/Makefile (install.nobin): Install tmac.pic.
14906 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
14908         * troff/env.c (hyphen_word): Correct the test for whether the
14909         token is a hyphen.  Reset npos to 0.
14911         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14913 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
14915         * macros/tmac.s (ds*common-end): Call par*reset.
14916         (PE): Likewise.
14917         (par@reset-indent): Deleted.
14919         * macros/tmac.s (@IP): Divert the label.
14921 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
14923         * xditview/draw.c (setGC): Use a line width of .1m rather than
14924         .04m by default; round rather than truncate value.
14926         * tbl/table.c (class empty_entry): New class.
14927         (empty_entry::empty_entry, empty_entry::line_type): New functions.
14928         (table::add_entry): Represent empty entries by objects of type
14929         empty_entry.
14930         (table_entry::line_type): Return -1.
14931         (table::determine_row_type): Ignore entries with line_type 0.
14932         Treat type -1 as non-lines.
14934 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
14936         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14937         macros/tmac.s: Rename \(-d to \(Sd.
14939 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
14941         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14942         * xditview/libXdvi/DviChar.c: Likewise.
14943         * dvi/devdvi/texsy.map: Add `<<', `>>'.
14945 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
14947         * troff/div.c (top_level_diversion::begin_page): Call
14948         init_output() if the_output is 0.
14950 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
14952         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14953         ESCAPE_c.
14954         (get_copy): Turn \E into ESCAPE_E.
14955         (token::process, asciify): Handle ESCAPE_E.
14957         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14958         (RD): New macro.
14959         (DS): Implement `.DS R'.
14961 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
14963         * macros/tmac.s (FS): New macro.
14965         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14967         * macros/tmac.s (cov*tl-init): Remove after first execution
14968         instead of aliasing to @nop.  Call top of page macro explicitly
14969         instead of setting trap; call @init first.  Set pg@top as top of
14970         page macro.
14971         (cov*auto-init): Deleted.  Set cov*tl-init instead of
14972         cov*auto-init as top of page trap. 
14973         (TL, LP): Do a break instead of calling cov*tl-init.
14974         (cov*print): With RP format but no TL, alias FS and FE to @FS and
14975         @FE; in this case also give a warning and always start another
14976         page. No need to set pg@top here.
14977         (cov*tl-init): Rename to cov*first-page-init.
14979         * macros/tmac.s (RP): Do `.pn 0'.
14980         (cov*tl-init): With RP format don't do `.pn 0'.
14982         * macros/tmac.s (pg@cs-top): Set no space mode.
14984         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14985         (cov*ab-init): Alias TL, AU and AI to these.
14987 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
14989         * macros/tmac.s (@EQ): Move the space before the equation into @EN
14990         (@EN): Do nothing unless \n[dl] is > 0.
14992 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
14994         * pic/object.c (ellipse_object::radius): New function.
14996         * VERSION: Change version to 0.7.
14998         * tbl/table.c (block_entry::do_divert): Declare return type as
14999         void.
15000         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15002 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15004         * troff/column.c: New file.
15005         * troff/Makefile: Corresponding changes.
15007         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15008         Friend of vunits.
15010         * troff/div.c (top_level_diversion::space): If the space causes
15011         the first-page transition and springs a trap, truncate the space
15012         to 0.
15014 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15016         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15017         the document.
15019         * pic/troff.c (troff_output::line_thickness,
15020         troff_output::set_fill): Do a horizontal motion to compensate for
15021         the width of the \D escape sequence.
15023 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
15025         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15026         (not X75).
15028         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
15029         to printf.
15031         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15032         Supply empty definition.
15033         (text_entry::simple_print, simple_text_entry::simple_print):
15034         Delete declarations.
15035         (table::add_entry): Represent empty entries by objects of type
15036         `simple_entry'.
15038 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
15040         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15042         * tbl/table.c (left_text_entry::add_tab): New function.
15044         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
15045         initialize like LP.
15047 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
15049         * troff/env.c (environment::start_field): Give an error message if
15050         there is no next tab.
15052 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
15054         * troff/env.c (hyphenate): Skip initial elements with zero
15055         hyphenation code.
15057         * macros/tmac.s (par@init): Keep VS in points rather than units.
15059 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
15061         * pic/main.c (main): Implement `-c' option.
15062         * pic/output.h: Declare make_tpic_output().
15063         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15064         protected.
15065         (tpic_output): New class.
15066         (tpic_output::tpic_output, tpic_output::set_pen_size,
15067         tpic_output::command, make_tpic_output): New functions.
15069 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
15071         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
15072         if they're not already defined.
15073         * tbl/table.c (init_output): Don't test \n(.g.
15075         * troff/input.c (do_if_request): Delete `g' condition. Recognize
15076         `d', `r' and `c' conditions even in compatibility mode.
15078 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
15080         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15081         box.
15083 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
15085         * troff/env.h (environment::prev_line_interrupted): New member.
15086         (environment::get_prev_line_interrupted): New function.
15087         * troff/env.c (environment::newline): Set prev_line_interrupted.
15088         (environment::environment(const environment *),
15089         environment::environment(symbol)): Initialize
15090         prev_line_interrupted.
15091         * troff/input.c (process_input_stack): Don't give special
15092         treatment to space and newline at the beginning of the line if the
15093         previous line was interrupted.
15095 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
15097         * eqn/eqn.y: Disallow PRIME by itself.
15098         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15099         PRIME.
15100         (def_table): Remove definition of '.  Define prime to be `.
15102         * eqn/eqn.y: Split off part of rule `script' into a new rule
15103         `nonsup'.
15105 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
15107         * macros/tmac.s ({, }): New string aliases.
15109 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
15111         * README-0.7: New file.
15113 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
15115         * macros/tmac.s: New file.
15116         * man/groff_ms.man: New file.
15117         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15118         * Makefile.bd: Similarily.
15119         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15120         definition of TMAC_S.
15121         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15122         * macros/TODO: New file.
15124 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
15126         * troff/env.c (right_justify): New function.
15127         (init_env_requests): Bind this to request "rj".
15128         (center_lines): Set right_justify_lines to 0. If we get a bad
15129         integer, center 1 line.
15130         (environment::environment(symbol), environment::environment(const
15131         environment *)): Initialize right_justify_lines.
15132         (environment::get_right_justify_lines): New function.
15133         (init_env_requests): Bind this to number_register ".rj".
15135         * troff/env.c (environment::choose_breakpoint): Implement
15136         hyphenation_margin and hyphenation_space.
15137         (environment::get_hyphenation_space,
15138         environment::get_hyphenation_margin): New functions.
15139         (init_env_requests): Bind these to .hys and .hym.
15140         (hyphenation_space_request, hyphenation_margin_request): New
15141         functions
15142         (init_env_requests): Bind these to hys and hym.
15143         (environment::environment(symbol), environment::environment(const
15144         environment *)): Initialize hyphenation_margin and
15145         hyphenation_space.
15146         * troff/env.h: Corresponding changes to class environment.
15148 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
15150         * troff/div.c (blank_line): Always do a break.
15152         * eqn/box.c (do_text): Turn off escapes while appending text to
15153         string.
15155 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
15157         * troff/input.c (while_break_request, while_continue_request): New
15158         functions.
15159         (init_input_requests): Bind these to "break" and "continue".
15160         (while_depth, while_break_flag): New variables.
15161         (while_request): Update while_depth.  Break out of loop if
15162         while_break_flag is set.
15164 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
15166         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15167         rather than 0.
15169 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
15171         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
15173         * stringify: New file.
15174         * Makefile (groff.o): Use stringify.
15176         * xditview/tmac.X: Remove definition of \(rn.
15177         * xditview/libXdvi/DviChar.c: Remove radicalex from
15178         Adobe_symbol_map.
15180 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
15182         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15183         (alphabetic_block_entry::alphabetic_block_entry,
15184         alphabetic_block_entry::divert, alphabetic_block_entry::print):
15185         New functions.
15186         (block_entry::divert): Split off body into ...
15187         (block_entry::do_divert): If the block is alphabetic, subtract 2n
15188         from the line length; also update the span width to dl+2n, and the
15189         alphabetic span width to dl.
15191         * driver/input.c (do_file):  While reading argument to D command,
15192         when expanding buffer, multiply szp by sizeof(int) rather than 2
15193         in the argument to memcpy.
15195         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15196         width of alphabetic columns.
15198 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
15200         * troff/node.c (lookup_family): Supply second argument to lookup.
15202         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15203         search, return immediately if v is 0.
15205         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15206         (troff_output::start_picture): Set this reg.
15207         (troff_output::end_picture): Remove this reg
15208         * eqn/box.c (box::extra_space): Don't produce `\x's if
15209         EQN_NO_EXTRA_SPACE_REG is defined.
15211         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15212         * eqn/text.c (split_text): Map ' to \(fm when it's the first
15213         character.
15215 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
15217         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15218         requests.
15220         * troff/div.c (top_level_diversion::top_level_diversion):
15221         Initialize page_number to 0.
15223 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
15225         * groff/troff (environment::environment(const environment *)):
15226         Initialize name to e->name, rather than "anonymous".
15228 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
15230         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15231         requested_page.  Split middle part into ...
15232         (FindPage): New function.
15233         (SetValues): If we don't yet know the last page, and the requested
15234         page is greater than the current page, call FindPage.
15235         Update the font_map_string before doing this.
15237         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15238         Translate \(lh and \(rh into left and right double arrows.
15240         * troff/node.c (class hyphen_inhibitor_node): New class.
15241         (hyphen_inhibitor_node::hyphen_inhibitor_node,
15242         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15243         hyphen_inhibitor_node::type,
15244         hyphen_inhibitor_node::get_hyphenation_type): New functions.
15245         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15246         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15247         word.
15249 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
15251         * troff/node.h (dummy_node::get_hyphenation_type,
15252         transparent_dummy_node::get_hyphenation_type):  Declare them.
15253         * troff/node.c: (dummy_node::get_hyphenation_type,
15254         transparent_dummy_node::get_hyphenation_type): New functions.
15256 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
15258         * xditview/libXdvi/draw.c: If M_PI not defined after including
15259         math.h, then define it.
15261         * xditview/Makefile: Add definition of AR. Pass it to the submake
15262         in libXdvi.
15263         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15265 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
15267         * troff/dictionary.h (object_dictionary::alias): Declare return
15268         value as int.
15269         * troff/dictionary.c (object_dictionary::alias): Return non-zero
15270         if the old name was defined.
15271         * troff/input.c (alias_macro): Give a warning if the old name was
15272         not defined.
15273         * troff/reg.c (alias_reg): Likewise.
15275 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
15277         * troff/input.c (token::next): Delete implementation of \R.
15279         * macros/Makefile: Strip comments from tmac.e while installing it.
15281         * troff/input.c: New variable `nroff_mode'.
15282         (troff_request, nroff_request): New functions.
15283         (init_input_requests): Bind `troff' and `nroff' to troff_request
15284         and nroff_request.
15285         (do_if_request): Compute results of t and n conditions from
15286         nroff_mode.
15288         * text/text.c (split_text): Fix typo in >=.
15290         * eqn/lex.c: Add definition of `==' to def_table.
15292 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
15294         * pic/tex.c (tex_output::start_picture): Change the definitions of
15295         \graph and \graphtemp so that they work properly with Plain TeX.
15297         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15298         argument to `ar' is not less than the first.
15300         * pic/pic.y: Allow a comma between elements of the variable list
15301         in the argument to `reset'.
15303         * pic/object.c (arc_object::arc_object): Fix computation of
15304         radius.
15306         * eqn/main.c (main): Add exit(0).
15308 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
15310         * troff/div.c (begin_page): Test no_space_mode after doing the
15311         break, but still push the page ejector cookie before doing the
15312         break.  Also set the next page number after doing the break.
15313         
15314         * xditview/xditview.c (NewFile): Don't set the title and icon name
15315         if this is the first file and its name is `-'.
15316         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
15317         the X75 and X100 devices.
15318         (main): If a device has the XT_OPTION flag set and there's exactly
15319         one file argument, pass the driver -xrm and -title options to set
15320         the icon name and window title to the name of the file.
15322         * troff/env.c (environment_switch): If there was an argument but
15323         it wasn't a valid number or name, then pop an environment but
15324         don't give an error message on underflow.
15326         * troff/number.c (start_number): Correct spelling in error message.
15328         * troff/input.c (token::delimiter): Don't print an error message
15329         if err is false.
15331         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15332         ParseDrawFunction if dw->display_enable is true.
15334 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
15336         * pic/pic.y: Parse text positioning like normal attributes, so as
15337         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
15338         positioning attribute.
15340 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
15342         * tbl/main.c (process_data): When in state START while reading a
15343         text block, don't change to state MIDDLE if c is a newline.
15345 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
15347         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15348         so as to avoid shadowing parameter.
15350 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
15352         * tbl/table.c (trim_space): Deleted.
15353         (table::add_entry): Don't call trim_space.
15355 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
15357         * VERSION: Change version to 0.6.
15359         * troff/number.c (parse_expr): Make == work.
15361 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
15363         * man/grog.man: New file.
15364         * man/Makefile: Add grog.n to MAN1PAGES.
15365         * etc/grog.sh: New file.
15366         * etc/Makefile: Install grog.sh as grog.
15368 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
15370         * troff/input.c (token::next): Implement \E.
15372 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
15374         * xditview/tmac.X: Change font translations to match tmac.ps.
15376         * troff/input.c (non_empty_name_warning): Don't give a warning if
15377         `\{' terminates the name.
15379 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
15381         * ps/devps/symbol.diff: New file.
15382         * ps/devps/FontMakefile: Mention symbol.diff.
15384 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15386         * troff/node.c (font_position): Use get_long_name to read the
15387         external_name.
15389         * troff/env.c (environment_switch): If we get a number that's < 0
15390         or >= NENVIRONMENTS, treat it like a name.
15391         Change NENVIRONMENTS to 10.
15393         * troff/groff.h: Remove definition of FONTS_MAX.
15394         * troff/node.h (class font_family): Make map a pointer instead of
15395         an array. Add a map_size member. Make it a class. Make nm const
15396         and public. Make invalidate_fontno a friend.
15397         * troff/node.c: Define font_table_size. Make font_info a pointer
15398         rather than an array.
15399         (class troff_output_file): Allocate font_position dynamically. Add
15400         nfont_positions member.
15401         (troff_output_file::set_font): Grow font_position if necessary.
15402         (troff_output_file::~troff_output_file): Delete font_position.
15403         (troff_output_file::troff_output_file): Allocate font_position.
15404         (grow_font_table): New function.
15405         (troff_output_file::really_begin_page,
15406         troff_output_file:really_copy_page): Use nfont_positions rather
15407         than FONTS_MAX.
15408         (mount_font_no_translate, mount_style): Call grow_font_table if
15409         necessary.
15410         (font_family::font_family): Allocate map.
15411         (font_family::make_definite): Grow map if necessary. Use
15412         font_table_size instead of FONTS_MAX.
15413         (font_family::~font_family): New function.
15414         (invalidate_fontno): Use font_family::map_size.
15415         (get_fontno, env_space_width, env_half_narrow_space_width,
15416         env_narrow_space_width, symbol_fotno, is_good_fontno,
15417         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15418         FONTS_MAX.
15419         (next_available_font_position): Never return 0.
15421 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15423         * ps/tmac.ps: Add font translations for compatibility with dpost.
15425 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15427         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15428         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15429         Move definitions baseline_sep, shift_down, column_sep,
15430         matrix_side_sep into...
15431         * eqn/box.c: Add them to param_table.
15432         * eqn/pbox.h: Add declarations to pbox.h.
15434         * troff/input.c (set_string): Cast value to unsigned char *.
15436         * troff/token.h (process_input_stack): Declare it static before
15437         declaring it a friend.
15439 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
15441         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15442         and bottom.
15443         * dvi/devdvi/EX: Regenerate.
15445         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15446         transparent.
15448 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
15450         * eqn/lex.c: In defaults_table, make definition of `dot' call
15451         `dot_def'.  Don't explicitly make it roman.  Similarily for other
15452         accents.
15454         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15455         argument.
15456         (for_input::get, for_input::peek): Use this.
15457         (do_for): Add by_is_multiplicative argument.
15458         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15459         Change semantic value of optional_by to be a double plus a flag
15460         saying whethet the by clause is multiplicative.
15462         * eqn/lex.c (get_delimited_text): Remember location of start of
15463         definition.  Improve error handling when EOF is encountered.
15465         * lib/font.h: Rename handle_x_command to
15466         handle_unknown_font_command.
15467         * lib/font.c (font::load): Call handle_unknown_font_command for
15468         any unknown command in the font description file.  Don't call
15469         handle_x_command. Include the name of the command in the argv.
15470         Improve message for unknown command after kernpairs or charset
15471         command.
15472         * ps/ps.c (ps_font::handle_x_command): Rename to
15473         handle_unknown_font_command.  Remove message about `x download'
15474         command.  Give error message for wrong number of arguments.
15475         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15476         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15477         handle_unknown_font_command. Give an error message for wrong
15478         number of arguments.  Rename design_size to designsize.
15479         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15480         checksum', `designsize' instead of `design_size'.
15482 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
15484         * eqn/*.[chy]: Change underaccent to uaccent.
15486         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
15487         give it the same precedence as ACCENT.
15488         * eqn/other.c (make_underaccent_box): New function.
15489         * eqn/box.h: Declare it.
15490         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15491         def_table.
15493 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
15495         * pic/pic.y (reset_all): New function. Called in rule for RESET.
15496         (parse_init): Call reset_all.
15497         (define_variable): When defining scale reset only those
15498         pre-defined variables that are scaled.
15499         (defaults_table): Add `scale' as non-scaled value.
15501         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15502         together with the text; allow any number of positioning words;
15503         allow center as a positioning word.
15505         * pic/object.c (output::compute_scale): Get picture maximum height
15506         and width from variables called maxpswid and maxpsht.
15507         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15509 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
15511         * pic/object.c (object_spec::make_text): Multiply textht by number
15512         of text items.
15514         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15515         occur.
15516         (do_sprintf): New function.
15517         (pic.gperf): Add sprintf token.
15518         (text, sprintf): New rules.
15520         * pic/pic.y: `rand()' with no arguments returns a random number
15521         in the range [0,1).
15523         * pic/pic.y: Allow a bare expression to be an attribute: change
15524         precedences to support this.  Change optional_ordinal rule to
15525         optional_ordinal_last to avoid reduce/reduce conflict.
15526         * pic/object.c (object_spec::object_spec): Initialize direction.
15528         * pic/pic.y: Implement ^ operator meaning exponentiation.
15530         * troff/node.h: Add default argument to mount_font.
15531         * troff/node.c (font_position): Read an optional third argument
15532         giving the external_name.
15533         (mount_font): Add optional argument giving the external_name.
15534         (mount_font_not_translate): Have additional argument giving
15535         external name.  Use this name to load the font.  Pass both names
15536         to font_info::font_info.
15537         (font_info::font_info): Have additional argument giving
15538         external_name.
15539         (class tfont): New member external_name.
15540         (font_info::get_tfont): Use external name to construct tfont_spec.
15542 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
15544         * eqn/lex.c (init_table): Add argument giving device.  Define
15545         name of device to be "1".
15546         (do_ifdef): Counts as true if the argument has been defined with
15547         `define'.
15548         * eqn/main.c (main): Call init_table with device argument. Make
15549         device local to main.
15550         * eqn/eqn.h: Change declaration of init_table. Remove declaration
15551         of device.
15553         * pic/lex.c (get_delimited): Allow text to be delimited by
15554         matching {}s.  Don't recognize ending delimiter within a string.
15556         * troff/input.c (get_delim_name): New function.
15557         (token::next): Implement \C.
15559         * lib/font.c (font::load): Grok ---.  Add an alias for each
15560         character based on its code.
15561         (font::get_code_width): Deleted.
15562         * lib/font.h (class font): Declare font::number_to_index().
15563         Remove declaration of font::get_code_width.
15564         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15565         to indices of named characters.
15566         (font::number_to_index): New function.
15567         * troff/input.c (font::number_to_index): New function.
15568         (get_charinfo_by_number, charinfo::get_number,
15569         charinfo::set_number): New functions.
15570         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15571         (token::process, token::description, token::get_char,
15572         token::add_to_node_list, token::operator==): Handle
15573         TOKEN_NUMBERED_CHAR.
15574         * troff/charinfo.h: Declare get_charinfo_by_number,
15575         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
15576         charinfo class.
15577         (charinfo::numbered): New function.
15578         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15579         * troff/env.h (class environment): Remove declaration of ...
15580         * troff/env.c (environment::make_numbered_char_node): Deleted.
15581         * troff/node.c (make_numbered_node): Deleted.
15582         (class numbered_glyph_node): Remove.
15583         (troff_output_file::put_char_width, troff_output_file::put_char):
15584         Handle numbered chars.
15585         (troff_output_file::numbered_char): Removed.
15586         (tfont::get_code_width): Removed.
15587         (make_glyph_node): Don't search special fonts for numbered
15588         characters.
15589         * troff/node.h: Remove declaration of make_numbered_node.
15590         * driver/input.c (do_file): Handle N command.
15591         * driver/printer.h: Add declaration of ...
15592         * driver/printer.c (printer::set_numbered_char): New function.
15593         * dvi/tfmtodit.c (main): Generate unnamed entries.
15594         * ps/devps/afmtodit: Likewise.
15595         * xditview/xtotroff.c (MapFont): Likewise.
15596         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15598         * tbl/main.c (process_format): If multiple widths are specified
15599         for a column but all the widths are the same, don't give an error
15600         message.
15602         * tbl/table.c (table::do_row): If the current row is all lines and
15603         the stuff doesn't contains a line, mark the top of the row after
15604         printing stuff before the row.  If the current row is not all
15605         lines and the stuff doesn't contain a line, don't unnecessarily
15606         mark the top of the row before printing the stuff.
15607         
15608 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
15610         * troff/groff.h: Remove MAX_PATH.
15611         * troff/input.c (open_file): Dynamically allocate space for the
15612         path.
15613         (open_mac_file, process_macro_file): Corresponding changes.
15615 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
15617         * troff/node.h (class output_file): Make copy_file pure.  Add
15618         vspace method ifdef COLUMN. Add is_printing method.
15619         * troff/node.c: Add class printing_reg. Add class
15620         real_output_file. Derive other output_file classes from
15621         real_output_file; in these classes rename begin_page to
15622         really_begin_page, print_line to really_print_line, copy_file to
15623         really_copy_file, transparent_char to really_transparent_char.
15624         Move output_file::flush to real_output_file. Add printing member
15625         to class output_file.
15626         * troff/div.h: Remove printing member from top_level_diversion.
15627         Add vspace member function to class diversion ifdef COLUMN. Add
15628         some declarations ifdef COLUMN.
15629         * troff/div.c (top_level_diversion::copy_file,
15630         top_level_diversion::transparent_output,
15631         top_level_diversion::output): Don't test printing member before
15632         output.
15633         * troff/input.c: Handle initial variable_space_request ifdef
15634         COLUMN.
15635         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15636         but comment it out.
15638 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
15640         * troff/div.c (diversion::need): Make any space forced.  If we
15641         sprung a trap, set truncated_space to minus the distance to the
15642         trap and set needed_space to the amount that was needed.
15643         (top_level_diversion::space): A forced space turns no_space_mode
15644         off.
15645         (class constant_vunits_reg): New class.
15646         (init_div_requests): Implement number registers .trunc and .ne
15647         using constant_vunits_reg.
15648         (class truncated_space_reg): Deleted.   
15650         * troff/div.h: Don't have a no_space_mode member in diversion.
15651         Instead have it in top_level_diversion.
15652         * troff/div.c (diversion::diversion): Don't initialize
15653         no_space_mode.
15654         (top_level_diversion::top_level_diversion): Initialize
15655         no_space_mode.
15656         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15657         (macro_diversion::output): Don't clear no_space_mode.
15659         * troff/input.c (diverted_space_node::reread): Don't call
15660         environment::do_break.  In fill mode, act like a blank line.
15661         (diverted_copy_file_node::reread): Don't call
15662         environment::do_break.
15664         * troff/div.c (blank_line): New function.
15665         * troff/div.h: Declare it.
15666         * troff/input.c (process_input_stack): Call it.
15668         * troff/div.c (truncated_space_reg::get_string): New function.
15669         (init_div_requests): Bind to .trunc.
15670         (space_request, top_level_diversion::space,
15671         top_level_diversion::output, macro_diversion::space,
15672         macro_diversion::output): Update truncated_space.
15673         (macro_diversion::output): Redo calculations when trap sprung.
15674         (macro_diversion::output, macro_diversion::space): No need for
15675         trap_flag.
15677         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15678         after truncating post line spacing.
15680 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
15682         * ps/devps/prologue (MF, SF): Make them work even if setfont is
15683         defined as a procedure rather than as an operator.
15685 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
15687         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15689 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
15691         * troff/div.c (top_level_diversion::output): Merge
15692         output_file::print_line and output_file::end_of_line member
15693         functions.
15694         * troff/div.h (class output_file):
15695         * troff/node.c (troff_output_file::print_line,
15696         troff_output_file::end_of_line, output_file::end_of_line,
15697         ascii_output_file::print_line, suppress_output_file::print_line):
15698         Corresponding changes.  
15700 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
15702         * troff/input.c (token::next): Don't give a warning for `\.'.
15704         * troff/env.c (environment::get_center_lines): New function.
15705         (init_env_requests): Bind number register .ce to it.
15706         * troff/env.h: Declare it.
15707         * tbl/table.c (table::init_output): Define reset macro to restore
15708         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
15709         Then do .ce 0.
15710         (table::print): If center option not given, then imply center
15711         option if SAVED_CENTER_REG > 0.
15713 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
15715         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15716         Troff.ps from DOWNLOAD.
15717         
15718         * troff/Makefile: Change comment in DEFINES to avoid confusing
15719         System V make.
15721         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15722         code.  Don't try to catch errors with stopped.
15723         (check_line_lengths): New function.
15724         * ps/devps/prologue (EXEC): Deleted.
15725         (EBEGIN, EEND): New procedures.
15727 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
15729         * troff/input.c: Include request.h before node.h.
15730         * troff/node.c: Likewise.
15731         * troff/env.c: Likewise.
15732         * troff/div.c: Likewise.
15733         * troff/node.h (class special_node): Store argument as a macro
15734         rather than a char *.
15735         * troff/node.c (special_node::special_node, special_node::copy):
15736         Grok this.
15737         (special_node::~special_node): Deleted.
15738         (special_node::tprint): Deleted.
15739         (special_node::tprint_start, special_node::tprint_end,
15740         special_node::tprint_char): New functions.
15741         (troff_output_file::special): Deleted.
15742         (troff_output_file::start_special, troff_output_file::end_special,
15743         troff_output_file::special_char): New functions.
15744         * troff/input.c (special_node::tprint): New function.
15745         (do_special): Use macro not char *.
15746         (do_transparent_macro): Deleted.
15747         (token::next): Don't call do_transparent_macro.
15749         * troff/input.c (token::next): Add 'Y' case.
15750         (do_transparent_macro): New function.
15751         * troff/node.c (troff_output_file::special): Handle newlines with
15752         argument using new continuation convention.
15753         * driver/input.c (get_string): Cope with continuation convention.
15754         (do_file): Don't call skip_line after calling get_string(1).
15755         * ps/ps.c (ps_printer::special, ps_printer::do_import,
15756         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15757         arg.
15758         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15759         with +.
15761 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
15763         * troff/input.c (asciify): By default, illegal input characters
15764         should return empty string.
15766         * troff/input.c (copy_file): Handle first page transition like title.
15767         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15769         * troff/input.c (token::next): Improve error message for EOF after
15770         escape character.
15771         (input_char_description): New function.
15772         (get_char_for_escape_name): Use input_char_description.
15773         (token::next): Warn about unrecognized escape sequences.
15774         (warning_table): Add WARN_ESCAPE.
15775         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15776         accordingly.
15778         * troff/token.h: Remove declaration of process_input_stack.
15780         * troff/input.c: Remove declaration of init_hyphen_requests.
15781         * troff/request.h: Correct spelling in declaration of same.
15783         * troff/input.c (token::next): Check whether escape_char is 0.
15785 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
15787         * groff.c (main, usage, help): Implement -P and -L options.
15788         * groff.sh: Likewise.
15790         * troff/input.c (token::next): Use some gotos to avoid code
15791         duplication.
15793         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15794         Avoid calling symbol::symbol if name empty.
15796 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
15798         * troff/input.c (init_input_requests): Make \n(.x return the major
15799         version number and \n(.y return the minor version number.
15800         * troff/Makefile: Construct file majorminor.c defining
15801         major_version and minor_version automatically from ../VERSION.
15803         * troff/node.c (class glyph_node): Make operator new and operator
15804         delete public.
15805         (class ligature_node): Similarily.
15807         * troff/input.c (operator==(const macro &, const macro &)): New
15808         function.
15809         (non_interpreted_node::same): Use this.
15810         (string_iterator::string_iterator): Make macro& argument const.
15812         * troff/input.c (input_iterator::get): New function. Don't make
15813         asciify_macro or class non_interpreted_node friends of class
15814         input_iterator.
15815         (non_interpreted_node::interpret): Use input_iterator::get.
15816         (asciify_macro): Likewise.
15818         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15819         ~non_interpreted_node): Deleted.
15820         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15821         Deleted.
15823         * troff/symbol.h: Make all symbol member functions const.
15825         * lib/strtol.c: New file.
15826         * lib/Makefile: Add strtol.c.
15827         * Makefile: Define STRTOL as strtol.o to include strtol in
15828         libgroff.a.
15830 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
15832         * pic/troff.c (troff_output::simple_circle): Divide by scale.
15834 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
15836         * troff/input.c (do_special): Use input_level.
15838         * troff/token.h (TOKEN_BACKSPACE): New token.
15839         (token::backspace): New function.
15840         * troff/input.c (token::description, token::next, token::process):
15841         Grok TOKEN_BACKSPACE.
15842         (do_special): Turn TOKEN_BACKSPACE back into \b.
15844         * troff/token.h (token::leader): New function.
15845         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15847         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15849         * troff/input.c (do_special): Use token::description in error
15850         message.
15852 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
15854         * troff/input.c (decode_args): Combine quoted and
15855         quote_input_level variables. Make it a for (;;) loop.
15857         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15859         * troff/input.c (read_long_escape_name): The test for whether to
15860         expand buffer was off by 1.
15861         (read_string): Similarily.
15863 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
15865         * troff/input.c: Use `const int' rather than `static const int'.
15867         * troff/div.h (diversion::copy_file): Declare as pure virtual.
15868         (macro_diversion::copy_file): New function.
15869         * troff/node.h: New class diverted_copy_file_node.
15870         * troff/node.c: Implement it.
15871         * troff/input.c (copy_file): Use diversion::copy_file. Handle
15872         first page transition by pushing a diverted_copy_file_node.
15873         * troff/input.c (token::next, process_input_stack): Don't handle
15874         COPY_FILE_REQUEST.
15876 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
15878         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15879         whether space widths need adjusting.
15881         * troff/charinfo.h: Generalize translated_to_space to
15882         special_translation so as to allow translation to \&.
15883         * troff/input.c (translate): Allow translation to \&.
15884         (charinfo::*): Corresponding changes.
15885         * troff/node.c (make_node, node::add_char): Corresponding changes.
15886         * troff/node.h (dummy_node::dummy_node): Allow optional first
15887         argument.
15889         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15890         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15891         TOKEN_REQUEST.
15892         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15893         TOKEN_REQUEST with an argument of TITLE_REQUEST.
15894         (token::process): Grok that.
15895         * troff/input.c (copy_file): Handle first page transition like
15896         title by pushing a COPY_FILE_REQUEST cookie.
15897         (token::next, process_input_stack): Grok that.
15898         * troff/node.h (output_file::copy_file): Add x and y arguments.
15899         Make it non-pure.
15900         * troff/div.c (top_level_diversion::copy_file): Supply them.
15901         * troff/node.c (troff_output_file::copy_file): Add x and y
15902         arguments; moveto specified position.  Invalidate font_position
15903         array after copying file.
15904         (output_file::copy_file): New function.
15905         (suppressed_output_file::copy_file, ascii_output::copy_file):
15906         Removed.
15907         * troff/input.c (transparent_file): New function.
15908         (init_input_requests): Bind to "trf".
15909         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15910         (process_input_stack): Likewise.
15912         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15914         * troff/node.c (init_node_requests): New number registers .kern
15915         pointing to global_kern_mode, and .lg pointing to
15916         global_ligature_mode.
15918         * troff/node.c (ligature): Don't change it if we get a bad
15919         integer.
15921         * troff/input.c (do_define_string): Don't strip tabs.
15923         * troff/input.c (asciify_macro): Make the string_iterator auto.
15925         * troff/node.c (init_font_requests): Rename to...
15926         (init_node_requests):
15927         * troff/node.h: Change declaration.
15928         * troff/input.c (main): Change call.
15930         * troff/input.c (node::reread, diverted_space_node::reread): New
15931         methods.
15932         (process_input_stack): Call reread rather than
15933         get_diverted_space_node.
15934         * troff/node.c (node::get_diverted_space_node,
15935         diverted_space_node::get_diverted_space_node): Removed.
15936         * troff/node.h: Declare reread methods instead of
15937         get_diverted_space_node methods. Make `n' member private.
15938         * troff/input.c: (token::diverted_space): Removed.
15939         * troff/token.h: Removed declaration.
15940         
15942 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
15944         * eqn/script.c (script_box::compute_metrics): Don't let
15945         SUP_RAISE_FORMAT become negative.
15947         * tbl/table.c (table::do_row): Entries that don't end in the
15948         this row shouldn't make the row non-blank.
15949         
15950         * tbl/table.c (table::make_columns_equal): Only set the width of
15951         columns which are marked as equal.
15952         
15953         * tbl/main.c (process_data): Before issuing excess data error,
15954         if last character was a newline unget it; then get it again after
15955         the error.  Also include the contents of the entry in the message.
15957         * groff.c: New file.
15958         * Makefile: Build groff from groff.c.  Make it possible to use
15959         either groff.sh or groff.c as groff.
15960         * Makefile.bd: Similarily.
15962 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
15964         * groff.sh: Don't delay expansion of $@ in assignment to files.
15965         Remove occurrences of \".
15967 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
15969         * all Makefiles: Simplify and rearrange.
15971         * Makefile: Handle fmod like malloc.
15972         * lib/Makefile: Similarily.
15973         * lib/fmod.c: Remove #ifdef NEED_FMOD.
15975         * Makefile: Rename OPTIMISE to OPTIMIZE.
15977         * groff.sh: Remove assignment to PATH.
15978         * Makefile: Remove SHPATH variable.
15979         * Makefile.bd: Similarily.
15981         * groff.sh: Add -V option to print the pipeline instead of
15982         executing it.
15984 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
15986         * lib/font.c: Split off file searching into ...
15987         * lib/fontfile.c: New file.
15989         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15991 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
15993         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15994         Also change misleading comment.
15995         (table::do_vspan): Change similarily misleading comment.
15996         * tbl/main.c (process_data): A format row with an explicit `s'
15997         uses up a data line, even if all the other columns are `_' or `='.
15999         * troff/input.c (token::description): Fix description of
16000         TOKEN_DUMMY and TOKEN_EMPTY.
16002 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16004         * groff.sh: Fix description of -Z in help message.
16006 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16008         * pic/object.c (object_spec::make_object): Allow negative and zero
16009         line thicknesses.
16010         * pic/pic.y: Give linethick default value of -1.0.
16011         * pic/troff.c (troff_output::troff_output): Initialize
16012         last_line_thickness to BAD_THICKNESS.
16013         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16014         (troff_output::line_thickness): Canonicalize negative thicknesses
16015         to RELATIVE_THICKNESS.
16016         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16017         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16018         to -1.0.
16019         (tex_output::start_picture): Set pen_size to -2.0.
16021         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16022         0, then use 0 linewidth.
16023         (ps_printer::ps_printer): Initialize line_thickness to -1.
16025         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16027         * ps/devps/symbolchars: Remove `or'.
16028         * ps/tmac.ps: Implement \(or with .char.
16030         * ps/devps/symbolchars: Move most characters into textmap.
16031         * ps/devps/textmap: Add names for troff bracket characters. Remove
16032         ul, ru, br, bv.
16034         * ps/devps/TSymbol.ps: Removed.
16035         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16036         * ps/tmac.ps: Do with .char what TSymbol did.
16037         * ps/devps/download: Remove TSymbol.
16039         * ps/devps/T: Removed.
16040         * ps/devps/Troff.ps: Removed.
16041         * ps/devps/Troff.afm: Removed.
16042         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16043         * ps/devps/download: Remove Troff.
16044         * ps/devps/FontMakefile: Remove T target.
16045         * ps/devps/DESC-A4: Remove T from font list.
16046         * ps/devps/DESC-letter: Likewise.
16048         * troff/input.c (macro_to_node): Rename to ...
16049         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
16050         character's definition while processing it.
16051         * troff/node.c (node::add_char, make_node): Change calls to
16052         macro_to_node accordingly.
16054         * troff/input.c (token::next): Translate \_ to \(ul.
16056         * tty/devascii/R.proto: Add `|'.
16057         * tty/devlatin1/R.proto: Likewise.
16059 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
16061         * man: Put the version number in all the man pages.
16063 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
16065         * Makefile.bd: New file.
16066         * README.bd: New file.
16068         * VERSION: New file.
16069         * lib/version.c: Removed.
16070         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16071         in clean target.
16073         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16074         environment variable.
16076         * all Makefiles: Split install target into install.bin for
16077         binaries, and install.nobin for everything else.
16078         * Makefile: Add bindist target.
16080         * man/afmtodit.man: New file.
16081         * man/Makefile: Add afmtodit.n to MAN1PAGES.
16082         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16083         in BINDIR.
16084         * ps/Makefile: Pass BINDIR to make install in devps.
16086         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16087         the space character.
16089         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16091 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
16093         * ps/ps.c: Redo font downloading.
16094         * ps/devps/download: New file.
16095         * ps/devps/Makefile: Add download to DEVICEFILES.
16096         * ps/devps/afmtodit: Remove -d option.
16097         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16098         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16099         * ps/devps/zapfdr.ps: Likewise.
16100         * ps/devps/TSymbol.ps: Likewise.
16102 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
16104         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16106 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
16108         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16109         then strip the first line if it starts with %.
16110         * Makefile: Add a comment about this.
16112         * man/tfmtodit.man: New file.
16113         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16114         * dvi/Makefile: Install tfmtodit in BINDIR.
16116         * dvi/tfmtodit.c (usage): Mention -v option.
16118 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
16120         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16121         * troff/node.c (troff_output_file::transparent_char): Don't call
16122         flush_tbuf.
16124         * eqn: Add check_tabs method to most box classes.
16125         * eqn/box.c (box::top_level): Call check_tabs.
16127         * eqn/script.c (script_box::output): Use \Z.
16128         * eqn/limit.c (limit_box::output): Use \Z.
16130         * eqn/box.c (box::top_level): Use itoa.
16132 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
16134         * dvi/tmac.dvi: Add font translations for CR, C, TT.
16135         * dvi/devdvi/Makefile: Don't make links to CW.
16137         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16138         HX, HD.
16139         * xditview/tmac.X: Likewise.
16141         * troff/node.c: Add font translation feature.
16142         (get_font_translation): New function.
16143         (symbol_fontno): Translate the font name.
16144         (mount_font_no_translate): Rename to mount_font to this.
16145         (mount_font): New function.
16146         (font_family::make_definite): Call mount_font_no_translate instead
16147         of mount_font.
16148         (mount_style): Translate the font name.
16149         (font_translate): New function.
16150         (init_font_requests): Bind "ftr" to font_translate.
16152         * ps/devps/prologue (SN): New procedure that rounds a position to
16153         the nearest (pixel + (.25,.25)).
16154         (DL): Use SN to round endpoints.
16156         * lib/version.c: Changed version to 0.5.
16158 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
16160         * Makefile: Move definition of PAGE to the very beginning, so that
16161         people are less likely to miss it.
16163 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
16165         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16167         * troff/env.c (environment::choose_breakpoint): Make `can't find
16168         breakpoint' error a warning of type WARN_BREAK.  Change message to
16169         `can't break line'.
16170         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16171         code 040000.
16172         * troff/input.c: Add WARN_BREAK to warning_table.  Include
16173         WARN_BREAK in DEFAULT_WARNING_MASK.
16175         * tty/tmac.tty: Add definition of \(+-.
16177         * groff.sh: Remove `--' option to set command.
16179         * dvi/devdvi/texsy.map: Remove duplicate md entry.
16181         * ps/devps/eqnchar: Better definition of cdot using md.
16182         * dvi/devdvi/eqnchar:  Likewise.
16183         * xditview/devX100/eqnchar:  Likewise.
16184         * xditview/devX75/eqnchar: Likewise.
16185         * eqn/lex.c: Add definition of cdot.
16187 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
16189         * troff/input.c (get_optional_char): New function.
16190         * troff/input.c (set_page_character): Use get_optional_char(),
16191         rather than has_arg() and tok.get_char(1).
16192         * troff/env.c (tab_character, leader_character, hyphen_char,
16193         field_characters): Likewise.
16194         (margin_character): Likewise.  Also always delete the
16195         margin_character_node.
16197         * troff/input.c (token::get_char): Use token::description.
16199         * troff/input.c (has_arg): Don't skip over tab and \}.
16200         * troff/number.c (start_number): Give a warning if the number
16201         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16203 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
16205         * troff/input.c (empty_name_warning, non_empty_name_warning): New
16206         functions.
16207         (get_name, get_long_name): Use these.  Rename `warn' argument to
16208         `required'.
16210         * troff/node.c (get_fontno): Test that the symbol is not null.
16212         * troff/input.c (token::description): New function.
16213         * troff/number.c (parse_term): Use token::description in `numeric
16214         expression expected' message.
16215         * troff/groff.h: Add WARN_MISSING.
16216         * troff/number.c (start_number): New function.
16217         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16218         get_incr_number): Use start_number().
16219         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16220         default.
16221         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16222         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16223         token::descripion.
16224         * troff/input.c (token::get_char): Use WARN_MISSING.
16225         * troff/input.c (token::delimiter): Use token::description.
16226         * troff/env.c (environment_switch): Back out Aug 3 change.
16227         * troff/input.c (has_arg): Skip over \}s and tabs but give a
16228         warning.
16229         * troff/token.h (token::tab): New function.
16230         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16231         * troff/reg.c (alter_format): Likewise.
16232         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16234 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
16236         * troff (most files): Redo warnings. Divide warnings into various
16237         categories; warning() has an additional first argument indicating
16238         the category it falls into.
16239         * troff/input.c (main): -w now takes an argument. New option -W.
16240         (enable_warning, disable_warning): New functions.
16242         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16243         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16245 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
16247         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16248         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16249         * xditview/devX75/eqnchar: Likewise.
16250         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16252         * eqn/other.c: When bar or over applies to a single character
16253         don't produce an overline_box or an underline_box. Instead produce
16254         an accent_box or an underaccent_box, with the accent a line
16255         whose width is accent_width.  New classes underaccent_box,
16256         overline_char_box and underline_char_box.
16257         * eqn/box.h: Move overline_box, underline_box, accent_box class
16258         declarations into eqn/other.c. Add declarations of
16259         make_underline_box, make_overline_box, make_accent_box.
16260         * eqn/eqn.y: Call make_overline_box, make_underline_box
16261         make_accent_box instead of constructors.
16262         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16264         * eqn/other.c: Add accent_box::~accent_box.
16265         * eqn/box.h: Declare it.
16267         * groff.sh: With -Tps, use eqn -D.
16269         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16270         rather than \l.
16271         (underline_box::output): Similarily.
16272         (accent_box::output): Use \Z.
16274         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16275         bit smaller.)
16277 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
16279         * troff/div.c (top_level_diversion::transparent_output(unsigned
16280         char)): Use asciify.
16281         * troff/input.c (asciify): Don't make it static.
16282         * troff/token.h (asciify): Declare it.
16283         
16284         * troff/input.c (get_name, get_long_name, token::get_char,
16285         token::delimiter): Add an extra default argument which says
16286         whether a warning should be printed.
16287         * troff: Pass a non-zero argument to one of these rather than
16288         printing a warning directly.
16290 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
16292         * troff: Consistently use symbol::is_null.
16294         * troff/dictionary.h: Move some inline functions into
16295         dictionary.c.
16297         * troff/request.h: Move inline functions into input.c.
16298         (request_or_macro::invoke): Make it pure.
16300         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16301         * troff/input.c (init_input_requests): Use class constant_int_reg.
16302         (class compatible_reg): Deleted.
16303         * troff/div.c (init_div_requests): Use class constant_int_reg.
16304         (class last_post_line_extra_space_reg): Deleted.
16306         * troff/env.c (tab_character): Don't change the tab character if
16307         we get an invalid argument.
16308         (hyphen_char): Similarily.
16310         * troff/reg.c (alter_format): Check that nm is not null.
16312         * Makefile, groff.sh: Make it possible to customize the commands
16313         used for printing PostScript and dvi files. Also make it possible
16314         to customize the path used by groff.sh.
16316         * eqn/eqn.y: Make `left' right associative.
16318 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
16320         * pic/pic.h: Added definition of M_SQRT2 for those systems that
16321         don't have it.
16323         * pic/pic.h: Removed definition of INT_MAX.
16325         * troff/node.c (italic_corrected_node::vertical_extent): Omit
16326         `return'.
16328         * troff/input.c (token::next):  Handle \R like \n.
16330 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
16332         * ps/tmac.pc (PSPIC): Simplify.
16334         * troff/env.c (tab_stops::to_string):
16335         * pic/pic.y (object_type_name):
16336         * pic/troff.c (simple_output::line):
16337         * pic/tex.c (tex_output::spline):
16338         * pic/object.c (object_spec::make_object):
16339         * tbl/main.c (process_data):  Add cases to switch statements to
16340         avoid cfront warnings. (Some of these are spurious, since the
16341         switch already has a default case.)
16343         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
16344         `ps-'.  Don't test systat; instead check number of arguments to
16345         ps-bb.
16347 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
16349         * macros/tmac.e: Do not decrease the page offset by 0.5i.
16351         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16352         Unlink the file as soon as we have opened it, so that we don't
16353         have to bother with signal handlers.
16354         (handler): Deleted.
16355         (fatal_error_exit): Deleted.
16356         (main): Don't call signal.
16358         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16359         can be ignored.
16360         * dvi/devdvi/Makefile: Use the -k option with S and MI.
16362         * pic/pic.y:  If there is a label, or an nth construction before
16363         the first `.' in the argument to `with', ignore it and generate a
16364         warning.
16365         * pic/lex.c (lex_warning): New function.
16367         * tbl/table.c (table::init_output): In section keep and release
16368         macro, use 0 indent when diverting and the correct indent when
16369         rereading.
16371         * troff/input.c (interpolate_number_format): Do not interpolate
16372         anything if the number register is not defined.
16374         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16376 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
16378         * ps/devps/prologue (PICTURE): Set components of graphics state to
16379         their default values.
16381         * ps/devps/text.enc: Add trademark
16382         * ps/devps/textmap: Add names for club, spade, heart, diamond,
16383         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16384         * ps/devps/symbolchars: Add names for summation and product.
16386         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16387         suchthat. Add pp. Add upper-case letters.
16389         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16390         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16391         Upsilon.
16393         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16394         rA (right angle bracket) to ra.  Introduce names for double-headed
16395         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16396         * ps/devps/textmap: Likewise for ps device.
16397         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16398         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16399         * tty/devascii/R.proto: Likewise.
16400         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16401         \(uA, \(dA.
16402         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16404         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16406         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16407         def_table.
16409 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16411         * troff/div.c (when_request): Use symbol::is_null rather than
16412         has_arg to determine whether we have an argument.
16413         (change_trap): Remove the trap if we get an invalid number. Give
16414         an error if we don't get at least the macro name.
16415         (diversion_trap): Remove trap if we get an invalid name or number.
16417         * troff/env.c (environment_switch): Pop if we get an invalid
16418         symbol or numeric expression.
16420         * troff/input.c (do_define_macro):  If EOF is encoutered while
16421         defining the macro, do tok.next() before returning.
16423         * troff/token.h (has_arg): Move definition from here, to ...
16424         * troff/input.c (has_arg): ... here
16426         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16427         * troff/input.c (shift): Likewise.
16429         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16430         for `.c'.
16432         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16433         `..'.
16435         * eqn/main.c (do_file): Subtract 1 from current_lineno if
16436         interpret_lf_args succeeds.
16438         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16439         \\.  This avoids problems with \$N.
16441         * groff.sh: Pass -C to preprocessors.
16443         * lib/lf.c (interpret_lf_args):  Be more flexible.
16445         * tbl/main.c (main): Add -C option.
16446         (table_input::get): Do not recognize TE if followed by character
16447         other than a space or newline unless -C option given.
16448         (process_input_file): Likewise for lf, TS.
16449         (process_data): Likewise for lf in text blocks.
16451         * eqn/main.c (main): Add -C option.
16452         (do_file): Don't recognize EQ, EN or lf if followed by character
16453         other than space or newline unless -C option given.
16454         * eqn/lex.c (file_input::read_line): Similarily.
16455         * eqn/eqn.h: Declare compatible_flag.
16457         * etc/soelim.c (main): Add -C option.
16458         (interpret_lf_args): Use version in libgroff.
16459         (do_file):
16461         * pic/main.c (main): Add -C option, which sets compatible_flag.
16462         (top_input::get), (top_input::peek):  If -C option not given,
16463         do not recognize .PS/.PE/.PF/.lf if followed by a character
16464         other than space or newline.
16465         * pic/lex.c (file_input::read_line): Similarily.
16466         * pic/pic.h: Add declaration of compatible_flag.
16468 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
16470         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16472         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
16473         derived from node.  New class space_char_hmotion_node.
16474         * troff/input.c (asciify_macro): New function.
16475         * troff/input.c (init_input_requests): New request `asciify' bound
16476         to asciify_macro.
16477         * macros/mm.diff: New file.
16478         * Makefile:  In install.mm target use `patch' to apply
16479         macros/mm.diff.
16481         * troff/input.c (macro::print_size): Just print the size in bytes.
16483         * troff/div.c (return_request): Correct the argument
16484         interpretation.
16486 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
16488         * troff/node.h (class composite_node): Add sz member.
16489         * troff/node.c (composite_node::size): Return sz.
16490         * troff/input.c (macro_to_node):  Use the initial size in the
16491         environment as the size of the composite_node.
16493         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
16494         default.
16496 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
16498         * troff/div.c (change_trap): If we get a bad number expression,
16499         do nothing.
16501 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
16503         * lib/matherr.c (matherr): Define this only if math.h defines
16504         TLOSS.
16506 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
16508         * troff/div.c (macro_diversion::distance_to_next_trap): If there
16509         no diversion trap return vunits(INT_MAX - vresolution).
16511 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
16513         * troff/input.c (do_zero_width): New implementation that doesn't
16514         use a temporary environment. Use instead:
16515         (token::add_to_node_list): New function.
16516         * troff/env.c (environment::get_prev_char_height),
16517         (environment::get_prev_char_height),
16518         (environment::get_prev_char_skew): New functions.
16519         (environment::get_prev_char): New function.
16520         (environment::get_prev_char_width): Change to use get_prev_char.
16521         (init_env_request): Implement new registers .cht, .cdp, .csk.
16522         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16523         \Z being processed in a separate environment.
16525 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
16527         * tbl/table.c: Removed TABLE_BOTTOM_REG.
16529         * tbl/table.c (table::init_output): In the section release macro,
16530         give a warning message if the section won't fit on one page.
16532         * tbl/table.c (table::do_top): Emit table keep only if table is
16533         boxed.
16534         (table::do_bottom): Likewise for table release.
16535         (table::table), (table::add_vertical_rule):  Remove reference to
16536         keep member.
16537         * tbl/table.h: Remove keep member.
16539         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16540         SECTION_RELEASE_MACRO, if there's not enough space before the next
16541         trap to output the diversion, call T# ourselves, set
16542         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16543         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
16544         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
16545         vertical position and return to it before turning traps on again.
16546         
16547 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
16549         * troff/node.c, troff/node.h: In classes derived from node,
16550         replace prev_char_width method by last_char_node method.
16551         * troff/env.c (environment::get_prev_char_width): Use
16552         node::last_char_node rather than node::get_prev_char_width.
16554         * Makefile: Added comment about -fno-inline on 68030-based
16555         Apollos.
16557         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16558         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16559         expressions using sizeof to int.
16560         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16562         * macros/tmac.e (TS):  Don't move @f back past the current
16563         position.
16565 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
16567         * ps/ps.c (main): Buffer stderr.
16568         * dvi/dvi.c (main): Likewise.
16569         * tty/tty.c (main): Likewise.
16571         * ps/ps.c (ps_printer::do_import): Improve error handling.
16573         * troff/input.c (abort_request): Use asciify.
16575         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16576         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16577         type of first argument int rather than char.  This works around a
16578         bug on the 68030 based Apollo using g++ 1.37.1.
16580         * tbl/table.h (class table): Add `keep' member.
16581         * tbl/table.c (table::table): Initialize `keep'.
16582         (table::add_vertical_rule): Set `keep' to 1.
16583         (table::do_top): Only emit table keep macro is `keep' is non-zero.
16584         (table::do_bottom): Likewise for table release macro.
16585         (table::do_row): Emit section keep macro even if the row is 0.
16587 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
16589         * macros/tmac.e (@C): Preserve the font family across the change
16590         in environments.
16592 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
16594         * lib/font.c: Initialize font::hor and font::vert to 1.
16595         (font::load_desc): Check the values of font::hor and font::vert.
16597         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16598         be included in a C compilation.
16599         (iftoa): Use INT_DIGITS. Include lib.h.
16600         (itoa): Likewise.
16601         (as_string): Likewise.
16602         * tbl/table.c: Removed definition of INT_DIGITS.
16603         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16604         * troff/input.c (input_input_requests): Likewise.
16605         * ps/ps.c (make_encoding_name): Likewise.
16606         (ps_printer::set_style): Likewise.
16607         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16609         * tty/devascii/R.proto: Map fm onto '.
16610         * tty/devlatin1/R.proto: Likewise.
16612 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
16614         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16615         argument to \w is at a different input level.
16617         * tbl/table.c (table::init_output): Define a new macro
16618         REPEATED_VPT_MACRO, like vpt but if in a diversion also
16619         transparently outputs itself.
16620         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16621         vpt.
16622         (table::do_row): Likewise.
16624         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16625         TRANSPARENT_STRING_NAME.
16627         * tbl/table.c (table::init_output): In the table release macro
16628         print an error message and don't produce any output if after
16629         issuing the need request the table still will not fit.  Also
16630         remove the diversion after bringing it back.
16632         * tbl/table.c (table::init_output): Define a new macro
16633         REPEATED_MARK_MACRO, like mk but if in a diversion also
16634         transparently outputs itself.
16635         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16636         is necessary because .TH might not call .T#.
16637         (table::do_top): Likewise TOP_REG.
16638         (table::define_bottom_macro): If TOP_REG is no longer valid, use
16639         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16640         table header might contain just the two top rules.
16642 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
16644         * troff/div.c: Implement new request `ptr' to print all traps.
16646         * troff/env.c (init_env_requests): Implement `.tabs' reg with
16647         init_string_env_reg.
16648         * troff/env.c (class tab_reg): Deleted.
16650 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
16652         * troff/div.c: New number register .pn returns the number of the
16653         next page as set by the pn request.
16655         * macros/tmac.an: Redid headers and footers.  Number each manual
16656         entry starting from 1 unless \nC is > 0, like Sun.  Added an
16657         optional 5th argument to .TH which specifies the manual name and
16658         appears in the center of the header.  Understand the X, P and D
16659         registers like Sun.
16661 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
16663         * troff/env.c (init_env_requests): New number register `.lt' to
16664         return the title length.
16666         * troff/node.h (class transparent_dummy_node): New class.
16667         * troff/node.c (class transparent_dummy_node): Provide member
16668         functions. 
16669         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16670         than a dummy_node.
16672         * troff/input.c (token::next): New escape sequence \).
16673         * troff/input.c (get_copy): Recognize \) in copy mode.
16675         * troff/input.c (input_stack::clear): New function.
16676         * troff/input.c (exit_request): Use input_stack::clear.
16678         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16679         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16681         * troff/env.c: Move set_page_character to input.c.  Move
16682         page_character to input.c also.
16683         * troff/env.c (title): Split off the reading of the parts of the
16684         title into read_title_parts.
16685         * troff/input.c (read_title_parts): New function.  Check the
16686         input_level when testing whether a token matches the delimiter.
16688         * troff/input.c (exit_request): New function.
16689         * troff/input.c (init_input_requests): Bind ex request to
16690         exit_request rather than exit_groff.
16692         * troff/input.c (exit_groff): Call tok.next() before
16693         process_input_stack().
16695 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
16697         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16698         * troff/env.h: ditto.
16699         * troff/input.c: ditto.
16701         * troff/env.c (environment::is_empty): Test pending_lines.
16703         * troff/env.c (environment::have_pending_lines): Removed.
16705         * troff/input.c: Add request to flush pending lines from the
16706         environment.
16708         * troff/env.c, troff/env.h: Add automatic widow control feature.
16710         * troff/input.c (exit_groff):  Do process_input_stack() after
16711         do_break() but before setting exit_flag to 2.
16713         * troff/input.c: Remove FLUSH_PENDING_LINES and
16714         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16715         environment after END_TRAP token seen, but only if there aren't
16716         any more traps still unfinished.
16717         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16719 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
16721         * troff/env.c: Rename the `retain_size' member of class
16722         pending_output_line to `no_fill'.
16724         * troff/env.c (title): When the line is output, make the
16725         retain_size argument !fill.
16727         * troff/node.h: Add `hyphenated' member to struct breakpoint.
16728         * troff/node.c (space_node::get_breakpoints),
16729         (dbreak_node::get_breakpoints):  Fill this in.
16730         * troff/env.c:  Allow specification of maximum number of
16731         consecutive hyphenated lines.
16733         * troff/env.c (environment::is_empty): Add test for !current_tab.
16735 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
16737         * troff/env.c (environment::hyphenate_line): Don't completely give
16738         up if the word is not to be hyphenated; continue so that breaks
16739         can be made at break_char_node's.
16741         * lib/lib.h: Only define INT_MAX if it's not already defined;
16742         undef INT_MIN if it's already defined.
16744         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16746         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16747         This works around a bug in AT&T C++ 2.0 used with an ANSI C
16748         compiler.
16749         
16750         * macros/tmac.an (an-header): Set no-space mode.
16752         * macros/tmac.an (TH): Start a new page if necessary.
16754         * Started using ChangeLog at version 0.4.
16756 Local Variables:
16757 version-control: never
16758 coding: latin-1
16759 End: