* NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
[s-roff.git] / ChangeLog
blob20fbc7ff1892dab899746f90acf08a2f5345f101
1 2004-05-04  Werner LEMBERG  <wl@gnu.org>
3         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4         Document `.U' register.
6         * src/roff/troff/env.cpp (environment::mark_last_line)
7         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
9 2004-05-04  Larry Kollar  <kollar@alltel.net>
11         New read-only register `.U'; it returns 1 in safer mode and 0
12         otherwise.
14         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
15         register.
17 2004-05-03  Werner LEMBERG  <wl@gnu.org>
19         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
21 2004-04-17  Werner LEMBERG  <wl@gnu.org>
23         * src/include/font.h (font): Use `int' for ch_index.
24         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
25         font::compact): Updated.
27         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
28         warnings.
30         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
31         (hyphen_word): Fix compiler warnings.
32         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
33         `char'.
34         Update all callers.
35         (get_delim_number, get_line_arg): Change second argument type to
36         `unsigned char'.
37         (macro_header::copy, token::next, do_define_string,
38         do_define_character, substring_request, asciify_macro,
39         unformat_macro, read_size, non_interpreted_node::interpret,
40         while_request, main: Fix compiler warnings.
41         (read_color_draw_node): Initialize `col'.
43         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
44         `start_col' and `end_col' of type `int'.
45         (vertical_rule): Make `col' of type `int'.
47         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
48         for EOF.
50         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
51         New arrays.
52         (format_serial): Use them to remove dependency on ASCII.
54         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
55         compiler warning.
56         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
57         Ditto.
59         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
60         compiler warnings.
61         (glyph): Change type of `hpos' to `int'.
63         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
64         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
66         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
68         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
70 2004-04-16  Werner LEMBERG  <wl@gnu.org>
72         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
73         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
74         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
75         `double' instead of `float' everywhere.
76         * src/preproc/grn/main.cpp: Use `double' instead of `float'
77         everywhere.
78         (main): Add return value.
79         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
80         everywhere.
81         Update all user functions.
83         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
84         src/preproc/eqn/box.h, src/preproc/pic/object.h,
85         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
86         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
87         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
88         src/roff/troff/input.cpp, src/roff/troff/request.h,
89         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
90         declarations.
92         * src/utils/indxbib/signal.c: Include stdlib.h.
94 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
96         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
97         before the first page.
99 2004-04-14  Thomas Klausner <wiz@netbsd.org>
101         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
102         (doc-operating-system-*): Updated.
103         * tmac/doc-syms (doc-str-St-*): Various small fixes.
104         (doc-str-Lb-*): Add more library names.
106 2004-04-10  Art Haas  <ahaas@airmail.net>
108         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
109         use anonymous type.
111 2004-04-09  Art Haas  <ahaas@airmail.net>
113         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
115 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
117         * arch/misc/shdeps.sh: Generate better comment for sed script.
119 2004-04-08  Art Haas  <ahaas@airmail.net>
121         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
122         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
123         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
124         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
125         (polyfill), src/preproc/grn/main.cpp (polyfill),
126         src/preproc/refer/command.cpp (command_table),
127         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
128         gcc 3.5 doesn't like).
130 2004-04-08  Werner Lemberg  <wl@gnu.org>
132         Removing many compiler warnings.  groff should now compile with
133         a C++ compiler used for C files also.  [Simple variable renamings
134         to avoid shadowing aren't logged in detail.]
136         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
137         (draw_dvi_printer::draw) ['c']: Enclose in block.
139         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
140         (page::add_line): Fix typos.
141         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
143         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
144         Some local variable renamings.
145         * src/devices/grolbp/lbp.h: Some local variable renamings.
147         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
148         variable renamings.
150         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
151         Remove redundant local variable declaration.
152         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
153         Don't use `caddr_t' but `void *'.
154         Enclose functions with `extern "C"' for C++.
156         * src/libs/libdriver/input.cpp (remember_filename,
157         remember_source_filename): Use cast for string constant.
159         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
160         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
161         src/libs/libgroff/geometry.cpp: Some local variable renamings.
162         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
163         style.
164         Enclose functions with `extern "C"' for C++.
165         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
166         (needs_quoting): Return `int'.
167         (quote_arg): Add proper casts to malloc and realloc.
168         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
169         various MS Windows environments.
170         (spawnvp_wrapper): Add proper cast to malloc.
172         * src/preproc/eqn/box.h: Remove redundant declarations of
173         `make_script_box', `make_mark_box' and `make_lineup_box'.
174         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
175         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
176         variable renamings.
178         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
179         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
180         (dx, dy): Renamed functions to...
181         (deltax, deltay): This.
182         * src/preproc/grn/main.cpp: Some local variable renamings.
183         (deffont): Add `const'.
184         (initpic, conv): Use cast for string constant.
186         * src/preproc/html/pre-html.cpp: Some local variable renamings.
187         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
188         (char_buffer::run_output_filter): Second argument is unused.
189         * src/preproc/html/pushback.cpp: Some local variable renamings.
191         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
192         * src/preproc/pic/object.cpp: Some local variable renamings.
194         * src/preproc/refer/label.y (lookup_label): Remove redundant
195         declaration of local variable.
197         * src/preproc/soelim.cpp: Remove redundant declaration of
198         `interpret_lf_args'.
200         * src/preproc/tbl/main.cpp: Some local variable renamings.
202         * src/roff/groff/groff.cpp (main): Use cast for string constant.
203         * src/roff/groff/pipeline.c: Enclose declarations of `error',
204         `c_fatal', and `i_to_a' with `extern "C"' for C++.
205         Don't use C++-style comments.
207         * src/roff/troff/env.h: Remove redundant declaration of `title'.
208         * src/roff/troff/node.h, src/roff/troff/env.cpp,
209         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
210         renamings.
211         * src/roff/troff/div.h: Remove redundant declaration of
212         `end_diversions'.
213         * src/roff/troff/troff.h: Remove redundant declaration of
214         `cleanup_and_exit'
215         * src/roff/troff/input.cpp: Remove redundant declaration of
216         `handle_first_page_transition' and `process_input_stack'.
218         * src/utils/hpftodit.cpp: Some local variable renamings.
220         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
221         for C++.
222         Don't define RETSIGTYPE.
223         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
225         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
226         (error): Use `const' in argument.
227         (main): Remove redundant declaration of `optind'.
228         Move declaration of `Version_string' to top-level.
230         * PROBLEMS: Document difficulties compiling signal.c if a C++
231         compiler is used for C.
233 2004-04-07  Werner Lemberg  <wl@gnu.org>
235         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
237 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
239         Make scripts like nroff.sh and neqn.sh portable across various
240         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
241         non-POSIX path separators.  The idea is to extend those scripts to
242         decide at run-time (of the script) which path separator to use.
244         * arch/misc/Makefile.sub: New file.
245         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
246         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
247         a proper definition of the variable `GROFF_RUNTIME'.
249         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
250         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
251         (PROGDEPDIRS): New variable.
252         `FORCE' it.
253         (PROGDIRS): Add PROGDEPDIRS.
255         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
256         Don't substitute @SEP@ and @BINDIR@.
257         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
258         (PATH): Use GROFF_RUNTIME.
260         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
261         Don't substitute @SEP@ and @BINDIR@.
262         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
263         (PATH): Use GROFF_RUNTIME.
265 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
267         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
268         Cygwin which doesn't handle stderr correctly.
270 2004-03-08  Werner LEMBERG  <wl@gnu.org>
272         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
273         against empty argument.  Problem reported by <cgd@broadcom.com>.
275 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
277         * Makefile.in (SEP): Replaced with...
278         (RT_SEP, SH_SEP): Separators for the target platform's native path
279         separator and the build environment, respectively.
280         (fontpath, tmacpath): Use RT_SEP.
281         (MDEFINES): Updated.
283         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
284         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
285         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
286         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
288 2004-03-05  Werner LEMBERG  <wl@gnu.org>
290         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
291         reduce alignment problems with newer printers which use built-in
292         TrueType fonts (instead of the older Intellifonts).  The ideal
293         solution is to provide a second set of groff metric files, but this
294         is extremely time-consuming to produce, given that HP's metric
295         files are very rudimentary.
297 2004-03-01  Werner LEMBERG  <wl@gnu.org>
299         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
300         s/operand/argument/ in error message.
302 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
304         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
305         is in use.
307 2004-03-01  Antti Kantee  <pooka@netbsd.org>
309         * tmac/s.tmac (XE): Fix error message.
311 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
313         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
314         New macros.
316         * src/roff/groff/pipeline.c: Declare strcasecmp.
317         (run_pipeline) [_WIN32]: Use function name variants which don't
318         start with `_'.
319         Fix stream handling.
321 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
323         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
324         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
325         for platforms which use the native Win32 runtime libraries.
326         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
328         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
329         QUOTE_ARG_REALLOC_ERROR): Fix string.
331         * src/preproc/html/pre-html.cpp: Remove declaration of
332         `spawnvp_wrapper'.
333         Don't use __MINGW32__.
334         s/DEBUG_FILE/DEBUG_FILE_DIR/.
335         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
336         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
337         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
338         calls to `set_redirection' and `WAIT'.
339         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
340         Fix calls to `set_redirection' and `save_and_redirect'.
341         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
342         to `set_redirection' and `save_and_redirect'.
343         (usage): Fix message.
344         (makeTempFiles, main): Use `DEBUG_FILE'.
346 2004-02-21  Werner LEMBERG  <wl@gnu.org>
348         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
350 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
352         * src/libs/libgroff/quotearg.c: New file, providing proper argument
353         quoting for MSVC's spawn* and exec* functions.
354         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
355         spawnvp with proper quoting for MSVC.
357         * src/libs/libgroff/assert.cpp (program_name),
358         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
359         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
361         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
363         * src/include/error.h (program_name): Declare as `extern "C"'.
364         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
366 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
368         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
369         spawnvp_wrapper.
370         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
372 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
374         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
375         variable.
376         (sbasename) [__MSDOS__ || ...]: New function.
377         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
378         generic algorithm.
379         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
380         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
381         of XXX.
382         Use STDOUT_FILENO instead of hardcoded file handle.
383         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
385 2004-02-19  Werner LEMBERG  <wl@gnu.org>
387         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
388         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
390 2004-02-18  Werner LEMBERG  <wl@gnu.org>
392         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
393         new font and mapping files.
395 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
396             Keith Marshall  <keith.d.marshall@ntlworld.com>
398         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
399         an input pipe.  This is needed for the MSVC compiler to make troff's
400         `-o' option work.
402         * src/roff/troff/div.cpp: Include nonposix.h.
403         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
405 2004-02-17  Werner LEMBERG  <wl@gnu.org>
407         * font/devlj4/generate/special.awk: New script.
408         * font/devlj4/generate/Makefile (S): Use special.awk.
409         * font/devlj4/*: Regenerated, including the following new files:
410         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
411         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
412         * NEWS: Document new lj4 fonts and revised hpftodit.
414 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
416         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
418 2004-01-25  Werner LEMBERG  <wl@gnu.org>
420         * src/libs/libgroff/progname.cpp: Replaced with...
421         * src/libs/libgroff/progname.c: New file.
422         * src/libs/libgroff/Makefile.sub: Updated accordingly.
424 2004-01-17  Werner LEMBERG  <wl@gnu.org>
426         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
428 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
430         * font/devlj4/generate/wingdings.map,
431         font/devlj4/generate/symbol.map: Include unnamed glyphs.
432         Use groff glyph names where possible.
433         * src/devices/grolj4/lj4_font.man: Minor updates.
435 2004-01-13  Werner LEMBERG  <wl@gnu.org>
437         * tmac/www.tmac (DC): Handle TTY devices.
439         * doc/webpage.ms: Document viewCVS from ffii.org.
440         * NEWS, README: Updated.
442         * src/roff/groff/groff.man: Mention lj4_font man page.
444         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
445         variables.
446         (FONTS): Add SYMBOL and WINGDINGS.
447         (SYMBOL, WINGDINGS): New targets.
449 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
451         * src/devices/grolj4/lj4_font.man: New man page.
452         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
453         * src/devices/grolj4.man: Mention lj4_font man page.
455         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
456         * src/utils/hpftodit/hpftodit.man: Document it.
457         (CW): New macro.
458         Remove details about fonts (which are now in lj4_font.man).
460         * font/devlj4/generate/symbol.map,
461         font/devlj4/generate/wingdings.map: New files.
463 2004-01-12  Werner LEMBERG  <wl@gnu.org>
465         * README: Mention ffii's viewcvs access.
467 2004-01-09  Werner LEMBERG  <wl@gnu.org>
469         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
471 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
473         Revert most of the change from 2004-01-03 to better control used
474         symbol sets.
476         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
477         (text_symbol_sets, special_symbol_sets): New arrays.
478         (symbol_set_table): New global variable.
479         (read_symbol_sets): Use search order given in the text_symbol_sets
480         and special_symbol_sets arrays.  If command line flag -a is not
481         given, search both arrays.
482         (output_charset): Require x_height_tag only for command line flag -i.
484 2004-01-06  Werner LEMBERG  <wl@gnu.org>
486         Implement string-valued registers \n[.m] and \n[.M] to return the
487         name of the current drawing and background color, respectively.
489         * src/roff/troff/symbol.h: Moved to...
490         * src/include/symbol.h: Here.
491         Small fixes to make it work outside of the `troff' directory.
492         * src/roff/troff/symbol.cpp: Moved to...
493         * src/libs/libgroff/symbol.cpp: Here.
494         Small fixes to make it work outside of the `troff' directory.
496         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
497         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
498         Updated.
500         * src/include/color.h: Include symbol.h.
501         (color): Add new field `nm'.
502         * src/libs/libgroff/color.cpp (color::color): Updated.
504         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
505         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
506         src/roff/troff/reg.cpp: Don't include symbol.h.
508         * src/roff/troff/env.cpp: Don't include symbol.h.
509         (environment::get_glyph_color_string,
510         environment_get_fill_color_string): New member functions.
511         (init_env_requests): Handle `.m' and `.M' registers.
512         * src/roff/troff/input.cpp: Don't include symbol.h.
513         (default_symbol): Moved to symbol.cpp/symbol.h.
514         (do_glyph_color, do_fill_color, define_color): Pass symbol name
515         to color constructor.
516         * src/roff/troff/env.h: Updated.
518         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
519         Document new registers.
521 2004-01-05  Werner LEMBERG  <wl@gnu.org>
523         * src/roff/troff/nroff.cpp (space_node::get_breakpoints,
524         space_node::nbreaks): Protect against zero `next' field.
526 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
528         In hpftodit, use the symbol sets offered in the TFM.
530         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
531         (symbol_set, text_symbol_sets, special_symbol_sets,
532         symbol_set_table): Removed.
533         (get_printcode): Removed.
534         (read_symbol_sets): Initialize `symbol_set' field with
535         `NO_SYMBOL_SET'.
536         Simplify code to just use the `kind' value.
537         (output_charset): Improve output formatting.
538         (dump_symbols): Simplified.
540 2004-01-02  Werner LEMBERG  <wl@gnu.org>
542         * font/devlj4/generate/text.map: Add more MSL numbers.
544 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
546         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
547         (text_symbol_sets): Add more symbol sets.
548         (debug_flag): New static variable (moved from `main').
549         (get_printcode, show_symset): New functions.
550         (main): Remove `debug_flag'.
551         (output_charset): Use `show_symset'.
552         (dump_symbols):  Use `show_symset'.
553         Print symsets for all glyphs.
554         (read_map): Actually call `unicode_to_ucode_make' but this time
555         correctly.
557 2004-01-01  Werner LEMBERG  <wl@gnu.org>
559         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
560         Fix placement of comments.
562 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
564         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
565         option `-d' is given.
566         (output_charset): Improve warning messages to give more information.
567         (dump_symbols): Make information more precise.
568         (usage): Updated.
569         (read_map): Don't call unicode_to_ucode_name; the glyph names must
570         appear as-is and shouldn't be decomposed.
572 2003-12-31  Werner LEMBERG  <wl@gnu.org>
574         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
575         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
576         (FONTS): Add TrueType font families Arial and Times New Roman.
577         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
578         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
579         `fl'.
581 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
583         * test-groff.in (SEP): Quote value.
584         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
585         `tem' to `char*' to avoid deallocation of a pointer to a constant
586         object which some compilers don't like.
588 2003-12-31  Werner LEMBERG  <wl@gnu.org>
590         * font/devlj4/generate (text.map, special.map): Rewritten to work
591         with the new hpftodit version.
593 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
595         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
596         set and 8bit character code for all glyphs also.
598 2003-12-30  Werner LEMBERG  <wl@gnu.org>
600         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
602 2003-12-29  Werner LEMBERG  <wl@gnu.org>
604         More fixes for MSVC compiler.
606         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
607         $(SEP).
609         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
610         STDERR_FILENO) [_MSC_VER]: Define conditionally.
611         (getpid) [_MSC_VER]: Remove.
612         Include direct.h and process.h conditionally.
614         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
615         parentheses for a_delete.
617         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
619         * test-groff: Replaced with...
620         * test-groff.in: This new template to handle path separator
621         properly.
623         * configure.ac: Check for direct.h and process.h.
624         Generate test-groff script.
625         * configure, src/include/config.hin: Regenerated.
627 2003-12-28  Werner LEMBERG  <wl@gnu.org>
629         Add integral extension glyph.
630         Add new option `-x' to afmtodit to suppress use of built-in AGL.
632         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
634         * font/devps/generate/textmap: Provide entry for `integralex' to
635         override (old) PUA value of the AGL.
636         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
637         * font/devps/*: Regenerated.
639         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
640         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
642 2003-12-27  Werner LEMBERG  <wl@gnu.org>
644         Add forgotten `coproduct' symbol (already available for DVI).
646         * font/devhtml/R.proto, font/devps/generate/textmap,
647         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
648         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
649         U+2210 (\[coproduct]).
651 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
653         hpftodit has been extended to handle TrueType metric files and
654         more glyphs.  See hpftodit.man for more details.
656         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
657         ctype.h, and unicode.h.
658         s/msl/charcode/ everywhere since we now handle Unicode values also.
659         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
660         Use it where appropriate.
661         (MULTIPLIER): Replaced with...
662         (multiplier): New global static variable.
663         (scale): Updated.
664         (tag_type): Add more TFM tags.
665         (tag_name): New array.
666         (ENUM_TYPE, FLOAT_TYPE): Removed.
667         (BYTE_TYPE): New value assigned.
668         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
669         (text_symbol_sets, special_symbol_sets): Extended to cover more
670         sets.
671         (check_type): Add return value.
672         (check_units): Add parameters to get ppi and upem values.
673         Handle TrueType TFM data.
674         (output_font_name): New function.
675         (output_charset): Add parameter to handle TFM type.
676         Handle TrueType TFMs also.
677         (em_fract): New macro.
678         (dump_tags): Be much more verbose and handle more tags.
679         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
680         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
681         functions.
682         (read_map): Add parameter to handle TFM type.
683         Handle both MSL and Unicode mappings.
684         (main): Add two new command line options `-a' and `-q'.
685         Updated to make use of new functions.
686         (usage): Updated.
688         * src/utils/hpftodit/hpuni.cpp: New file.
690         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
691         Updated.
693 2003-12-25  Werner LEMBERG  <wl@gnu.org>
695         * src/include/nonposix.h (read) [_MSC_VER]: Define.
697 2003-12-24  Werner LEMBERG  <wl@gnu.org>
699         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
700         by Michail Vidiassov <master@iaas.msu.ru>.
702 2003-12-20  Werner LEMBERG  <wl@gnu.org>
704         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
705         and u0049_0307.
706         Add missing latin-2 glyphs.
707         * font/devutf8/R.proto: Add missing latin-2 glyphs.
709         * tmac/troffrc: Load `composite.tmac' earlier.
711         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
712         u00{53,73}_0327, and u0049_0307.
713         * tmac/X.tmac: Add u00{47,67}_0306.
714         * tmac/tty-char.tmac: Use composite glyph names for readability.
716         * NEWS: Updated.
718         * src/include/unicode.h: Remove `extern' keywords.
720 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
722         * tmac/latin5.tmac: New file.
724 2003-12-19  Werner LEMBERG  <wl@gnu.org>
726         Add some glyphs needed for Turkish.
728         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
729         and u0049_0307.
731         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
732         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
733         u00{53,73}_0327, and u0049_0307.
735 2003-12-18  Werner LEMBERG  <wl@gnu.org>
737         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
738         from 2001-10-04.
739         Remove trailing zeros.
741 2003-12-17  Werner LEMBERG  <wl@gnu.org>
743         Make \? transparent to end-of-sentence recognition.
745         * src/roff/troff/input.cc (non_interpreted_node): Add
746         `ends_sentence' member function.
748 2003-12-16  Werner LEMBERG  <wl@gnu.org>
750         * doc/groff.texinfo: Document `dt' request correctly.
751         Other minor typographical improvements.
753 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
755         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
757 2003-12-10  Richard Stallman  <rms@gnu.org>
759         * LICENSE: Better wording.
761 2003-12-09  Werner LEMBERG  <wl@gnu.org>
763         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
764         * configure, NEWS: Updated.
766 2003-12-08  Werner LEMBERG  <wl@gnu.org>
768         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
770 2003-12-07  Bernd Warken  <bwarken@mayn.de>
772         * LICENSE: Updated.
774 2003-12-07  Werner LEMBERG  <wl@gnu.org>
776         * INSTALL: Improved.
778 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
780         Use path separator character of target platform for compiled-in
781         default paths.
783         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
784         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
785         * configure: Regenerated.
786         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
788 2003-12-05  Werner LEMBERG  <wl@gnu.org>
790         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
791         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
793 2003-12-04  Bernd Warken  <bwarken@mayn.de>
795         * LICENSE: New file.
797 2003-12-03  Werner LEMBERG  <wl@gnu.org>
799         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
800         ligatures present in AFM files since groff currently only
801         understands some standard ligatures and nothing else.
803 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
805         * src/roff/groff/groff.cpp (main): Don't run the spooler if
806         option -v is given.
808         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
809         messages.
810         Close stdout copy.
811         Don't use Unix wait flags.
813 2003-12-02  Werner LEMBERG  <wl@gnu.org>
815         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
816         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
817         src/roff/troff/uniuni.cpp: Moved to...
818         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
819         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
820         src/libs/libgroff/uniuni.cpp: Here.
822         * src/include/Makefile.sub.old (HDRS),
823         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
824         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
826 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
828         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
829         `DEBUG_FILE'.
830         Updated all users.
832 2003-12-01  Werner LEMBERG  <wl@gnu.org>
834         * groff.texinfo: Document special behaviour of `.vs 0'.
835         Improve documentation of `cflags' request.
836         * NEWS: Updated.
838 2003-11-29  Werner LEMBERG  <wl@gnu.org>
840         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
841         * font/devlj4/CORONET: Regenerated.
843 2003-11-24  Werner LEMBERG  <wl@gnu.org>
845         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
846         if processing hyphenation patterns in traditional mode.
847         Improve error messages.
849 2003-11-20  Werner LEMBERG  <wl@gnu.org>
851         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
852         troff_output_file::put_char): Fix type of local variable `c'.
854 2003-11-19  Werner LEMBERG  <wl@gnu.org>
856         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
857         declarations.
858         (i_to_a): Removed.  libgroff already provides this function.
859         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
861 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
863         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
864         HAVE_DECL_SYS_LIST.
866 2003-11-17  Werner LEMBERG  <wl@gnu.org>
868         * COPYING: Use correct version.
870 2003-11-11  Werner LEMBERG  <wl@gnu.org>
872         LynxOS 4.0.0 doesn't declare vfprintf.
874         * configure.ac: Check for vfprintf.
875         * configure: Regenerated.
876         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
877         * src/include/config.hin: Regenerated.
879 2003-11-10  Werner LEMBERG  <wl@gnu.org>
881         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
883         * configure.ac: Check for vsnprintf.
884         * configure: Regenerated.
885         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
886         `HAVE_VSNPRINTF'.
887         * src/include/config.hin: Regenerated.
889 2003-11-09  Werner LEMBERG  <wl@gnu.org>
891         * aclocal.m4: Updated syntax to autoconf 2.59.
892         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
893         Don't check for gsos2.
894         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
895         working abs_top_srcdir and abs_top_builddir.
897         * configure.ac: Updated syntax to autoconf 2.59.
898         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
899         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
900         * configure: Regenerated.
902         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
903         s/@groff_top_builddir@/@abs_top_builddir@/.
905         * src/roff/groff/pipeline.c (xstrsignal):
906         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
908 2003-11-07  Werner LEMBERG  <wl@gnu.org>
910         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
911         make start angle smaller than end angle to circumvent a bug in tpic
912         handling of some versions of dvipdfm (and dvipdfmx).
914 2003-10-30  Werner LEMBERG  <wl@gnu.org>
916         * src/devices/grops/grops.man: Improve section on creating EPS.
918 2003-10-29  Werner LEMBERG  <wl@gnu.org>
920         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
921         -P-pletter).
923 2003-10-28  Werner LEMBERG  <wl@gnu.org>
925         * doc/groff.texinfo: Fix documentation of `.if'.
927 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
929         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
930         the form `uniXXXX' also.
932 2003-10-27  Werner LEMBERG  <wl@gnu.org>
934         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
935         contrib/pic2graph/pic2graph.sh: Implement secure management of
936         temporary files.
937         Pass `-P-pletter' to groff to avoid data outside of the converted
938         area -- some versions of `convert' (for example 5.3.8) don't check
939         the bounding box of the image but always use a fixed image size
940         (letter paper format).
941         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
942         contrib/pic2graph/pic2graph.man: Updated.
944         * src/roff/groff/groff.man: Document $TMP and $TEMP.
946 2003-10-26  Werner LEMBERG  <wl@gnu.org>
948         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
949         troff_output::simple_ellipse, troff_output::simple_arc,
950         troff_output::simple_line, troff_output::simple_spline,
951         troff_output::simple_polygon): Insert a space before arguments.
952         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
953         latter doesn't produce a node, so the following `.sp -1' would do
954         the wrong thing.
955         Don't emit `.sp -1' after \M.  This also doesn't produce a token
956         (and we don't have to care about compatibility mode).
957         (troff_output::set_color, troff_output::reset_color): Don't emit
958         `.sp -1' after \M and \m.
960         * src/roff/troff/input.cpp (old_have_input): New global variable.
961         (input_stack::get): Handle `old_have_input'.
962         (process_input_stack) <token::TOKEN_NEWLINE>: Call
963         `trapping_blank_line' depending on `old_have_input', not
964         `have_input'.
966 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
968         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
969         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
970         default directory names for temporary files.
971         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
973         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
974         [__MSDOS__] (run_pipeline): Honour environment variables.
975         Don't use `tmpnam' but `tempnam' to work around messy
976         implementation.
978         * README.MinGW: New file.
980 2003-10-16  Werner LEMBERG  <wl@gnu.org>
982         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
983         `(*t)->next' without testing validity of `*t'.
984         (usage): Make it more readable.
986 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
988         Make html device run under both MS-DOS and Win32.
990         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
991         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
992         spawn or fork+exec has to be used, and whether parent must sleep
993         until the child process terminates.  Used in
994         `char_buffer::run_output_filter'.
995         (copyofstdoutfd): Removed.
996         (char_buffer): Replace `write_file_html' and `write_file_troff'
997         member functions with `emit_troff_output' and `run_output_filter'.
998         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
999         macros.
1000         (replaceFd): Replaced with...
1001         (set_redirection): New auxiliary function.
1002         (waitForChild): Replaced with...
1003         (save_and_redirect): New auxiliary function for.
1005         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1006         functions.
1008 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1010         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1011         (GROFF_LIBC): New function.
1012         * configure.ac: Call GROFF_LIBC.
1013         Check for `kill'.
1014         * configure: Regenerated.
1016         * src/include/lib.h: Handle __MINGW32__.
1017         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1018         Add macro for `pipe'.
1019         Define P_tmpdir.
1021         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1022         correctly.
1024         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1025         Implement.
1027 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1029         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1030         <chuq@chuq.com>.
1032         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1033         directory.
1035 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1037         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1038         src/roff/troff/input.cc (usage): Updated.
1040         * NEWS, doc/groff.texinfo: Updated.
1042 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
1044         * src/libs/libgroff/searchpath.cpp
1045         (search_path::open_file_cautious): New function which also handles
1046         `-' as stdin and stdout depending on the access mode.
1047         * src/include/searchpath.h (search_path): Updated.
1049         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1050         * src/devices/grops/ps.h: Include `searchpath.h'.
1051         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1052         Open resource file with `include_search_path.open_file_cautious'.
1053         * src/devices/grops/grops.man: Document new `-I' switch.
1055         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1056         (main), src/devices/grolj4/lj4.cpp (main),
1057         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1059         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1060         Replaced with...
1061         (include_search_path): New global variable.
1062         (include_path_append): Removed.
1063         (main): Use `include_search_path.command_line_dir' to handle `-I'.
1064         (do_file): Simplify, using new
1065         `include_search_path.open_file_cautious'.
1067         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1068         parameter.
1069         (main): Pass arguments to `-I' to both troff and devices.
1070         Improve handling of `-V'.
1071         * src/roff/groff/groff.man: Document changes to -I and -V.
1073         * src/roff/troff/input.cpp (include_search_path): New global
1074         variable.
1075         (next_file, source, ps_bbox_request, transparent_file,
1076         process_input_file): Use new
1077         `include_search_path.open_file_cautious'.
1078         (main) Handle `-I' switch.
1079         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1080         Use new `include_search_path.open_file_cautious'.
1081         * src/roff/troff/node.h: New extern symbol `include_search_path'.
1082         * src/roff/troff/troff.man: Document new `-I' switch.
1084 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
1086         Support multiple calls of .Lb in LIBRARY section.
1088         * tmac/doc-common (doc-in-library-section): New register.
1089         (doc-section-library): New string.
1090         (Sh): Set `doc-in-library-section'.
1091         (Rd): Updated.
1092         * tmac/doc-syms (Lb): Insert breaks before and after arguments
1093         if in LIBRARY section.
1094         * tmac/doc.tmac (doc-save-global-vars): Updated.
1095         * NEWS, tmac/groff_mdoc.man: Updated.
1097 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
1099         * tmac/doc-common (doc-default-operating-system): New variable.
1100         (Os): Use it.
1102 2003-09-08  Werner LEMBERG  <wl@gnu.org>
1104         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1106 2003-08-31  Werner LEMBERG  <wl@gnu.org>
1108         * contrib/mom/Makefile.sub: Fix last change to make it really work.
1109         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
1110         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
1111         $(DEVFILES) are not empty.
1112         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
1114 2003-08-26  Chuck Silvers  <chuq@chuq.com>
1116         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
1117         with parallel runs of `make'.
1119 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
1121         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
1122         insert SORT_SEP.  With certain combinations of sort specifications,
1123         refer sorted entries in the wrong order.  In particular, entries
1124         with a missing field should be be sorted before all entries that
1125         have that field, before refer looks to the next field.
1127 2003-08-23  Werner LEMBERG  <wl@gnu.org>
1129         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
1130         g++ linker is used.  Reported by Mark J. Reed
1131         <mark.reed@turner.com>.
1133 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1135         Add key character `x' to tbl which makes tbl call a user-defined
1136         macro on a table cell.
1138         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
1139         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
1140         `set_modifier' after printing the compatibility request.
1141         (set_modifier): Print call to `m->macro' if not empty.
1142         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
1143         `macro'.
1144         (process_format): Implement cases `x' and `X'.
1145         * src/preproc/tbl/tbl.man, NEWS: Updated.
1147 2003-08-15  Werner LEMBERG  <wl@gnu.org>
1149         * doc/groff.texinfo: Minor fixes.
1151 2003-08-09  Werner LEMBERG  <wl@gnu.org>
1153         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
1155 2003-08-07  Werner LEMBERG  <wl@gnu.org>
1157         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
1158         argument list to nothing if there is no file to match.  Use `ls' as
1159         a protection, similar to autoconf.
1161         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
1162         empty argument lists.
1164         * doc/groff.texinfo: Improve documentation how vertical spacing
1165         and line breaks interact.
1166         Other minor fixes.
1168         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
1170 2003-08-03  Werner LEMBERG  <wl@gnu.org>
1172         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
1173         EPS (using eps2eps or similar programs to compute the bounding box).
1175 2003-07-24  Werner LEMBERG  <wl@gnu.org>
1177         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
1178         * doc/texinfo.tex: Updated from texinfo 4.6.
1179         * README.CVS: From now on we need texinfo 4.6.
1181 2003-07-23  Werner LEMBERG  <wl@gnu.org>
1183         Add requests `dei1' and `ami1' for completeness.
1185         * src/roff/troff/input.cc (calling_mode): Remove
1186         CALLING_DISABLE_COMP.
1187         (comp_mode): New enumeration.
1188         (do_define_string, define_string, define_nocomp_string,
1189         append_string, append_nocomp_string): Updated.
1190         (do_define_macro): Add third parameter.
1191         (define_macro, define_nocomp_macro, define_indirect_macro,
1192         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
1193         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
1194         functions.
1195         (ignore): Updated.
1196         (init_input_requests): Add `dei1' and `ami1'.
1198         * tmac/trace.tmac: Handle de1 and am1.
1199         (de): Improve tracing message.
1200         (am): Add missing `do'.
1201         (return): Use de1.
1203         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1204         Document new requests.
1206 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1208         Add option -G to .MPIMG to insert a gap between text and the image.
1210         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
1211         www-finish-left-ll): Updated.
1212         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
1213         (MPIMG): Make option -L and -R optional.
1214         Implement option -G.
1216 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
1218         * src/devices/grohtml/post-html.cpp
1219         (html_printer::do_file_components): Don't use `stdout' as lvalue
1220         since it can be a macro.
1222 2003-07-22  Werner LEMBERG  <wl@gnu.org>
1224         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
1225         the corresponding test in aclocal.m4.
1227 2003-07-21  Werner LEMBERG  <wl@gnu.org>
1229         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
1230         names but RGB values directly.  Otherwise pnmtopng depends on
1231         an external file `rgb.txt' which maps colour names to values.
1233 2003-07-20  Werner LEMBERG  <wl@gnu.org>
1235         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
1236         * configure, src/include/config.hin: Regenerated.
1238         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
1240 2003-07-19  Werner LEMBERG  <wl@gnu.org>
1242         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
1244 2003-07-18  Werner LEMBERG  <wl@gnu.org>
1246         * *.man: Switch to non-compatibility mode temporarily if GNU
1247         syntax extensions are used in the particular man page.
1249         * PROBLEMS: Add solutions for SGR problems.
1251 2003-07-17  Werner LEMBERG  <wl@gnu.org>
1253         Don't ignore grotty's command line options if \X'tty: sgr ...' is
1254         used to change the drawing scheme.
1256         * src/devives/grotty/tty.cpp (bold_flag_option,
1257         underline_flag_option, italic_flag_option, reverse_flag_option,
1258         bold_underline_mode_option): New global variables.
1259         (update_options): New function.
1260         (tty_printer::special): Call update_options.
1261         (main): Don't set xxx_flag but xxx_flag_option, then call
1262         update_options.
1264 2003-07-14  Werner LEMBERG  <wl@gnu.org>
1266         Make grotty emit proper Unicode box drawing characters for -Tutf8.
1268         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
1269         values.
1270         (hline_char, vline_char): New global variables.
1271         (tty_printer::tty_printer): Initialize them.
1272         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
1273         horizontal and vertical lines.
1274         (crossings): New global array.
1275         (tty_printer::end_page): Use it to determine the proper crossing
1276         character for -Tutf8.
1278 2003-07-12  Werner LEMBERG  <wl@gnu.org>
1280         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
1281         (HTMLDOCFILES): Revert to `pic.html'.
1282         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
1284 2003-07-11  Werner LEMBERG  <wl@gnu.org>
1286         * doc/pic.ms: Improve documentation of absolute coordinates.
1287         Document absolute positioning of pictures.
1289         * NEWS: Add new pic capability.
1291 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
1293         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
1294         Rewritten.
1296 2003-07-07  Werner LEMBERG  <wl@gnu.org>
1298         Implement support for dashed and dotted ellipses in pic.  Based on
1299         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
1301         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
1302         common_output::dashed_ellipse, common_output::dotted_ellipse): New
1303         functions.  Ellipse arcs are approximated with circle arcs.
1304         * src/preproc/pic/common.h (common_output): Updated.
1305         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
1306         functions.
1307         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
1309         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
1311 2003-07-06  Werner LEMBERG  <wl@gnu.org>
1313         Make grotty work on platforms which have unsigned char as the
1314         default for char.  Based on a patch by Thomas Klausner
1315         <wiz@netbsd.org>.
1317         * src/devices/grotty/tty.cpp (schar): New typedef.
1318         Updated calls to declare_ptable and implement_ptable.
1319         (glyph): Use schar for back_color_idx and fore_color_idx.
1320         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
1321         (tty_printer::tty_color, tty_printer::tty_printer,
1322         tty_printer::color_to_idx, tty_printer::put_color): Updated.
1324 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1326         * src/roff/nroff/nroff.sh: Add option -d for completeness.
1327         * src/roff/nroff/nroff.man: Updated.
1329 2003-07-05  Werner LEMBERG  <wl@gnu.org>
1331         * NEWS, tmac/groff_www.man: Updated.
1332         * doc/Makefile.sub: Updated.
1334 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
1336         Implement support for multiple HTML output files.
1338         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
1339         -j command line option.
1341         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
1342         global variables.
1343         (file): New fields `new_output_file', `require_links',
1344         `output_file_name'.
1345         (file::file): Updated.
1346         (files::set_file_name, files::set_links_required,
1347         files::are_links_required, files::is_new_output_file,
1348         files::file_name, files::next_file_name): New functions.
1349         (header_desc): New fields `no_of_level_one_headings',
1350         `header_filename'.
1351         (header_desc::header_desc): Updated.
1352         (header_desc::write_headings): Handle multiple files.
1353         (html_printer::write_header): Save file name in which header occurs.
1354         (html_printer::determine_header_level): Possibly split files on
1355         level one headings.
1356         (html_printer::do_links, html_printer::troff_tag): Updated.
1357         (html_printer::insert_split_file, html_printer::do_job_name,
1358         html_printer::emit_link, html_printer::write_navigation,
1359         html_printer::do_file_components): New functions.
1360         (html_printer::~html_printer): Handle multiple files.
1361         (main): Handle command line option `-j'.
1363         * src/devices/grohtml/grohtml.man: Updated.
1365         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
1366         which splits file.
1368         * tmac/www.tmac (JOBNAME): New macro.
1369         * tmac/s.tmac (SH-NO-TAG): New macro.
1370         (@SH): Call SH-NO-TAG.
1371         (@NH): Updated.
1373 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1375         * tmac/groff_mdoc.man: Improve documentation of punctuation
1376         characters.
1378 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
1380         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
1382 2003-07-03  Werner LEMBERG  <wl@gnu.org>
1384         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
1386 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
1388         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
1389         after `/*' and `*/'.
1390         Fix spacing.
1391         (Fn, Fo): Reduce indentation in synopsis.
1393         * tmac/doc-common (doc-check-depth): New macro.
1394         (doc-end-macro, Sh, Ss): Use it.
1395         (Cd): Fix behaviour in synopsis.
1396         (In): Make it parsed and callable.
1397         If not in the synopsis, represent the C header file enclosed in
1398         angle brackets.
1399         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
1400         Use minus, not hyphen.
1402         * tmc/groff_mdoc.man: Updated.
1404 2003-07-01  Werner LEMBERG  <wl@gnu.org>
1406         Integrated grap2graph, contributed by Eric S. Raymond.
1408         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
1409         New files.
1410         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
1411         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
1413 2003-07-01  Colin Watson  <cjwatson@debian.org>
1415         * src/xditview/*.c: Add prototypes, fix return types, add includes.
1416         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
1418 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
1420         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
1422 2003-06-31  Werner LEMBERG  <wl@gnu.org>
1424         * doc/Makefile.sub (CLEANADD): Remove all files created by
1425         running `make groff.{pdf,dvi}'.
1427         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
1428         src/xditview also.
1430 2003-06-30  Werner LEMBERG  <wl@gnu.org>
1432         * Makefile.in (SHELL): Define as @SHELL@.
1433         (mkinstalldirs): Use $(SHELL).
1434         (MDEFINES): Add $(SHELL).
1435         * Makefile.comm (SHELL): Removed.
1437 2003-06-29  Werner LEMBERG  <wl@gnu.org>
1439         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
1440         The X11 documentation files use them.
1441         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
1443 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
1445         * tmac/e.tmac (@C): Handle .ad also.
1447 2003-06-12  Werner LEMBERG  <wl@gnu.org>
1449         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
1451         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
1452         Assign `n' even here.  It is possible to construct a node
1453         immediately following an escape character:
1455           .di xx
1456           \?\\\?a
1457           .br
1458           .di
1459           .xx
1461 2003-06-10  Werner LEMBERG  <wl@gnu.org>
1463         * README.WIN32: Removed.
1464         * MANIFEST: Updated.
1466 2003-06-07  Werner LEMBERG  <wl@gnu.org>
1468         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
1470 2003-06-05  Werner LEMBERG  <wl@gnu.org>
1472         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
1473         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
1475 2003-06-03  Werner LEMBERG  <wl@gnu.org>
1477         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
1478         is done by the calling function.
1480 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
1482         * tmac/X.tmac: Fix definition of `em'.
1484 2003-05-22  Werner LEMBERG  <wl@gnu.org>
1486         * src/roff/troff/input.cc (return_macro_request): Fix detection of
1487         argument.
1489 2003-05-18  Werner LEMBERG  <wl@gnu.org>
1491         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
1492         to make items work which consist only of a tag.
1494 2003-05-17  Werner LEMBERG  <wl@gnu.org>
1496         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
1497         aren't stretched in a tag (this can fail with unformatted boxes).
1498         Instead, insert a break and go back one line.
1500 2003-05-16  Werner LEMBERG  <wl@gnu.org>
1502         * src/roff/troff/input.cc (return_macro_request): If called with
1503         argument pop macro twice.  We need this to trace `return'.
1505         * tmac/trace.tmac: Handle `return'.
1506         Fix typos.
1508         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1509         Document.
1511 2003-05-15  Larry Kollar  <kollar@alltel.net>
1513         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
1514         registers `FPS', `FVS', and `FPD'.
1516 2003-05-15  Werner LEMBERG  <wl@gnu.org>
1518         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
1519         correctly.
1521 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
1523         * tmac/groff_mdoc.man: Slight improvements.
1525 2003-05-03  Werner LEMBERG  <wl@gnu.org>
1527         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
1528         `doc-header-space' after header line if register `cR' is set.
1530 2003-05-02  Werner LEMBERG  <wl@gnu.org>
1532         * TODO: Updated.
1534 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
1536         * tmac/doc-common (Nd): Use \[em].
1538 2003-05-01  Werner LEMBERG  <wl@gnu.org>
1540         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
1541         doc-footer-space): Initialize to 0.5i.
1542         (doc-setup-page-layout): Don't set doc-header-space and
1543         doc-footer-space.
1545 2003-04-30  Werner LEMBERG  <wl@gnu.org>
1547         * REVISION: Set to 1.
1549         * doc/pic.ms: Document possible problems with `figname'.
1551 2003-04-29  Werner LEMBERG  <wl@gnu.org>
1553 Version 1.19 released
1554 =====================
1556         * VERSION: Set to 1.19.
1557         * REVISION: Set to 0.
1558         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
1560         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1561         Define charset as `US-ASCII' in html output.
1563         * tmac/www.tmac (ULE): Add missing scaling indicator.
1565         * win32-diffs: Removed.
1567 2003-04-28  Werner LEMBERG  <wl@gnu.org>
1569         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
1570         `.da' and `.boxa'.
1571         Document how to insert discardable whitespace with `.ss'.
1573 2003-04-27  Werner LEMBERG  <wl@gnu.org>
1575         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
1576         work with plain TeX also.
1578         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
1580 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
1582         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1583         Use a loose DTD.
1585 2003-04-24  Werner LEMBERG  <wl@gnu.org>
1587         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
1588         vbox with positive height and zero depth if in TeX mode.
1590         * NEWS: Document glyph name changes for grodvi and grolj4.
1592 2003-04-23  Werner LEMBERG  <wl@gnu.org>
1594         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
1595         * doc/pic.ms: Fixed.
1597 2003-04-21  Werner LEMBERG  <wl@gnu.org>
1599         HP-UX 10.20 has `snprintf' but it isn't declared.
1601         * configure.ac: Add declaration test for snprintf.
1602         * configure: Regenerated.
1603         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
1604         * src/include/config.hin: Regenerated.
1606 2003-04-19  Werner LEMBERG  <wl@gnu.org>
1608         Add keyword `figname' to pic, specifying the name of the picture
1609         box in TeX mode.  Based on a patch from William J Poser
1610         <wjposer@unagi.cis.upenn.edu>.
1612         * src/preproc/pic/pic.y: New token `FIGNAME'.
1613         (macro_name): New rule of type <str>.
1614         (placeless_element): Handle `FIGNAME'.
1615         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
1616         * src/preproc/pic/main.cpp (graphname): New global variable.
1617         (do_picture): Initialize `graphname'.
1618         * src/preproc/pic/pic.h: Updated.
1619         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
1620         `graphname'.
1621         Simplify TeX code.
1622         (tex_output::text): Beautify output.
1623         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
1624         `shaded' and `outlined' unconditionally.
1625         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
1626         Minor improvements.
1628         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
1629         greater is necessary.
1631 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
1633         Add option -r to soelim to avoid emission of `.lf' lines.
1634         Add option -t to produces TeX comment lines instead of `.lf' lines.
1636         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
1637         and `tex_flag'.
1638         (usage): Updated.
1639         (main): Handle `-r' and `-t'.
1640         (set_location): Handle `raw_flag' and `tex_flag'.
1641         * src/preproc/soelim/soelim.man, NEWS: Updated.
1643 2003-04-17  Werner LEMBERG  <wl@gnu.org>
1645         * tmac/hyphenex.sh: Replaced with...
1646         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
1647         nightmares.
1649         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
1650         if --quiet is used for the configure script.
1651         * configure: Regenerated.
1653 2003-04-16  Werner LEMBERG  <wl@gnu.org>
1655         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
1656         Add `const' to second argument.
1657         (html_printer::add_table_end): Add `const' to argument.
1658         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
1659         `const' to arguments.
1660         * src/devices/grohtml/html-text.h: Updated.
1662         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
1663         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
1664         argument.
1666         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
1667         cast for integer constant.
1669         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
1670         (writeNbytes): Add `const' to first argument.
1671         (writeString): Add `const' to argument.
1672         (char_buffer::can_see): Add `const' to third argument.
1673         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
1674         `const' to argument.
1675         * src/preproc/html/pushback.h: Updated.
1677         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
1678         (include_path_append): Add `const' to argument.
1679         (do_file): Updated.
1681         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
1682         for `value'.
1683         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
1684         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
1685         for `value'.
1686         (unicode_decompose_init::unicode_decompose_init): Updated.
1687         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
1688         for `value'.
1689         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
1690         * src/roff/troff/input.cc (process_startup_file): Add `const' to
1691         argument.
1693         * tmac/hyphenex.sh: Make script more portable by using a here
1694         document.
1696 2003-04-15  Werner LEMBERG  <wl@gnu.org>
1698         Renamed all `*.cc' files to `*.cpp'.
1699         Updated all configuration files, makefiles, and documentation.
1701 2003-04-14  Werner LEMBERG  <wl@gnu.org>
1703         * tmac/hyphenex.sh: Slight improvements.
1705 2003-04-13  Werner LEMBERG  <wl@gnu.org>
1707         * font/devascii/R.proto, font/devcp1037/R.proto,
1708         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
1709         character slots with unnamed glyphs.
1711         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
1712         (an-first): New global variable.
1713         (an-header): Emit vertical space between multiple man pages.
1715 2003-04-11  Werner LEMBERG  <wl@gnu.org>
1717         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
1718         values.
1720 2003-04-10  Werner LEMBERG  <wl@gnu.org>
1722         * PROBLEMS: Revised.
1724 2003-04-10  Bernd Warken  <bwarken@mayn.de>
1726         * doc/webpage.ms: Improved.
1728 2003-04-09  Werner LEMBERG  <wl@gnu.org>
1730         Add register \n[.height] which returns the value of \H.
1731         Add register \n[.slant] which returns the value of \S.
1733         * src/roff/troff/env.cc (init_env_requests): Implement.
1734         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1735         Document.
1737 2003-04-08  Werner LEMBERG  <wl@gnu.org>
1739         * tmac/html.tmac: Move some of the data into html-end.tmac.
1740         Remove most of the character translations for eqn since html fonts
1741         now cover those characters.
1742         Load www.tmac.
1743         * tmac/html-end.tmac: New file.
1744         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
1745         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
1746         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
1748 2003-04-07  Werner LEMBERG  <wl@gnu.org>
1750         * man/groff_out.man: Document negative values of `N' if -Thtml is
1751         used.
1753 2003-04-06  Werner LEMBERG  <wl@gnu.org>
1755         * Makefile.comm (depend.temp): Check location of YTABC.
1757 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1759         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
1760         binary path.
1761         (groff_bin_path): Rename to GROFF_BIN_PATH.
1762         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1763         * doc/Makefile.in (TROFFBIN): New variable for troff
1764         binary path.
1765         (GROFFBIN): New variable for groff binary path.
1766         (groff_bin_path): Rename to GROFF_BIN_PATH.
1767         (TROFF): Use TROFFBIN.
1768         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1769         * doc/Makefile.sub (GROFFBIN): New variable for groff
1770         binary path.
1771         (groff_bin_path): Rename to GROFF_BIN_PATH.
1772         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
1774         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
1775         with INSTALL_SCRIPT.
1776         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
1777         * Makefile.dev (all): Depend on DEVSCRIPTS.
1778         (install_dev): Likewise.
1779         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
1780         scripts.
1781         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
1782         (DEVGENSCRIPTS): New variable to hold generated scripts.
1784 2003-04-05  Werner LEMBERG  <wl@gnu.org>
1786         * src/libs/libdriver/input.cc (IntArray::operator[],
1787         IntArray::get_data): Remove meaningless `const' in return value.
1789         * README.CVS: New file.
1791 2003-04-04  Werner LEMBERG  <wl@gnu.org>
1793         Check for stdint.h in C++, not in C.
1795         * aclocal.m4 (GROFF_STDINT_H): New function,
1796         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
1797         AC_CHECK_HEADERS.
1798         * configure, src/include/config.hin: Regenerated.
1799         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
1802         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
1803         with a negative value, representing the width of the unbreakable
1804         space (only for -Thtml).  grohtml then converts this back to
1805         &nbsp; and uses the value of N as its width.
1807         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1808         unbreakable_space_node::tprint): Emit `N-<width>'.
1809         * src/include/printer.h (printer::set_numbered_char): Make it
1810         virtual.
1811         Make members `font_table' and `nfonts' protected instead of private.
1812         * src/devices/grohtml/post-html.cc
1813         (html_printer::set_numbered_char): New member function.
1816         * src/libs/libgroff/maxfilename.cc:
1817         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1819         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1820         emit word marker.
1822 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
1824         * man/roff.man: Small fixes.
1826 2003-04-03  Werner LEMBERG  <wl@gnu.org>
1828         Make groff independent from locale's numeric settings.
1830         * configure.ac: Check for `setlocale'.
1831         * configure, src/include/config.hin: Regenerated.
1833         * src/include/lib.h: Handle HAVE_SETLOCALE.
1835         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1836         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1837         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1840         * doc/groff.texinfo: Change dir category to `Typesetting'.
1841         (Man font macros): Mention that there is no space between arguments
1842         of .BI and friends.
1844         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1845         (*printer::change_color, *printer::change_fill_color): Add missing
1846         `const'.
1848 2003-04-02  Werner LEMBERG  <wl@gnu.org>
1850         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1851         html_table::is_gap): Compute table widths after converting border
1852         positions to avoid rounding errors.
1854 2003-04-01  Werner LEMBERG  <wl@gnu.org>
1856         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1857         `space_emitted' properly.
1859 2003-03-31  Werner LEMBERG  <wl@gnu.org>
1861         * src/devices/grohtml/html-table.cc: Fix column width calculation.
1862         (html_table::set_linelength): Don't add 1.
1863         (html_table::add_indent): Don't subtract 1.
1865         * tmac/html.tmac: Set default page offset to zero.
1867 2003-03-30  Werner LEMBERG  <wl@gnu.org>
1869         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
1871         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1872         unbreakable_space_node::tprint): New functions.
1873         (troff_output_file): Make space_char_hmotion_mode::tprint and
1874         unbreakable_space_node::tprint to friends.
1875         * src/roff/troff/node.h: Updated.
1877         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
1878         in the HTML standard).
1880 2003-03-29  Werner LEMBERG  <wl@gnu.org>
1882         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1883         Otherwise, the following code
1885           .di xxx
1886           .ps 10
1887           a
1888           .br
1889           .di
1890           x\*[xxx]
1892         produces `x a' instead of `xa'.  This is a temporary fix, disabling
1893         font changes in diversions for -Thtml.
1895         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1896         `HTML-TAG'.
1897         (an-do-tag-html): Merge with ...
1898         (an-do-tag): This macro.
1899         Change code slightly to circumvent grohtml bug.
1900         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1902         * src/devices/grohtml/html-table.cc (html_table::emit_col,
1903         html_table::is_gap): Round `width' properly.
1905         * tmac/html.tmac: Provide some default layout parameters for
1906         grohtml.
1908         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1909         command.
1911 2003-03-28  Werner LEMBERG  <wl@gnu.org>
1913         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1915 2003-03-27  Werner LEMBERG  <wl@gnu.org>
1917         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1918         defined.
1920 2003-03-20  Werner LEMBERG  <wl@gnu.org>
1922         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1923         `.vs'.
1924         * doc/groff.texinfo: Updated.
1926 2003-03-19  Werner LEMBERG  <wl@gnu.org>
1928         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1929         TOKEN_END_TRAP>: Reset `have_input'.
1931 2003-03-18  Werner LEMBERG  <wl@gnu.org>
1933         * src/roff/groff/groff.man: Mention groff_trace man page.
1935 2003-03-16  Werner LEMBERG  <wl@gnu.org>
1937         * Makefile.in (LIBEXT): New variable to indicate the file extension
1938         of library files.  Computed heuristically from $(OBJEXT).
1939         (MDEFINES): Add $(LIBEXT).
1940         * Makefile.lib, Makefile.comm: Use it.
1942         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
1943         overlong lines into smaller chunks.
1944         (get_binary): New function.
1945         (main): Use them.
1946         * src/utils/pfbtops/pfbtops.man: Updated.
1948 2003-03-15  Colin Watson  <cjwatson@debian.org>
1950         * src/roff/groff/groff.man: Minor syntax fix.
1952 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
1954         * src/devices/grops/ps.cc (ps_printer::media_set,
1955         ps_printer::~ps_printer): Handle zero paper width and length.
1957 2003-03-13  Werner LEMBERG  <wl@gnu.org>
1959         Add options -p and -l to grodvi.
1961         * src/devices/grodvi/dvi.cc: Include paper.h.
1962         (landscape_flag, user_paper_length, user_paper_width): New global
1963         variables.
1964         (dvi_printer::begin_page): Emit `papersize' special.
1965         Set color after initialization of `cur_h' and `cur_v'.
1966         (main): Add options `-l' and `-p'.
1967         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1968         * src/devices/grodvi/grodvi.man, NEWS: Updated.
1970         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1972 2003-03-12  Werner LEMBERG  <wl@gnu.org>
1974         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1975         * man/groff_tmac.man: This man page.
1976         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1977         deprecated.
1979         * tmac/X.tmac: Don't load pspic.tmac.
1981 2003-03-11  Werner LEMBERG  <wl@gnu.org>
1983         Make variable `pr' local to libdriver/input.cc.  Based on a patch
1984         by Bernd Warken <bwarken@mayn.de>.
1986         * src/include/driver.h (pr): Removed.
1988         * src/libs/libdriver/input.cc (pr): New global variable.
1989         (do_file): Deallocate `pr'.
1990         * src/libs/libdriver/printer.cc (pr): Removed.
1992         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1993         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1994         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1995         (main): Don't delete `pr'.
1997 2003-03-10  Werner LEMBERG  <wl@gnu.org>
1999         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2000         * tmac/papersize.tmac: New file.
2001         * tmac/troffrc: Include `papersize.tmac'.
2002         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2003         * tmac/an-old.tmac: Set LT to LL by default.
2005         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2006         doc/groff.texinfo: Updated.
2008         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2009         bug which caused all odd iso papers to have wrong dimensions.
2011         * src/devices/grops/ps.cc (user_paper_width): New global variable.
2012         (main) <'p'>: Set `user_paper_width' also.
2013         (ps_printer::media_width, ps_printer::media_height): Use values
2014         given with option `-p'.
2016 2003-03-09  Werner LEMBERG  <wl@gnu.org>
2018         * src/include/nonposix.h: Provide default for SET_BINARY.
2020         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2021         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2022         unconditionally.
2024         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2025         (main): Treat \r\n as \n.
2027 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2029         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2030         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2032 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2034         Added support to access more than 256 glyphs in Type 1 fonts.
2036         * src/devices/grops/ps.cc (subencoding): New structure.
2037         (style): Add `sub' field.
2038         Updated all users.
2039         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2040         Add `set_subencoding', `get_subfont' and `encode_subfont' member
2041         functions.
2042         Updated all users.
2043         (ps_printer::set_char): Use `set_subencoding'.
2044         (make_subencoding_name): New function.
2045         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2046         (ps_printer::~ps_printer): Emit subencoding definitions.
2048         * src/devices/grops/psrm.cc (valid_input_table): New array to
2049         properly support EBCDIC.
2050         (white_space): Add `\f'.
2051         (ps_get_line): Change first argument to be of type `string &'.
2052         Updated all callers.
2053         This allows to get lines of arbitrary length.
2054         Use `valid_input_table'.
2055         Remove warning about non-conforming PS line length.  This seems
2056         not to be of great importance -- for example, dvips don't emit
2057         a warning either.
2058         (PS_LINE_MAX): Removed.
2059         (matches_comment): Change first argument to be of type `string &'.
2061         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2063         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2064         %AGL_to_unicode, %default_ligatures): New hash tables.
2065         Read all map entries.
2066         Add unencoded characters.
2067         Check for default ligatures if there are no `L' entries.
2068         Print all kern entries.
2069         Print all characters in charset.
2070         * src/utils/afmtodit/afmtodit.man: Updated.
2072         * font/devps/*: Regerated all fonts.
2074         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2075         of characters, just use `.trin'.  Otherwise the mapping depends
2076         on the font encoding.
2077         * tmac/ps.tmac: Add `fi' and `fl'.
2078         Improve `Fi' and `Fl'.
2079         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2080         * tmac/Xps.tmac: Fix `em'.
2082         * NEWS: Updated.
2084 2003-03-04  Werner LEMBERG  <wl@gnu.org>
2086         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2087         `have_input'.
2089 2003-03-03  Werner LEMBERG  <wl@gnu.org>
2091         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2093         * font/devps/generate/textmap: Remove entry `similarequal'.
2094         * font/devps/symbolmap: Updated.
2096 2003-03-02  Werner LEMBERG  <wl@gnu.org>
2098         * src/libs/libgroff/font.cc (font::load): Fix error message for
2099         bad character type.
2101         * src/devices/grops/grops.man: Improve documentation of the -b
2102         flag.
2104         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2105         `ascii' and `cp1047'.
2107 2003-03-01  Werner LEMBERG  <wl@gnu.org>
2109         Document composite glyphs and the `composite' request.
2111         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
2113 2003-02-28  Werner LEMBERG  <wl@gnu.org>
2115         * font/devdvi/generate/ec.map: Add some more Unicode entities.
2116         * font/devdvi/*EC: Updated.
2118         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
2119         * tmac/latin1 (latin1-tr): Undo any previous mapping.
2120         * tmac/troffrc: Load `composite.tmac'.
2121         * tmac/Makefile.sub (NORMALFILES): Updated.
2123         * doc/groff.texinfo (Input Encodings): New section.
2124         * NEWS: Updated.
2126 2003-02-27  Werner LEMBERG  <wl@gnu.org>
2128         * doc/texinfo.tex: New version 2003-02-11.06.
2130         * tmac/doc-common (Dt): Don't emit warning for unknown section.
2131         * tmac/groff_mdoc.man: Fix description of `Dt'.
2133 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
2135         * font/devps/prologue.ps: Fix for included Postscript that does
2136         a setpagedevice -- which is now safely ignored.
2138         * NEWS: Updated.
2140         * src/devices/grops/ps.cc: Now sets the page size in the generated
2141         document.  This is done in two ways: Via a %%-comment for gv and
2142         the like, and via a PageSize and setpagedevice for programs that
2143         understands Postscript proper, like ps2pdf.
2145         * src/devices/grops/ps.h: New broken-flag to avoid page size
2146         definition, if required.
2148         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
2150         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
2151         Not really necessary due to the fix in prologue.ps, but cleaner:
2152         Such information does not belong in an .eps file.
2154         * doc/Makefile.sub: See doc/Makefile.in.
2156 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
2158         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
2159         instead of P1 since the latter is broken in some versions of netpbm.
2160         * configure: Updated.
2162 2003-02-26  Larry Kollar  <kollar@alltel.net>
2164         Make man pages more customizable.
2166         * tmac/an-old.tmac (FT): New register holding footer distance from
2167         bottom.
2168         (HF): New string holding the default heading font.
2169         (TH): Handle registers `IN' and `SN' set on the command line.
2170         Use `FT'.
2171         (PT, BT): New strings to customize header and footer lines.
2172         (an-header, an-footer): Use them.
2173         (SH, SS): Use `HF'.
2174         * tmac/groff_man.man: Document changes.
2176         * doc/groff.texinfo: Document man changes.
2177         Document Ultrix extensions of man.
2179 2003-02-26  Werner LEMBERG  <wl@gnu.org>
2181         * src/roff/troff/input.cc (do_width, do_if_request): Reset
2182         `have_input' after changing back to old environment.
2184         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
2185         function up to be defined before first call.  This is necessary to
2186         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
2188         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
2189         the default font directory also.  Based on a patch from James
2190         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
2191         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
2192         * src/utils/afmtodit/afmtodit.man: Document it.
2194         * NEWS: Updated.
2196         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
2198 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
2200         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
2201         (GROFF_PNMTOPS_NOSETPAGE): New macro.
2202         * configure.ac: Use it.
2203         * configure: Regenerated.
2204         * Makefile.in: Updated.
2206         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
2207         (CLEANADD): Add www.tmac-sed.
2208         (pnmtops_nosetpage): Define default.
2209         (install_data): Handle www.tmac-sed and substitute
2210         @PNMTOPS_NOSETPAGE@.
2211         (stamp-sed): Add www.tmac.
2212         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
2213         It now breaks URLs at suitable places.
2214         (www:substring_ok): New register set by...
2215         (www:@test_substring): New macro.
2216         (www:error): New alias to www-error.
2217         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
2218         New macros.
2219         (URL): Use www:url_breaks.
2220         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
2221         (CDS, CDE): New macros.
2223 2003-02-25  Werner LEMBERG  <wl@gnu.org>
2225         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
2226         buffer overflow.
2228 2003-02-24  Werner LEMBERG  <wl@gnu.org>
2230         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
2231         can be negative also.
2233         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
2234         `int16'.
2235         (read_char_table): Avoid negative ascenders.
2236         (output_charset): Add cast.
2237         * font/devlj4/*: Regenerated.
2239         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
2240         possible.
2242         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
2243         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
2244         of `<>'.
2245         * font/devdvi/*: Regenerated.
2247         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
2248         normal width, while the previously used characters (U+2329 and
2249         U+232A) are classified as wide due to canonical equivalence with the
2250         CJK punctuation characters U+3008 and U+3009.
2252         * font/devutf8/R.proto: Updated.
2253         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
2255         * man/groff_char.man: Simplify handling of table traps by
2256         introducing `start block' and `end block' macros.
2257         (Ns, Ne, 2s, 2e, Ds, De): New macros.
2258         (DL): Make it work with Unix troff also.
2259         Fix code values of `la' and `ra'.
2261         * tmac/dvi.tmac: Define `<>' for CW and CWI.
2263 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
2265         * src/devices/grohtml/post-html.cc (element_list::~element_list):
2266         New destructor, fixing a major memory leak.
2268 2003-02-22  Werner LEMBERG  <wl@gnu.org>
2270         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
2271         to be in conformance with Unicode 3.0 and newer.
2273         * font/devlj4/generate/text.map: Add `Eu'.
2274         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
2275         * font/devlj4/S: Regenerated.
2277         * man/groff_char.man: Completely rewritten.
2279         * doc/groff.texinfo: Fix description of request and macro arguments.
2281 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
2283         Valgrind fixes.
2285         * src/devices/grohtml/html-table.cc (html_table::~html_table):
2286         Deallocate `columns' list.
2287         * src/devices/grohtml/post-html.cc (char_block::~char_block):
2288         New destructor.
2289         (text_glob::text_glob_html, text_glob::text_glob_special,
2290         text_glob::text_glob_line, text_glob::text_glob_auto_image,
2291         text_glob::text_glob_tag): Avoid memory leaks.
2292         (text_glob::remember_table): Free memory before reassigning.
2294 2003-02-19  Werner LEMBERG  <wl@gnu.org>
2296         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
2297         alias `hbar'), the Planck constant over two pi.
2299         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
2300         `+e' for position 34.
2301         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
2302         `u2662' and `u2661'.
2303         * font/devdvi/{MI,S}: Regenerated.
2304         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
2305         * font/devlbp/*: Add `hbar' alias.
2306         * font/devlj4/generate/special.map: Ditto.
2307         * font/devlj4/S: Regenerated.
2308         * font/devps/generate/symbolchars: Add `+e'.
2309         * font/devps/generate/textmap: Fix PS name for `-h'.
2310         Add `hbar' alias.
2311         * font/devps/symbolmap: Regenerated.
2313         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
2315         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
2316         `-h', `hbar'.
2317         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
2318         `-h'.
2320         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
2321         `hbar'.
2322         * tmac/tty-char.tmac: Add `+e'.
2324 2003-02-17  Werner LEMBERG  <wl@gnu.org>
2326         Another round trying to really fix problems with `have_input'.
2328         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
2329         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
2331         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
2332         handling if both foreground and background colors are default.
2334         * doc/groff.texinfo (Debugging): Document .lf differences to
2335         AT&T troff.
2337 2003-02-16  Werner LEMBERG  <wl@gnu.org>
2339         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
2340         null-bytes in created string.
2342         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
2343         alias_macro, lookup_request): Improve warning messages.
2345         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
2346         not `strdup'.
2347         Free `last_image_filename'.
2349         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
2350         `buffer'.
2351         (imageList::createPage, imageList::createImage): Use `free', not
2352         `a_delete'.
2353         (imageItem::~imageItem): Free `imageName'.
2354         (addRegDef): Use `strsave', not `strdup'.
2355         (get_resolution): Free `pathp'.
2357 2003-02-15  Werner LEMBERG  <wl@gnu.org>
2359         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
2360         to `dummy'.
2362 2003-02-14  Werner LEMBERG  <wl@gnu.org>
2364         Add memory management for colors to deallocate unnamed colors
2365         properly.
2367         * src/include/color.h (color): New members `free_list' and `next'.
2368         New member functions `new' and `delete'.
2369         Add destructor.
2370         * src/libs/libgroff/color.cc: Implement it.
2372         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
2373         for array size of new operator.
2375         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
2376         redundant comparison.
2378         * src/roff/troff/input.cc (word_space_node::reread,
2379         hmotion_node::reread): Avoid warning about unused parameter.
2380         (reset_output_registers): Remove redundant parameter.
2381         (define_color): Undo change 2003-02-12.
2383         * src/roff/troff/reg.h: Updated.
2385         * src/roff/troff/node.cc (troff_output_file::really_print_line,
2386         output_file::put_filename, real_output_file::really_put_filename,
2387         ascii_output_file::really_print_line,
2388         break_char_node::get_hyphen_list): Avoid warning about unused
2389         parameter.
2390         (suppress_node::tprint): Updated.
2392         * configure.ac: Check declaration for rand() and srand().
2393         * configure: Regenerated.
2395         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
2396         conditionally.
2397         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
2398         and srand().
2400         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
2401         to avoid compiler warnings.
2403         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
2404         unused.
2406         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
2407         is unused.
2408         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
2409         (unused) parameter.
2410         Updated all callers.
2412         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
2413         is unused.
2414         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
2415         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
2417         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
2418         Parameter is unused.
2419         (html_printer::add_table_end): Define parameter conditionally.
2420         * src/devices/grohtml/output.cc (simple_output::special): Parameter
2421         is unused.
2423         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
2424         (lbp_printer::set_char): Last parameter is unused.
2426         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
2428 2003-02-13  Werner LEMBERG  <wl@gnu.org>
2430         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
2431         Make \D'f ...' move horizontally again for backwards compatibility.
2432         Replace it with \D'Fg ...' where appropriate to avoid dependency
2433         on horizontal resolution.
2435         * src/roff/troff/input.cc (do_get_long_name): New function.
2436         (get_long_name): Call it.
2438         (read_draw_node): Handle `\D'Fx ...' by calling ...
2439         (read_color_draw_node): New function.
2441         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
2442         `end'.
2443         Pass it to `do_get_long_name' which is used instead of
2444         `get_long_name'.
2446         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
2447         unnecessary value guard.
2448         (parse_D_command) <'f'>: Add horizontal shift.
2450         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
2451         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2452         (FILL_MAX): Removed.
2454         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2455         Updated.
2457 2003-02-12  Werner LEMBERG  <wl@gnu.org>
2459         * src/roff/troff/input.cc (do_name_test, do_expr_test,
2460         do_zero_width): Push `\n' if closing delimiter is missing.
2462         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
2463         <'F'>: Make \F non-transparent at the beginning of line.
2464         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
2465         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
2466         `have_input'.
2468         (define_color): Free color in case of reassignment.
2470         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
2471         @DefescListEnd): Use @Var, not @var.
2472         Fix all calls.
2474         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
2476         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
2477         `shaded' and `outlined' arrays.
2478         (object_spec::object_spec): Initialize `shaded' and `outlined'.
2479         (graphic_object::set_fill_color, graphic_object::set_outline_color):
2480         Use strsave.
2481         (closed_object::set_fill_color): Ditto.
2482         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
2483         instead of strdup.
2484         (troff_output::reset_color): Use a_delete instead of free.
2485         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
2487 2003-02-11  Werner LEMBERG  <wl@gnu.org>
2489         * doc/groff.texinfo: Improve documentation of `ad'.
2490         Document that \D'f...' is dependent on the horizontal resolution.
2491         * man/groff_diff.man: Improve documentation of \D'f...'.
2493         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
2494         compensating \h'...' for \D'f ...' since the latter no longer moves
2495         current position.
2496         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
2498 2003-02-10  Werner LEMBERG  <wl@gnu.org>
2500         Improve error messages for `x F' (and `F') commands.
2502         * src/include/error.h: Add declaration for
2503         `current_source_filename'.
2504         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
2505         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
2506         parameter for source file string.
2507         Updated all callers.
2509         * src/libs/libdriver/input.cc: Add `current_source_filename'.
2510         (remember_source_filename): New function.
2511         (parse_x_command <'F'>, do_file <'F'>): Use it.
2513 2003-02-09  Werner LEMBERG  <wl@gnu.org>
2515         Make grotty not emit warnings about unknown colors more than
2516         necessary.
2518         * src/devices/grotty/tty.cc: Include `ptable.h'.
2519         (TTY_MAX_COLORS): Removed.
2520         (DEFAULT_COLOR_IDX): Defined to -1.
2521         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
2522         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
2523         Change `tty_colors' to be a ptable.
2524         First arg of `put_color' is now `char'.
2525         New functions `make_rgb_string' and `tty_color'.
2526         (tty_printer::tty_printer): Use `tty_color'.
2527         (tty_printer::color_to_idx): Return value is now `char'.
2528         Use `tty_color'.
2530         * src/include/color.h (color): Add `print_color' member function.
2531         * src/libs/libgroff/color.cc (color::print_color): Implement it.
2533 2003-02-08  Werner LEMBERG  <wl@gnu.org>
2535         Valgrind fixes.
2537         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
2538         encoding file.
2540         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
2541         assume that value has been allocated with `new[]', thus use
2542         `a_delete' for deallocation.
2544         * src/libs/libdriver/input.cc (get_integer_arg,
2545         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
2546         where appropriate.
2548         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
2549         * src/libs/libgroff/nametoindex.cc
2550         (character_indexer::named_char_index): Use `new <type>[1]'.
2552         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
2553         <type>[1]'.
2554         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
2555         (split_text): Use `a_delete'.
2557         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
2558         <type>[1]'.
2560         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
2561         harmless memory leak.
2562         (hyphen_trie::read_patterns_file): Initialize `buf'.
2563         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
2564         Initialize `current_fill_color'and `current_glyph_color'.
2565         * src/roff/troff/glyphuni.cc
2566         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
2567         * src/roff/troff/uniuni.cc
2568         (unicode_decompose_init::unicode_decompose_init): Ditto.
2569         * src/roff/troff/uniglyph.cc
2570         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
2572 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2574         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
2575         `access' before calling `unlink'.
2576         (do_file): Handle __EMX__.
2578         * src/include/nonposix.h: Handle __EMX__.
2580         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
2581         (fontpath,tmacpath): Use it.
2582         (MDEFINES): Add it.
2583         Sorted alphabetically.
2585         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
2586         @SEP@.
2587         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
2588         @SEP@.
2590 2003-01-27  Werner LEMBERG  <wl@gnu.org>
2592         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
2593         New files, copied from gnulib.
2594         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
2595         * configure.ac: Updated.
2596         * configure: Regenerated.
2598         * src/include/config.hin: Regenerated.
2599         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
2600         Don't define `strcasecmp' as `strcmp'.
2601         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
2602         Dont define `strncasecmp' as `strncmp'.
2604         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
2605         Removed.
2607 2003-01-26  Werner LEMBERG  <wl@gnu.org>
2609         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
2610         s/unline/unlink/.
2612 2003-01-25  Werner LEMBERG  <wl@gnu.org>
2614         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
2616 2003-01-24  Werner LEMBERG  <wl@gnu.org>
2618         Add US-english hyphenation exceptions (converted from Barbara
2619         Beeton's hyphenation exception log reports which appear irregularly
2620         in TUGBoat).
2622         * tmac/hyphen.us: Updated to latest version.
2623         * tmac/README: Updated.
2624         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
2625         * tmac/troffrc: Load `hyphenex.us'.
2626         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
2627         * doc/groff.texinfo: Updated.
2629 2003-01-23  Werner LEMBERG  <wl@gnu.org>
2631         Improve hyphenation slightly.  This is a first step in redesigning
2632         the hyphenation algorithm to make it more flexible (e.g. allowing
2633         kerns and ligatures between the hyphenation character and the
2634         following character -- while not used normally in English, other
2635         languages like German would benefit).
2637         * src/roff/troff/env.cc (environment::hyphenate_line): Use
2638         assertion instead of if-clause.
2639         Let `get_hyphen_list' return the number of involved characters in
2640         the hyphenation pattern instead of computing it directly (which
2641         often yields too small values).
2642         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
2643         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
2644         parameter.
2646 2003-01-22  Werner LEMBERG  <wl@gnu.org>
2648         Fixing a bug which caused groff to hang if the hyphenation exception
2649         dictionary tried to grow.
2651         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
2652         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
2653         pointer to dictionary.
2655 2003-01-20  Werner LEMBERG  <wl@gnu.org>
2657         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
2658         negative left italic correction.
2659         * src/utils/afmtodit/afmtodit.man: Document it.
2661         * font/devps/generate/Makefile (RFLAG): Add `-m'.
2662         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
2663         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
2665         * NEWS: Updated.
2667 2003-01-16  Werner LEMBERG  <wl@gnu.org>
2669         * NEWS: Updated.
2671 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
2673         * src/preproc/refer/refer.man: Mention REFER environment variable.
2675 2003-01-05  Werner LEMBERG  <wl@gnu.org>
2677         Similar to \[is], the square root glyph (\[sr]) and the square root
2678         extension glyph (\[radicalex]) are now text symbols.  The new
2679         mathematical versions are called \[sqrt] and \[sqrtex],
2680         respectively.
2682         * font/devX*/S: Regenerated.
2683         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
2684         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
2685         * font/devdvi/EX, font/devdvi/S: Regenerated.
2686         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
2687         * font/devlj4/generate/special.map: Add `sqrt'.
2688         * font/devlj4/S: Regenerated.
2689         * font/devps/generate/textmap: Add `sqrt'.
2690         * font/devps/S, font/devps/symbolmap: Regenerated.
2692         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
2693         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
2694         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
2695         overlap horizontally.
2697         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
2698         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
2699         Fix `radicalex'.
2701         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
2702         and `sqrtex' are overlapping glyphs.
2704 2003-01-04  Werner LEMBERG  <wl@gnu.org>
2706         * font/devdvi/generate/texsy.map: Add `is'.
2707         * font/devps/symbolmap: Regenerated.
2708         * font/devdvi/*TC, MI, S: Regenerated.
2710         * tmac/dvi.tmac: Remove `is'.
2712 2003-01-03  Werner LEMBERG  <wl@gnu.org>
2714         `is' is now a text symbol (only relevant for dvi).  The math variant
2715         can be accessed with `integral'.
2717         * font/devX*/S: Regenerated.
2718         * font/devdvi/generate/texex.map: Remove `is'.
2719         * font/devdvi/EX: Updated.
2720         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
2721         * font/devlj4/generate/special.map: Ditto.
2722         * font/devlj4/S: Regenerated.
2723         * font/devps/generate/textmap: Add `integral'.
2724         * font/devps/S: Regenerated.
2726         * tmac/dvi.tmac: Define `is'.
2728         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
2730         * src/preproc/tbl/main.cc (process_format): Fix error message.
2732 2003-01-02  Werner LEMBERG  <wl@gnu.org>
2734         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
2735         * font/devps/textmap: Fix entries for `ne' and `nc'.
2736         * font/devps/symbolmap: Regenerated.
2738         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
2739         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
2740         `38', `58', `78', `-+', `|=', `nc', `ne'.
2742         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
2743         Use `schar' for `aq'.
2744         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
2745         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
2746         * tmac/tty.tmac: Add `ne'.
2748         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
2749         for fallback glyphs.
2751 2002-12-29  Werner LEMBERG  <wl@gnu.org>
2753         Add glyph `|='.
2755         * font/devX*/*: Regenerated.
2756         * font/devdvi/generate/ec.map: Remove `eq'.
2757         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
2758         Assign `|=' to position 39.
2759         * font/devdvi/*EC, S: Regenerated.
2760         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
2761         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
2762         Assign `|=' to position 549.
2763         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
2764         `equalmath'.
2765         Add `uni2243' for `|='.
2767         * tmac/ec.tmac: Add `eq'.
2768         * tmac/dvi.tmac: Add `=~'.
2769         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
2770         `|='.
2772 2002-12-21  Werner LEMBERG  <wl@gnu.org>
2774         * font/devdvi/generate/tc.map: Remove `**'.
2775         * font/devdvi/*TC: Regenerated.
2776         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
2777         `78', `<<', `>>'.
2778         * font/devutf8/NOTES: Updated.
2780         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
2781         Don't give default parameter to `set_macro'.
2782         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
2783         instead of `set_macro'.
2784         (charinfo::setx_macro): Implement it.
2785         (charinfo::set_macro): Don't change `mode'.
2787         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
2788         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
2789         * tmac/dvi.tmac: Define `!=' with `.schar'.
2791 2002-12-20  Werner LEMBERG  <wl@gnu.org>
2793         * font/devX*/S: Regenerated.
2794         * font/devdvi/generate/ec.map: Remove `pl'.
2795         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
2796         * font/devdvi/*{TC,EC}: Regenerated.
2797         * font/devhtml/R.proto: Add `-+'.
2798         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
2799         * font/devlbp/*: Remove `or'.
2800         * font/devlj4/generate/special.map: Remove `or'.
2801         * font/devlj4/S: Regenerated.
2802         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
2803         `seveneighths', `threeeighths'.
2804         Remove `plusmath'.
2805         Replace `minusplus' with `uni2213'.
2806         * font/devps/symbolmap: Regenerated.
2807         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
2808         Add `-+'.
2810         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2811         function.
2812         * src/roff/troff/node.cc (troff_output_file::put_char_width):
2813         Call glyph_color and fill_color even if tcommand_flag isn't set.
2814         (make_node, node::add_char): Check not ci->is_fallback but
2815         ci->is_normal.
2817         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2818         * tmac/ec.tmac: Add .rchar entry for `f/'.
2819         Don't remove `12', `14', `34'.
2820         Define `pl' to be always roman.
2821         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2822         Define `18', `38', `58', `78'.
2823         * tmac/tty.tmac: Add `-+'.
2824         * tmac/dvi.tmac: Define `f/'.
2825         (dvi-frac): Use `f/'.
2826         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2827         Define `18', `38', `58', `78'.
2829 2002-12-15  Colin Watson  <cjwatson@debian.org>
2831         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2833 2002-12-10  Werner LEMBERG  <wl@gnu.org>
2835         Add glyph `tno', a textual variant of `no'.
2837         * font/devX*/*: Regenerated.
2838         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2839         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2840         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2841         * font/devdvi/*: Regenerated.
2842         * font/devlbp/*: Add `tno'.
2843         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2844         * font/devlj4/*: Regenerated.
2845         * font/devps/generate/textmap: Replace `no' with `tno'.
2846         * font/devps/generate/symbolchars: Add `no'.
2847         * font/devps/*: Regenerated.
2849         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2851         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2852         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2854         * NEWS: Updated.
2856         * tmac/dvi.tmac: Replace most `\\' with `\E'.
2857         Add definition for `sd'.
2858         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2860         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2862 2002-12-08  Werner LEMBERG  <wl@gnu.org>
2864         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2865         mode to avoid rounding errors.
2866         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2868         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2869         src/roff/troff/troff.man: Improve documentation of -T.
2871 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
2873         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2874         (run_pipeline) [_WIN32]: Provide working function without `fork'.
2876 2002-12-06  Werner LEMBERG  <wl@gnu.org>
2878         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2879         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2880         Scaling Euro.sansserif glyphs down to have the same height as
2881         digits.
2882         Removed unnecessary points; added some extrema.
2884         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2885         Regenerated.
2887 2002-12-04  Werner LEMBERG  <wl@gnu.org>
2889         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2890         and `Euro.symbol.bold.slanted'.
2891         Improve some glyph offsets and widths.
2892         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2893         Regenerated.
2894         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2895         typo.
2896         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2897         direcory.
2899         * tmac/europs.tmac: Updated to new glyph indices.
2900         Use Euro.symbol for font familiy `A'.
2902         * doc/groff.texinfo: Minor improvements.
2904 2002-12-02  Werner LEMBERG  <wl@gnu.org>
2906         * font/devdvi/generate.tc.map: s/%O/%0/.
2907         * font/devdvi/*TC: Regenerated.
2909         * src/roff/troff/div.cc (init_div_requests): Sorted.
2911         * tmac/dvi.tmac: Remove `Ye'.
2912         * tmac/ec.tmac: Remove `Ye'.
2913         Add .rchar entry for `de'.
2915         * man/groff.man, man/groff_diff.man: Document register `.pe'.
2916         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2917         * NEWS: Updated.
2919 2002-11-30  Werner LEMBERG  <wl@gnu.org>
2921         Add PS font for various Euro glyphs.
2923         * font/devps/generate/freeeuro.sfd: New master font file for
2924         pfaedit.
2925         * font/devps/generate/sfdtopfa.pe: New conversion script for
2926         pfaedit.
2927         * font/devps/generate/Makefile (FONTS): Add `EURO'.
2928         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2929         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2930         `freeeuro.sfd'.
2931         * font/devps/EURO: Generated from `freeeuro.afm'.
2932         * font/devps/download: Add `freeuro.pfa'.
2933         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2934         `freeeuro.pfa'.
2936         * tmac/europs.tmac: New file.
2937         * tmac/ps.tmac: Include `europs.tmac'.
2938         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2940 2002-11-29  Werner LEMBERG  <wl@gnu.org>
2942         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2943         * font/devdvi/S: Regenerated.
2944         * font/devhtml/R.proto: Fix `CR' and `ci'.
2945         Add `OK'.
2946         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2947         Remove `bs'.
2948         * font/devps/symbolmap: Regenerated.
2949         * font/devutf8/R.proto: Fix `CR' and `ci'.
2950         Add `OK'.
2951         * font/devutf8/NOTES: Updated.
2953         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2954         `ci'.
2955         Add `OK'.
2956         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2958         * tmac/dvi.tmac: Add `lh' and `rh'.
2959         * tmac/Xps.tmac: Fix `lh' and `rh'.
2960         * tmac/X.tmac: Add `OK'.
2961         * tmac/lj4.tmac: Ditto.
2963 2002-11-24  Werner LEMBERG  <wl@gnu.org>
2965         * font/devX*/S: Regenerated.
2966         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2967         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2968         * font/devdvi/generate/texsy.map: Remove `or' glyph.
2969         * font/devdvi/S: Regenerated.
2970         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2971         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2972         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2973         `bracketleftbt', `bracketrighttp', `bracketrightex',
2974         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2975         `braceex', `braceleftex', `bracerightex', `bracerighttp',
2976         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2977         `rb', and `bv'.
2978         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2979         * font/devutf8/NOTES: Updated.
2980         * font/devlj4/generate/special.map: Add glyph `braceex'.
2981         * font/devlj4/S: Regenerated.
2983         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2985 2002-11-14  Werner LEMBERG  <wl@gnu.org>
2987         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2988         and `vA'.
2989         Fix code for `an'.
2990         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2992         * doc/texinfo.tex: New version from texinfo 4.3.
2993         * doc/groff.texinfo: Updated for texinfo 4.3.
2994         Use @tie{} where appropriate.
2995         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2996         * font/devdvi/generate/tc.map: Remove `rn'.
2997         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2998         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2999         Fix code for `an'.
3000         * font/devX100/*, font/devX100-12/*, font/devX75/*,
3001         font/devX75-12/*: Regenerated.
3003         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3004         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3005         Improve definition of `an'.
3006         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3007         `ru'.
3008         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3009         * tmac/X.tmac: Add definition for `or'.
3010         * tmac/Xps.tmac: Undo change 2002-11-05.
3011         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3013 2002-11-11  Werner LEMBERG  <wl@gnu.org>
3015         * src/roff/troff/node.cc (troff_output_file::put_char): Always
3016         call flush_tbuf.
3018 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3020         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3021         defines a glyph which is searched after the check for fonts declared
3022         with `.special' (and before the check for all mounted special
3023         fonts).  `fschar' defines a glyph for a particular font which is
3024         searched after the check for fonts declared with `.fspecial' (and
3025         before the check for fonts declared with `.special').  `rfschar'
3026         removes glyphs defined with `fschar'.
3028         * src/roff/troff/token.h (char_mode): New enum.
3029         Declare do_define_character.
3030         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3031         `mode'.
3032         (charinfo::is_fallback): Updated.
3033         (charinfo::is_special): New method.
3034         * src/roff/troff/input.cc (do_define_character): Add and use
3035         optional second parameter used as a prefix for font-specific glyph
3036         names.
3037         (define_character, define_fallback_character): Updated.
3038         (define_special_character): New function.
3039         (init_input_requests): Add `schar'.
3040         (charinfo::charinfo, charinfo::set_macro): Updated.
3041         * src/roff/troff/node.cc: Include `stringclass.h'.
3042         (make_glyph_node): Handle special glyphs defined with `.schar' and
3043         `.fschar'.
3044         (define_font_special_character, remove_font_special_character): New
3045         functions.
3046         (init_node_requests): Sorted.
3047         Add `fschar' and `rfschar'.
3048         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3049         Document new requests.
3051         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3052         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3054 2002-11-08  Werner LEMBERG  <wl@gnu.org>
3056         Added new font `SC' (cmtex10) to devdvi.
3058         * devdvi/generate/Makefile (FONTS): Add `SC'.
3059         (SC): New rule.
3060         * devdvi/generate/textex.map: New map file for cmtex.
3061         * devdvi/SC: New.
3062         * devdvi/Makefile.sub (DEVFILES): Updated.
3063         * tmac/dvi.tmac: Add fspecial entries for SC.
3064         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
3065         found before `S' since the font position of `SC' is lower due to the
3066         gaps in DESC's `font' line.
3067         * tmac/ec.tmac: Add a `special' call.
3068         * NEWS: Updated.
3070         * font/devhtml/R.proto: Remove double entry for `ti'.
3071         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3072         * tmac/tty-char.tmac: Remove entry for `bq'.
3073         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3074         * tmac/ec.tmac: Don't remove `aq' glyph.
3075         * tmac/X.tmac: Fix entry for `em'.
3076         Add entries for `fo' and `fc'.
3077         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3079         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3080         documentation of `special' and `fspecial' requests.
3082 2002-11-05  Werner LEMBERG  <wl@gnu.org>
3084         * font/devascii/R.proto, font/devcp1047/R.proto,
3085         font/devlatin1/R.proto: Remove entry for `.i'.
3086         * font/devdvi/generate/textt.map: Add entry for `ad'.
3087         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3088         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3089         We need this for getting kerning values to compose `/l' and `/L'.
3090         * font/devdvi: Regenerated font definition files for CM fonts.
3091         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3092         * font/devutf8/R.proto: Ditto.
3093         Remove double entry for `ti'.
3095         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3096         for (groff) ligatures, `la', and `ra'.
3097         Add "'C", "'c", `IJ', and `ij'.
3098         Remove double entry for `ti'.
3099         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3100         double entries.
3101         Add "'C", "'c", `IJ', and `ij'.
3102         Fix entries for (groff) ligatures, `la', and `ra'.
3104         * tmac/ps.tmac (ps-achar): New macro.
3105         Define "'c" and "'C".
3106         * tmac/tty.tmac: Add entry for `.i'.
3107         * tmac/X.tmac (X-achar): New macro.
3108         Define "'c", "'C", and `:Y'.
3109         Add entries for `IJ' and `ij'.
3110         * tmac/Xps.tmac (Xps-achar): New macro.
3111         Define "'c" and "'C".
3112         Add entries for `IJ' and `ij'.
3113         * tmac/lbp.tmac (lbp-achar): New macro.
3114         Add fallback characters for all groff ligatures and many other
3115         glyphs.
3116         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
3117         Add entries for `/l' and `/L'.
3118         Define "'c" and "'C".
3119         Add entries for `IJ' and `ij'.
3121 2002-11-02  Larry Kollar  <kollar@alltel.net>
3123         * PROBLEMS: Document how to solve Mac OS X compilation problems.
3125 2002-11-02  Werner LEMBERG  <wl@gnu.org>
3127         Adding support for composite glyphs: \[xxx yyy ...] and the
3128         `composite' request.
3130         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
3131         to Unicode-based glyph names.
3132         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
3133         glyph names to groff glyph names.
3134         * src/roff/troff/uniuni.cc: New file for canonically decomposing
3135         Unicode-based glyph names.
3136         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
3137         for handling Unicode glyph names.
3138         * src/roff/troff/input.cc: Include unicode.h.
3139         (composite_glyph_name): New function.
3140         (token::next) <'['>: Handle Unicode glyph names and composite
3141         glyphs.
3142         (composite_dictionary): New dictionary for the `composite' request.
3143         (composite_request): Implement `composite' request.
3144         (init_input_requests): Add `composite'.
3145         Alphabetically sorted.
3146         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
3147         commented out).
3148         (init_env_requests): Alphabetically sorted.
3149         Removed `tas' and `tar' (already commented out).
3150         * src/roff/troff/Makefile.sub: Updated.
3152 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
3154         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
3155         of options.
3157 2002-10-29  Werner LEMBERG  <wl@gnu.org>
3159         Fix computation of .trunc register.  Additionally, its value (and
3160         the value of the .ne register) is now always set before entering the
3161         trap.
3163         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
3164         `needed_space' before calling `space'.
3165         (top_level_diversion::space): Remove special code for 'sp before the
3166         first page.
3167         Call `begin_page' with the discarded space as a parameter.
3168         (top_level_diversion::begin_page): Add optional parameter to set
3169         `truncated_space'.
3170         * src/roff/troff/div.h: Updated.
3172         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
3173         \n[.ne].
3175         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
3176         (LP): Remove superfluous call to `br'.
3177         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
3178         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3180 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3182         * tmac/doc-ditroff: Remove useless switch/variable -rC.
3183         (doc-setup-header): Don't set page register `%'.
3184         * tmac/doc-nroff: Remove variable `C'.
3185         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
3186         (doc-setup-header): Don't set page register `%'.
3187         Don't call `bp'.
3188         * tmac/doc-common (doc-header): Call `ns'.
3189         (doc-paragraph): Protect .sp with .br so that it survives traps
3190         possibly set by the user.
3191         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
3193         * tmac/doc*: Replace ' with . for consistency if no effect.
3195 2002-10-26  Werner LEMBERG  <wl@gnu.org>
3197         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
3198         so that it survives traps possibly set by the user.
3200         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
3201         (troff_output_file::set_font): Call flush_tbuf if necessary.
3202         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
3203         flush_tbuf and do_motion only if necessary.
3204         (troff_output_file::start_special,
3205         troff_output_file::put_char_width, troff_output_file::put_char,
3206         troff_output_file::draw): Updated.
3207         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3208         vmotion_node::tprint): Undo change 2002-10-23.
3210 2002-10-25  Werner LEMBERG  <wl@gnu.org>
3212         * tmac/www.tmac (DC): Fix case of overlapping images.
3214 2002-10-23  Werner LEMBERG  <wl@gnu.org>
3216         * src/roff/troff/node.cc (troff_output_file::fill_color,
3217         troff_output_file::glyph_color): Set current color before testing
3218         color_flag.
3219         (troff_output_file::put_char_width, troff_output_file::put_char,
3220         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
3221         before glyph_color.
3222         (troff_output_file::file_color, troff_output_file::glyph_color):
3223         Call do_motion.
3224         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3225         vmotion_node::tprint): Move first, then call fill_color.
3227 2002-10-20  Werner LEMBERG  <wl@gnu.org>
3229         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
3230         possible to use multiple main macro packages.
3232 2002-10-19  Werner LEMBERG  <wl@gnu.org>
3234         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
3235         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
3236         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
3237         is set.
3238         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
3239         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
3241 2002-10-16  Werner LEMBERG  <wl@gnu.org>
3243         * NEWS, doc/webpage.ms: Updated.
3245 2002-10-14  Werner LEMBERG  <wl@gnu.org>
3247         * src/roff/troff/node.cc (troff_output_file::put_char_width,
3248         troff_output_file::put_char, troff_output_file::fill_color,
3249         troff_output_file::glyph_color): Handle case where color pointer
3250         is null.
3252 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
3254         Add the new -r option to grotty.  It is similar to the -i option
3255         except it tells grotty(1) to use the "reverse video" attribute to
3256         render italic fonts.
3258         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
3259         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
3260         (tty_printer::make_underline, tty_printer::put_color,
3261         tty_printer::end_page): Use it.
3262         (main): Add -r switch.
3263         (usage): Updated.
3264         * src/devices/grotty/grotty.man: Document it.
3266 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
3268         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3269         cast to `unsigned char' to properly read patterns with 8bit
3270         characters.
3272 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3274         * REVISION: Increased to 2.
3276 Version 1.18.1 released
3277 =======================
3279 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3281         * doc/webpage.ms, NEWS: Updated.
3283 2002-10-07  Werner LEMBERG  <wl@gnu.org>
3285         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
3286         suppress additional whitespace after the header.
3288         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
3289         with NetBSD.
3291         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
3293 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
3295         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
3296         (Dt): Use it to improve language localization (especially Russian
3297         and French).
3299 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
3301         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
3302         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
3303         drawing commands.
3304         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
3305         curve type.
3306         Call `picurve' for BSPLINE.
3307         (HGPrintElt): Handle BSPLINE.
3308         * src/preproc/grn/README: Document it.
3310 2002-10-03  Werner LEMBERG  <wl@gnu.org>
3312         * src/roff/troff/node.cc (break_char_node::col): New variable.
3313         Updated constructor.
3314         (space_node::tprint, word_space_node::tprint): Call `fill_color'
3315         unconditionally.
3316         (space_node::space_node): Remove assertion.
3317         (break_char_node::add_self): Pass color argument to space node.
3318         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
3319         Ditto.
3320         * src/roff/troff/env.cc (environment::do_break,
3321         environment::add_padding): Ditto.
3323 2002-10-02  Werner LEMBERG  <wl@gnu.org>
3325         Redesigning color support in troff.  Colors are no longer
3326         represented as separate nodes but are now part of glyph nodes and
3327         friends.  This fixes the current formatting misbehaviour due to the
3328         changes introduced on 2002-09-20.  Some extra code is necessary for
3329         proper grotty support: Without adding color variables to
3330         space-related nodes, the background color would be changed too late.
3332         * src/roff/troff/node.h, src/roff/troff/node.cc:
3333         s/current_pagecolor/current_fill_color/.
3334         s/current_glyphcolor/current_glyph_color/.
3335         (glyph_color_node, fill_color_node): Removed.
3336         (node::get_glyph_color, node::get_fill_color): New virtual member
3337         functions.
3338         (space_node::col): New variable.
3339         Updated constructors of space_node and derived classes accordingly.
3340         (hmotion_node::col): New variable.
3341         Updated constructors of hmotion_node and space_char_hmotion_node
3342         accordingly.
3343         (vmotion_node::col): New variable.
3344         Updated constructor accordingly.
3345         (draw_node::gcol, draw_node::fcol): New variables.
3346         Updated constructor accordingly.
3347         (special_node::gcol, special_node::fcol): New variables.
3348         Updated constructors accordingly.
3349         (troff_output_file::put_char, troff_output_file::put_charwidth,
3350         troff_output_file::draw): Set glyph and fill color.
3351         (troff_output_file::start_special): Set glyph and fill color.
3352         Always set current font.
3353         (troff_output_file::fill_color, troff_output_file::glyph_color):
3354         Don't call `do_motion'.
3355         (glyph_node::gcol, glyph_node::fcol): New variables.
3356         Updated constructors of glyph_node and ligature_node accordingly.
3357         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
3358         member functions.
3359         (glyph_node::merge_glyph_node,
3360         kern_pair_node::add_discretionary_hyphen,
3361         node::add_discretionary_hyphen): Updated.
3362         (break_char_node::merge_self): Updated.
3363         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
3364         vmotion_node::tprint): Handle color.
3365         (make_glyph_node, make_node, node::add_char): Updated.
3367         * src/roff/troff/env.cc (environment::space_newline,
3368         environment::space, environment::output_line, environment::do_break,
3369         environment::make_tab_node, environment::add_padding, title):
3370         Updated.
3371         (environment_switch, environment_copy): Don't add color nodes.
3373         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
3374         nothing.
3375         (token::next): Updated.
3376         \m and \M now are as transparent as \s.
3377         (process_input_stack, token::add_to_node_list, token::process,
3378         read_draw_node): Updated.
3379         (charinfo_to_node_list): Don't add color nodes.
3381         * doc/groff.texinfo: Updated.
3383 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
3385         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
3386         strings.
3388 2002-09-27  Colin Watson  <cjwatson@debian.org>
3390         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
3392 2002-09-23  Werner LEMBERG  <wl@gnu.org>
3394         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
3395         appropriate.
3396         (DEFAULT_LINEWIDTH_FACTOR): New macro.
3397         (linewidth_factor): New global variable.
3398         (lbp_printer::set_line_thickness): Fix case for size < 0, using
3399         linewidth_factor.
3400         (long_options): Add -w/--linewidth option.
3401         (usage): Updated.
3402         (main): Handle -w option to set linewidth_factor.
3403         (lbp_printer::lbp_printer): Initialize req_linethickness, not
3404         line_thickness.
3406         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
3408 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
3410         Fixed a bug in the line thickness setting code.
3412         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
3413         variable.
3414         (lbp_printer::set_line_thickness): Pass environment as second
3415         parameter.
3416         Implement it actually.
3417         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
3418         and `set_line_thickness, depending on the current font size.
3420 2002-09-21  Werner LEMBERG  <wl@gnu.org>
3422         Some Debian patches.
3424         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
3425         * src/roff/troff/node.cc (bracket_node::copy): Initialize
3426         `list->last'.
3428 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3430         * configure: Regenerated with autoconf 2.54.
3432 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3434         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
3435         glyph_color.
3436         Rename cur_fill_color to fill_color.
3437         * src/roff/troff/env.cc: Updated.
3439 2002-09-20  Werner LEMBERG  <wl@gnu.org>
3441         * src/roff/troff/env.cc (title): Copy color status after processing
3442         title.
3443         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
3444         fill color nodes to reset colors properly.
3446         * tmac/www.tmac (DC): Fix color handling.
3448         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
3449         * doc/groff.texinfo: Fixing documentation of `tl' request.
3450         * doc/webpage.ms: Updated.
3452 2002-09-19  Werner LEMBERG  <wl@gnu.org>
3454         * src/roff/troff/env.cc (environent_switch, environment_copy):
3455         Emit glyph and fill color nodes to initialize colors properly.
3457 2002-09-17  Colin Watson  <cjwatson@debian.org>
3459         * src/roff/troff/env.cc (environment::set_glyph_color,
3460         environment::set_fill_color): Fix typo which prevented \m[] work
3461         correctly.
3463 2002-09-17  Werner LEMBERG  <wl@gnu.org>
3465         Add left and right italic correction to non-slanted PS fonts.  This
3466         is an experimental feature to improve image rendering of grohtml.
3468         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
3469         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
3470         * font/devps/*: All non-slanted fonts regenerated.
3471         * NEWS: Updated.
3473 2002-09-16  Werner LEMBERG  <wl@gnu.org>
3475         Add a site-specific font directory.
3477         * Makefile.in (localfontdir, legacyfontdir): New variables.
3478         (fontpath): Use them.
3479         (MDEFINES, uninstall_dirs): Updated.
3480         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
3481         Remove `FONTPATH' and `MACROPATH'.
3483         * src/roff/troff/troff.man, NEWS: Updated.
3484         * doc/groff.texinfo (Font Directories): New section.
3485         Other minor fixes.
3487         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
3488         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
3489         src/preproc/grn/grn.man: Minor fixes.
3491         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
3492         Remove unused variable.
3494 2002-09-11  Werner LEMBERG  <wl@gnu.org>
3496         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
3497         * man/groff_out.man: Fix documentation of 'N'.
3499 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
3501         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
3502         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
3503         set.
3504         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
3505         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
3506         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
3507         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
3508         PRE_TAG>: Call `begin' with `FALSE'.
3510 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3512         * src/libs/libgroff/string.cc (string::extract): Fix position of
3513         terminating null byte.
3515 2002-09-08  Werner LEMBERG  <wl@gnu.org>
3517         Add global option `nospaces' to tbl so that leading and trailing
3518         spaces in data items are ignored.
3520         * src/libs/libgroff/string.cc (string::remove_spaces): New member
3521         function to remove leading and trailing spaces.
3522         * src/include/stringclass.h: Updated.
3524         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
3526         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
3527         option.
3528         Fix typo in error messages.
3529         (process_data): Implement `nospaces' option.
3530         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
3532 2002-09-07  Werner LEMBERG  <wl@gnu.org>
3534         * src/include/config.hin: Add `HAVE_ISATTY'.
3535         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
3536         `fname' member.
3537         * src/libs/libgroff/tmpname.cc: Include `time.h'.
3538         * src/libs/libdriver/input.cc (Char): Add `operator==' and
3539         `operator!=' for `char'.
3540         * doc/groff.texinfo: Replace @ifnottex block for top node with
3541         @ifhtml block.
3543 2002-09-06  Werner LEMBERG  <wl@gnu.org>
3545         * doc/Makefile.in (.texinfo.html): Add -I switch.
3546         * doc/groff.texinfo: Add @ifnottex block for top node to make
3547         translation to HTML work.
3549 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
3551         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
3552         (get_papersize, determine_vertical_offset): Removed.
3553         (char_buffer::do_image): Always specify letter size.
3554         (main): Updated.
3555         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
3556         -sPAPERSIZE.
3558 2002-09-05  Werner LEMBERG  <wl@gnu.org>
3560         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
3561         default indentation.
3563 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
3565         * src/preproc/html/pre-html.cc (imageList::createPage): Use
3566         -sPAPERSIZE for gs.
3567         (generateImages): Clean up push-back buffer.
3569 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3571         * doc/groff.texinfo: Minor fixes.
3573 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3575         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
3576         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
3577         (gsPaper): Removed.
3578         (determine_vertical_offset): Use LETTER_LENGTH.
3579         (createPage): Moved to ...
3580         (imageList::createPage): This.
3581         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
3582         (imageList::getMaxX): New function.
3583         (createImage): Moved to ...
3584         (imageList::createImage): This.
3585         (imageList::createImages): New function.
3586         (generateImages): Read `maxx' directly.
3587         Updated.
3588         (scanArguments): Don't specify `gsPaper' for `-o'.
3589         (makeTempFiles): Call `xtmpfile' with the last argument set to
3590         `TRUE'.
3592 2002-08-24  Werner LEMBERG  <wl@gnu.org>
3594         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
3595         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
3596         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
3597         * src/preproc/html/pushback.cc: Include nonposix.h.
3598         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
3599         conditionally.
3601 2002-08-23  Werner LEMBERG  <wl@gnu.org>
3603         Use $(OBJEXT) for the object file extension.
3605         * Makefile.comm (.SUFFIXES): Add .obj.
3606         (.cc.obj, .c.obj): New implicit rules.
3607         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
3608         (MDEFINES): Add EXEEXT and OBJEXT.
3609         * */Makefile.sub: s/.o/.$(OBJEXT)/.
3611 2002-08-22  Werner LEMBERG  <wl@gnu.org>
3613         * INSTALL: Mention texinfo 4.2 as a prerequisite.
3615 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3617         * src/devices/grohtml/post-html.cc (colType): Make enum global to
3618         the file.
3619         (html_printer::update_min_max, html_printer::add_table_end): New
3620         methods.
3621         (html_printer::lookahead_for_tables): Use them.
3622         Reset page offset correctly.
3623         (html_printer::~html_printer): Add creation of creator comment up.
3625 2002-08-20  Werner LEMBERG  <wl@gnu.org>
3627         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
3628         * man/groff_tmac.man: Fix typos.
3629         * man/groff_font.man: Minor reordering.
3630         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
3631         * contrib/groffer/groffer.man: Fix typos.
3633 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3635         Avoid endless loops while scanning for tables.
3637         * src/devices/grohtml/post-html.cc (list::insert): Set
3638         ptr->right->left.
3639         (html_printer::next_horiz_pos): Add `text_glob' argument; update
3640         all callers.
3641         Return immediately if that argument is NULL.
3642         (html_printer::calc_nf): Don't test if `g' is NULL.
3643         (html_printer::lookahead_for_tables): Use
3644         `glyphs.move_right_get_data'.
3645         Don't test if `g' is NULL.
3647 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
3649         A better fix, replacing fix 2002-08-15, for increasing SIZE.
3651         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
3652         a pointer.
3653         (char_block::char_block): Allocate `buffer'.
3654         (char_buffer::add_string): Use it.
3656 2002-08-15  Werner LEMBERG  <wl@gnu.org>
3658         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
3659         src/devices/grodvi/grodvi.man: Document default line thickness.
3661 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
3663         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
3664         8192.
3666 2002-08-14  Werner LEMBERG  <wl@gnu.org>
3668         * doc/webpage.ms: Updated.
3670 2002-08-09  Werner LEMBERG  <wl@gnu.org>
3672         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
3673         unbreakable space.
3675 2002-08-08  Aaron Campbell  <aaron@monkey.org>
3677         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
3678         (&& -> &).
3680 2002-08-08  Werner LEMBERG  <wl@gnu.org>
3682         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
3683         tok.next().
3684         (read_gray): Ditto.
3685         Don't push back a space but a newline onto the stack.
3687 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
3689         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
3690         inadvertently.
3692         * src/devices/grohtml/post-html.cc (html_printer::end_font,
3693         html_printer::start_font): Handle them.
3694         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
3695         reset bold and tt.
3696         (html_text::do_bold): Don't reset italic and tt.
3697         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
3698         * font/devhtml/DESC.proto: Add those fonts.
3699         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
3701 2002-08-07  Werner LEMBERG  <wl@gnu.org>
3703         * MORE.STUFF: Added gpresent.
3705         * tmac/trace.tmac: Show nesting level by a corresponding amount of
3706         whitespace before printing the logging message.
3708 2002-07-31  Colin Watson  <cjwatson@debian.org>
3710         * src/devices/grohtml/html-table.cc (html_table::finish_row):
3711         Initialize `n' to zero.  This fixes a segfault on ARM.
3713 2002-07-30  Werner LEMBERG  <wl@gnu.org>
3715         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
3717 2002-07-29  Werner LEMBERG  <wl@gnu.org>
3719         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
3720         final semicolon.
3722 2002-07-28  Colin Watson  <cjwatson@debian.org>
3724         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
3725         `.ps'.
3726         (html_printer::html_printer): Initialize `pointsize'.
3728 2002-07-26  Werner LEMBERG  <wl@gnu.org>
3730         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
3731         gnu.png.
3732         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
3733         (gnu.eps): Add -rle switch to pnmtops.
3734         (distfiles): Add gnu.eps and gnu.png.
3736 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
3738         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
3739         Add `operator!='.
3741 2002-07-24  Werner LEMBERG  <wl@gnu.org>
3743         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
3744         ' \+' but '  *' for sed.
3745         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
3747 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3749         * doc/groff.texinfo: Document `papersize' keyword.
3750         * NEWS, man/groff_font.man: Updated.
3752 2002-07-23  Colin Watson  <cjwatson@debian.org>
3754         Extend papersize keyword to accept more than a single entry.  The
3755         first valid will be used.
3757         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
3758         (font::scan_papersize): Really skip final newline.
3759         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
3761 2002-07-23  Werner LEMBERG  <wl@gnu.org>
3763         * configure.ac: Test for isatty.
3764         * configure: Regenerated.
3765         * src/include/posix.h: Check HAVE_ISATTY.
3766         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
3767         * src/utils/lookbib/lookbib.cc: Include posix.h.
3768         Don't declare isatty.
3770 2002-07-21  Werner LEMBERG  <wl@gnu.org>
3772         * NEWS: Add `output' request.
3774         * REVISION: Increased to 1.
3776 Version 1.18.0 released
3777 =======================
3779 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
3781         Allow internal glyph indices > 0xFF in grohtml for input characters.
3783         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
3784         as parameter.
3785         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
3786         Updated all callers.
3787         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
3788         (html_printer): Updated.
3790 2002-07-19  Werner LEMBERG  <wl@gnu.org>
3792         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
3793         * font/devutf8/R.proto: Adding some missing glyphs.
3794         * font/devutf8/NOTES: Updated.
3796         * tmac/dvi.tmac: Add more composite glyphs.
3797         * tmac/html.tmac: Updated.
3799         * man/groff_char.man: Add `sum' and `product' entities.
3801         * NEWS: Updated.
3803 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
3805         Improved table, tab, and indenting support.
3807         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
3808         string_iterator::suppress_newline_flag): Removed.  Updated all
3809         function which have used it.
3811         * src/roff/troff/env.cc: Include `input.h'.
3812         (environment::add_node): Accept 0 as parameter.
3813         (environment::add_html_tag): Add `force' parameter.
3814         Updated all callers.
3815         (environment::add_html_tag_tabs): Ditto.
3816         For the moment, support left-aligned tabs only.
3817         (environment::make_html_tag): New function.
3818         (fill, no_fill): Set .br html tag additionally.
3819         (environment::newline): Emit `eol.ce' or `eol' tag for html.
3820         (environment::add_html_tag_eol): Removed.
3821         (tab_stops::distance_to_next_tab): Add variant for handling 
3822         nextpos'.
3823         (environment::distance_to_next_tab): Ditto.
3824         Updated all callers.
3825         (environment::handle_tab): Handle tabs for html.
3826         
3827         * src/roff/troff/env.h: Updated.
3829         * src/roff/troff/div.cc: Updated all callers of
3830         `environment::add_html_tag'.
3832         * src/devices/grohtml/html-table.cc,
3833         src/devices/grohtml/html-table.h: New files.
3835         * src/devices/grohtml/html-text.cc (html_text): New members
3836         `blank_para' and `start_space'.
3837         (html_text::issue_tag): Don't emit TABLE_TAG.
3838         Handle indentation for PRE_TAG and P_TAG.
3839         (html_text::end_tag): Updated.
3840         (html_text::table_is_void, html_text::issue_table_begin,
3841         html_text::issue_table_end): Removed.
3842         (html_text::do_push): Simplified.
3843         [DEBUGGING]: Small fix.
3844         (html_text::push_para): Add new parameter for indentation; updated
3845         all callers.
3846         Handle PRE_TAG.
3847         (html_text::do_indent, html_text::do_table, html_text::done_table,
3848         html_text::is_in_table): Removed.
3849         (html_text::do_pre): Handle P_TAG also.
3850         (html_text::shutdown): Handle p->indent.
3851         (html_text::check_emit_text): Simplified.
3852         (html_text::do_emittext): Reset `blank_para'.
3853         (html_text::do_para): Add new parameter for indentation; updated
3854         all callers.
3855         (html_text::remove_indent): New function.
3856         (html_text::do_space): Handle verbatim text properly.
3857         (html_text::ever_emitted_text, html_text::starts_with_space,
3858         html_text::remove_para_align): New functions.
3859         (html_text::dump_stack_element, html_text::dump_stack): Updated.
3861         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3862         Updated.
3864         * src/devices/grohtml/post-html.cc: Include html-table.h.
3865         (INDENTATION): Removed.
3866         (text_glob): Added many `is_<foo>' functions.
3867         Added table description `tab'.
3868         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3869         member functions.
3870         (list): Add `insert' and `move_to' member functions.
3871         (page): Add `insert_tag' member function.
3872         (page::dump_page) [DEBUG_TABLES]: Improved.
3873         (html_printer): Add `table' and `max_linelength' elements.
3874         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3875         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3876         `remove_tabs', `remove_courier_tabs'.
3877         (html_printer::emit_raw): Handle indentation.
3878         (html_printer::do_center, html_printer::write_header): Updated.
3879         (html_printer::is_courier_until_eol): Check for tag.
3880         (html_printer::do_linelength): Handle max_linelength.
3881         (html_printer::do_page_offset, html_printer::do_indentation): Handle
3882         fill_on.
3883         (html_printer::do_tempindent): Updated.
3884         (html_printer::do_indentedparagraph): Removed.
3885         (html_printer::do_indent): Simplified.
3886         (html_printer::do_eol): Use `ever_emitted_text'.
3887         (html_printer::do_flush, html_printer::do_links): Don't call
3888         done_table.
3889         (html_printer::do_break): Handle end_tempindent.
3890         (html_printer::troff_tag): Get argument.
3891         Don't handle `.ip'.
3892         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3893         (html_printer::flush_page): Call `lookahead_for_tables'.
3894         Don't call `done_table'.
3895         (html_printer::add_to_sbuf): Always call do_indent.
3897         * src/devices/grohtml/Makefile.sub: Updated.
3899         * tmac/an-old.tmac (TP): Don't handle html device specially.
3900         (an-do-tag-html): New function which will be used instead of
3901         `an-do-tag' if html device is used.
3903         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3905         * tmac/s.tmac (@IP): Don't handle html device specially.
3906         (@IP-html): New function which will be used instead of `@IP' if
3907         html device is used.
3909         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3910         is a hack which will eventually vanish again.
3911         (PIMG): Handle `-C' option correctly if not html.
3912         (HR): Use HTML-NS.
3914 2002-07-17  Werner LEMBERG  <wl@gnu.org>
3916         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3918 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3920         * contrib/pic2graph/pic2graph.*: Use convert(1).
3921         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3923 2002-07-14  Bernd Warken  <bwarken@mayn.de>
3925         * tmac/groff_trace.man: New file.
3926         * tmac/Makefile.sub: Updated.
3927         * NEWS: Updated.
3929 2002-07-13  Werner LEMBERG  <wl@gnu.org>
3931         * src/roff/groff/groff.man: Add some cross references.
3933 2002-07-12  Werner LEMBERG  <wl@gnu.org>
3935         * src/roff/troff/input.cc (substring_request): Add warnings for
3936         string indices out of range.
3938 2002-07-11  Werner LEMBERG  <wl@gnu.org>
3940         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3941         * font/devdvi/*EC: Regenerated.
3943 2002-07-10  Bernd Warken  <bwarken@mayn.de>
3945         * man/groff_char.man: Updated and extended.
3947 2002-07-10  Werner LEMBERG  <wl@gnu.org>
3949         * src/roff/troff/input.cc (length_macro): Renamed to...
3950         (length_request): This.
3951         Move call of `tok.next()' to the very end, otherwise the register
3952         value hasn't been updated yet.
3953         (init_input_requests): Updated.
3955 2002-07-09  Werner LEMBERG  <wl@gnu.org>
3957         * src/roff/troff/input.cc (substring_macro): Renamed to...
3958         (substring_request): This.
3959         (init_input_requests): Updated.
3960         * src/roff/troff/request.h: Updated.
3962 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
3964         * src/roff/grog/grog.sh: Fix typo.
3966 2002-07-08  Werner LEMBERG  <wl@gnu.org>
3968         * win32-diffs: Updated.
3970         Handle `papersize' keyword properly in DESC.
3972         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3973         type.
3974         Updated all callers.
3975         * src/libs/libgroff/paper.cc: Add four more paper formats used by
3976         grolj4.
3977         * src/include/paper.h: Updated.
3979         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3980         Other minor C syntax fixes.
3981         (papersize, paperlength, paperwidth): Renamed to `user_*'.
3982         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3983         members.
3984         (lbp_printer::lbp_printer): Pass three arguments.
3985         Set paper dimensions properly.
3986         (make_printer, main): Updated.
3987         (handle_unknown_desc_command): Fix error messages.
3988         (main): Handle papersize keyword in DESC properly.
3990         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3991         `user_paper_size'.
3992         (lbp_printer::lbp_printer): Pass an argument.
3993         Set paper_size properly.
3994         (handle_unknown_desc_command): Removed.
3995         (make_printer, main): Updated.
3996         * src/devices/grolj4/grolj4.man: Minor documentation fix.
3998         * man/groff_font.man, NEWS: Updated.
4000 2002-07-07  Werner LEMBERG  <wl@gnu.org>
4002         Integrated eqn2graph, contributed by Eric S. Raymond.
4004         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4005         files.
4006         * Makefile.in, NEWS: Updated.
4008 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4010         Changing the substring request to make it fit better with other
4011         string manipulation functions in other programming languages:
4012         Index 0 is now the first character in the string, and index -1
4013         indicates the last character.  Since this request didn't work
4014         properly anyway in the last release, it doesn't harm too much to
4015         change the syntax.
4017         * src/roff/troff/input.cc (substring_macro): Use loops to get
4018         the real string length (ignoring COMPATIBLE_SAVE and
4019         COMPATIBLE_RESTORE) and offsets.
4020         Implement change described above.
4022         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4023         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4025         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4027 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4029         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4030         COMPATIBLE_RESTORE are completely ignored.
4032         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4033         functions.
4034         (macro): `length' field renamed to `len'.
4035         Added new field `empty_macro' (1 if macro is empty), to be used
4036         instead of checking `len'.
4037         Updated all callers.
4038         (macro::empty): Updated.
4039         (macro::length, macro::set, macro::get): New functions.
4040         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4041         Set `empty_macro'.
4042         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4043         COMPATIBLE_RESTORE pairs.
4044         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4045         * src/roff/troff/request.h: Updated.
4047         * doc/groff.texinfo: Document .chop's behaviour better.
4049 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4051         * doc/pic.ms: Fix documentation for the addition of positions.
4053         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4055 2002-06-29  Werner LEMBERG  <wl@gnu.org>
4057         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4059         * src/roff/troff/input.cc (have_string_arg): New global variable.
4060         (read_mode): New enumeration.
4061         (read_escape_name): Use it.  Update all calls.
4062         (read_long_escape_name): Use it.  Update all calls.
4063         Set have_string_arg if appropriate.
4064         (get_char_for_escape_name): Add parameter for handling space
4065         character.
4066         (interpolate_string_with_args, decode_string_args): New functions.
4067         (get_copy, token::next): Call it if necessary.
4068         (interpolate_string): Fix error message.
4070         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4071         Document it.
4073 2002-06-24  Bernd Warken  <bwarken@mayn.de>
4075         * man/groff_tmac.man: Updated and extended.
4077 2002-06-24  Werner LEMBERG  <wl@gnu.org>
4079         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4081 2002-06-23  Werner LEMBERG  <wl@gnu.org>
4083         * doc/pic.ms: Improve documentation of composite block objects.
4085 2002-06-22  Werner LEMBERG  <wl@gnu.org>
4087         * src/roff/troff/input.cc (init_registers): Add three registers
4088         `seconds', `minutes', and `hours' to hold the current time.
4090         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4091         Updated.
4093 2002-06-20  Werner LEMBERG  <wl@gnu.org>
4095         Make \X accept both `\ ' and `\~', converting them to single space
4096         characters.
4098         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4099         (token::unstretchable_space): New inline function.
4100         * src/roff/troff/input.cc (token::next, token::delimiter,
4101         token::description, token::add_to_node_list, token::process): Handle
4102         TOKEN_UNSTRETCHABLE_NODE.
4103         (encode_char): Handle tok.stretchable_space and
4104         tok.unstretchable_space.
4106         * NEWS, doc/groff.texinfo: Document it..
4108 2002-06-19  Werner LEMBERG  <wl@gnu.org>
4110         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
4112         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
4113         keyword to enable/disable SGR output.
4114         (tty_printer::change_fill_color): New function.
4115         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
4117         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
4118         call.
4120 2002-06-18  Werner LEMBERG  <wl@gnu.org>
4122         Add a `color' request and a `.color' register to control usage of
4123         colours.
4125         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
4126         (color_flag): This (which is the inverse).
4127         (activate_color): New function.
4128         (main, init_input_requests): Updated.
4129         * src/roff/troff/troff.h, src/roff/troff/node.cc
4130         (troff_output_file::fill_color, troff_output_file::glyph_color):
4131         Updated.
4133         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4134         Document the changes.
4136 2002-06-17  Colin Watson  <cjwatson@debian.org>
4138         Circumvent bug in autoconf 2.53 regarding top_builddir.
4140         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
4141         * Makefile.in, doc/Makefile.in:
4142         s/@top_builddir@/@groff_top_builddir@/.
4143         * configure: Regenerated (with autoconf 2.53).
4145 2002-06-17  Werner LEMBERG  <wl@gnu.org>
4147         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4148         `paperwidth' and `paperlength' for the `papersize' keyword.
4150 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
4152         * src/devices/grops/grops.man: Add info about Type 42 fonts.
4154 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
4156         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
4157         html_printer::do_linelength, html_printer::do_pageoffset,
4158         html_printer::do_indentation, html_printer::do_tempindent,
4159         html_printer::do_break, html_printer::begin_page): Clear indented
4160         text.
4161         * tmac/html.tmac: Disable hyphenation.
4163 2002-06-15  Werner LEMBERG  <wl@gnu.org>
4165         Don't produce HTML files if utility programs are missing.
4167         * Makefile.in (make_html, make_install_html): New variables.
4168         (MDEFINES): Updated.
4170         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
4171         utility programs.
4172         * configure.ac: Use it.
4173         * configure: Regenerated.
4175         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
4176         (HTMLEXAMPLESFILES): This new variable.
4177         (EXAMPLESIMAGEFILES): Renamed to...
4178         (HTMLEXAMPLEIMAGEFILES): This.
4179         (CLEANADD): Add HTMLEXAMPLEFILES.
4180         (all): Use `make_html'.
4181         (html): New target.
4182         (install_data): Use `make_install_html'.
4183         Move html stuff to...
4184         (install_html): This new target.
4185         (uninstall_sub): Updated.
4187 2002-06-14  Bernd Warken  <bwarken@mayn.de>
4189         * src/roff/grog/Makefile.sub (grog): Renamed to...
4190         (grog.old): This.
4191         (grog): New rule to always install grog.sh as grog.
4193 2002-06-08  Bernd Warken  <bwarken@mayn.de>
4195         * src/roff/grog/grog.pl: Fix typo.
4197 2002-06-07  Werner LEMBERG  <wl@gnu.org>
4199         * doc/groff.texinfo: Add more info on .tr arguments.
4201 2002-06-05  Werner LEMBERG  <wl@gnu.org>
4203         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4205         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
4206         * configure: Regenerated.
4208 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4210         * src/roff/troff/symbol.cc (table_sizes): Add more values.
4212         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
4214 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4216         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
4217         is not initialized at the time we need it in case `--prefix' hasn't
4218         been set.  Check for `ac_default_prefix' also.
4219         Test for `papersize' keyword also and generalize allowed whitespace.
4220         * configure: Regenerated.
4222         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
4223         `paperlength'.
4225         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
4226         with...
4227         (src_version, src_revision): New variables to avoid overwriting
4228         from parent make process.
4229         (version.cc): Updated.
4231         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
4232         (linebuf, linebufsize): New global variables.
4233         (sys_fatal): Use `fatal' to abort properly.
4234         (get_line): New function.
4235         (get_resolution): Use it.
4236         Improve error messages.
4237         (get_papersize): Check `papersize' also.
4238         Use `get_line'.
4239         Improve error messages.
4241 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4243         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4244         should be removed only if builddir is not srcdir.
4245         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
4246         (clean): Depend on `mostlyclean'.
4247         (distclean): Depend on `clean'.
4248         (realclean, extraclean): Depend on `distclean'.
4249         (.y.cc, .y.o): Simplified.  The output files are no longer written
4250         to srcdir but to builddir.
4251         * Makefile.in (MDEFINES): Add `version' and `revision'.
4252         (uninstall_dirs): Fix order of directories.
4253         * doc/Makefile.sub (version, revision): Removed.
4254         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
4255         Added `HTMLDOCFILES'.
4256         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
4257         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
4258         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
4259         as prefix.
4261         * doc/texinfo.tex (\authortt): New macro.
4262         (\shortcontt): Define.
4263         (\titlepage): Set \tt to \authortt while defining \authorfont.
4264         (\appendixbox): New macro.
4265         (\chapmacro, \appendixentry): Use \appendixbox to get even
4266         indentation for letters.
4267         (\summarycontents): Set \tt.
4268         (\internalpagesize): Add two arguments for real paper width and
4269         height as needed by pdfTeX.
4270         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
4271         Updated.
4272         (\tempdima, \tempdimb): New temporary dimensions.
4273         (\pagesizesyyy): Updated.
4275 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4277         Adding a new keyword `papersize' to the DESC file format (similar
4278         but not completely identical to grolbp's extension).  grops now has
4279         a -p command line option to override `papersize'.  Finally, grolbp
4280         has been adapted to the new syntax.
4282         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
4283         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
4284         elements.
4285         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
4286         (CCSRCS): Add `paper.cc'.
4288         * src/include/font.h (font): Add `papersize' element.
4289         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
4290         (font::scan_papersize): New function.
4291         (font::load_desc): Use it for handling `papersize' keyword.
4292         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
4294         * src/devices/grops/ps.cc: Include paper.h.
4295         (user_paper_length): New global variable.
4296         (ps_printer): Use paper length as initializer.
4297         (make_printer): Updated.
4298         (main): Handle new `-p' option.
4299         * src/devices/grops/grops.man: Updated.
4301         * src/devices/grolbp/lbp.cc: Include paper.h.
4302         s/papersizes/lbp_papersizes/.
4303         (set_papersize): Use new `papersizes' array.
4304         (handle_unknown_desc_command): Don't handle `papersize'.
4305         (main): Use `font::scan_papersize' for handling `-p' option.
4306         * src/devices/grolbp/grolbp.man: Updated.
4308         * man/groff_font.man: Document `papersize'.
4309         * NEWS: Updated.
4311 2002-05-30  Werner LEMBERG  <wl@gnu.org>
4313         * src/devices/grops/TODO: Updated.
4314         * src/devices/grops/grops.man: More info on paper formats.
4315         * man/groff_font.man: Document `paperheight' and `paperwidth'.
4317 2002-05-29  Werner LEMBERG  <wl@gnu.org>
4319         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
4320         to list only if srcdir != currdir.
4321         (distfiles): New target.
4323         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
4324         (NOMAKEDIRS): New variable.
4325         (DISTDIRS): Use it.
4327 2002-05-26  Werner LEMBERG  <wl@gnu.org>
4329         Add .output request, similar to \! at top-level.
4331         * src/roff/troff/input.cc (transparent): Remove unused declaration.
4332         (output_request): New function.
4333         (init_input_requests): Add it.
4334         Sorted.
4335         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4336         Document it.
4338         * Makefile.in (MDEFINES): Add INSTALL_INFO.
4339         (prepare_examples): Fix typo.
4340         * doc/groff.texinfo (@direntry): Fix it.
4342 2002-05-25  Werner LEMBERG  <wl@gnu.org>
4344         Including the doc subdir into groff's Makefile system.
4346         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
4347         * configure.ac: Use it.
4348         Generate `doc/Makefile'.
4349         * configure: Regenerated.
4351         * Makefile.in (infodir, INSTALL_INFO): New variables.
4352         (MDEFINES, uninstall_dirs): Updated.
4353         (OTHERDIRS): Add `doc'.
4354         * Makefile.comm (CLEANDIRADD): New variable.
4355         (mostlyclean): Use it.
4357         * doc/Makefile.sub, doc/Makefile.in: New files.
4358         * doc/Makefile: Removed.
4360         * NEWS, INSTALL: Updated.
4362 2002-05-24  Werner LEMBERG  <wl@gnu.org>
4364         * doc/homepage.ms: Renamed to ...
4365         * doc/webpage.ms: This.
4366         Use `.NHR'.
4368 2002-05-23  Werner LEMBERG  <wl@gnu.org>
4370         Integrating the `mom' macro package, contributed by Peter Schaffter
4371         <df191@ncf.ca>.
4373         * contrib/mom/*: New subdirectory tree.
4374         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
4375         be used for documentation files.
4376         (MDEFINES, uninstall_dirs): Use them.
4377         (OTHERDIRS): Add contrib/mom.
4378         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
4379         @HTMLDOCDIR@.
4380         * MANIFEST, NEWS: Updated.
4382 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
4384         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
4385         if at outer level; at start-up we are at outer level.
4387         * src/roff/troff/input.cc (do_suppress): Implement it.
4388         Simplify \O[3].
4390         Add option -p to show progress information.
4391         pre-grohtml will now render only one page at a time, reducing the
4392         size of needed disk resources enormously.
4394         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
4395         (imagePageName): New global variable.
4396         (psPageName, show_progress, currentPageNo): New global variables.
4397         (html_system): Close saved stderr and stdout handles.
4398         (write_end_image): Accept a parameter to control \O escape.
4399         (write_start_image): Adapted to new \O meaning.
4400         (char_buffer::write_upto_newline): Updated.
4401         (createAllPages): Replaced with...
4402         (createPage): This new function to create a single page for images.
4403         It uses `psselect' from the psutils package.
4404         (removeAllPages): Removed.
4405         (createImage): Updated.
4406         Handle progress display.
4407         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
4408         (scanArguments): Add option -p.
4409         (makeTempFiles): Updated to create temp files for psPageName and
4410         imagePageName.
4411         (removeTempFiles): Removed.
4412         (main): Updated.
4414         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
4415         html_printer::write_header): Append `\0' to `buffer'.
4416         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
4417         (main): Handle -p.
4418         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
4419         Handle `text_emitted'.
4420         (html_text::table_is_void): Slightly rewritten.
4421         (stop): New external symbol.
4422         (html_text::do_push) [DEBUGGING]: Use it and simplify.
4423         (html_text::shutdown): Call `dump_stack'.
4424         (html_text::do_space): Rewritten.
4425         * src/devices/grohtml/grohtml.man: Document -p and the need of
4426         `psselect'.
4428         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
4429         new \O syntax.
4430         Call \O[0] if `ps4html' is active.
4431         * tmac/s.tmac (@EQ, @EN): Handle html better.
4432         (@TS, TE): Ditto.
4433         * tmac/html.tmac: Don't use black for background colour.
4435         * src/roff/troff/node.cc: Include `div.h'.
4436         (troff_output_file::really_print_line): Don't use `is_on'. 
4437         (troff_output_file::word_marker, troff_output_file::flush_tbuf
4438         troff_output_file::check_charinfo,
4439         troff_output_file::put_char_width, troff_output_file::put_char,
4440         troff_output_file::determine_line_limits, troff_output_file::draw,
4441         real_output_file::begin_page, glyph_color_node::tprintf,
4442         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
4443         Use `is_on'.
4444         (troff_output_file::really_on): Call `do_motion'.
4445         (suppress_node::tprint): Use `get_page_number' instead of `%'
4446         register.
4447         Call `reset_output_registers' conditionally on `is_on'.
4449         * doc/groff.texinfo: Document new syntax of \O.
4450         * NEWS, man/groff_diff.man: Updated.
4452 2002-05-22  Werner LEMBERG  <wl@gnu.org>
4454         * MORE.STUFF: Add info about David Frey's deroff implementation.
4455         Mention troff.org.
4457 2002-05-16  Werner LEMBERG  <wl@gnu.org>
4459         Pic's `with' attribute now accepts positions.
4461         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
4462         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
4463         conflicts.
4464         (object_spec): Add rule for `WITH' and `position'.
4465         (relative_path): Give `corner' the precedence of `CHOP'.
4466         * src/preproc/pic/object.h (path): New members `pos' and
4467         `is_position'.
4468         * src/preproc/pic/object.cc: Updated initializers of `path'.
4469         (path::follow): Handle `is_position'.
4471         * doc/pic.ms: Completely updated grammar description.
4472         Many typographical improvements.
4474 2002-05-15  Werner LEMBERG  <wl@gnu.org>
4476         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
4477         code of x in range 0-127) also.
4478         * doc/groff.texinfo, man/groff_diff.man: Updated.
4480         Added keywords `north', `south', `east', and `west' for corners
4481         in pic.
4483         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
4484         and WEST.
4485         (yylex): Handle them.
4486         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
4487         (corner): Handle them.
4489 2002-05-14  Werner LEMBERG  <wl@gnu.org>
4491         * src/devices/grops/grops.man: Clarify handling of `download' file.
4493 2002-05-11  Werner LEMBERG  <wl@gnu.org>
4495         Adding `warnscale' and `spreadwarn' requests, based on a patch from
4496         Jeffrey Friedl <jfriedl@yahoo.com>.
4498         * src/roff/troff/input.cc (spread_limit, warn_scale,
4499         warn_scaling_indicator): New global variables.
4500         (warnscale_request, spreadwarn_requests): New functions.
4501         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
4502         (init_input_requests): Updated.
4503         (error_type): Add `OUTPUT_WARNING'.
4504         (do_error): Handle it.
4505         (output_warning): New warning function which shows output location.
4506         * src/roff/troff/env.h (spread_limit): New external variable.
4507         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
4508         `output_warning'.
4509         (distribute_space): Emit warning if added space is larger than
4510         `spread_limit'.
4511         (environment::possibly_break_line): Emit warning if a line can't
4512         be adjusted on both sides.
4514         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
4516 2002-05-08  Werner LEMBERG  <wl@gnu.org>
4518         * src/roff/troff/node.cc (special_node::special_node): Use
4519         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
4520         \X''\% crashes, for example.
4522         * doc/groff.texinfo: Document \! and \? used at top-level.
4524 2002-05-06  Werner LEMBERG  <wl@gnu.org>
4526         * src/preproc/pic/pic.man: Fix some keyword syntax.
4527         Other minor typographical fixes.
4529         * src/roff/groff/groff.man: Fix typos.
4531 2002-05-04  Werner LEMBERG  <wl@gnu.org>
4533         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
4534         (ShortOpt[]): This to avoid problems with refer.
4536         * doc/pic.ms: Fix typo.
4537         Fix pic grammar description.
4539         * tmac/an-old.tmac (ne): Use de1, not de.
4541 2002-05-03  Werner LEMBERG  <wl@gnu.org>
4543         * doc/groff.texinfo: Finished separation of glyphs and characters.
4544         Don't use the string `Appendix' for appendix headers (both in
4545         the text and the table of contents).
4546         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
4547         directories.
4549         Use registers LL and LT (similar to -ms) for controlling the
4550         length of title and line, respectively, in the -man and -mdoc
4551         macro packages.
4553         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
4554         (doc-setup-page-layout): Use \n[LL] and \n[LT].
4555         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
4556         (TH): Use \n[LL].
4557         (an-header, an-p-footer): Use \n[LT].
4558         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
4559         doc/groff.texinfo: Document it.
4561 2002-05-02  Werner LEMBERG  <wl@gnu.org>
4563         * doc/fdl.texi: New file.
4564         * doc/groff.texinfo: Include it.
4565         Define and use @copying.
4566         Starting with separating glyph, symbol, and character.
4568 2002-04-27  Werner LEMBERG  <wl@gnu.org>
4570         * Makefile.in (EXEEXT): Set it.
4571         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
4572         programs.
4574         * src/include/nonposix.h: Define GS_NAME.
4575         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
4577         Some preliminary changes for EMX support under OS/2.
4579         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
4580         __EMX__ similar to __MSDOS__.
4581         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
4583 2002-04-25  Werner LEMBERG  <wl@gnu.org>
4585         * doc/groff.texinfo: Integrated groff_out.man.
4586         Some macro fixes.
4588 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4590         * man/groff_out.man: Minor fixes.
4592 2002-04-23  Werner LEMBERG  <wl@gnu.org>
4594         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
4595         correct page references.
4596         Fixed many index entries.
4598 2002-04-23  Bernd Warken  <bwarken@mayn.de>
4600         * man/roff.man: Enlarged.
4602 2002-04-22  Werner LEMBERG  <wl@gnu.org>
4604         * doc/groff.texinfo: More examples, other fixes.
4606 2002-04-20  Werner LEMBERG  <wl@gnu.org>
4608         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
4609         will now form a chain, e.g.
4611           .pi foo
4612           .pi bar
4614         is now the same as
4616           .pi foo | bar
4618         This is for compatibility with plan 9's troff.
4620         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
4621         with UNIX troff.
4622         * NEWS: Updated.
4624         * doc/groff.texinfo: Add documentation of remaining requests and
4625         registers.
4627 2002-04-19  Werner LEMBERG  <wl@gnu.org>
4629         * doc/groff.texinfo: Add documentation of remaining escapes.
4631         * font/devdvi/generate/tc.map: Remove entry for `sr'.
4632         * font/devdvi/*TC: Regenerated.
4634 2002-04-18  Werner LEMBERG  <wl@gnu.org>
4636         * src/roff/troff/input.cc (token::next): Make \H behave consistently
4637         if not in compatibility mode, i.e., increment relative to the
4638         previous height.
4639         * doc/groff.texinfo: Updated accordingly.
4641 2002-04-17  Werner LEMBERG  <wl@gnu.org>
4643         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
4645 2002-04-16  Bernd Warken  <bwarken@mayn.de>
4647         * src/roff/groff/groff.man: Improve documentation of -P option.
4648         Other minor fixes.
4650 2002-04-15  Werner LEMBERG  <wl@gnu.org>
4652         Add new escape \F to switch font family.
4654         * src/roff/troff/input.cc (token::next): Handle \F.
4655         * src/roff/troff/env.cc (environment::set_family): Handle
4656         `interrupted' flag.
4657         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
4658         Document it.
4660 2002-04-14  Werner LEMBERG  <wl@gnu.org>
4662         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
4663         spaces in tags.
4665 2002-04-13  Werner LEMBERG  <wl@gnu.org>
4667         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
4668         \m[] and \M[], respectively.
4670         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
4671         (symbol::symbol): Handle NULL string and empty string differently.
4672         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
4673         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
4674         Add optional parameter.
4675         Updated calling functions.
4676         (get_copy, do_glyph_color, do_fill_color, token::next): Use
4677         `symbol::is_empty'.
4678         * src/roff/troff/env.cc (environment::set_font): Ditto.
4680         * src/preproc/pic/troff.cc (troff_output::set_fill,
4681         troff_output::reset_color: Updated.
4683         * tmac/www.tmac: Updated.
4685         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
4686         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
4687         Updated.
4689         * tmac/Xps.tmac: Remove some redundant code.
4691         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
4692         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
4693         man/groff_out.man, man/groff.man, man/groff_diff.man,
4694         src/roff/groff/groff.man: Replace \f[P] with \f[].
4696 2002-04-13  Bernd Warken  <bwarken@mayn.de>
4698         * src/include/printer.h, src/libs/libdriver/printer.cc
4699         (printer::change_fill_color): New member function.
4700         * src/libs/libdriver/input.cc (parse_D_command): Use it.
4702 2002-04-12  Werner LEMBERG  <wl@gnu.org>
4704         * doc/groff.texinfo: Completed pass on gtroff reference.
4706 2002-04-11  Werner LEMBERG  <wl@gnu.org>
4708         * doc/groff.texinfo: More fixes.
4710 2002-04-11  Bernd Warken  <bwarken@mayn.de>
4712         * src/include/color.h: Decorate with `const'.
4713         Use `size_t'.
4714         Include `stddef.h'.
4715         * src/libs/libgroff.color.cc: Decorate with `const'.
4716         Use `size_t'.
4717         (color::color): Initialize members.
4718         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
4719         command according to the documentation.
4721         * man/groff_out.man: Updated.
4722         Minor fixes.
4724 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
4726         * src/preproc/html/pre-html.cc (write_start_image): Remove
4727         redundant output.
4728         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
4730         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
4731         \C'hy' caused an assertion failure.
4733         * src/roff/troff/env.cc (environment::environment): Initialize
4734         `emitted_node'.
4735         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
4737 2002-04-10  Werner LEMBERG  <wl@gnu.org>
4739         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4740         Document pvs request and .pvs register.
4742 2002-04-09  Werner LEMBERG  <wl@gnu.org>
4744         * doc/groff.texinfo: Improve and fix documentation of diversions
4745         and environments.
4747 2002-04-08  Werner LEMBERG  <wl@gnu.org>
4749         * doc/groff.texinfo: Fix documentation of drawing functions.
4750         Other minor fixes.
4752 2002-04-07  Werner LEMBERG  <wl@gnu.org>
4754         * doc/groff.texinfo: Better documentation of double quotes as
4755         arguments.
4756         Other minor fixes.
4758 2002-04-06  Werner LEMBERG  <wl@gnu.org>
4760         * man/groff_font.man: Document names of special characters better.
4761         * doc/groff.texinfo: Minor improvements.
4763         * tmac/lbp.tmac: Load latin1.tmac.
4764         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
4766         * font/devX*/*: Regenerated (all chars > 0x80 removed).
4768 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4770         * tmac/tty.tmac: Don't use shc request.
4771         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
4772         * NEWS: Updated.
4774         * man/groff_diff.man: Minor fixes.
4776         * font/devlbp/*: Remove all `charXXX' entities.
4778         * src/libs/libgroff/font.cc (font::~font): Deallocate
4779         `special_device_coding'.
4780         (font::load): Use `new' for allocating `special_device_coding'.
4781         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
4782         Removed unused member.
4784 2002-04-05  Werner LEMBERG  <wl@gnu.org>
4786         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
4787         (resource_manager::do_begin_binary,
4788         resource_manager::do_begin_data): Use it.
4790         * doc/texinfo.tex: Updated to version 4.2.
4792         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
4793         (token::zero_width_break): New inline function.
4794         * src/roff/troff/input.cc (token::next): Use it.
4795         (token::description): Updated.
4796         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
4797         (token::add_to_node_list, token::process): Use it.
4798         * NEWS, doc/groff.texinfo: Updated.
4800         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
4801         * tmac/tty.tmac: Add missing backslash.
4803 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
4805         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
4806         `.ps' register instead of `.s' to handle fractional point sizes.
4807         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
4808         limit_box::output): Ditto.
4809         * src/preproc/eqn/other.cc (size_box::compute_metrics,
4810         size_box::output): Ditto.
4811         * src/preproc/eqn/over.cc (over_box::compute_metrics,
4812         over_box::output): Ditto.
4813         * src/preproc/eqn/script.cc (script_box::compute_metrics,
4814         script_box::output): Ditto.
4815         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4816         sqrt_box::output): Ditto.
4818 2002-04-03  Michael Selway  <mas@ssl.co.uk>
4820         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4821         Fix typo.
4823 2002-04-03  Werner LEMBERG  <wl@gnu.org>
4825         * doc/homepage.ms: Reduce title size.
4826         * doc/groff.texinfo: Fix documentation of .t register.
4827         Fix handling of colon.
4828         Fix `\' vs. `\\'.
4830         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4831         only if page length is positive to avoid a loop.
4833         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4834         tbl.
4836 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
4838         * src/include/nonposix.h, src/roff/groff/pipeline.c:
4839         s/__CYGWIN32__/__CYGWIN__/.
4841 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
4843         * doc/gnu.xpm: New image contributed by Emily Mulley.
4844         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4845         (homepage.html): Be dependent on gnu.eps.
4846         * doc/homepage.ms: Updated to new image.
4848         * src/devices/grohtml/post-html.cc (html_printer): New member
4849         `sbuf_prev_hpos'.
4850         (html_printer::flush_sbuf, html_printer::set_char): Set it.
4851         (html_printer::sbuf_continuation): Use it.
4853 2002-03-28  Werner LEMBERG  <wl@gnu.org>
4855         * src/libs/libgroff/getopt.c: Updated to latest version.
4857         * tmac/README: More on hyphen.tex license.
4859 2002-03-26  Larry Kollar  <kollar@alltel.net>
4861         * doc/groff.texinfo: Add documentation of most missing requests.
4863 2002-03-25  Werner LEMBERG  <wl@gnu.org>
4865         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4866         of `+-', `mu', and `di', respectively.
4868         * font/devascii/R.proto, font/devutf8/R.proto,
4869         font/devlatin1/R.proto, font/devhtml/R.proto,
4870         font/devcp1047/R.proto, font/devlpb/*: Add them.
4871         * font/devps/generate/textmap: Ditto.
4872         * font/devps/*: Regenerated.
4873         * font/devlj4/generate/text.map: Add them.
4874         * font/devlj4/*: Regenerated.
4875         * font/devdvi/generate/tc.map: Use them.
4876         * font/devdvi/generate/texsy.map: Add them.
4877         * font/devdvi/*: Regenerated.
4878         * font/devX*/*: Regenerated.
4880         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4881         tmac/tty-char.tmac: Updated.
4883         * NEWS, man/groff_char.man: Updated.
4885 2002-03-24  Werner LEMBERG  <wl@gnu.org>
4887         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4888         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4889         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4890         we use `.fchar' in dvi.tmac.
4891         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4892         * tmac/Xps.tmac: Simplify some char definitions.
4893         Add definition for \[f/].
4894         * man/groff_char.man: Updated for new X.tmac.
4896         * tmac/README: New file.
4898 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
4900         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4901         internal .y.o rule took precendence over the .y.cc rule, compiling
4902         the yacc files with gcc instead of g++.
4904 2002-03-23  Werner LEMBERG  <wl@gnu.org>
4906         * tmac/dvi.tmac: Add replacement font for `CB'.
4908         * tmac/doc.tmac: s/request/macro/ in messages.
4909         (doc-generic-macro): Improve error message.
4910         * tmac/groff_mdoc.man: Minor improvements.
4912 2002-03-22  Werner LEMBERG  <wl@gnu.org>
4914         * doc/groff.texinfo: Document possible conflict between `tr' and
4915         `char' requests.
4917 2002-03-21  Werner LEMBERG  <wl@gnu.org>
4919         Improve handling of hyphenation patterns.  It is now possible to
4920         use most of TeX's pattern files unmodified.  To make the process
4921         more flexible, a new request `hpfcode' has been added which
4922         provides a character code mapping for the `hpf' request.  See
4923         comment before hpf_getc() for more details.
4925         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4926         functions.
4927         (read_patterns_file): Additional parameter for exception dictionary.
4928         Extended to recognize \pattern, \hyphenation, and \endinput.
4929         (do_hyphenation_patterns_file): Updated.
4930         * src/roff/troff/env.h (hpf_code_table): New extern.
4932         * src/roff/troff/input.cc (hpf_code_table): New array.
4933         (init_hpf_code_table, hyphenation_patterns_file_code): New
4934         functions.
4935         (hyphenation_code): Handle translation from `trin' correctly.
4936         (main, init_input_requests): Updated.
4937         (charinfo::set_translation): Handle hyphenation code also.
4939         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4940         inline function.
4942         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4943         char' is used for offsets in hyphenation exceptions.
4945         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4947         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4949 2002-03-20  Larry Kollar  <kollar@alltel.net>
4951         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4952         requests.
4954 2002-03-18  Werner LEMBERG  <wl@gnu.org>
4956         * tmac/html.tmac: Fix serious typo.
4958 2002-03-17  Larry Kollar  <kollar@alltel.net>
4960         * doc/groff.texinfo: Add documentation for `writec' request.
4962 2002-03-17  Werner LEMBERG  <wl@gnu.org>
4964         Added request `hpfa' to append hyphenation patterns.
4966         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4967         parameter `append'.
4968         (hyphenation_patterns_file): Renamed to...
4969         (do_hyphenation_patterns_file): This.
4970         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4971         functions.
4972         (init_hyphen_requests): Updated.
4973         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4975 2002-03-16  Werner LEMBERG  <wl@gnu.org>
4977         Added request `writec' in analogy to `tmc'.
4979         * src/roff/troff/input.cc (write_request): Renamed to...
4980         (do_write_request): This.
4981         Added one parameter.
4982         (write_request, write_request_continue): New functions.
4983         (init_input_requests): Updated.
4984         * NEWS, man/groff.man, man/groff_diff.man: Document it.
4986         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4987         5-10000pt.
4988         * NEWS: Document it.
4990 2002-03-15  Werner LEMBERG  <wl@gnu.org>
4992         * man/groff.man: Add writem request.
4994         Add request `trin' (translate input) to make `.asciify' work
4995         correctly.  This is necessary since `charXXX' entity names are no
4996         longer hardcoded in font definition files.
4998         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4999         `translate_input' members.
5000         (charinfo::set_asciify_code, charinfo::get_asciify_code,
5001         charinfo::set_translation_input): New methods.
5002         (charinfo::set_translation): Add third argument.
5003         * src/roff/troff/input.cc (charinfo:set_translation): Set
5004         `asciify_code'.
5005         (do_translate): Add second argument.
5006         (translate_input): New function.
5007         (init_input_requests): Updated.
5008         * src/roff/troff/node.cc (glyph_node::asciify,
5009         composite_node::asciify): Use `get_asciify_code'.
5011         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5013         * NEWS, man/groff.man, man/groff_diff.man: Updated.
5015 2002-03-14  Larry Kollar  <kollar@alltel.net>
5017         * doc/groff.texinfo: Improve documentation of .RS and .RE.
5019 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5021         Add a new request `sizes' similar to the `sizes' command in DESC
5022         files.
5024         * src/roff/troff/env.cc (override_sizes): New function.
5025         (init_env_requests): Use it.
5026         * src/roff/troff/token.h: Export `read_string'.
5027         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5029 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5031         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5033 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5035         * tmac/pspic.tmac: Add support for -Tdvi.
5036         * tmac/dvi.tmac: Include pspic.tmac.
5037         * src/devices/grodvi/grodvi.man: Document it.
5038         * NEWS: Updated.
5040         * font/devlj4/generate/Makefile: Fix URL of metric files.
5042 2002-03-09  Werner LEMBERG  <wl@gnu.org>
5044         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5046 2002-03-09  Larry Kollar  <kollar@alltel.net>
5048         * tmac/groff_ms.man: Add documentation for RS and RE macros.
5050 2002-03-08  Werner LEMBERG  <wl@gnu.org>
5052         * doc/groff.texinfo: Fixes for texinfo 4.1.
5054 2002-03-07  Werner LEMBERG  <wl@gnu.org>
5056         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5057         included.
5058         Handle CYGWIN properly.
5060 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
5062         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5063         * tmac/lbp.tmac: Add some font translations.
5065 2002-03-02  Werner LEMBERG  <wl@gnu.org>
5067         * font/devcp1047/R.proto, font/devlatin1/R.proto,
5068         font/devhtml/R.proto: Remove `charXXX'  entries.
5069         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5070         where appropriate.
5072         * font/devlj4/generate/text.map: Remove `charXXX' entries.
5073         * font/devlj4/*: Regenerated all font definition files.
5074         * tmac/lj4.tmac: Load latin1.tmac.
5076         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5077         from 2000-06-17: LJ4 metric files are *not* text files.
5079         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5080         register to test for EBCDIC.
5082 2002-03-01  Werner LEMBERG  <wl@gnu.org>
5084         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5085         files (as grops already does).
5086         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5087         files.
5088         * src/devices/grops/grops.man: Document comment lines in encoding
5089         files.
5091         * tmac/cp1047.tmac: New file.
5092         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5093         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5094         * tmac/Makefile.sub (NORMALFILES): Updated.
5096         * tmac/ec.tmac: Don't load latin1.tmac again.
5098         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5099         font/devps/generate/dingbats.map,
5100         font/devps/generate/dingbats.rmap, font/devps/text.enc,
5101         font/devps/generate/Makefile (symbolmap): Add header comment.
5102         * font/devps/generate/textmap: Ditto.
5103         Remove `charXXX' entries.
5104         * font/devps/symbolmap: Regenerated.
5105         * font/devps/*: Regenerated all font definition files.
5107 2002-02-28  Werner LEMBERG  <wl@gnu.org>
5109         Add color support to grodvi (for drawing colors are currently
5110         translated to gray values).
5112         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
5113         (dvi_printer): Add `cur_color' member.
5114         (dvi_printer::set_color): New function.
5115         (draw_dvi_printer): Remove `fill'.
5116         (draw_dvi_printer::fill_next): Pass environment as parameter.
5117         Update code for new color support translated to gray.
5118         (dvi_printer::set_char): Updated.
5119         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
5120         changes crossing the page border.
5121         (dvi_printer::draw): Updated.
5122         Remove cases `f' and `F'.
5123         * tmac/dvi.tmac: Add color definitions.
5124         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5126         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
5127         used incorrectly.
5129         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
5130         versions of autoconf.
5131         * configure: Updated.
5133         * doc/homepage.ms: Use `.blm'.
5134         * tmac/www.tmac (www-depth): New auxiliary variable.
5135         (www-pop-level): Don't issue HTML tag.
5136         (ULS, ULE, LI): Use absolute indentation.
5138         * src/devices/grops/ps.cc (ps_printer::begin_page,
5139         ps_printer::end_page): Switch forth and back to default color while
5140         starting a new page.
5142 2002-02-27  Werner LEMBERG  <wl@gnu.org>
5144         Add EC and TC fonts to devdvi.
5146         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
5147         * font/devdvi/generate/cork.map: Renamed to...
5148         * font/devdvi/generate/ec.map: This.
5149         Remove entry for `aq'.
5150         * font/devdvi/generate/tc.map: New file.
5151         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
5152         EC and TC fonts.
5153         (FONTS): Updated.
5154         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
5155         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5156         * tmac/ec.tmac: New file.
5157         * tmac/Makefile.sub (NORMALFILES): Updated.
5158         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5159         * man/groff_char.man: Check `ECFONTS' register.
5161         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
5163 2002-02-26  Werner LEMBERG  <wl@gnu.org>
5165         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
5166         * font/devdvi/generate/cork.map: Add 'y and 'Y.
5167         * font/devdvi/*: Updated.
5168         * tmac/dvi.tmac: Formatting.
5170         Add font `HBI' for the dvi output.
5171         Add support for font families `T' and `H'.
5173         * font/devdvi/HBI: New file.
5174         * font/devdvi/B: Renamed to ...
5175         * font/devdvi/TB: This.
5176         * font/devdvi/BI: Renamed to ...
5177         * font/devdvi/TBI: This.
5178         * font/devdvi/I: Renamed to ...
5179         * font/devdvi/TI: This.
5180         * font/devdvi/R: Renamed to ...
5181         * font/devdvi/TR: This.
5182         * font/devdvi/H: Renamed to ...
5183         * font/devdvi/HR: This.
5184         * font/devdvi/Makefile.sub (DEVFILES): Updated.
5185         * font/devdvi/generate/Makefile (HBI): New rule.
5186         (FONTS): Updated.
5187         (R, I, B, BI, H): Renamed to ...
5188         (TR, TI, TB, TBI, HR): This, respectively.
5189         (srcdir): Fixed.
5190         * NEWS, src/devices/grodvi/grodvi.man: Updated.
5191         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
5192         Add `styles' and `family' keywords.
5193         * tmac/dvi.tmac: Alias `H' to `HR'.
5194         Add some fspecial requests for italic fonts.
5195         Add TR and TI as special.
5196         Add support for `_' with font CWI.
5198         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
5199         operator `:'.  Until now, the expression `0:1' would return 2
5200         instead of 1.
5202 2002-02-25  Werner LEMBERG  <wl@gnu.org>
5204         * man/groff_char.man: Added some missing PS glyph names (from the
5205         Adobe Glyph List).
5206         * font/devps/generate/textmap, font/devps/symbolmap: Add
5207         `arrowupdn'.
5209         * doc/groff.texinfo: Minor additions and fixes.
5210         * man/groff_diff.man: Remove documentation of fp request.  This
5211         is already covered in the original troff manual.
5212         Updated to be consistent with other doc files.
5213         * NEWS: Updated.
5215 2002-02-24  Werner LEMBERG  <wl@gnu.org>
5217         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
5218         TTYDEVDIRS.
5219         Define new variable OTHERDEVDIRS (containing `font/devlj4
5220         font/devlbp' if not EBCDIC).
5221         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
5222         (OTHERDEVDIRS): New variable.
5223         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
5224         * configure: Regenerated.
5226         * NEWS, src/devices/grotty/grotty.man: Updated.
5228 2002-02-23  Werner LEMBERG  <wl@gnu.org>
5230         * src/roff/troff/input.cc (do_overstrike, do_bracket,
5231         get_line_arg): Honour input level.
5233         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
5235         * font/*/*: Implement it in all font files.
5236         * font/devps/generate/textmap, font/devps/generate/symbolchars,
5237         * font/devps/symbolmap: Updated.
5238         * font/devlj4/generate/text.map: Updated.
5239         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
5240         * font/devdvi/generate/texmi.map: Updated.
5242         * font/devutf8/R.proto: Remove all `charXXX' entries.
5243         * font/devutf8/NOTES: Updated.
5245         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
5246         version 4.1.0.
5248         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
5250         * NEWS, man/groff_char.man: Updated.
5252 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
5254         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
5256 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5258         * src/roff/grog/grog.pl: Fix computation of $refer.
5260 2002-02-19  Werner LEMBERG  <wl@gnu.org>
5262         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
5263         `snprintf' and `vsnprintf'.
5265         * src/include/htmlindicate.h: Renamed to...
5266         * src/include/htmlhint.h: This.
5267         * src/include/Makefile.sub: Updated.
5268         * src/preproc/eqn/main.cc: Updated.
5270 2002-02-18  Werner LEMBERG  <wl@gnu.org>
5272         * man/roff.man, man/groff_out.man, man/groff.man,
5273         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
5274         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
5276         * win32-diffs: Updated.
5278 2002-02-17  Werner LEMBERG  <wl@gnu.org>
5280         * doc/Makefile (clean): Add *.eps.
5281         (MEMACROS): Removed.
5282         (TFLAG): New variable.
5283         (TROFF): Use it.
5284         Add -ww.
5285         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
5286         (.me.dit): Fixed.
5287         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
5289         * tmac/www.tmac: Use dummy diversion while resetting and disabling
5290         `.tl'.
5291         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
5292         unstripped.
5293         * src/roff/troff/troff.man: Fix order of parameter description.
5295         * NEWS: Updated.
5297 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
5299         Simplify image handling for grohtml.
5300         Fix <p> bug.
5302         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
5303         comment out.
5304         (html_text::dump_stack): Don't emit newline while debugging.
5305         (html_text::do_push) [DEBUGGING]: Print more info.
5306         (html_text::check_emit_text): Fix handling of <p>.
5307         * src/devices/grohtml/html.h: Updated.
5308         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
5309         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
5310         send its data to stderr also.
5311         Update all callers.
5312         (simple_output::space_or_newline) [DEBUGGING]: Removed.
5313         * src/devices/grohtml/post-html.cc (html_printer::do_links,
5314         html_printer::html_printer): Remove `DEBUGGING' conditionals.
5316         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
5317         Removed.
5318         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
5319         is_inline_image): Removed.
5320         (html_begin_suppress, html_end_suppress): Don't take a parameter.
5321         (graphic_start, graphic_end): Removed.
5322         * src/include/htmlindicate.h: Updated.
5323         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
5324         (macroset_template): New global variable.
5325         (makeFileName): Use `macroset_template'.
5326         (write_end_image): Don't take a parameter.
5327         Don't emit newline.
5328         (write_start_image: Don't emit newline.
5329         (char_buffer::write_upto_newline): Updated.
5330         (char_buffer::skip_to_newline): Renamed to ...
5331         (char_buffer::skip_until_newline): This.
5332         Fix code.
5333         (char_buffer::write_file_troff, char_buffer::write_file_html):
5334         Simplified.
5335         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
5336         (removeAllPages): Remove `DEBUGGING' conditionals.
5337         (addRegDef, dump_args): New functions.
5338         (char_buffer::do_html, char_buffer::do_image): Handle
5339         `www-image-template' command line variable.
5340         Add more debugging code.
5341         (addps4html): Removed.
5342         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
5344         * src/preproc/eqn/main.cc: Include `ctype.h'.
5345         (suppress_html): Removed.
5346         (do_file): Updated.
5347         (inline_equation): Use `html_begin_suppress' and
5348         `html_end_suppress'.
5349         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
5350         (troff_output::start_picture, troff_output::finish_picture):
5351         Updated.
5352         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
5353         (process_input_file): Updated.
5355         * src/roff/troff/div.cc (page_number): Set page number only if the
5356         `ps4html' register isn't defined.
5357         * src/roff/troff/input.cc (image_no): New external variable.
5358         (do_suppress): Use it.
5359         * src/roff/troff/node.h (suppress_node::image_id): New member.
5360         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
5361         (suppress_node::suppress_node): Initialize `image_id' member.
5362         (suppress_node::same): Handle `image_id' also.
5363         (suppress_node::copy): Updated.
5364         (last_image_id): New global variable.
5365         (suppress_node::tprint): Use it.
5367         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
5368         HTML-IMAGE-END.
5369         * tmac/pspic.mac (PSPIC): Fix html support.
5370         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
5371         * tmac/www.tmac (www-image-template): Set up.
5372         (HTMLINDEX): Renamed to...
5373         (HX): This.
5374         (BODYCOLOR): Renamed to...
5375         (BCL): This.
5376         (BACKGROUND): Renamed to...
5377         (BGIMG): This.
5378         (URL): Change order of parameters for consistency.
5379         (MAILTO): Renamed to...
5380         (MTO): This.
5381         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
5382         (IMG, PIMG, MPIMG): This.
5383         (HTML-H-BEGIN, HTML-H-END): Renamed to...
5384         (HnS, HnE): This.
5385         (LINKS): Renamed to...
5386         (LK): This.
5387         (LINE): Renamed to...
5388         (HR): This.
5389         (NO-AUTO-RULE): Renamed to...
5390         (NHR): This.
5391         (HTML-TL): Renamed to...
5392         (HTL): This.
5393         (UL-BEGIN, UL-END): Renamed to...
5394         (ULS, ULE): This.
5395         (DROPCAP): Renamed to...
5396         (DC): This.
5397         (TS, TE, EQ, EN): Provide default definitions.
5398         (www-make-unique-name): Updated.
5399         (HTML-IMAGE-INLINE): Fix typo.
5400         * tmac/groff_www.man: Updated.
5402         * doc/Makefile (homepage.html): Add option -r to grohtml.
5403         Use shortened image name.
5404         * doc/groff.texinfo: Updated info on grohtml strings and macros.
5405         * doc/homepage.ms: Updated and extended.
5407 2002-02-14  Werner LEMBERG  <wl@gnu.org>
5409         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
5411         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
5412         SGR_BACK_DEFAULT_COLOR): Replaced with ...
5413         (tty_printer::put_color): Use it.
5414         (ttr_printer::end_page): Simplify.
5416 2002-02-13  Werner LEMBERG  <wl@gnu.org>
5418         * tmac/groff_tmac.man: Moved to...
5419         * man/groff_tmac.man: This place.
5420         * tmac/Makefile.sub, man/Makefile.sub: Updated.
5422 2002-02-12  Werner LEMBERG  <wl@gnu.org>
5424         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
5425         $(COMPILE.c) to not include groff's assert.h.
5427         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
5428         variable.
5429         * NEWS, src/drivers/grotty/grotty.man: Document it.
5431 2002-02-11  Werner LEMBERG  <wl@gnu.org>
5433         * src/libs/snprintf/snprintf.c: Updated to latest version
5434         (2002-02-11).
5436         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
5437         test whether there is `.]' also.
5438         Don't check for spaces after `.['.
5439         * src/roff/grog/grog.sh: Do the same.
5441 2002-02-10  Werner LEMBERG  <wl@gnu.org>
5443         Illegal -> Invalid.
5445         * src/libs/libgroff/illegal.cc: Renamed to ...
5446         * src/libs/libgroff/invalid.cc: This.
5447         (illegal_char_table): Renamed to ...
5448         (invalid_char_table): This.
5449         * src/libs/libgroff/Makefile.sub: Updated.
5450         * win32-diffs: Updated.
5452         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
5453         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
5454         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
5455         font::load), src/preproc/eqn/main.cc (read_line, main),
5456         src/preproc/eqn/lex.cc (file_input::read_line),
5457         src/preproc/pic/lex.cc (file_input::read_line,
5458         simple_file_input::get, simple_file_input::peek),
5459         src/preproc/pic/main.cc (top_input::get, top_input::peek),
5460         src/preproc/pic/pic.man, src/preproc/refer/main.cc
5461         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
5462         do_bib), src/preproc/tbl/main.cc (table_input::get),
5463         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
5464         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
5465         do_zero_width, read_request, encode_char, ps_get_line,
5466         transparent_file, get_char_for_escape_name, transparent_translate,
5467         asciify, input_char_description, read_string, set_string),
5468         src/roff/troff/env.cc (environment::add_html_tag),
5469         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
5471         * src/include/lib.h: Updated.
5473         * src/preproc/eqn/eqn.cc: Removed.
5475         * NEWS: Updated.
5477         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
5479 2002-02-09  Werner LEMBERG  <wl@gnu.org>
5481         * doc/gnu.xpm: New image.
5482         * doc/Makefile (DOCS): Add homepage.ps.
5483         Add rules for converting xpm->png and xpm->eps.
5484         Use `gnu.{xpm,eps}' as image names.
5485         * doc/homepage.ms: Updated.
5487 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
5489         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
5490         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
5491         Remove calls to `B1' and `B2'
5492         (PNG-IMAGE): New macro for inclusion of images in PNG format.
5493         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
5494         auxiliary variables for MARGIN-PNG-IMAGE.
5495         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
5496         auxiliary macros for MARGIN-PNG-IMAGE.
5497         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
5498         the margin.
5499         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
5500         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
5501         (DROPCAP): New macro to produce dropcap characters.
5502         (www-do-image): Renamed back to...
5503         (HTML-DO-IMAGE): This.
5504         Updated all callers.
5506         * doc/Makefile (gnubw.eps): Updated.
5507         * doc/homepage.ms: Updated.
5509 2002-02-08  Werner LEMBERG  <wl@gnu.org>
5511         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
5512         Added `linethick' to table in section `Style Variables'.
5514 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
5516         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
5518 2002-02-07  Werner LEMBERG  <wl@gnu.org>
5520         Adding options -C (compatibility mode) and -c (grotty's old output
5521         scheme) to nroff.
5523         * src/roff/nroff/nroff.sh: Implement it.
5524         Remove `-Wall'.
5525         * NEWS, src/roff/nroff/nroff.man: Updated.
5527         * PROBLEMS: Document bison 1.32 bug.
5529         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
5531         * src/roff/troff/node.cc (make_tfont): Define it earlier.
5532         * src/roff/troff/div.h: Add prototype for `end_diversions'.
5533         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
5534         * src/roff/troff/env.h: Add prototype for `title'.
5536         Adding EBCDIC support to grotty.
5538         * src/devices/grotty/tty.cc (CSI): New macro.
5539         (SGR_*, tty_printer::put_color): Use it.
5541 2002-02-06  Werner LEMBERG  <wl@gnu.org>
5543         Implementing color support in grotty.  The new switch -c activates
5544         the old drawing scheme, disabling color at the same time.  The new
5545         switch `-i' selects italic instead of underlining (SGR only).
5547         * src/devices/grotty/tty.cc (putstring): New define instead of
5548         `fputs'.  Updated all callers.
5549         (old_drawing_scheme): New global variable.
5550         (COLOR_CHANGE): New enum value.
5551         (SGR_*): New defines containing color handling escape sequences.
5552         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
5553         (glyph): New members `back_color_idx' and `fore_color_idx'.
5554         (glyph::order): Add COLOR_CHANGE.
5555         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
5556         `is_underline', `is_bold', `cu_flag', `tty_colors'.
5557         New methods `make_underline', `make_bold', `color_to_idx',
5558         `change_color', `put_color'.
5559         (cu_flag): Moved into `tty_printer' class.
5560         (tty_printer::tty_printer): Initialize colors.
5561         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
5562         tty_printer::draw, tty_printer::end_page): Handle colors also.
5563         (main): Add options `-c' and `-i'.
5564         (usage): Updated.
5565         * NEWS, src/devices/grotty/grotty.man: Updated.
5567         * src/include/errarg.h (errarg): Add support for `unsigned int'.
5568         * src/libs/libgroff/errarg.c: Implement it.
5570         * src/include/printer.h (printer): Add `change_color' method
5571         (currently used by grotty only).
5572         * src/libs/libdriver/printer.cc: Implement it.
5573         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
5574         call to `pr->change_color'.
5576         * src/roff/troff/node.cc (troff_output_file::fill_color,
5577         troff_output_file::glyph_color): Call `do_motion'.
5579         * tmac/tty.tmac: Add color definitions.
5581         * src/roff/groff/groff.man: Minor fixes.
5583 2002-02-05  Bernd Warken  <bwarken@mayn.de>
5585         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
5586         it.  This is a preparation for future changes.
5588 2002-02-05  Werner LEMBERG  <wl@gnu.org>
5590         * src/roff/troff/input.cc (process_input_stack): Fix the case
5591         where leading spaces are followed by \f or \s; previously, an
5592         incorrect space width has been used.
5594         * doc/roff.man (quoted_char): Fix argument.
5595         (comment): Define string.
5597 2002-02-04  Larry Kollar  <kollar@alltel.net>
5599         * doc/groff.texinfo: More fixes.
5601 2002-02-04  Werner LEMBERG  <wl@gnu.org>
5603         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
5604         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
5605         `restore_compatibility' before `output_string' -- the LINE_STRING
5606         register now already contains proper switches from and to
5607         compatibility mode.
5609         * man/groff_char.man: Add Euro symbol.
5610         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
5611         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
5612         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
5613         Other minor fixes.
5615         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
5616         texinfo->pdf.
5617         (.texinfo.html): Add support for texinfo->html.
5619 2002-02-03  Werner LEMBERG  <wl@gnu.org>
5621         Added three new requests `ds1', `as1', and `ami'.  The former two
5622         are equivalent to `ds' and `as' with the difference that
5623         compatibility mode is saved on entry, switched off during string
5624         expansion, and restored on exit.  The latter is the pendant to `dei'
5625         for `am'.
5627         (do_define_string): Use `define_mode' and `calling mode'.
5628         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
5629         end of string, respectively.
5630         (define_string, append_string): Use `calling_mode'.
5631         (define_nocomp_string, append_nocomp_string,
5632         define_string_indirect): New functions.
5633         (init_input_requests): Updated.
5634         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5636         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
5637         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
5638         mm macro package accesses this string register directly.
5639         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
5641         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
5642         compatibility mode.
5644 2002-02-02  Larry Kollar  <kollar@alltel.net>
5646         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
5648 2002-01-31  Werner LEMBERG  <wl@gnu.org>
5650         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
5652 2002-01-31  Bernd Warken  <bwarken@mayn.de>
5654         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
5655         * man/groff_out.man: Revised and updated.
5657 2002-01-30  Bernd Warken  <bwarken@mayn.de>
5659         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
5660         out the unused `{' and `}' commands.  Undefined by default.
5661         (IntArray): Make `data' private.
5662         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
5663         new methods instead.
5664         (skip_line_D, skip_to_end_of_line): New functions.
5665         (get_D_fixed_args): Use `skip_line_D'.
5666         Changed to handle dummy odd arguments by ...
5667         (get_D_fixed_args_odd_dummy): This new function.
5668         (get_D_variable_args): Split some code into ...
5669         (get_possibly_integer_args): This new function.
5670         (send_draw): Use more `const'.
5671         (delete_current_env): New function.
5672         (position_to_end_of_args): Use `size_t'.
5673         Updated.
5674         (send_draw): Updated.
5675         (parse_D_command): Handle `c', `C', and `t' better.
5676         Updated.
5677         (do_file): Updated.
5679 2002-01-29  Werner LEMBERG  <wl@gnu.org>
5681         * NEWS: Revised.
5682         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
5683         @Def...ListEnd which replaces @Def...x.  This is necessary to get
5684         proper HTML output -- see the comment in the file for more
5685         information.
5686         Updated all calls.
5688 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
5690         Fixes to make color changes of 2002-01-21 work with grohtml.
5692         * src/devices/grohtml/post-html.cc (style): Updated.
5693         (html_printer): Remove unused methods.
5694         (html_printer::do_font, html_printer::draw, html_printer::set_char,
5695         html_printer::special): Updated.
5696         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
5697         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
5698         Added some debugging code.
5699         (html_text::start_tag): Updated.
5700         (html_text::do_push): New method.
5701         (html_text::push_para): Call it.
5702         Add method for handling color.
5703         (html_text::do_color): Updated.
5704         (html_text::shutdown): Handle color.
5705         * src/devices/grohtml/html-text.h (tag_definition): New member
5706         `col'.
5707         Updated.
5709 2002-01-28  Werner LEMBERG  <wl@gnu.org>
5711         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5713 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
5715         Add two switches -a and -g to control the antialiasing bits for
5716         text and graphics, respectively.
5718         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
5719         `-g'.
5720         * src/devices/grohtml/grohtml.man: Document them.
5721         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
5722         New macros.
5723         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
5724         (setupAntiAlias): New function.
5725         (createAllPages): Updated.
5726         (scanArguments): Handle `-a' and `-g'.
5727         (main): Call `setupAntiAlias'.
5728         * NEWS: Updated.
5730 2002-01-27  Werner LEMBERG  <wl@gnu.org>
5732         * doc/groff.texinfo (Def*): Call index function after deffn.
5734         * tmac/html.tmac: Call `nroff' request.
5736 2002-01-26  Larry Kollar  <kollar@alltel.net>
5738         * tmac/groff_ms.man: Add some omissions.
5740 2002-01-25  Larry Kollar  <kollar@alltel.net>
5742         * tmac/groff_ms.man: Typographical improvements.
5744 2002-01-25  Werner LEMBERG  <wl@gnu.org>
5746         * doc/groff.texinfo: Updated version and copyright.
5747         * src/devices/grops/grops.man: Updated.
5749         * tmac/groff_tmac.man: Fix `ig' macro.
5751         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
5752         nroff mode.
5753         Use `.ne' unconditionally everywhere.
5754         (TS): Only insert some vertical space.  Doing a page break is no
5755         longer necessary due to the redefinition of the `ne' request.
5757         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
5758         warning for unknown subcommands but parse and pass them to the
5759         device driver.
5761 2002-01-24  Werner LEMBERG  <wl@gnu.org>
5763         * tmac/groff_www.man, NEWS: Fix typos.
5765 2002-01-21  Werner LEMBERG  <wl@gnu.org>
5767         Complete revision of color support:
5769           Adapt programs to the new libdriver/input.cc.
5771           Color spaces are no longer converted to RGB but transferred as-is
5772           in the troff intermediate output format.
5774           Handle default color gracefully.  troff now supports a `default'
5775           color (which can't be changed).
5777           grops will now use the proper color space functions if available.
5779           Update pic.
5781         Note that currently grohtml doesn't handle colors properly.  This
5782         has to be fixed.
5784         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
5785         (ui_to_a): New function.
5786         * src/include/lib.h: Updated.
5788         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
5789         (color): Simplified; removed all `double' members and methods.
5790         A new array `components' now holds the color parameters.
5791         (color::is_default, color::get_components): New methods.
5792         (color::operator==, color:operator!=): New.
5793         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
5794         to make access to the `components' array more comprehensible.
5795         * src/libs/libgroff/color.cc: Implement new color support.
5796         (atoh): Small fixes.
5797         (color::read_encoding): Simplified for new troff intermediate color
5798         output format.
5799         (default_color): New global variable.
5801         * src/roff/troff/input.cc (default_symbol): New global variable.
5802         (lookup_color): Use it.
5803         (default_black): Removed.
5804         (do_glyph_color, do_fill_color): Simplified.
5805         (define_color): Handle default color.
5806         Improve warnings.
5807         (do_if_request): Handle default color.
5808         * src/roff/troff/env.cc (environment::environment): Initialize
5809         colors with `default_color'.
5810         * src/roff/troff/node.cc (troff_output_file::put): Add method
5811         for `unsigned int'.
5812         (troff_output_file::hex): Removed.
5813         (troff_output_file::fill_color, troff_output_file::glyph_color):
5814         Updated to include/color.h and libdriver/input.cc.
5816         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5817         fill color properly (identically to the outline color).  \D'f...'
5818         doesn't work any more.
5819         All function calls to it updated.
5821         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5822         Updated.
5823         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5824         Updated.
5826         * src/devices/grops/ps.cc (ps_output::put_color): New method.
5827         (ps_printer::sbuf_color): Make a real member instead of pointer.
5828         (ps_printer::fill_color, ps_printer::output_color): Removed.
5829         (ps_printer::ps_printer): Updated.
5830         (ps_printer::set_char): Ditto.
5831         (ps_printer::set_color): Use various color schemes.
5832         Use `put_color' method.
5833         (ps_printer::flush_sbuf): Don't set color.
5834         (ps_printer::fill_path): Take `environment' as parameter.
5835         Simplify color handling.
5836         (ps_printer::set_line_thickness): Renamed to ...
5837         (ps_printer::set_line_thickness_and_color): This (and updated).
5838         (ps_printer::set_color): Change second parameter from `complete'
5839         to `fill' which better describes what it does.
5840         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5841         and text in the right order.
5842         Updated.
5843         Remove branches for `f' and `F'; this is handled by
5844         libdriver/input.cc.
5845         * src/devices/grops/ps.h: Updated.
5846         * font/devps/prologue (FL): Redefined.
5847         ({F,C}r,k,g: New color functions (with and without filling).
5849         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5850         * man/groff_diff.man, man/groff.man, man/groff_out.man,
5851         doc/groff.texinfo, NEWS: Updated.
5853 2002-01-20  Bernd Warken  <bwarken@mayn.de>
5855         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
5856         in this file for what has been changed.
5858 2002-01-19  Werner LEMBERG  <wl@gnu.org>
5860         * test-groff: Fix GROFF_FONT_PATH.
5861         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5862         is read before .TH or .Dd is parsed.
5864 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
5866         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5867         quadrant boundaries.
5869 2002-01-18  Werner LEMBERG  <wl@gnu.org>
5871         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
5872         applied last patch.
5874 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
5876         * tmac/doc.common: Initialize %I register for the %I macro to
5877         avoid (harmless) warning.
5878         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5879         when in the SYNOPSIS section.
5881 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
5883         * src/preproc/pic/lex.cc (get_token): Fix typo.
5885 2002-01-17  Werner LEMBERG  <wl@gnu.org>
5887         * devices/grops/ps.cc: Fix incorrectly applied last patch.
5889 2002-01-17  Larry Kollar  <kollar@alltel.net>
5891         * tmac/groff_ms.man: Completely rewritten.
5893 2002-01-16  Werner LEMBERG  <wl@gnu.org>
5895         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5897 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5899         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5900         fill colors.
5901         (ps_printer::draw): Ditto.
5903 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
5905         * tmac/groff_mdoc.man: Minor fixes.
5907 2002-01-13  Werner LEMBERG  <wl@gnu.org>
5909         * man/groff_out.man: Some fixes.
5911 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
5913         * doc/pic.ms: Fix typos.
5915 2002-01-12  Werner LEMBERG  <wl@gnu.org>
5917         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5919 2002-01-10  Werner LEMBERG  <wl@gnu.org>
5921         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5922         symbols.
5923         * NEWS: Updated.
5925 2002-01-09  Bernd Warken  <bwarken@mayn.de>
5927         * man/groff_out.man: Revised.
5928         * man/roff.man: Minor fixes.
5929         * src/roff/troff/troff.man: Some reordering.
5931 2002-01-09  Werner LEMBERG  <wl@gnu.org>
5933         * tmac/an-old.tmac: Add dummy macros for equation support.
5935 2002-01-07  Werner LEMBERG  <wl@gnu.org>
5937         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5939         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
5940         man pages.
5941         * tmac/groff_man.man: Small improvements.
5943 2002-01-07  Bernd Warken  <bwarken@mayn.de>
5945         * man/groff_diff.man: Revised.
5947 2002-01-06  Werner LEMBERG  <wl@gnu.org>
5949         * tmac/www.tmac: Remove extraneous backslash.
5951 2002-01-06  Bernd Warken  <bwarken@mayn.de>
5953         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5955 2002-01-05  Werner LEMBERG  <wl@gnu.org>
5957         Integrated groffer, contributed by Bernd Warken.
5959         * contrib/groffer/*: New.       
5960         * Makefile.in, NEWS: Updated.
5962 2002-01-04  Werner LEMBERG  <wl@gnu.org>
5964         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5965         registers defined in macro packages.
5966         Revising the ms part.
5968 2002-01-04  Larry Kollar  <kollar@alltel.net>
5970         * doc/groff.texinfo: Add documentation for ms macros.
5972 2002-01-02  Werner LEMBERG  <wl@gnu.org>
5974         First step in adding PS support for the Euro symbol.  `eu' is the
5975         official Euro logo, `Eu' is a font-specific glyph variant.
5977         * font/devps/text.enc: Add `Euro' at position 9.
5978         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5979         * font/devps/symbolmap: Regenerated.
5981         * NEWS: Updated.
5983 2002-01-02  Bernd Warken  <bwarken@mayn.de>
5985         * man/roff.man: Revised.
5987 2002-01-01  Bernd Warken  <bwarken@mayn.de>
5989         * src/roff/groff/groff.man: Completely rewritten.
5991 2001-12-31  Werner LEMBERG  <wl@gnu.org>
5993         * doc/Makefile: Updated.
5995 2001-12-30  Werner LEMBERG  <wl@gnu.org>
5997         * tmac/www.tmac: Make all names of internal macros/registers/strings
5998         lowercase, and prepend `www-'.
5999         Other minor changes.
6000         * src/roff/troff/troff.man: Add preprocessor string at BOF.
6002 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
6004         Implement option `-b' in grohtml to set the HTML background colour.
6006         * src/devices/grohtml/post-html.cc (default_background): New global
6007         variable.
6008         (html_printer::html_printer): Initialize `background' to
6009         `default_background'.
6010         (main): Implement option `-b'.
6011         (usage): Updated.
6012         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6013         of `-b' option.
6014         * src/devices/grohtml/grohtml.man: Updated.
6015         * doc/Makefile (.ms.html): Use `-b'.
6016         * tmac/html.tmac: Don't set background color.
6018         Add new grohtml tag `.html-tl'.
6020         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6021         member variable.
6022         (title_desc::title_desc): Updated.
6023         (html_printer::troff_tag): Handle `.html-tl'.
6024         (html_printer::write_title): Use `with_h1'.
6025         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6026         (HTML-TL): New macro.
6028         Add support for unordered lists in HTML.
6030         * tmac/www.tmac (www-level): New auxiliary register.
6031         (www-level1, www-level2, www-level3): New auxiliary strings.
6032         (www-push-level, www-pop-level): New auxiliary macros
6033         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6035         Miscellaneous.
6037         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6038         (DEFAULT_VERTICAL_OFFSET): Removed.
6039         (IMAGE_BOARDER_PIXELS): Set to 0.
6040         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6041         (vertical_offset): Initialize with 0.
6042         (gsPaper): New global variable.
6043         (get_resolution): Scan for and return unsigned int.
6044         (get_papersize): New function to get paper length from devps/DESC.
6045         (determine_vertical_offset): New function.
6046         (createAllPages): Produce gray-level images and use proper page
6047         length.
6048         (createImage): Use `-quiet' option of pnmcrop.
6049         (addZ): Fix passing of `-Z'.
6050         (scanArguments): Fix handling of `-o'.
6051         (main): Call `determine_vertical_offset'.
6052         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6053         code for `l'.
6055         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6056         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6057         glyph descenders properly.
6059         * doc/homepage.ms: Include `gnubw.eps'.
6060         * doc/Makefile (gnubw.eps): New rule.
6061         (homepage.html): Depend on `gnubw.eps'.
6063 2001-12-25  Werner LEMBERG  <wl@gnu.org>
6065         * src/roff/troff/input.cc (default_black): Fix return value.
6067 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
6069         * tmac/doc-common (Dt): Change output of architecture strings.
6070         Do some syntax cleanup.
6071         * tmac/groff_mdoc.man: Updated.
6073 2001-12-23  Werner LEMBERG  <wl@gnu.org>
6075         Adding an `itc' request (input line trap accepting \c).
6077         * src/roff/troff/env.h (environment): New member
6078         `continued_input_trap'.
6079         Make `do_input_trap' a friend function instead of `input_trap'.
6080         * src/roff/troff/env.cc (environment::environment,
6081         environment::copy): Updated.
6082         (environment::newline): Implement it.
6083         (do_input_trap): New function.
6084         (input_trap): Call `do_input_trap'.
6085         (input_trap_continued): New function.
6086         (init_env_requests): Updated.
6087         * src/roff/troff/TODO: Updated.
6089         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6090         `.it'.
6092         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6094 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
6096         * tmac/doc-common, tmac/doc-syms: Small updates.
6098 2001-12-22  Colin Watson  <cjwatson@debian.org>
6100         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6102 2001-12-22  Bernd Warken  <bwarken@mayn.de>
6104         * MANIFEST: New file.
6106 2001-12-22  Werner LEMBERG  <wl@gnu.org>
6108         * src/preproc/grn/grn.man: Updated.
6110 2001-12-22  Solar Designer  <solar@openwall.com>
6112         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
6113         (DBRead): Use it.
6115 2001-12-19  Werner LEMBERG  <wl@gnu.org>
6117         Implement a fallback character request `.fchar'.
6119         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
6120         (is_fallback): New inline function.
6121         * src/roff/troff/input.cc (do_define_character): New function.
6122         (define_character): Call `do_define_character'.
6123         (define_fallback_character): New function.
6124         (init_input_requests): Add `fchar'.
6125         (charinfo::charinfo): Updated.
6126         (charinfo::set_macro): New argument to set `fallback' flag.
6127         * src/roff/troff/node.cc (make_glyph_node, make_node,
6128         node::add_char): Check `fallback' flag.
6129         * NEWS, man/groff_diff.man, man/groff_man: Updated.
6131 2001-12-16  Werner LEMBERG  <wl@gnu.org>
6133         * groff.texinfo: Document exact search algorithm for glyphs.
6135 2001-12-15  Werner LEMBERG  <wl@gnu.org>
6137         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
6138         the left side of $(MANPAGES) rule to make it always non-empty.
6140 2001-12-14  Werner LEMBERG  <wl@gnu.org>
6142         * src/roff/troff/input.cc (default_black): Define default color
6143         `black' if not yet defined.
6145 2001-12-13  Werner LEMBERG  <wl@gnu.org>
6147         Implement new string-valued register `.fn' to return the current
6148         real (internal) font name.
6150         * env.cc (environment::get_font_name_string): New function.
6151         (init_env_requests): Add `.fn' register.
6152         * env.h (environment): Updated.
6153         * node.cc (font_info): Make `get_font_name' a friend.
6154         (get_font_name): New function.
6155         * node.h: Updated.
6157         * man/groff_diff.man, man/groff.man, NEWS: Updated.
6159 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6161         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
6163 2001-12-12  Werner LEMBERG  <wl@gnu.org>
6165         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
6167 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
6169         * man/groff_diff.man: Adding documentation for \O.
6171 2001-12-10  Werner LEMBERG  <wl@gnu.org>
6173         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
6174         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
6176 2001-12-09  Werner LEMBERG  <wl@gnu.org>
6178         * man/roff.man: Revised.
6179         * src/roff/groff/groff.man: Replace man page references with a
6180         pointer to roff.man.
6182 2001-12-09  Bernd Warken  <bwarken@mayn.de>
6184         * man/roff.man: Completely rewritten.
6186 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6188         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
6190 2001-12-05  Werner LEMBERG  <wl@gnu.org>
6192         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
6193         longer used.
6194         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
6195         order of initializers.
6196         * NEWS: Updated.
6198 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
6200         * doc/groff.texinfo: Fix documentation of \O.
6202         * src/devices/grohtml/html-text.cc (html_text::do_indent,
6203         html_text::do_table, html_text::do_emittext, html_text::do_para):
6204         Use `const' for first argument.
6205         (html_text::do_table): Use cast.
6206         * src/devices/grohtml/html-text.h: Updated.
6207         * src/devices/grohtml/output.cc (simple_output::put_string): Add
6208         method for `const string &s'.
6209         * src/devices/grohtml/html.h: Updated.
6210         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
6211         (ANCHOR_TEMPLATE): Modified.
6212         (manufacture_headings): New global variable to handle `-h' option.
6213         (is_subsection): Removed.
6214         (char_buffer::add_string): Add `const' to first argument.
6215         Protect against invalid string argument.
6216         Add method for `const string &s'.
6217         (text_glob): Completely redesigned.
6218         (page): Use `const' for strings and remove string length variable.
6219         (page::add_html): Removed.
6220         (page::add_end_encode): New member function.
6221         (to_unicode): Moved upwards.
6222         (title_desc, header_desc): Updated.
6223         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
6224         definition.
6225         (html_printer::is_bold, html_printer::make_bold): New member
6226         functions.
6227         (html_printer::end_of_line): Updated.
6228         (generate_img_src, html_printer::do_auto_image,
6229         html_printer::do_title, html_printer::write_header,
6230         html_printer::determine_header_level, html_printer::do_heading,
6231         html_printer::do_linelength, html_printer::do_pageoffset,
6232         html_printer::do_indentation, html_printer::do_tempindent,
6233         html_printer::do_indentedparagraph, html_printer::do_break,
6234         html_printer::flush_sbuf, get_html_translation,
6235         html_printer::begin_page, html_printer::special): Rewritten to get
6236         rid of static string length limit.
6237         (html_printer::troff_tag): Added `.no-auto-rule'.
6238         (html_printer::flush_globs): Small fix.
6239         (html_printer::determine_space): Don't compute `space_width'.
6240         (html_printer::translate_to_html): Renamed to ...
6241         (html_printer::emit_html): This (with updates).
6242         (html_printer::write_header): Implement `-h' option.
6243         (html_printer::draw): Remove commented-out code.  Handle `F'
6244         command.
6245         (html_printer::add_char_to_sbuf): Removed.
6246         (html_printer::add_to_sbuf): Rewritten.
6247         (html_printer::sbuf_continuation): Fixed.
6248         (html_printer::seen_backwards_escape, reverse,
6249         html_printer::remove_last_char_from_sbuf): Removed.
6250         (char_translate_to_html, str_translate_to_html): Removed.
6251         (html_printer::overstrike): New function member.
6252         (html_printer::set_char): Use it.
6253         (html_printer::do_body): New function member.
6254         (html_printer::~html_printer): Use it.
6255         (main): Handle `-h' option.
6256         (usage): Updated.
6257         * src/devices/grohtml/grohtml.man: Document -h switch.
6259         * src/preproc/html/pre-html.cc: Include searchpath.h
6260         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
6261         (get_resolution): New function.
6262         (checkImageDir): Use `0777' permissions in mkdir()
6263         (write_start_image): Rewritten to use `\O[5...]'.
6264         (createImage, generateImages): Updated.
6265         (main): Handle `F' and `h' options.
6266         Use `get_resolution'.
6268         * src/roff/troff/input.cc (begin, end, image): Removed.
6269         (do_suppress): Take parameter.
6270         Handle modified syntax of `\O'.
6271         (token::next): Updated.
6272         (init_markup_requests): Removed.
6273         (main): Updated.
6275         * src/roff/troff/div.h: Add declaration for begin_page().
6277         * tmac/color-html.tmac: Removed.  Contents moved to...
6278         * tmac/html.tmac: Here.  Set background color.
6279         * tmac/color.tmac: Removed.  Contents moved to...
6280         * tmac/ps.tmac: Here.
6281         * tmac/www.tmac: Remove the title command when generating images
6282         for html.
6283         (NO_AUTO_RULE): New macro.
6284         (HTML_DO_IMAGE): Use revised `\O' escapes.
6285         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
6287 2001-12-02  Werner LEMBERG  <wl@gnu.org>
6289         * tmac/groff_mdoc.man: Fix typo.
6291 2001-12-01  Colin Watson  <cjwatson@debian.org>
6293         * man/roff.man: Fix typo.
6295 2001-11-29  Werner LEMBERG  <wl@gnu.org>
6297         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
6298         stdlib.h.
6300         * src/roff/troff/input.cc (read_draw_node): Emit error message if
6301         more than one argument to \D'f ...'.
6303         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
6305 2001-11-28  Werner LEMBERG  <wl@gnu.org>
6307         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
6308         loaded only once.
6310         * tmac/groff_man.man: Minor cosmetic fix.
6312 2001-11-27  Werner LEMBERG  <wl@gnu.org>
6314         * src/roff/groff/groff.man, tmac/groff_tmac.man,
6315         tmac/groff_www.man: s/mwww/www/.
6317 2001-11-26  Werner LEMBERG  <wl@gnu.org>
6319         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
6320         * configure: Regenerated.
6321         * win32-diffs: Updated.
6323         * tmac/groff_mwww.tmac: Renamed to ...
6324         * tmac/groff_www.tmac: This.
6325         * tmac/mwww.tmac: Removed.
6326         * NEWS, tmac/Makefile.sub: Updated.
6328 2001-11-21  Werner LEMBERG  <wl@gnu.org>
6330         * doc/groff.texinfo: Improve documentation of the `\v' escape.
6331         Fix explanation of `\D' and `rt'.
6333 2001-11-20  Werner LEMBERG  <wl@gnu.org>
6335         * tmac/an-old.tmac (an-header): Set header length equal to page
6336         width.
6337         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
6338         minor fixes.
6339         * NEWS: Small fix.
6341 2001-11-19  Werner LEMBERG  <wl@gnu.org>
6343         * NEWS, man/Makefile.sub: Updated.
6345 2001-11-19  Bernd Warken  <bwarken@mayn.de>
6347         * man/ditroff.man: New file.
6349 2001-11-17  Werner LEMBERG  <wl@gnu.org>
6351         * man/groff_differences.man: Renamed to ...
6352         * man/groff_diff.man: This.  Updated.
6353         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
6355         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
6356         * src/preproc/html/pushback.cc: This.  Updated.
6357         * src/preproc/html/pushbackbuffer.h: Renamed to ...
6358         * src/preproc/html/pushback.h: This.
6359         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
6360         Updated.
6362         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
6363         * src/libs/libgroff/htmlhint.cc: This.
6364         * src/libs/libgroff/Makefile.sub: Updated.
6366         * tmac/an-old.tmac (an-end): Fix page length.
6368 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6370         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
6371         * man/Makefile.sub: Include groff_differences.man.
6372         * VERSION: Set to 1.18.
6373         * REVISION: Set to 0.
6375 2001-11-16  Bernd Warken  <bwarken@mayn.de>
6377         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
6378         the second dot (or ending macro name) to end a macro.
6379         * doc/groff.texinfo: Doc fix.
6381 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
6383         * tmac/doc-common (doc-header): Handle very long document titles
6384         better.
6386 2001-11-16  Werner LEMBERG  <wl@gnu.org>
6388         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
6390 2001-11-15  Werner LEMBERG  <wl@gnu.org>
6392         * src/roff/troff/troff.man: Revised and split into troff.man and...
6393         * man/groff_differences.man: New file.
6394         * NEWS: Updated.
6396 2001-11-13  Werner LEMBERG  <wl@gnu.org>
6398         * tmac/an-old.tmac (TS, TE): New macros for table support.
6400 2001-11-12  Werner LEMBERG  <wl@gnu.org>
6402         * src/include/lib.h: Provide a fix for emx to not include
6403         groff-getopt.h.
6405 2001-10-27  Werner LEMBERG  <wl@gnu.org>
6407         * src/roff/troff/input.cc (substring_macro): Fix computation of
6408         boundary values.
6410 2001-10-20  Werner LEMBERG  <wl@gnu.org>
6412         Undo change from 2001-08-28.
6414         * src/roff/troff/input.cc (have_input): New global variable.
6415         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
6416         in compatibility mode.
6417         (process_input_stack): Use it.
6419 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
6421         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
6422         being handled as end-of-sentence characters,
6424 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
6426         * src/roff/troff/input.cc (file_iterator): New members
6427         `suppress_newline_flag' and `seen_escape'.
6428         (file_iterator::next_file): Updated.
6429         (file_iterator::fill): Use it.
6430         (string_iterator): New member `suppress_newline_flag'.
6431         (string_iterator::fill): Set it.
6432         (get_color_element): Use MAX_COLOR_VAL.
6433         * src/roff/troff/env.cc (environment): Remove `need_eol'.
6434         (no_fill): Don't set `env->ignore_next_eol'.
6435         (environment::newline): Handle `eol' tag properly.
6436         Emit `eol.ce'.
6437         (environment::add_html_tag): Set `env->ignore_next_eol'.
6438         Don't handle `.ce'.
6439         * src/roff/troff/env.h (environment): Updated.
6441         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
6442         member function.
6443         (html_printer::outstanding_eol): New member function.
6444         (html_printer::do_title): Use new functions.
6445         (html_printer::troff_tag): Test `id_eol_ce'.
6447 2001-10-10  Werner LEMBERG  <wl@gnu.org>
6449         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
6450         files work with -C also.
6452 2001-10-05  Werner LEMBERG  <wl@gnu.org>
6454         * doc/pic.ms: Minor fix.
6455         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
6456         as a valid command line switch.
6457         * src/devices/grohtml/post-html.cc (main): Ditto.
6458         (usage): Updated.
6459         * src/devices/grohtml/grohtml.man: Updated.
6460         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
6462 2001-10-04  Werner LEMBERG  <wl@gnu.org>
6464         Implementing color support in troff, pic, grops, and grohtml.  These
6465         changes are based on a major patch provided by Gaius Mulley
6466         <gaius@glam.ac.uk>.
6468         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
6469         definitions with both hex values and fractions.
6471         New escapes: \m and \M for drawing and background color,
6472         respectively.  This corresponds to the troff output commands `m'
6473         and `DF'.
6475         groff and troff accept command line switch `-c' to disable color
6476         output (which is automatically disabled in compatibility mode).
6478         New scaling indicator `f' for fractions (1f = 65536u).
6480         New conditional operator `m' to test for defined colors with `if'
6481         and `ie'.
6483         New keywords `color' (or `colour', `colored', `coloured'), `outline'
6484         (or `outlined'), and `shaded' added to pic.
6486         * src/include/color.h: New file.
6487         * src/include/driver.h: Include it.
6488         * src/include/printer.h: Include color.h.
6489         (environment): New members `col' and `fill'.
6490         (printer): Remove `adjust_arc_center' member function.
6491         * src/include/Makefile.sub: Updated.
6493         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
6494         `env.fill'.
6495         Handle `m' and `DF' troff commands.
6496         * src/libs/libgroff/color.cc: New file.
6497         * src/libs/libgroff/Makefile.sub: Updated.
6499         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
6500         (stop): Removed.
6501         (createImage): Fix computation of `y2'.
6502         Use `pnmcrop' also.
6503         (buffer::write_file_html): Remove calls to `stop'.
6505         * src/preproc/pic/common.h (common_output): New abstract function
6506         members `set_color', `reset_color', `get_last_filled', and
6507         `get_outline_color'.
6508         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
6509         (object_spec): Add members `shaded' and `outlined'.
6510         * src/preproc/pic/output.h (output): `command' is now abstract.
6511         New function members `set_color', `reset_color', `get_last_filled',
6512         and `get_outline_color'.
6513         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
6514         `outline[d]', and `shaded'.
6515         * src/preproc/pic/object.cc (output::command): Removed.
6516         (output::set_location): Moved to output.h.
6517         (graphic_object): Add protected members `outline_color' and
6518         `color_fill'.
6519         Add member functions `set_outline_color', `get_outline_color', and
6520         `set_fill_color'.
6521         (closed_object): Add member function `set_fill_color'.
6522         Add member `color_fill'.
6523         (graphic_object::print_text): Use `out->set_color' and
6524         `out->reset_color'.
6525         (box_object::print, ellipse_object::print, circle_object::print,
6526         line_object::print, spline_object::print, arc_object::print): Ditto.
6527         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
6528         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
6529         `SHADED', making them `%left'.
6530         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
6531         * src/preproc/pic/tex.cc (tex_output): New dummy function members
6532         `set_color', `reset_color', `get_last_filled', and
6533         `get_outline_color'.
6534         * src/preproc/pic/troff.cc (simple_output): New abstract function
6535         members `set_color', `reset_color', and `get_last_filled'.
6536         (simple_output::polygon, simple_output::circle,
6537         simple_output::ellipse): Use `get_last_filled'.
6538         (troff_output): New members `last_filled' and `last_outlined'.
6539         New function members `set_color', `reset_color', `get_last_filled',
6540         and `get_outline_color'.
6541         (troff_output::finish_picture): Use `reset_color'.
6542         (troff_output::set_fill): Test `last_filled'.
6543         * src/preproc/pic/pic.man: Updated.
6545         * src/roff/groff/groff.cc (main): Implement `-c' option.
6546         (synopsis, help): Updated.
6547         src/roff/groff/groff.man: Updated.
6549         * src/roff/troff/troff.h: Include color.h.
6550         (warning_type): Add WARN_COLOR.
6551         * src/roff/troff/env.h (environment): New members
6552         `{cur,prev}_{glyph,fill}_color'.
6553         New member functions `get_{prev_,}{glyph,fill}_color'.
6554         * src/roff/troff/env.cc: Initialize and implement them.
6555         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
6556         Replace `NULL' with `0' everywhere for consistency.
6557         (lookup_color, default_black, do_glyph_color, do_fill_color,
6558         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
6559         define_color): New functions.
6560         (token::next): Implement \M and \m escapes.
6561         (do_if_request): Implement `m' operator.
6562         (usage): Updated.
6563         (main): Implement `-c' option.
6564         (init_markup_requests): Add `defcolor' request.
6565         (warning_table): Add `color' warning.
6566         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
6567         classes.
6568         * src/roff/troff/node.cc (troff_output_file): New members
6569         `current_{page,glyph}color'.  New member functions `put_hex',
6570         `glyph_color', and `fill_color'.
6571         (glyph_color_node::*, fill_color_node::*): Implement it.
6572         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
6573         (parse_term): Add support for `f'.
6574         * src/roff/troff/troff.man: Updated.
6576         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
6577         entry for `F'.
6578         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
6579         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
6581         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
6582         (tag_definition): Use `void *' for arg1.
6583         (html_text): New member functions `do_color' and `done_color'.
6584         Use `void *' for second parameter of `push_para' member function.
6585         New `push_para' member function with a single parameter.
6586         Use `char *' for parameter of `issue_table_begin' member funtion.
6587         New `issue_color_begin' member function.
6588         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
6589         COLOR_TAG.
6590         (html_text::issue_color_begin): New function.
6591         (html_text::issue_table_begin): Use `char *' for parameter.
6592         (html_text::start_tag, html_text::shutdown,
6593         html_text::check_emit_text): Updated.
6594         (html_text::push_para): Use `void *' for second parameter.
6595         Add same function with only one parameter.
6596         (html_text::do_*): Updated.
6597         (html_text::do_color, html_text::done_color): New functions.
6598         * src/devices/grohtml/post-html.cc (style): New member `col'.
6599         Mew member `style' with 6 parameters.
6600         (style::style, style::operator==): Updated.
6601         (html_printer::do_font): Use it.
6602         (html_printer::draw): Add dummy entry for `F'.
6603         (html_printer::set_char): Updated.
6604         * src/devices/grohtml/grohtml.man: Updated.
6606         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
6607         trailing zeroes removed.
6608         (ps_printer): New members `sbuf_color', `fill_color', and
6609         `output_color'.
6610         Removed member `fill'.
6611         New member function `set_color'.
6612         (ps_printer::ps_printer, ps_printer::set_char): Updated.
6613         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
6614         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
6616         * tmac/color-html.tmac, tmac/color.tmac: New files.
6617         * tmac/troffrc: Include them.
6618         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
6619         * tmac/Makefile.sub: Updated.
6621         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
6622         man/groff.man: Updated.
6623         * font/devps/prologue.ps: Define FC and CO functions.
6625 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
6627         Fix incorrect cropping of images and incorrect handling of special
6628         characters.  Fix handling of file names in \O.
6630         * src/include/geometry.h: New file.
6631         * src/libs/libgroff/geometry.cc: New file.
6632         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
6633         to `geometry.cc'.
6634         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
6635         initial spaces.
6636         (do_suppress): Updated.
6637         * src/roff/troff/node.cc: Include geometry.h.
6638         (troff_output_file::flush_tbuf): Fixed parameters to
6639         `check_output_limits'.
6640         (troff_output_file::check_charinfo): Ditto.
6641         (troff_output_file::determine_line_limits): Add support for `Da'
6642         and `Dl' commands.
6644         * src/devices/grohtml/post-html.cc (str_translate_to_html):
6645         Add new parameter `is_special' to decode special characters from
6646         escape sequences.
6647         (html_printer::do_title, html_printer::do_heading,
6648         html_printer::do_indentedparagraph,
6649         html_printer::translate_to_html, html_printer::special): Updated.
6651 2001-10-03  Werner LEMBERG  <wl@gnu.org>
6653         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
6654         Fix entry for config.h.
6655         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
6656         * tmac/troffrc: Translate nonbreakable space character to `\~'.
6657         * src/preproc/eqn/eqn.man: Document -d command line option.
6659 2001-09-27  Werner LEMBERG  <wl@gnu.org>
6661         * man/groff.man: Use
6663           .ev xxx
6664           .na
6665           .nh
6666           <table>
6667           .ev
6669         instead of the old code (`.ad .hy' after the table) to suppress
6670         incorrect hyphenation for grohtml output.
6672 2001-09-22  Werner LEMBERG  <wl@gnu.org>
6674         * man/groff_font.man, man/groff_out.man: Minor fixes.
6676 2001-09-20  Werner LEMBERG  <wl@gnu.org>
6678         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
6679         Arnold Robbins <arnold@skeeve.com>).
6681 2001-09-09  Werner LEMBERG  <wl@gnu.org>
6683         * configure: Regenerated with autoconf 2.52.
6685         * doc/groff.texinfo: Complete revision of indices.
6687 2001-09-07  Werner LEMBERG  <wl@gnu.org>
6689         * doc/Makefile (clean): Updated to delete all indices.
6691 2001-09-05  Werner LEMBERG  <wl@gnu.org>
6693         * src/roff/troff/troff.man: Remove superfluous line.
6695         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
6696         given on the command line (or rather, if only the default warnings
6697         are set).
6699 2001-09-03  Werner LEMBERG  <wl@gnu.org>
6701         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
6702         use .ne for TTY devices.
6704 2001-08-31  Werner LEMBERG  <wl@gnu.org>
6706         * src/roff/troff/token.h, src/roff/troff/input.cc:
6707         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
6709 2001-08-28  Werner LEMBERG  <wl@gnu.org>
6711         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
6712         * src/roff/troff/input.cc (token::next): Return
6713         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
6714         compatibility mode.
6715         (token::description): Updated.
6716         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
6717         (token::add_to_node_list, token::process): Ignore
6718         TOKEN_TRANSPARENT_ESCAPE.
6720 2001-08-27  Werner LEMBERG  <wl@gnu.org>
6722         * tmac/an-old.tmac: Fix `S' string.
6724 2001-08-26  Werner LEMBERG  <wl@gnu.org>
6726         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
6728 2001-08-25  Werner LEMBERG  <wl@gnu.org>
6730         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
6731         backslashes).
6732         Many other minor fixes.
6734         * configure.ac: Add message at end to inform how to compile
6735         xditview.
6736         * configure: Regenerated.
6738 2001-08-24  Werner LEMBERG  <wl@gnu.org>
6740         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
6741         Updated to latest version of libc.
6743 2001-08-23  Werner LEMBERG  <wl@gnu.org>
6745         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
6746         Autoconf 2.50 and newer can handle this.
6747         * configure: Regenerated.
6749 2001-08-21  Werner LEMBERG  <wl@gnu.org>
6751         * doc/pic.ms: Fix typo.
6752         * src/preproc/tbl/tbl.man: Document case of global options.
6754 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
6756         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
6757         handling of `CR' font.
6759 2001-08-20  Werner LEMBERG  <wl@gnu.org>
6761         Use a config.h file.
6763         * src/include/lib.h: Include config.h.
6764         * All C files: Ditto (if necessary).
6765         * All C++ source and header files: Include lib.h first (if
6766         necessary).
6768         * src/include/config.hin: New file (autogenerated by autoheader).
6769         * stamp-h.in: New file.
6770         * configure.ac: Updated.
6771         * aclocal.m4: Add third parameters to AC_DEFINE macros.
6772         (GROFF_ARRAY_DELETE): Simplified.
6773         * Makefile.sub (DISTCLEANFILES): Updated.
6774         Added targets for remaking config.status, config.hin, config.h,
6775         stamp-h.in, and stamp-h.
6776         * configure: Regenerated.
6778 2001-08-19  Werner LEMBERG  <wl@gnu.org>
6780         * NEWS: Updated.
6782 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
6784         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
6785         (do_sprintf): Use snprintf().
6787 2001-08-18  Werner LEMBERG  <wl@gnu.org>
6789         * src/libs/snprintf/*: Added an snprintf module written by Mark
6790         Martinec.
6791         * src/libs/libgroff/Makefile.sub: Updated.
6792         * configure.ac: Add test for snprintf().
6793         * Makefile.in: Updated.
6794         * configure: Regenerated.
6796         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
6797         uses snprintf().
6799 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
6801         * tmac/doc.tmac (Ex): New implementation.
6802         * tmac/doc-common, tmac/groff_tmac.man: Updated.
6804 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
6806         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
6807         argument.
6808         * tmac/groff_tmac.man: Updated.
6810 2001-08-13  Werner LEMBERG  <wl@gnu.org>
6812         * src/preproc/tbl/tbl.man: Minor documentation update.
6814 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6816         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6817         * configure.ac: Add declaration test for gettimeofday().
6818         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6819         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6820         * configure: Regenerated.
6822 2001-08-11  Werner LEMBERG  <wl@gnu.org>
6824         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6825         * configure.ac: Add declaration test for strcasecmp().
6826         * Makefile.in: Updated.
6827         * configure: Regenerated.
6828         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6829         this is necessary because groff's mkstemp.cc is C++.
6830         Add declaration conditionally for strcasecmp().
6832 2001-08-10  Werner LEMBERG  <wl@gnu.org>
6834         Integrated pic2graph, contributed by Eric S. Raymond.
6836         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6837         files.
6838         * Makefile.in, NEWS: Updated.
6840         * src/preproc/tbl/tbl.man: Revised.
6842 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
6844         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6846 2001-08-09  Werner LEMBERG  <wl@gnu.org>
6848         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6849         requests.
6851 2001-08-08  Paul Eggert  <eggert@twinsun.com>
6853         * Makefile.sub (configure): Depend on configure.ac, not
6854         configure.in.
6855         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6857 2001-08-07  Werner LEMBERG  <wl@gnu.org>
6859         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6860         fixes.
6862 2001-08-06  Werner LEMBERG  <wl@gnu.org>
6864         * src/roff/troff/troff.man: Improve documentation of -E option.
6866 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6868         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6869         Simplified.
6871 2001-07-27  Werner LEMBERG  <wl@gnu.org>
6873         * src/preproc/refer/refer.cc: Undo last change.
6874         * src/devices/grohtml/post-html.cc: Ditto.
6876 2001-07-26  Werner LEMBERG  <wl@gnu.org>
6878         * src/preproc/refer/refer.cc: Include `lib.h'.
6879         * src/devices/grohtml/post-html.cc: Ditto.
6881 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
6883         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6884         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6885         * Makefile.in: Comment updated.
6886         * configure: Regenerated.
6888 2001-07-25  Werner LEMBERG  <wl@gnu.org>
6890         * src/preproc/pic/pic.cc: Removed.
6891         * src/preproc/pic/pic_tab.h: Removed.
6892         * src/preproc/refer/label.cc: Removed.
6894         * doc/Makefile (.ms.html): Don't use a file name extension in
6895         argument to grohtml's -I option.
6896         * Makefile.in (dist): Remove CVS directories.
6897         Call `distfiles' target.
6899         * src/devices/grohtml/grohtml.man: Add information about valid
6900         versions of pnmtopng.
6901         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6902         name instead of number.
6904 2001-07-24  Werner LEMBERG  <wl@gnu.org>
6906         * doc/groff.texinfo: Minor fixes.
6908 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
6910         * doc/Makefile (.ms.html): Put image files into a subdirectory.
6911         (clean): Updated.
6913 2001-07-20  Werner LEMBERG  <wl@gnu.org>
6915         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6916         * src/libs/libgroff/mkstemp.cc: New file.
6917         * src/libs/libgroff/mksdir.cc: New file.
6918         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6919         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6920         * src/libs/libgroff/Makefile.sub: Updated.
6921         * src/include/lib.h: Add mksdir() prototype.
6922         * src/include/posix.h: Define S_IXUSR if not yet defined.
6924         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6925         (createAllPages): Use mksdir() instead of current code.
6926         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6927         (main): [!HAVE_MKSTEMP]: Removed.
6929         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6930         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6931         macros.
6932         * configure.ac: Add tests for stdint.h, sys/time.h, and
6933         gettimeofday().
6934         Call new GROFF_xxx macros.
6935         * configure: Regenerated.
6936         * Makefile.in: Comments updated.
6938 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
6940         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6941         instead of current code.
6942         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6943         * src/roff/groff/groff.cc (possible_command::insert_args): New
6944         function.
6945         (main): Use it for predriver handling instead of insert_arg().
6947 2001-07-19  Werner LEMBERG  <wl@gnu.org>
6949         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6950         groff also.
6952         * src/include/posix.h: Define S_IWUSR if not yet defined.
6954 2001-07-18  Werner LEMBERG  <wl@gnu.org>
6956         * NEWS: Updated.
6958 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
6960         * tmac/groff_mdoc.man: Document new -width and -column syntax.
6961         Some other minor fixes.
6962         * tmac/an-old.tmac: Add `AT' and `UC' macros.
6964 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
6966         Replace call to `troff' with `groff -Z' to make it aware of
6967         GROFF_BIN_PATH.
6969         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6970         (troff_command, command_prefix): Removed.
6971         (alterDeviceTo): Use groff.
6972         (addZ): New function.
6973         (char_buffer::do_html): Use it.
6974         (scanArguments): Use TROFF_COMMAND.
6975         (findPrefix): Removed.
6976         (main): Updated.
6977         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6979 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
6981         * doc/pic.ms: Documentation fixes.
6983 2001-07-17  Werner LEMBERG  <wl@gnu.org>
6985         Replace atexit() with global destructor.
6987         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6988         (xtmpfile_list_init): New global structure to deallocate
6989         xtmpfile_list on exit.  Its destructor inherits most code from
6990         remove_tmp_files().
6991         (remove_tmp_files): Deleted.
6992         (add_tmp_file): Simplified.
6994 2001-07-16  Werner LEMBERG  <wl@gnu.org>
6996         Replace strdup() with strsave().
6998         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6999         (set_papersize): Use strsave() and a_delete.
7000         (main): Use strsave().
7001         * src/preproc/html/pre-html.cc (make_message, createAllPages,
7002         removeAllPages): Use strsave() and a_delete.
7004         * configure.ac: Remove test for strdup.
7005         * Makefile.in: Comment updated.
7006         * configure: Regenerated.
7008 2001-07-15  Werner LEMBERG  <wl@gnu.org>
7010         * win32-diffs: Updated.
7012 2001-07-14  Werner LEMBERG  <wl@gnu.org>
7014         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7015         removing the old one.
7016         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7018 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7020         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7022 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7024         Merge -xwidth into -width.  Add -xwidth functionality to -column
7025         also.
7027         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7028         avoid warning.
7029         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7030         string immediately following a leading dot starts with a valid mdoc
7031         argument.
7032         Add similar code to the -column branch.
7033         (doc-Bl-usage): Updated.
7034         * groff_mdoc.man: s/-xwidth/-width/.
7036 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7038         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7039         running into centered or non-formatted text.
7041 2001-07-11  Werner LEMBERG  <wl@gnu.org>
7043         Introduce short and long prefixes to have the selection at run-time
7044         whether there is a 8+3 limit for names of temporary files.
7046         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7047         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7048         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7049         variables.
7050         (temp_init): New global structure to initialize above three
7051         variables.
7052         (xtmptemplate): Use two parameters for long and short prefix.
7053         Simplify code use above three variables.
7054         (xtmpfile): Use long and short prefixes as parameters.
7055         * src/include/lib.h: Updated.
7057         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7058         with ...
7059         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7060         (createAllPages, makeTempFiles): Updated.
7062 2001-07-09  Werner LEMBERG  <wl@gnu.org>
7064         * REVISION: Increased to 3.
7066 Version 1.17.2 released
7067 =======================
7069 2001-07-07  Werner LEMBERG  <wl@gnu.org>
7071         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7072         to size_t.
7074 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7076         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7077         Fix synopsis.
7078         * tmac/groff_mdoc.man: Fix synopsis.
7080 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
7082         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7083         Restore `doc-Pa-font'.
7085 2001-07-04  Werner LEMBERG  <wl@gnu.org>
7087         * src/utils/indxbib/dirnamemax.c: Moved to ...
7088         * src/libs/libgroff/maxfilename.cc: Here.
7089         s/dir_name_max/file_name_max/.
7090         Add copyright.
7091         * src/include/lib.h: Add file_name_max.
7092         * src/utils/indxbib/indxbib.cc: Updated.
7093         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7094         Updated.
7096         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7097         as empty.
7098         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7100         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7101         REGION_TEMPLATE): New macros.
7102         (createAllPages, makeTempFiles): Use them.
7103         Include `nonposix.h'.
7104         (html_system): New function.
7105         (createAllPages, createImage): Use it.
7106         Use EXE_EXT.
7108         * tmac/www.tmac: Fix typos.
7110 2001-07-03  Werner LEMBERG  <wl@gnu.org>
7112         * tmac/www.tmac: Disable hyphenation in normal text only if output
7113         device is html.
7114         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
7115         * tmac/groff_mwww.man, NEWS: Updated.
7117 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
7119         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
7120         image location.
7122 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
7124         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
7125         doc-display-ps-stack): Implement font and font size stack for
7126         displays.
7128 2001-07-02  Werner LEMBERG  <wl@gnu.org>
7130         * REVISION: Increased to 2.
7131         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
7133         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
7134         beginning of a line.
7135         * src/groff/grog/grog.sh: Ditto.
7137 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
7139         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
7140         make it portable.
7142 2001-06-27  Werner LEMBERG  <wl@gnu.org>
7144         Fix problems with preprocessor string for `man' program.
7146         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
7147         Updated/added copyright.
7148         Moved Emacs's local variable to identify nroff mode to the end of
7149         the file; add local variable if missing.
7151 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
7153         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
7154         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
7155         * configure: Regenerated.
7157 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
7159         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
7160         * configure: Regenerated.
7162 2001-06-24  Werner LEMBERG  <wl@gnu.org>
7164         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
7165         but www.tmac.
7166         * doc/pic.ms: Fix typos.
7168 Version 1.17.1 released
7169 =======================
7171 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
7173         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
7174         * configure: Updated.
7176 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
7178         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
7179         image names.
7180         * src/roff/troff/dic.cc (blank_line): Add html tag.
7182 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
7184         * src/roff/troff/input.cc (do_suppress): Fix typo.
7186 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
7188         Added two new options (-D and -I) to specify image names and a
7189         subdirectory to place the images in.
7191         Change syntax from \\Ox to \\O[x].
7193         * src/devices/grohtml/post-html.cc (main): Add options.
7194         (usage): Updated.
7195         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
7196         Use `NULL' instead of `0' for null string pointers.
7197         (MAX_RETRIES): New macro.
7198         (lengthOfintToStr, intToStr, make_message): New functions.
7199         (makeFileName): Make function static.
7200         Implement -D and -I options.
7201         (checkImageDir): New function.
7202         (write_end_image, write_start_image): Use new syntax of \O.
7203         (createAllPages, removeAllPages): Implement -D and -I options.  Use
7204         make_message().
7205         (createImage): Use make_message().
7206         (addps4html): Add guard for malloc().
7207         (usage, scanArguments): Updated.
7208         (makeTempFiles): Use mkstemp().
7209         (removeTempFiles): Use unlink().
7210         (findPrefix): Add guard for malloc().
7211         (main): Updated.
7212         * src/roff/troff/input.cc (get_delim_file_name): New function to
7213         parse \O.
7214         (do_suppress): Updated to parse new syntax.
7215         * src/devices/grohtml/grohtml.man: Updated.
7216         * tmac/www.tmac: Updated to new syntax.
7218         * NEWS: Updated.
7220 2001-06-15  Werner LEMBERG  <wl@gnu.org>
7222         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
7224         * src/devices/grohtml/grohtml.man: Minor improvements.
7226 2001-06-14  Werner LEMBERG  <wl@gnu.org>
7228         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
7230 2001-06-11  Werner LEMBERG  <wl@gnu.org>
7232         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
7233         line to specify preprocessor options -- mandb 2.3.1 only recognizes
7234         the former.
7235         * src/preproc/grn/grn.man: Add proper '\" string.
7237 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
7239         * test-groff: Don't use PATH but GROFF_BIN_PATH.
7241 2001-06-08  Werner LEMBERG  <wl@gnu.org>
7243         Updated to autoconf 2.50.
7245         * configure.in: Renamed to...
7246         * configure.ac: This.
7247         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
7248         (GROFF_OS390): Updated.
7249         * configure: Regenerated.
7251 2001-05-18  Werner LEMBERG  <wl@gnu.org>
7253         * src/roff/troff/env.c, src/roff/troff/env.h,
7254         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
7255         from 2000-12-21.
7257 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
7259         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
7261 2001-05-16  Werner LEMBERG  <wl@gnu.org>
7263         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
7264         less than or equal zero; set it to 1 then.
7265         * src/roff/troff/node.h (node::node): Initialize `last'.
7267 2001-05-08  Werner LEMBERG  <wl@gnu.org>
7269         * tmac/an-old.tmac: Make predefined strings work in compatibility
7270         mode.
7271         Add troff version guard.
7272         * tmac/doc.tmac: Simplify version guard.
7274 2001-05-07  Werner LEMBERG  <wl@gnu.org>
7276         The .ns and .rs requests are now honoured not only in the top-level
7277         but in all diversions (similar to UNIX troff).
7279         This change is based on a patch from Tadziu Hoffmann
7280         <hoffmann@usm.uni-muenchen.de>.
7282         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
7283         (top_level_diversion): Remove `no_space_mode' member.
7284         * src/roff/troff/div.cc (diversion::diversion,
7285         top_level_diversion::top_level_diversion): Updated.
7286         (macro_diversion::output): Reset `no_space_mode'.
7287         (no_space, restore_spacing): Use `curdiv' unconditionally.
7288         (space_request, blank_line): Check `curdiv->no_space_mode'.
7289         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
7290         `curdiv' unconditionally.
7291         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7292         Updated.
7294 2001-05-06  Werner LEMBERG  <wl@gnu.org>
7296         Added two new requests `de1' and `am1' which are similar to `de' and
7297         `am' with the difference that compatibility mode is saved on entry,
7298         switched off during macro execution, and restored on exit.
7300         * src/roff/troff/input.h: Added two new special characters
7301         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
7302         * src/roff/troff/input.cc (input_iterator): Added two member
7303         functions `save_compatible_flag' and `get_compatible_flag'.
7304         (input_stack): Ditto.
7305         (string_iterator): Ditto.  Also add private member
7306         `saved_compatible_flag'.
7307         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
7308         (calling_mode): New enumeration.
7309         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
7310         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
7311         (define_macro, define_indirect_macro, append_macro, ignore): Use
7312         `calling_mode'.
7313         (define_nocomp_macro, append_nocomp_macro): New functions.
7314         (init_input_requests): Updated.
7315         (do_request): Rename local variable `saved_compatible_flag' to
7316         `old_compatible_flag'.
7317         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7319         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
7320         public and trap-invoked macros.  As a consequence, the man macros
7321         work in compatibility mode also.
7323 2001-05-06  Solar Designer  <solar@openwall.com>
7325         * Makefile.in: Use $(mandir).
7327 2001-05-06  Alexios Zavras  <zvr@pobox.com>
7329         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
7331 2001-05-05  Werner LEMBERG  <wl@gnu.org>
7333         Added `.ns' number register: Returns 1 in no-space mode (if in
7334         top-level diversion), 0 otherwise.
7336         * src/roff/troff/div.cc (no_space_mode_reg): New class.
7337         (init_div_requests): Updated.
7338         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7339         Document it.
7341 2001-05-04  Werner LEMBERG  <wl@gnu.org>
7343         * src/roff/nroff/nroff.man: Improved documentation (especially
7344         locales).
7346 2001-05-02  Werner LEMBERG  <wl@gnu.org>
7348         Added `brp' request: This is \p as a request.
7350         * src/roff/troff/env.cc (environment::do_break): Add parameter
7351         `spread'.
7352         (do_break_request): New function (was `break_request').
7353         (break_request): Calls `do_break_request'.
7354         (break_spread_request): New; calls `do_break_request'.
7355         (init_env_requests): Updated.
7356         * src/roff/troff/env.h: Updated.
7357         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7359         * REVISION: Increased to 1.
7360         * win32-diffs: Updated.
7362 2001-05-01  Werner LEMBERG  <wl@gnu.org>
7364         * tmac/an-old.tmac: Fix minor compatibility mode issue.
7365         * tmac/troffrc-end: Make it really work in compatibility mode.
7367 2001-04-27  Werner LEMBERG  <wl@gnu.org>
7369         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
7370         stdlib.h.
7372 2001-04-22  Werner LEMBERG  <wl@gnu.org>
7374         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
7375         latest versions from glibc CVS archive.
7377         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
7378         <c.zeelenberg@hccnet.nl>.
7380 2001-04-21  Werner LEMBERG  <wl@gnu.org>
7382         * configure.in: Move check for mkstemp() to...
7383         * aclocal.m4 (GROFF_MKSTEMP): This new function.
7384         * configure: Regenerated.
7386         * src/include/groff-getopt.h: Don't use variable names in
7387         declarations.
7389         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
7390         * src/devices/grohtml/Makefile.sub,
7391         src/devices/grohtml/post-html.cc: Updated.
7393 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
7395         * configure.in: Add special check for mkstemp().
7396         * src/libs/libgroff/tmpfile.cc: Use it.
7397         * src/utils/indxbib/indxbib.cc: Ditto.
7398         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
7399         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
7400         `const'.
7402 2001-04-20  Bruce Lilly  <blilly@erols.com>
7404         `Version_string' as C++ object was not visible to linker from C
7405         object files.
7406         Add `const' to `Version_string'.
7408         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
7409         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
7410         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
7411         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
7412         (scanArguments), src/preproc/refer/refer.cc (main),
7413         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
7414         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
7415         (main), src/devices/grohtml/post-html.cc (main),
7416         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
7417         (main), src/utils/hpftodit/hpftodit.cc (main),
7418         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
7419         (main), src/utils/lkbib/lkbib.cc (main),
7420         src/utils/addftinfo/addftinfo.cc (main): Implement it.
7422         * src/roff/groff/pipeline.c: Add _UWIN.
7423         * src/include/nonposix.h: Ditto.
7425 2001-04-20  Werner LEMBERG  <wl@gnu.org>
7427         * src/include/lib.h: Use HAVE_STRERROR.
7428         * src/roff/groff/pipeline.c: Ditto.
7429         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
7430         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
7431         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
7432         * win32-diffs: Updated.
7433         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
7435 2001-04-19  Werner LEMBERG  <wl@gnu.org>
7437         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
7438         instead of hardwired `"troff"'.
7439         (char_buffer::read_file): Remove unused variables.
7440         (char_buffer::write_file_troff): Ditto.
7441         (char_buffer::write_file_html): Ditto.
7442         (generateImages): Ditto.
7443         (abs): Removed.
7444         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
7446         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
7448         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
7449         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
7450         index_search_item::search1): Ditto.
7451         * src/roff/troff/node.h (width_list): Reorder members.
7452         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
7453         (lookup_warning): Ditto.
7454         (prepend_string): Commented out.
7455         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
7456         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
7457         * src/preproc/tbl/main.cc (process_format): Ditto.
7458         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
7459         compiler warnings.
7460         * src/preproc/pic/pic.cc: Updated.
7461         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
7462         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
7463         * src/preproc/refer/command.cc (execute_command): Ditto.
7464         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
7465         * src/preproc/refer/token.cc (lookup_token): Ditto.
7466         * src/preproc/soelim/soelim.cc: Ditto.
7467         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
7468         (isHexDigit): Commented out.
7469         (pushBackBuffer::isString): Remove unused variable.
7470         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
7471         warning.
7472         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
7473         resource_manager::read_resource_arg, read_one_of, parse_extensions):
7474         Ditto.
7475         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
7476         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
7477         lookup_paper_size): Ditto.
7478         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
7479         (text_glob, element_list): Reorder members.
7480         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
7481         compiler warning.
7482         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
7483         return value to `void'.
7484         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
7485         of initializers.
7486         * src/devices/grohtml/html.h (simple_output::check_newline,
7487         simple_output::space_or_newline, simple_output::enable_newlines):
7488         Add return value.
7489         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
7490         compiler warnings.
7491         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
7492         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
7493         output_ligatures, output_charset, read_map): Ditto.
7494         * src/utils/lookbib/lookbib.cc (main): Ditto.
7495         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
7496         (do_file): Fix typo (`=' -> `==').
7497         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
7498         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
7500 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
7502         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
7503         Fix usage of GROFF_BIN_PATH.
7504         * src/roff/nroff/nroff.man: Updated.
7506 2001-04-18  Werner LEMBERG  <wl@gnu.org>
7508         * NEWS: Fixing typos.
7509         Updated.
7511 Version 1.17 released
7512 =====================
7514 2001-04-17  Werner LEMBERG  <wl@gnu.org>
7516         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
7517         directory, not in $(srcdir).
7519 2001-04-16  Werner LEMBERG  <wl@gnu.org>
7521         * doc/groff.texinfo: More info on conditionals.
7523 2001-04-15  Werner LEMBERG  <wl@gnu.org>
7525         * doc/groff.texinfo: Added some info about groff internals.
7527         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
7528         about missing special character only if the name is non-null.
7530 2001-04-14  Werner LEMBERG  <wl@gnu.org>
7532         Removing the grohtml-old device driver which is now obsolete.
7534         * src/devices/grohtml-old/*: Removed.
7535         * font/devhtml-old/*: Removed.
7536         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
7537         Remove comments.
7538         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
7539         * test-groff (PATH): Updated.
7540         * tmac/Makefile.sub (NORMALFILES): Updated.
7541         * tmac/an-old.tmac: Remove special code for html-old device.
7542         Replace `html-or-html-old' register with `an-html'.
7543         * tmac/eqnrc: Updated.
7544         * tmac/html-old.tmac: Removed.
7545         * tmac/troffrc, tmac/troffrc-end: Updated.
7546         * tmac/www.tmac: Remove special code for html-old device.
7547         Replace `html-or-html-old' register with `www-html'.
7549         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
7550         src/libs/libgroff/htmlindicate.cc (graphic_end),
7551         include/htmlindicate.h, src/preproc/grn/*.cc,
7552         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
7553         single argument for consistency with rest of source code.
7555         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
7557 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
7559         * src/roff/troff/troff.man: Fixing typos.
7561 2001-04-13  Werner LEMBERG  <wl@gnu.org>
7563         * doc/pic.ms: Fixing many font switches.
7564         * doc/groff.texinfo: Fixes, additions.
7565         * MORE.STUFF: Updated.
7567 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
7569         * src/devices/grohtml/grohtml.man: Updated manual page regarding
7570         simple anchor.
7571         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
7572         cropping of images.
7573         (removeTempFiles): New function to tidy up temporary files.
7574         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
7575         Many fixes to do with the new inline suppress node and image regions
7576         are much tighter.
7577         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
7578         (generate_img_src): New function.
7579         (html_printer::do_auto_image): Utilizes it.
7580         (do_heading, do_title): Include inline images within their contents.
7581         (html_printer::begin_page): Tidied up comments that are issued to
7582         the html output file.
7583         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
7584         than courier.
7585         (text_glob::is_br): New method used by do_heading.
7586         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
7587         equivalent diversion.
7588         * src/include/html-strings.h: Altered image tags to reflect the
7589         inline image node.
7590         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
7591         parameter.
7592         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
7593         it is already inside a pic image.  Only emit tags if the argument
7594         `-Tps:html' is present.
7595         * src/preproc/tbl/main.cc: Changes to reflect additional
7596         `html_end_suppress' parameter.
7597         * src/roff/troff/env.cc: Only emit eol tag if a node has been
7598         emitted since the last eol tag was written.
7599         * src/roff/troff/env.h: New boolean `emitted_node'.
7600         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
7601         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
7602         * src/roff/troff/node.cc (check_charinfo): New method. 
7603         (troff_output_file::determine_line_limits): Alterations to limit
7604         checking.
7605         * tmac/www.tmac: Changes to reflect new suppress nodes.
7606           
7607 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
7609         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
7610         Escape the html_glyph in the buffer.
7611         (str_translate_to_html): Output the unescaped escaped_char.
7612         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
7613         `frame=void', not `frame=none'.  Add `border=0'.
7615 2001-04-12  Werner LEMBERG  <wl@gnu.org>
7617         * PROBLEMS: Add some words on how to avoid wrapper macros.
7619 2001-04-11  Blake McBride  <blake@florida-software.com>
7621         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
7623 2001-04-11  Werner LEMBERG  <wl@gnu.org>
7625         * font/devlbp/Makefile.sub (CLEANADD): Set it.
7626         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
7627         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
7628         * Makefile.sub (DISTCLEANFILES): Here.
7630         * libs/libgroff/new.cc: Include `nonposix.h'.
7631         * win32-diffs: Updated.
7633 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
7635         Added skeleton macro for defunct macros.
7637         Updated documentation.
7639         When inside displays, an empty input line warning should be
7640         suppressed.  If another macro call is put inside a display,
7641         all subsequent empty lines found in that display caused a
7642         warning to be emitted.
7644         * tmac/doc.tmac (doc-defunct-macro): New macro.
7645         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
7646         (doc-restore-global-vars): Fixed typo.
7647         (doc-empty-line): Check the `doc-display-depth' register to
7648         determine whether we are inside display or not.
7650         * tmac/doc-common: Removed `Or' and `Sf' registers.
7651         Moved obsolete `Ds' macro to doc.tmac.
7653         * tmac/groff_mdoc.man: Bump document date.
7654         Document `.Vt' under ``Variable Types''.
7655         Removed documentation for obsolete `.Or' macro.
7657 2001-04-10  Werner LEMBERG  <wl@gnu.org>
7659         * NEWS: Updated.
7660         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
7662 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
7664         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
7665         (usage): Add stream argument. Don't exit.
7666         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
7667         Write --version output to stdout, not stderr.
7668         (usage): Add stream argument. Don't exit.
7669         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
7670         (usage): Add stream argument. Don't exit.
7671         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
7672         constants.
7673         (usage): Add stream argument. Don't exit.
7674         (main): Write --help output to stdout, not stderr.
7675         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
7676         (usage): Add stream argument. Don't exit.
7677         * src/devices/grops/ps.cc (main): Accept --help and --version.
7678         (usage): Add stream argument. Don't exit.
7679         * src/devices/grotty/tty.cc (main): Accept --help and --version.
7680         (usage): Add stream argument. Don't exit.
7681         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
7682         (main): Accept --help and --version.
7683         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
7684         (main): Accept --help and --version.
7685         * src/preproc/html/pre-html.cc (usage): Add stream argument.
7686         (scanArguments): Accept --help and --version.
7687         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
7688         (main): Accept --help and --version.
7689         * src/preproc/refer/refer.cc (main): Accept --help and --version.
7690         (usage): Add stream argument. Don't exit.
7691         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
7692         exit.
7693         (main): Accept --help and --version.
7694         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
7695         (main): Accept --help and --version.
7696         * src/roff/groff/groff.cc (main): Accept --help and --version.
7697         (synopsis): Add stream argument.
7698         (help): Write --help output to stdout, not stderr.
7699         (usage): Add stream argument. Don't exit.
7700         * src/roff/grog/grog.pl: Accept --help and --version.
7701         (help): New sub.
7702         * src/roff/grog/grog.sh: Accept --help and --version.
7703         * src/roff/nroff/nroff.sh: Accept --help and --version.
7704         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
7705         (usage): Add stream argument. Don't exit.
7706         (main): Accept --help and --version.
7707         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
7708         (usage): New function with stream argument, doesn't exit.
7709         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
7710         (usage): New function with stream argument, doesn't exit.
7711         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
7712         (usage): Add stream argument. Don't exit.
7713         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
7714         (main): Accept --help and --version.
7715         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
7716         exit.
7717         (main): Accept --help and --version.
7718         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
7719         (main): Accept --help and --version.
7720         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
7721         (usage): Add stream argument. Don't exit.
7723 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
7725         Fix indentation in SYNOPSIS.
7727         Updated to include changes of latest BSD mdoc version (basically,
7728         the only change is that `.Fn' and `.Fc' put a final semicolon after
7729         a function declaration in the SYNOPSIS section).
7731         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
7732         (doc-in-synopsis-section): New variable.  Updated all related
7733         functions.
7734         (doc-indent-synopsis-active): New register.
7735         (Nd, Fn, Fo): Use it.
7736         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
7737         `.Cd' with long argument line produces indented wrapped lines. 
7738         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
7739         undesirable line break to be output.
7740         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
7741         `.rs'.
7742         (Fn, Fc): Add final `;' to output.
7743         (doc-save-global-vars, doc-restore-global-vars): Updated.
7744         * tmac/doc-common: Remove `Ex' register.
7745         Updated.
7746         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
7747         copyright.
7749 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7751         * tmac/doc.tmac (Cd): Simplify code.
7752         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
7754 2001-04-06  Werner LEMBERG  <wl@gnu.org>
7756         Implement continuous underlining for nroff mode.  To do that, a new
7757         request in the ditroff language has been added: `x u N' (N is 0
7758         or 1).
7760         \X and \Y are now transparent to end-of-sentence recognition.
7762         * src/include/printer.h (printer): Add `type' parameter to `special'
7763         method.
7764         * src/libs/libdriver/printer.cc (printer::special): Updated.
7765         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
7767         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
7768         specials of type `p'.
7769         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
7770         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
7771         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
7772         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
7773         (glyph::order): New method.
7774         (tty_printer::add_char): Use it.
7775         (tty_printer::special): New method.
7776         (tty_printer::end_page): Implement it.
7778         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
7779         * src/roff/troff/node.cc (special_node::special_node): Add parameter
7780         to set `no_init_string'.
7781         (special_node::tprint_start): Use it.
7782         (special_node::same, special_node::copy): Updated.
7783         (special_node::ends_sentence): New method.
7784         (troff_output_file::start_special): Add parameter to include
7785         inititialization of special conditionally.
7787         * src/roff/troff/env.h (environment): New member `underline_spaces'.
7788         * src/roff/troff/env.cc (do_underline_special): New function.
7789         (environment::set_font): Use it.
7790         (do_underline): Use it.  This was `underline()'.
7791         (underline): Call `do_underline()'.
7792         (continuous_underline): New function which calls `do_underline()'.
7793         (environment::newline): Use `do_underline_special()'.
7794         (init_env_requests): Updated.
7796         * NEWS, man/troff_out.man: Updated.
7798 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
7800         * font/devutf8/R.proto: Fix code of 'shc'.
7802 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
7804         Many fixes.  Diag lists can now be nested also; additionally,
7805         `-compact' and `-offset' are supported.
7807         * tmac/doc.tmac (doc-have-indent): Replaced with ...
7808         (doc-list-have-indent-stackXXX): A new register stack.
7809         (doc-have-diag-list): Removed.
7810         (Bl): Use `doc-list-have-indent-stackXXX'.
7811         (El): Updated.
7812         (doc-diag-list): Use `doc-compact-list-stackXXX'.
7813         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7814         (doc-set-vertical-and-indent): Ditto.
7815         (doc-next-list-depth): Removed.
7816         (doc-increment-list-stack): Updated.
7817         (doc-decrement-list-stack): Use `doc-list-depth' instead of
7818         `doc-next-list-depth'.
7819         (doc-end-list, doc-end-column-list): Don't use
7820         `doc-increment-list-stack'.
7821         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7822         (doc-save-global-vars, doc-restore-global-vars): Updated.
7823         * tmac/doc-common: Updated.
7824         * tmac/groff_mdoc.man: Updated.
7825         * NEWS: Fix typo.
7827 2001-04-02  Werner LEMBERG  <wl@gnu.org>
7829         * src/devices/grotty/grotty.man: Fix grammatical error.
7831 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
7833         Remove .Ld from mdoc package; replace it with special handling of
7834         `...'.
7836         * tmac/doc-common: Remove `Ld' register.
7837         Uncomment `doc-volume-ds-*' strings.
7838         Remove `doc-operating-system-default'.
7839         (Os): Updated.
7840         * tmac/doc-syms (Ld): Removed.
7841         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7842         `...' specially.
7843         * NEWS: Updated.
7845         * tmac/groff_mdoc.man: Many fixes and updates.
7847 2001-03-29  Werner LEMBERG  <wl@gnu.org>
7849         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
7850         Bond <tkb@tkb.mpl.com>.
7851         * tmac/www.tmac: Save compatibility mode.
7853 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
7855         * tmac/groff_mdoc.man: Many fixes.
7857 2001-03-28  Werner LEMBERG  <wl@gnu.org>
7859         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7860         isn't recognized.
7862 2001-03-27  Werner LEMBERG  <wl@gnu.org>
7864         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7865         diversion.  This fixes overlong tags.
7867 2001-03-26  Werner LEMBERG  <wl@gnu.org>
7869         * doc/groff.texinfo: Fixed and improved documentation of fonts.
7870         * tmac/doc-syms: Fix error messages.
7871         * tmac/an-old.tmac: Remove incorrect double backslashes.
7873 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
7875         * tmac/Makefile.sub: Strip mdoc.local also
7876         * tmac/strip.sed: Fixed.
7878 2001-03-24  Werner LEMBERG  <wl@gnu.org>
7880         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7881         selecting the font size.
7882         * tmac/groff_mdoc.man, NEWS: Document it.
7884 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7886         * src/roff/troff/div.cc (save_vertical_space): Add default argument
7887         to `sv' request.
7888         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7889         argument to restore previous font family.
7890         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7892         * doc/groff.texinfo: More fixes and additions (mainly for font
7893         manipulating commands).
7895         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7896         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
7897         * tmac/Makefile.sub, NEWS: Updated.
7899 2001-03-23  Werner LEMBERG  <wl@gnu.org>
7901         Replaced mdoc implementation.  The new version is `state of the
7902         art', using almost all new features of groff 1.17 -- it won't run
7903         with older versions.
7905         * tmac/doc.tmac: Completely rewritten.
7906         * tmac/doc-common: Ditto.
7907         * tmac/doc-nroff: Ditto.
7908         * tmac/doc-ditroff: Ditto.
7909         * tmac/doc-syms: Ditto.
7910         * tmac/mdoc.local: New file.
7911         * tmac/groff_mdoc.samples.man: Replaced with ...
7912         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7913         * tmac/strip.sed: Updated.
7914         * tmac/Makefile.sub: Updated.
7915         * INSTALL: Updated.
7917         * tmac/groff_man.man: Add `man.local' to the FILES section.
7919 2001-03-22  Werner LEMBERG  <wl@gnu.org>
7921         * doc/groff.texinfo: Added many @noindent.
7922         Replaced @end_Example -> @endExample.
7923         Added info whether registers are r/o.
7924         Many other additions and fixes.
7926 2001-03-21  Werner LEMBERG  <wl@gnu.org>
7928         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7929         in makeinfo of texinfo 4.0) to be used in @Def* macros.
7930         Improved @Def* macros: Now the exact syntax of request, register,
7931         and escapes is shown.
7932         Added macros for parentheses and brackets to be used in @Def*.
7933         Many fixes and improvements of the documentation.
7935 2001-03-20  Werner LEMBERG  <wl@gnu.org>
7937         * doc/groff.texinfo: Added new index: `st' (for strings).
7938         Added macros @Defstr(x).
7939         Added macro @Example (adding @group).
7940         Other minor improvements.
7942 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7944         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7945         `rq' for requests.  `fn' is no longer used.
7946         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7947         Removed @Deffn(x).
7949         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7950         number with name of man page.
7952 2001-03-19  Larry Kollar  <kollar@alltel.net>
7954         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
7955         consistency.
7957 2001-03-19  Werner LEMBERG  <wl@gnu.org>
7959         * man/groff_font.man: Document `prepro', `postpro', and `print'.
7960         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7961         * src/devices/grohtml/grohtml.man: Fixing typos.
7963 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
7965         * tmac/s.tmac (@IP): Pass `.ip' html tag.
7966         * tmac/groff_mwww.man: Remove .LINE macro
7967         * tmac/www.tmac (LINE): Add `.ti'.
7969         * src/devices/grohtml/post-html.cc (html_printer): New member
7970         `indent'.
7971         (html_printer::emit_raw): Use it.
7972         (html_printer::do_linelength): Ditto.
7973         (html_printer::do_pageoffset): Ditto.
7974         (html_printer::do_indentation): Ditto.
7975         (html_printer::do_tempindent): Ditto.
7976         (html_printer::do_break): Ditto.
7977         (html_printer::begin_page): Ditto.
7978         (html_printer::do_indentedparagraph): New function.
7979         (html_printer::troff_tag): Handle `.ip'.
7980         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7981         Add `<td width=...>' handling.
7982         (html_text::do_table): Add parameter.
7983         (html_text::do_indent): Updated.
7984         * src/devices/groohtml/html-text.h: Updated.
7986 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
7988         Introduced simple html tables to implement indentation.
7990         * src/devices/grohtml/html.h (word, word_list): New structures.
7991         (simple_output): Use it.
7992         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7993         (html_printer): Improve indentation handling.
7994         (html_printer::emit_raw): Set `in_table' element.  Handle
7995         indentation if set.
7996         (html_printer::write_header): Move conditional downwards.
7997         Don't allow whitespace in tags.
7998         (html_printer::do_linelength): Handle line length and indentation
7999         conditionally.
8000         (html_printer::do_pageoffset): Handle indentation conditionally.
8001         (html_printer::do_indentation): Ditto.
8002         (html_printer::do_tempindent): New function member.
8003         (html_printer::do_fill): Take care of indentation.
8004         (html_printer::do_flush): Finish table.
8005         (html_printer::do_links): Ditto.
8006         (html_printer::do_break): New function for handling `.br' and `.ti'.
8007         (html_printer::troff_tag): Use it.
8008         Handle `.ti'.
8009         (html_printer::flush_globs): Fix.
8010         (html_printer::flush_page): Finish table.
8011         (html_printer::html_printer): Fix error message.  Set up
8012         `linelength'.
8013         (html_printer::add_to_sbuf): Remove special handling of character
8014         code 255.
8015         (to_unicode): Remove `stop()'.
8016         (html_printer::write_title): Cleanup.
8017         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
8018         (html_printer::~html_printer): Flush text and end the line.
8019         Use `put_string()'.
8020         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8021         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8022         emission of tags.
8023         (html_text::start_tag): Disable newlines.
8024         (html_text::table_is_void): New function.
8025         (html_text::issue_table_begin): Ditto.
8026         (html_text::issue_table_end): Ditto.
8027         (html_text::push_para): Better table handling.
8028         (html_text::do_indent): New function.
8029         (html_text::do_table): Ditto.
8030         (html_text::done_table): Ditto.
8031         (html_text::do_tt): Handle PRE_TAG.
8032         (html_text::is_in_table): New function.
8033         (html_text::check_emit_text): Handle tables.
8034         (html_text::do_emittext): Use `nl()'.
8035         (html_text::do_para): Handle table.
8036         (html_text::remove_def): New function.
8037         * src/devices/grohtml/output.cc (word, word_list): Implement
8038         methods.
8039         (simple_output::end_line): Flush last word.
8040         (simple_output::simple_comment): Ditto.
8041         (simple_output::begin_comment): Recoded.
8042         (simple_output::end_comment): Ditto.
8043         (simple_output::comment_arg): Removed.
8044         (simple_output::check_newline): Improve test and flush last word.
8045         (simple_output::space_or_newline): Improved.
8046         (simple_output::write_newline): Replaced with...
8047         (simple_output::nl): This.
8048         (simple_output::put_raw_char): Flush last word.
8049         (simple_output::check_space): Removed.
8050         (simple_output::put_translated_string): Ditto.
8051         (simple_output::put_string): Simplified.
8052         (simple_output::put_number): Updated.
8053         (simple_output::put_float): Ditto.
8054         (simple_output::put_symbol): Removed.
8055         (simple_output::enable_newlines): Add `check_newline()'.
8056         (simple_output::flush_last_word): New function.
8058         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8059         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8061         * tmac/s.tmac (@PP, @IP): Add html conditional code.
8062         * tmac/an-old.tmac (TP): Ditto.
8064 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
8066         * mdate.sh: Make it POSIX compliant.
8068 2001-03-09  Werner LEMBERG  <wl@gnu.org>
8070         Added the `return' request to end a macro immediately.  It simply
8071         pops iterators from the input stack until a macro iterator is found.
8073         * src/roff/troff/input.cc (input_iterator::is_macro,
8074         macro_iterator::is_macro): New member.
8075         (input_return_boundary): New class to signal an immediate return
8076         to while_request().
8077         (input_stack::add_return_boundary, input_stack::is_return_boundary):
8078         New functions.
8079         (input_stack::clear): Use it.
8080         (input_stack::pop_macro): New function.
8081         (while_request): Use `is_return_boundary()'.
8082         (return_macro_request): New function.
8083         (init_input_requests): Use it.
8085         * src/roff/troff/TODO: Updated.
8086         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8088 2001-03-08  Werner LEMBERG  <wl@gnu.org>
8090         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8091         cleanup.
8093 2001-03-07  Werner LEMBERG  <wl@gnu.org>
8095         Make `\B' more rigid.
8097         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8098         parameter.
8099         (get_number_rigidly): New function.
8100         * src/roff/troff/input.cc (do_expr_test): Use it.
8101         * src/roff/troff/token.h: Updated.
8103         * src/roff/troff/request.h: Fix typo (init_html_request ->
8104         init_markup_request).
8106 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
8108         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
8109         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8110         are now `.begin', `.end', `.image'.
8112         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
8113         (html_printer::add_to_sbuf): Changing type of `code' parameter.
8114         Use add_char_to_sbuf().
8115         (to_unicode): New function.
8116         (char_translate_to_html): Changing type of `ch' parameter.
8117         Use `to_unicode()'.
8118         (html_printer::~html_printer): Comment out doctype string.
8119         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
8120         instead of `.html-end'.
8121         (write_start_image): Use `.begin' and `.image' instead of
8122         `.html-begin' and `.html-image'.
8123         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
8124         (html_begin): Renamed to ...
8125         (begin): This.
8126         (html_end): Renamed to ...
8127         (end): This.
8128         (html_image): Renamed to ...
8129         (image): This.
8130         (init_html_requests): Renamed to ...
8131         (init_markup_requests): This.
8132         * tmac/www.tmac: Updated.
8134 2001-02-28  Bram  <bram@avontuur.org>
8136         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
8137         constructor.
8139 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
8141         * doc/meref.me: Fixing some typos.
8143 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8145         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
8146         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
8147         * src/roff/troff/node.h: Updated.
8149 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
8151         * tmac/groff_tmac.man: Fix typo.
8153 2001-02-16  Werner LEMBERG  <wl@gnu.org>
8155         Fixing a bug which prevented proper end-of-sentence recognition
8156         between an `unformatted' box and the following text.  As a
8157         consequence, vertical line distances are no longer preserved in
8158         boxes after a call to `.unformat' -- because boxes aren't
8159         line-oriented (contrary to diversions), this doesn't make sense
8160         anyway.
8162         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
8163         value.
8164         (vertical_size_node::set_unformat_flag): New method.
8165         * src/roff/troff/node.hh: Updated.
8166         * src/roff/troff/input.cc (word_space_node::reread,
8167         hmotion_node::reread): Reset `unformat' flag after usage.
8168         (unformat_macro): Append only if `set_unformat_flag()' returns
8169         non-zero.
8170         * src/roff/troff/troff.man: Updated.
8172 2001-02-15  Werner LEMBERG  <wl@gnu.org>
8174         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
8175         documentation of `asciify' and `unformat' requests.
8177 2001-02-13  Werner LEMBERG  <wl@gnu.org>
8179         Redesigned the `unformat' request.  It is no longer connected with
8180         `asciify' but rather uses new `reread()' methods if the `unformat'
8181         flag is set.  Additionally, the handling of space characters after
8182         unformatting has been fixed so that they retain their width.
8184         * src/roff/troff/node.h (width_list): New structure to store
8185         original widths of spaces.
8186         (node): Added `unformat' member.
8187         Replaced `num_spaces' variable with `orig_width' list.
8188         * src/roff/troff/node.cc (*node::asciify,
8189         asciify_reverse_node_list): Removed `unformat_only' flag and related
8190         code.
8191         (word_space_node::asciify, word_space_node::word_space_node): Use
8192         `orig_width'.
8193         (word_space_node::~word_space_node): New destructor.
8194         (word_space_node::copy): Updated to handle `orig_width'.
8195         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
8196         (*node::merge_space): Update `orig_width' list if necessary.
8197         (*node::set_unformat_flag): New methods to set the `unformat' flag.
8198         * src/roff/troff/enc.cc (environment::space_newline): Use
8199         `width_list'.
8200         (environment::space): Added method to handle space width and
8201         sentence space width as parameters.  Use `width_list'.
8202         (environment::make_tab_node): Updated.
8203         * src/roff/troff/env.h: Updated.
8204         * src/roff/troff/input.cc (word_space_node::reread,
8205         unbreakable_space_node::reread, hmotion_node::reread): New methods
8206         to handle nodes specially if `unformat' flag is set.
8207         (do_asciify_macro): Renamed back to ...
8208         (asciify_macro): This.
8209         (unformat_macro): New implementation to simply set the `unformat'
8210         flag.
8212         * MORE.STUFF: Added more info about deroff.
8214 2001-02-08  Werner LEMBERG  <wl@gnu.org>
8216         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8217         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
8218         and `add_self()' methods to avoid hyphenation.  For example, the
8219         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
8220         soft hyphen after `foo'.  Now the hyphen list is correctly
8221         `foo<ignore><ignore>bar'.
8223 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
8225         * tmac/groff_tmac.man: Fix `BIR' macro.
8227 2001-02-04  Werner LEMBERG  <wl@gnu.org>
8229         A new escape sequence `\:', inserting a zero-width break point.
8231         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
8232         * src/roff/troff/input.cc (get_copy, token::next, asciify):
8233         Implement it.
8234         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
8235         method.
8236         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
8237         and `asciify()' methods.
8238         * src/roff/troff/node.cc (space_node::space_node): Updated.
8239         (space_node::asciify): Handle `was_escape_colon'.
8240         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8242         Handle `\~' similar to other comparable requests.
8244         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
8245         label.
8246         (token::next): Move creation of an unbreakable_space_node to...
8247         (token::add_to_node_list): Here.
8249         Fix a bug which sometimes prevented hyphenation of words connected
8250         with `\~' or `\ ' (and other escape sequences handled as
8251         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
8252         (after a call to the `unformat' request).
8254         * src/roff/troff/env.h (environment::possibly_break_line,
8255         environment::hyphenate_line): Introducing `start_here' parameter.
8256         * src/roff/troff/env.cc (environment::space_newline,
8257         environment::space): Use it.
8258         (environment::possibly_break_line, environment::hyphenate_line):
8259         Implement it.
8260         * src/roff/troff/input.cc (process_input_stack): Use it.
8261         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
8262         space_char_hmotion_node, overstrike_node): Add
8263         `get_hyphenation_type()' method.
8264         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
8265         if `unformat_only' is active.
8267 2001-01-30  Werner LEMBERG  <wl@gnu.org>
8269         Implemented new read-only number register `.linetabs' which
8270         returns 1 if in line-tabs mode, 0 otherwise.
8272         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
8273         * src/roff/troff/env.cc (get_line_tabs): New function.
8274         (init_env_requests): Use it.
8275         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8277         * VERSION, REVISION: Changing to 1.17.0.
8279 2001-01-28  Werner LEMBERG  <wl@gnu.org>
8281         Fixed a bug which prevented hyphenation of words which are finished
8282         with `\)'.
8284         * src/roff/troff/token.h (token): Add enum type
8285         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
8286         * src/roff/troff/input.cc (token::next, token::description,
8287         get_line_arg, token::add_to_node_list, token::process): Use it.
8289 2001-01-27  Werner LEMBERG  <wl@gnu.org>
8291         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
8292         * src/roff/troff/div.cc (do_divert): Use it.
8294         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
8296 2001-01-25  Werner LEMBERG  <wl@gnu.org>
8298         Adding the `linetabs' request.  If set, tab distances are not
8299         computed relative to the input line but relative to the output line.
8301         * src/roff/troff/env.h (environment): New member `line_tabs'.
8302         * src/roff/troff/env.cc (line_tabs_request): Implement request.
8303         (environment::environment, environment::copy): Updated.
8304         (environment::distance_to_next_tab): Use `line_tabs'.
8305         (init_env_requests): Register request.
8306         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
8307         fixes.
8309 2001-01-24  Werner LEMBERG  <wl@gnu.org>
8311         Introducing a new read-only register `.int' which is set to a
8312         positive value if the last output line is interrupted (i.e., if it
8313         contains `\c').
8315         * src/roff/troff/env.cc (init_env_requests): Add it.
8316         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8318 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
8320         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
8321         * src/preproc/html/pre-html.cc (findPrefix): New function which
8322         generates the troff executable name via the system prefix.
8323         * src/preproc/eqn/main.cc: Modified warning message.
8325 2001-01-23  Werner LEMBERG  <wl@gnu.org>
8327         troff's `box' and `boxa' requests didn't preserve temporary
8328         indentation.
8330         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
8331         `saved_target_text_length' members.
8332         * src/roff/troff/div.cc (do_divert): Use them.
8334         Tabs (but not yet leaders and fields) are now handled correctly by
8335         `asciify' request.
8337         * node.h (hmotion_node): Add field `was_tab'.
8338         * env.cc (environment::make_tab_node): Set it.
8339         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
8341         Added new request `unformat' which will, contrary to `asciify',
8342         preserve font information after unformatting (i.e., only nodes
8343         dealing with horizontal space are converted back to input
8344         characters).
8346         * input.cc (asciify_macro): Renamed to ...
8347         (do_asciify_macro): this, having a new parameter `unformat_only'.
8348         (asciify_macro, unformat_macro): New; using do_asciify_macro.
8349         (init_input_requests): Added `unformat'.
8350         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
8351         parameter to control asciification process.
8352         * node.h (*_node::asciify): Ditto.
8353         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8355 2001-01-20  Werner LEMBERG  <wl@gnu.org>
8357         * doc/groff.texinfo: Minor improvement of `.in' documentation.
8359 2001-01-18  Werner LEMBERG  <wl@gnu.org>
8361         * tmac/ps.tmac: Remove call of psold.tmac.
8362         * tmac/psold.tmac: Comment updated.
8363         * tmac/psnew.tmac: Removed since no longer needed.
8364         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
8366         * font/devutf8/R.proto: Adding `shc' glyph.
8367         * font/devutf8/NOTES: Updated.
8369         * test-groff: Updated.
8371 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
8373         First cut of the new html device driver.  Changes to pre-html and
8374         the new grohtml are too numerous to be documented here.
8376         Stuff related to `html' has been renamed to `html-old' and `html2'
8377         stuff has been renamed to `html' (including directories).  The new
8378         html device driver is therefore invoked as `-Thtml'.
8380         Added new `\O' escape to suppress output (needed by html driver).
8382         Added functions and code to pass info about input-level commands
8383         (`.in', `.fl', etc.) to html driver.
8385         Three new functions (.html-begin, .html-end, and .html-image) for
8386         better html handling: `html-begin' will execute the remaining line
8387         if at the outermost nesting level, increasing an internal counter.
8388         `html-end' does the same but decreases the internal counter.
8389         `html_image' puts its arguments into a special node (suppress_node)
8390         to define an image region.
8392         The `output' request has been removed.
8394         * tmac/html-tags.tmac: Removed.
8395         * tmac/arkup.tmac: Updated and renamed to ...
8396         * tmac/www.tmac: New file.
8397         * tmac/markup.tmac Updated and renamed to ...
8398         * tmac/mwww.tmac: New file.
8399         * tmac/Makefile.sub: Updated.
8400         * tmac/an-old.tmac: Updated.
8401         * tmac/eqnrc: Updated.
8402         * tmac/groff_man.man
8403         * tmac/groff_markup.man: Updated and renamed to ...
8404         * tmac/groff_mwww.man: New file.
8405         * tmac/groff_tmac.man: Updated.
8406         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
8407         * tmac/html.tmac: Updated and renamed from html2.tmac.
8408         * tmac/pspic.tmac: Updated html support.
8409         * tmac/s.tmac: Added html output support.
8410         * tmac/troffrc, tmac/troffrc-end: Updated.
8412         * Makefile.in, doc/Makefile: Updated.
8413         * doc/groff.texinfo: Added info about new `\O' escape.
8414         * doc/homepage.ms: Use `MAILTO' macro.
8416         * font/devhtml/DESC.proto: Add `C' font.
8417         * font/devhtml/Makefile.sub: Updated.
8418         * font/devhtml/R.proto: Minor fixes.
8419         * font/devhtml-old/Makefile.sub: Updated.
8421         * src/devices/grohtml-old/Makefile.sub: Updated.
8423         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
8424         method.
8425         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
8426         graphic_start): Add `inline' parameter.  Update.
8427         (html_end_suppress, graphic_end): Update.
8429         * src/include/html-strings.h: New file.
8430         * src/include/htmlindicate.h: Comments updated.
8431         * src/include/printer.h: Updated.
8433         * src/preproc/eqn/main.cc (do_file, main): Updated.
8434         * src/preproc/pic/troff.cc (troff_output::start_picture,
8435         troff_output::finish_picture): Updated.
8436         * src/preproc/tbl/main.cc (process_input_file): Updated.
8438         * src/roff/groff/groff.cc (main): Updated.
8439         Pass device arguments to predrivers also.
8440         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
8441         * src/roff/troff/env.h (environment): Updated.
8442         New elements `need_eol' and `ignore_next_eol' (for html output).
8443         * src/roff/troff/env.cc (environment::environment): Add initializers
8444         for `need_eol' and `ignore_next_eol'.
8445         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
8446         functions.
8447         (point_size, fill, no_fill, center, right_justify, line_length,
8448         indent, temporary_indent, break_request, handle_tab): Use
8449         `add_html_tag()'.
8450         (set_tabs): Use `add_html_tag_tabs()'.
8451         (environment::add_html_tag): Updated.
8452         (environment::do_break): Updated.
8453         * src/roff/troff/div.cc (space_request, flush_output): Use
8454         `environment::add_html_tag()'.
8455         * src/roff/troff/input.cc: Updated.
8456         New variable `html_level' to indicate nested `html-begin' requests.
8457         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
8458         (non_interpreted_char_node, token_node, non_interpreted_node): Add
8459         `force_tprint()' method.
8460         (token::next): Handle `\O'.
8461         (do_suppress): Implement it.
8462         (html_begin, html_end, html_image): New functions.
8463         (init_output_requests): Renamed to ...
8464         (init_html_requests): this.
8465         (main): Use it.
8466         (macro::append_str, macro::append_unsigned, macro::append_int): New
8467         methods.
8468         New variable `output_low_mark_miny' to limit minimal value of y.
8469         (reset_output_registers): Use it.
8470         (output_request): Removed.
8471         (get_output_registers): New function.
8472         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
8473         (*_node): Added `force_tprint()' if necessary.
8474         (special_node): New elements `tf' and `get_tfont()'.
8475         (suppress_node): New class.
8476         * src/roff/troff/node.cc:
8477         New global variables `image_no' and `suppress_start_page'.
8478         (real_output_file): New method `is_on()'.
8479         (troff_output_file): New method `start_special(tfont)'.
8480         (troff_output_file::really_print_line): Use `tprint' conditionally.
8481         (real_output_file::print_line): Updated.
8482         (real_output_file::on): Updated.
8483         (*_node): Added `force_tprint()'.
8484         (special_node::special_node): Initializer updated.
8485         (special_node::same, special_node::copy, special_node::tprint_start):
8486         Updated.
8487         (get_reg_int, get_reg_str): New functions.
8488         (suppress_node::*): New methods.
8489         New global variables last_position, last_image_filename;
8490         (min): New inline function.
8491         * src/roff/troff/reg.h, src/roff/troff/request.h,
8492         src/roff/troff/troff.h: Updated.
8494 2001-01-13  Werner LEMBERG  <wl@gnu.org>
8496         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
8497         documentation of `asciify' request.
8499 2001-01-12  Werner LEMBERG  <wl@gnu.org>
8501         * src/roff/troff/input.cc: Move definition of special characters
8502         like `ESCAPE_TILDE' to ...
8503         * src/roff/troff/input.h: New file.
8504         * src/roff/troff/Makefile.sub (HDRS): Add it.
8506         Extending the .asciify request to `unformat' space characters also.
8508         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
8509         to count input space characters.
8510         Update constructors to take care of it.
8511         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
8512         `ESCAPE_SPACE' instead of normal space.
8513         (word_space_node::asciify): New method.
8514         (unbreakable_space_node::asciify): New method.
8515         (word_space_node::merge_space): New method.
8516         * src/roff/troff/env.cc (environment::space_newline,
8517         environment::space): Add code to initialize `num_spaces' (using the
8518         constructor of `word_space_node').
8519         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8520         Document it.
8522 2001-01-09  Werner LEMBERG  <wl@gnu.org>
8524         * man/groff_char.man: Use table header traps only conditionally.
8526 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
8528         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
8530 2001-01-08  Werner LEMBERG  <wl@gnu.org>
8532         Introducing the `box' and `boxa' requests which are similar to
8533         `di' resp. `da' but omitting a partially filled line (which is
8534         restored after ending the diversion).
8536         * src/roff/troff/div.h (diversion): Add elements to save partially
8537         filled line.
8538         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
8539         partially filled line.
8540         (divert, divert_append): Updated.
8541         (box, box_append): New functions.
8542         (init_div_requests): Use them.
8543         * src/roff/troff/env.h (environment): do_divert() is now a friend.
8544         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8546         * doc/groff.texinfo: Fix documentation of `lf' request.
8548 2000-12-25  Werner LEMBERG  <wl@gnu.org>
8550         * src/roff/troff/troff.man, NEWS: Document `writem' request.
8552 2000-12-21  Werner LEMBERG  <wl@gnu.org>
8554         Ignore `ss' request if in compatibility mode.
8556         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
8557         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
8558         * src/roff/troff/env.cc (space_size): Use it.
8560         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
8561         `ss' request in nroff mode.
8563         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
8564         changes.
8566 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
8568         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
8570 2000-12-13  Werner LEMBERG  <wl@gnu.org>
8572         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
8573         * src/preproc/eqn/neqn.man: Small fixes and additions.
8575 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
8577         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
8578         Fixing typo.
8580         * src/preproc/eqn/neqn.man: New file.
8582         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
8583         negative' warning.
8585         * tmac/e.tmac: Add `T&' macro.
8586         Fix `indent cannot be negative' warning.
8587         * tmac/s.tmac: Fix `indent cannot be negative' warning.
8589 2000-12-07  Werner LEMBERG  <wl@gnu.org>
8591         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
8593 2000-12-06  Werner LEMBERG  <wl@gnu.org>
8595         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
8596         `alloca' symbol .
8598         * MORE.STUFF: Added info about deroff for djgpp.
8600         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
8601         documentation of -rcR switch.
8603 2000-12-03  Werner LEMBERG  <wl@gnu.org>
8605         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
8606         if -rcR=1 (which is now the default in nroff mode), a single, very
8607         long page is created instead of multiple pages: All `ne' and `wh'
8608         requests are put into conditionals; a new macro `an-end' is added to
8609         be called with `em'.
8611         Some other minor cleanups.
8613         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
8615 2000-12-02  Werner LEMBERG  <wl@gnu.org>
8617         Fixing a bug which prevented hyphenation in words followed
8618         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
8620         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
8621         Adding possibly_break_line().
8622         * src/roff/troff/env.h (environment): Make possibly_break_line()
8623         public.
8625         Make `\~' usable in .tr request.
8627         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
8628         (token): Add stretchable_space().
8629         * src/roff/troff/input.cc (token::next, token::delimiter,
8630         token::description, process_input_stack, do_translate,
8631         add_to_node_list, token::process): Use it.
8632         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
8633         for adjusting the space.
8634         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
8635         for stretchable space.
8636         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
8637         (make_node): Add code for stretchable space.
8638         * src/roff/troff/env.cc (environment::add_char): Use it.
8639         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
8640         (get_copy, token::next, transparent_translate, asciify): Use it.
8642         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
8643         doc/groff.texinfo: Updated.
8644         * man/groff.man: Small reorderings.
8646 2000-11-23  Werner LEMBERG  <wl@gnu.org>
8648         * NEWS: Fixes.
8649         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
8650         option.
8651         * src/roff/troff/input.cc (main): Add `config_macro_path' and
8652         `safer_macro_path' to -M option.
8653         * src/roff/troff/troff.man: Fixes.
8655 2000-11-22  Werner LEMBERG  <wl@gnu.org>
8657         Use safer path (except for config files) if -U isn't specified.  Add
8658         a special macro path (without home and current directory) for config
8659         files.  Add home directory to unsafe path for consistency.  Don't
8660         include the home directory in the font path.
8662         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
8663         `macro_path'.
8664         * src/include/macropath.h: Add `config_macrp_path'.
8665         * src/libs/libgroff/fontfile.cc: Fix font path.
8666         * src/roff/troff/input.cc (process_startup_file): Use
8667         `config_macro_path'.
8668         (main): Select unsafe path if -U is given.
8670         * src/preproc/eqn/main.cc (main): Fixing search path for
8671         configuration file.
8672         * src/preproc/eqn/eqn.man: Updated.
8674         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
8675         Updated.
8677         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
8678         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
8679         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8680         src/devices/grotty/grotty.man: Updated.
8682         * Makefile.in: Fix comments.
8684 2000-11-17  Werner LEMBERG  <wl@gnu.org>
8686         * tmac/safer.tmac: Empty file added (again) for compatibility
8687         reasons.
8688         * tmac/Makefile.sub: Updated.
8690 2000-11-16  Werner LEMBERG  <wl@gnu.org>
8692         * src/devices/grodvi/dvi.cc (main),
8693         src/devices/grohtml2/post-html.cc (main),
8694         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8695         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8696         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8697         (main), src/preproc/html2/pre-html.cc (main),
8698         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8699         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8700         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8701         (main), src/utils/hpftodit/hpftodit.cc (main),
8702         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
8703         (main), src/utils/lookbib/lookbib.cc (main),
8704         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
8705         (main): Use stdout for -v.
8706         * src/roff/groff/groff.cc (run_commands),
8707         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
8708         to make direct printing to stdout possible.
8709         * src/roff/groff/pipeline.h: Updated.
8711         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
8712         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
8713         * src/utils/afmtodit/afmtodit.man: Updated.
8715         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
8716         (version): New function.
8717         (usage): Updated.
8718         * src/utils/addftinfo/addftinfo.man: Updated.
8720         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
8721         Fixing copyright dates.
8723         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
8724         replacing it.
8726         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
8727         version_string.
8729         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
8731 2000-11-15  Werner LEMBERG  <wl@gnu.org>
8733         In all programs, make -v return immediately with exit status 0 to
8734         be compliant with the GNU standard.
8736         * src/devices/grodvi/dvi.cc (main),
8737         src/devices/grohtml2/post-html.cc (main),
8738         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
8739         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
8740         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
8741         (main), src/preproc/html2/pre-html.cc (main),
8742         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
8743         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
8744         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
8745         (main): Implement it.
8746         * NEWS: Updated.
8748         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
8749         and postprocessors to the -v option.
8751         * src/roff/grog/grog.pl: Implement -v.
8752         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
8753         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8755         * src/roff/nroff/nroff.sh: Implement -v.
8756         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
8757         * src/roff/nroff/nroff.man: Updated.
8758         
8759         * src/preproc/eqn/main.cc (main): Fix comment typo.
8761         * MORE.STUFF: Added info about djgpp port of grap.
8763 2000-11-14  Werner LEMBERG  <wl@gnu.org>
8765         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
8766         mode (or rather, implemented non-compatibility mode).
8767         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
8769         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
8770         replacing it -- we don't find gxditview otherwise.
8771         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
8773         * src/preproc/pic/depend: Removed.  Unnecessary.
8775         Implemented dummy keyword `solid' in pic for compatibility with
8776         AT&T pic.
8778         * lex.cc (lookup_keyword): Added `solid'.
8779         * pic.y: Added SOLID with dummy rule.
8780         * pic.cc, pic_tab.h: Regenerated.
8781         * doc/pic.ms: Updated.
8783 2000-11-13  Werner LEMBERG  <wl@gnu.org>
8785         For security reasons, don't use the current directory but the home
8786         directory while searching and scanning troffrc and troffrc-end.
8787         Similarly, replace the current directory with the home directory
8788         in the font path.
8790         * Makefile.in (fontpath, tmacpath): Remove current directory.
8792         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
8793         two parameters `add_home' and `add_current'.
8794         (search_path::~search_path, search_path::command_line_dir,
8795         search_path::open_file): Remove tests for `dirs' being zero.
8796         * src/include/searchpath.h: Adjust.
8797         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
8798         `safer_macro_path'.
8799         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
8801         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
8802         * src/roff/troff/input.cc: Use `mac_path', initialized with
8803         `macro_path'.
8804         (process_startup_file): Set `mac_path' to `safer_macro_path'.
8805         * src/roff/troff/env.cc: Use `mac_path'.
8807         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
8809         * NEWS, man/roff.man, src/roff/troff/troff.man,
8810         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8811         Updated.
8813 2000-11-12  Werner LEMBERG  <wl@gnu.org>
8815         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8817         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8818         * configure.in: Fix typo in comment.
8819         * configure: Regenerated.
8821         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8822         copyright dates.
8824 2000-11-08  Werner LEMBERG  <wl@gnu.org>
8826         Add system tmac directory (/usr/local/lib/groff/site-tmac).
8828         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8829         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8830         $(systemtmacdir).
8831         Use @libdir@.
8832         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8833         * tmac/Makefile.sub (install_data): Create
8834         $(systemtmacdir) and $(localtmacdir).
8835         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8836         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8837         NEWS, doc/groff.texinfo: Updated and minor fixes.
8839         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8840         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8841         $(systemtmacdir) since the wrapper files are platform-dependent.
8843 2000-11-01  Werner LEMBERG  <wl@gnu.org>
8845         * doc/groff.texinfo: Fix typo.
8847 2000-10-26  Werner LEMBERG  <wl@gnu.org>
8849         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
8850           tmac.doc.old -> doc-old.tmac
8851           tmac.an.old  -> an-old.tmac
8853         * tmac/tmac.*: Moved to ...
8854         * tmac/*.tmac: this.
8855         * tmac/man.local: Fix comment.
8856         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8857         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
8858         Added some `FILES' sections.  More use of @...@ directives.  Other
8859         minor updates.
8860         * arch/djgpp/README, font/devutf8/NOTES: Updated.
8861         * doc/homepage.ms, doc/groff.texinfo: Updated.
8862         * man/groff.man, man/roff.man: Updated.
8863         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8864         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8865         src/devices/grotty/grotty.man: Updated.
8866         * src/preproc/pic/pic.man: Updated.
8867         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8868         instead of -mdoc.old.
8869         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8870         * src/roff/nroff/nroff.man: Updated.
8871         * NEWS: Updated.
8873         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8875         * tmac/mm.diff: Removed -- it has no use now since the mm package
8876         is part of groff.
8878         * tmac/*: Removed trailing spaces.
8880         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8881         the tmac subdirectory also).
8883         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8884         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8885         stuff since it is no longer needed.
8887         * README, PROBLEMS: Updated.
8889 2000-10-25  Werner LEMBERG  <wl@gnu.org>
8891         Invert current behaviour: Search first FOOBAR.tmac, then
8892         tmac.FOOBAR.
8894         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8895         (open_mac_file, macro_source): Implement it.
8896         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8897         doc/groff.texinfo, NEWS: Document it.
8899         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8900         Small documentation improvements.
8902         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8903         subdirectory also).
8905         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8907 2000-10-24  Werner LEMBERG  <wl@gnu.org>
8909         Add local tmac directory (groff/site-tmac).
8911         * Makefile.in: Add $(localtmacdir).
8912         (uninstall_dirs): Add $(localtmacdir).
8913         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8914         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8915         in $(localtmacdir).  Create $(localtmacdir).
8916         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8917         Updated and minor fixes.
8919         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8921         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8923 2000-10-23  Werner LEMBERG  <wl@gnu.org>
8925         Move hyphen.us to tmac directory.
8927         * src/roff/troff/hyphen.us: Removed.
8928         * src/tmac/hyphen.us: Added.
8929         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8931         Change installation structure for data files from .../groff/... to
8932         .../groff/<version><revision>/... to be conform with other GNU
8933         programs.
8935         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8936         doc/Makefile: Implement it.
8937         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8938         * configure: Updated.
8939         * arch/djgpp/README, font/devutf8/NOTES: Use it.
8940         * NEWS: Document it.
8941         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8942         @MACRODIR@ instead of hard-coded directories.
8944 2000-10-22  Werner LEMBERG  <wl@gnu.org>
8946         Implement $GROFF_BIN_PATH environment variable (which defaults to
8947         $bindir) used for child programs of groff and similar wrappers.
8949         * gendefs.sh: Improve documentation.
8950         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8951         src/preproc/eqn/Makefile.sub (neqn),
8952         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8953         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8954         $GROFF_BIN_PATH.
8955         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8956         $GROFF_PATH__ (the latter for communication with troff).
8957         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8958         set.
8959         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8960         doc/groff.texinfo: Document it.
8962         * doc/groff.texinfo: Improve documentation of troff's -a option.
8964 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
8966         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8967         non-intrusive eol marker.
8968         (troff_output_file::determine_line_limits): New function.
8969         (troff_output_file::draw): Use it.
8970         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8971         output_pending_lines() instead of output_line().
8972         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8973         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8974         createImage): Small fixes.
8975         
8976 2000-10-14  Werner LEMBERG  <wl@gnu.org>
8978         Replace tmac.safer with a real secure solution.
8980         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8981         system_request, pipe_output): Disable requests if in safer mode.
8982         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8983         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8984         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8985         doc/groff.texinfo, src/roff/groff/groff.man,
8986         src/roff/troff/troff.man, arch/djgpp/README: Updated.
8988         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8989         (resource_manager::output_prolog): Replace setenv() with putenv().
8991 2000-10-09  Werner LEMBERG  <wl@gnu.org>
8993         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8994         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8995         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8996         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8997         compilation errors with some compilers.  It seems that this code
8998         is no longer necessary -- if yes, it is easy to add some #ifdef's
8999         for that particular old-fashioned compiler.
9001         * MORE.STUFF: Added info about Meta-tbl.
9003         * doc/groff.texinfo: Added more info about `.if "..."..."'.
9005 2000-10-07  Werner LEMBERG  <wl@gnu.org>
9007         Adding a new escape sequence \B'...': If the string between
9008         the delimiters is a valid numeric expression, return the character
9009         `1', and `0' otherwise.  This is an analogon to \A.
9011         * src/roff/troff/input.cc (do_expr_test): Implement it.
9012         (token::next): Use it.
9013         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9015         * tmac/tmac.trace: Made independent from escape character.
9017 2000-10-06  Werner LEMBERG  <wl@gnu.org>
9019         Adding a new request .dei: define indirect.  The first and second
9020         parameter of .dei are taken from string registers instead directly;
9021         this very special request is needed to make tmac.trace independent
9022         from the escape character (which might even be disabled).
9024         * src/roff/troff/input.cc (do_define_macro): Implement it.
9025         (define_macro_indirect): New function.
9026         (init_input_requests): Use it.
9028         Adding two requests .ecs and .ecr: Save and restore the escape
9029         character.  These two requests are needed to make tmac.trace
9030         independent from the escape character (which might even be
9031         disabled).
9033         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9034         Implement it.
9035         (init_input_requests): Use it.
9037         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9039 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
9041         Adding a new option -P and new environment variable GROPS_PROLOGUE
9042         to grops, selecting a different prologue file (minor modifications
9043         by WL).
9045         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9046         src/devices/grops/ps.cc (main): Implement it.
9047         * src/devices/grops/grops.man, NEWS: Document it.
9049 2000-09-22  Werner LEMBERG  <wl@gnu.org>
9051         * INSTALL: Add info about selecting paper format.
9053 2000-09-21  Werner LEMBERG  <wl@gnu.org>
9055         * src/roff/troff/input.cc (main): Fixing compiler warning.
9056         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9057         strings.h from the former to the latter.
9058         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9059         stuff from the former to the latter.
9061 2000-09-11  Werner LEMBERG  <wl@gnu.org>
9063         Implementing two new requests .tm1 and .tmc: The former is similar
9064         to .tm but can output leading spaces; its syntax is similar to
9065         defining a string, i.e., a `"' can be used to mark the beginning of
9066         the string to be written to stderr: `.tm1 " test'.  The latter is
9067         similar to .tm1 but doesn't write out a final newline character.
9069         * src/roff/troff/input.cc (terminal1, terminal_continue,
9070         do_terminal): New functions.
9071         (init_input_requests): Use them.
9072         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9074 2000-09-09  Werner LEMBERG  <wl@gnu.org>
9076         * tmac/groff_mdoc.samples.man: Small fixes.
9078 2000-09-08  Werner LEMBERG  <wl@gnu.org>
9080         * tmac/groff_mdoc.man: Fixing typo.
9082 2000-09-02  Werner LEMBERG  <wl@gnu.org>
9084         Implementing a .nop request which does nothing.
9086         * src/roff/troff/input.cc (nop_request): New function.
9087         (init_input_requests): Use it.
9088         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9090 2000-09-01  Werner LEMBERG  <wl@gnu.org>
9092         * doc/groff.texinfo: Added some comments.
9094 2000-08-30  Werner LEMBERG  <wl@gnu.org>
9096         * src/roff/troff/TODO: Updated.
9098 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9100         * doc/groff.texinfo: Fix comment how to compile the DVI file.
9102 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9104         * font/devps/generate/Makefile (SHELL): Define explicitly to
9105         "/bin/sh", for non-Unix platforms.
9106         (extraclean): Use a more portable "" quoting instead of a
9107         backslash (which doesn't work on DOS/Windows).
9108         
9109         * font/devlj4/generate/Makefile (extraclean): Ditto.
9111         * font/devdvi/generate/Makefile (extraclean): Ditto.
9113 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9115         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
9116         src/roff/troff/troff.man: Document Eli's latest changes.
9118 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
9120         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
9121         macro file names of the form NAME.tmac as well as tmac.NAME.
9123 2000-08-25  Werner LEMBERG  <wl@gnu.org>
9125         * src/include/posix.h: Remove definition of FILENAME_MAX.
9127         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
9128         `sys_fatal' and `stop' function().
9130         * test-groff: Updated.
9132 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
9134         Added the new troff command .output <arg> to suppress output (while
9135         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
9136         registers (for passing the output dimensions to the output device).
9138         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
9139         parameter.
9140         * src/roff/troff/node.h, src/roff/troff/node.cc
9141         (troff_output_file::really_print_line,
9142         ascii_output_file::really_print_line,
9143         supress_output_file::really_print_line): Use `width' parameter.
9144         (troff_output_file::really_on, troff_output_file::really_off,
9145         output_file::on, output_file::off, real_output_file::on,
9146         real_output_file::off, real_output_file::really_on,
9147         real_output_file::really_off): New functions.
9148         (real_output_file:public output_file): New variable `output_on'.
9149         (real_output_file::begin_page, real_output_file::copy_file,
9150         real_output_file::transparent_char, real_output_file::print_line):
9151         Use it.
9152         (real_output_file::print_line): Use check_output_limits.
9153         * src/roff/troff/reg.h, src/roff/troff/request.h,
9154         src/roff/troff/input.cc (assign_registers): New function to remove
9155         two `goto's.
9156         (do_ps_file): Use it.
9157         (check_output_limits, reset_output_registers, output_request,
9158         init_output_requests): New functions.
9159         (init_input_requests): Updated.
9161         Added new grohtml2 device and html2 preprocessor (coding
9162         not yet finished) which will eventually replace grohtml.
9164         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
9165         Updated.
9166         * src/include/htmlindicate.h, src/include/htmlindicate
9167         (html_begin_suppress, html_end_suppress): New functions.
9168         * src/preproc/tbl/main.cc: Use it.
9169         * src/roff/groff/groff.cc: Add support for html2 device (which will
9170         automatically invoke the html2 preprocessor).
9171         * src/roff/troff/input.cc (is_html2): New variable.
9172         * src/roff/troff/troff.h, src/roff/troff/env.h,
9173         src/roff/troff/env.cc (environment::add_html_tag): New function
9174         (uses `is_html2').
9175         (environment::do_break): Use it.
9176         * font/devhtml2/*: New files.
9177         * src/devices/grohtml2: New device.
9178         * src/preproc/html2: New preprocessor.
9179         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
9181 2000-08-23  Werner LEMBERG  <wl@gnu.org>
9183         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
9185 2000-08-22  Werner LEMBERG  <wl@gnu.org>
9187         * src/include/lib.h: Provide a fix for IRIX to not include
9188         groff-getopt.h.
9190 2000-08-18  Werner LEMBERG  <wl@gnu.org>
9192         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
9193         since some non-GNU sed programs can't handle null regexps.
9194         * configure, src/preproc/eqn/Makefile.sub,
9195         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
9197         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
9198         bug (string.h and strings.h are both needed according to latest
9199         POSIX standard).
9201         * MORE.STUFF: Added info about unroff and troffcvt.
9203 2000-08-08  Werner LEMBERG  <wl@gnu.org>
9205         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
9206         used before -ms.
9208         * tmac/tmac.man.old: Remove unused number register.
9210         * tmac.doc: Minor documentation fix.
9212 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9214         * src/roff/groff/pipeline.c (is_system_shell):
9215         Fix typo: "monocased_shell" no longer exists.
9217 2000-08-07  Paul Eggert  <eggert@twinsun.com>
9219         Remove FILENAME_MAX limits.
9221         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
9222         that the argument length is less than FILENAME_MAX.
9223         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
9224         Use struct hack to allocate and free file name.
9225         (struct xtmpfile_list): fname is now part of the structure,
9226         not a pointer to another string.
9228 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
9230         * src/include/posix.h: Add a default value for FILENAME_MAX.
9232 2000-08-06  Paul Eggert  <eggert@twinsun.com>
9234         Add support for new BSD-style man pages (with ".Dd" instead of
9235         ".TH"), so that "groff -man" understands both styles, even
9236         when running "groff -man" on a host whose system man page
9237         macros don't support ".Dd".
9239         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
9240         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
9241         in case the system man macros don't define Dd or TH.
9243         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
9244         * tmac/tmac.an: New one-line file.
9245         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
9247 2000-08-06  Werner LEMBERG  <wl@gnu.org>
9249         * src/roff/troff/troff.man: Fixing typos.
9251 Version 1.16.1 released
9252 =======================
9254 2000-07-31  Werner LEMBERG  <wl@gnu.org>
9256         Preparing release 1.16.1.
9258         * REVISION: Revision number set to 1.
9259         * MORE.STUFF: Added info about port to DOS.
9260         * NEWS, win32-diffs: Updated.
9262         * src/include/nonposix.h: Remove first line -- this file is used
9263         in C also.
9265         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
9266         link to it.
9268 2000-07-30  Werner LEMBERG  <wl@gnu.org>
9270         * doc/texinfo.tex: Update to latest version.
9272 2000-06-28  Paul Eggert  <eggert@twinsun.com>
9274         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
9275         commands that fail.  Don't assume that "export a=b" is valid shell
9276         syntax.  This is needed for Solaris 2.5.1.
9278         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
9279         comment about missing Solaris headers.
9281         * PROBLEMS: Add section about problems with Sun Make and VPATH.
9283 2000-06-25  Werner LEMBERG  <wl@gnu.org>
9285         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
9286         SET_BINARY().
9288         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
9290         * win32-diffs: Updated.
9291         * README.WIN32: Added CRs to make all Windows editors happy.
9293         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
9294         src/roff/groff/pipeline.c).
9296 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
9298         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
9299         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
9301 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
9303         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
9304         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
9305         are binary files.
9306         (main): Support non-Posix systems with several different styles of
9307         slash characters in file names.
9309         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
9310         (main) [SET_BINARY]: Switch stdin into binary mode.
9312         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
9313         (main): Support file names with several possible slash-type
9314         characters, as given by DIR_SEPS[] in nonposix.h.
9315         (main) [__MSDOS__]: If renaming the temporary index file fails
9316         because it has more than one dot in its trunk, replace the dot
9317         with an underscore and try again.
9318         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
9319         Newline.
9320         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
9322         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
9323         (File::File): Open the input file in binary mode.  Strip CR
9324         characters from each CR-LF pair.
9325         (xbasename): Support file names with several possible slash-type
9326         characters, as given by DIR_SEPS[] in nonposix.h.
9328         * src/include/Makefile.sub (HDRS): Add nonposix.h.
9330         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
9331         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
9332         [!_POSIX_VERSION]: Define for traditional Unix systems.
9333         (real_output_file::real_output_file): Remove the MSVC-specific
9334         call to popen, use instead POPEN_WT, appropriately defined on
9335         nonposix.h.  #include nonposix.h.
9336         (real_output_file::~real_output_file): Remove the MSVC-specific
9337         call to pclose, a suitable macro is now defined on nonposix.h.
9338         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
9339         and WEXITSTATUS instead of assuming traditional Unix
9340         interpretation of the status returned by pclose.
9342         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
9343         call to popen, use POPEN_RT instead (appropriately defined on
9344         nonposix.h).  #include nonposix.h.
9345         (ps_bbox_request): Open the PostScript file in binary mode.
9346         Close the file after processing it.
9347         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
9348         nonposix.h.
9350         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
9351         A version of run_pipeline that doesn't use `fork'.
9352         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
9353         (system_shell_name, system_shell_dash_c)
9354         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
9355         the ugliness of testing DOS/Windows file names for equality, and
9356         support both stock shells and ports of Unix shells.
9358         * src/roff/groff/groff.cc: #include nonposix.h.
9359         (BSHELL): Definition moved to nonposix.h.
9360         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
9361         instead of a literal "-c".
9362         (xbasename): Support file names with several possible slash-type
9363         characters, as given by DIR_SEPS[] in nonposix.h.
9364         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
9365         of literal strings.
9367         * src/preproc/soelim/soelim.cc: #include nonposix.h.
9368         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
9370         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
9371         pic_tab.h.
9373         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
9375         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
9376         eqn_tab.h.
9378         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
9380         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
9381         P_tmpdir is defined, use it instead of the literal "/tmp".
9382         (remove_tmp_files, add_tmp_file): New functions.
9383         (xtmpfile): Record temporary files and register an atexit function
9384         to delete them explicitly, instead of relying on the OS to do
9385         that, which doesn't work on non-Unix systems.
9387         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
9388         (search_path::search_path): Use PATH_SEP instead of a literal
9389         colon.
9390         (search_path::command_line_dir): Ditto.
9391         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
9392         to support non-Posix systems.
9394         * src/libs/libbib/search.cc: #include nonposix.h.
9395         (search_list::add_file): Open the file in binary mode.
9397         * src/libs/libbib/linear.cc: #include nonposix.h.
9398         (file_buffer::load): Remove \r characters preceding \n from the
9399         loaded buffer.
9401         * src/libs/libbib/index.cc: #include nonposix.h.
9402         (make_index_search_item): Open index_filename in O_BINARY mode.
9403         (index_search_item_iterator::get_tag): Ditto.  Remove \r
9404         characters before \n characters.
9405         (index_search_item::check_files): Open files in binary mode.
9406         (index_search_item::munge_filename): Support DOS-style file names
9407         with backslashes and drive letters, use IS_ABSOLUTE.
9409         * src/devices/grops/ps.cc: #include nonposix.h.
9410         (main) [SET_BINARY]: Switch stdout to binary mode.
9412         * src/devices/grolj4/lj4.cc: #include nonposix.h.
9413         (main) [SET_BINARY]: Switch stdout to binary mode.
9415         * src/devices/grolbp/lbp.cc: #include nonposix.h
9416         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
9418         * src/devices/grodvi/dvi.cc: #include nonposix.h.
9419         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
9420         nonposix.h).
9421         (main) [SET_BINARY]: Switch stdout to binary mode.
9422         [_MSC_VER]: Remove an explicit call to _setmode.
9424         * src/include/nonposix.h: New file.
9426         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
9427         operation when building with DJGPP.
9428         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
9429         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
9430         ENVSETUP.
9432         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
9433         MS-DOS.
9434         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
9435         etc. can include a semi-colon on DOS/Windows.
9436         (depend.temp): Use depend1.temp instead of depend.temp1, to
9437         prevent files from overerwiting each other on 8+3 filesystems.
9439         * gendef.sh (t): Change definition to work with DOS/Windows.
9441         doc/groff.texinfo: Apart of some typo corrections, I also changed
9442         some index entris, to make them more non-ambiguous, and also put
9443         @ignore around some parts that are not yet written, to allow the
9444         Info output be readable.
9446 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
9448         Replaced specific checks for function declarations with a generic
9449         routine taken from GNU bfd.
9451         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
9452         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
9453         * configure.in: Use it.
9454         * src/devices/grolbp/lbp.cc, src/include/lib.h,
9455         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
9456         src/roff/groff/groff.cc: Use it.
9457         * Makefile.in, configure: Updated.
9459 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
9461         * src/devides/grolbp/lbp.h: Removed unused variables.
9463 2000-05-31  Keith Thompson  <kst@sdsc.edu>
9465         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
9466         strncasecmp().
9468 2000-05-31  Werner LEMBERG  <wl@gnu.org>
9470         * aclocal.m4 (GROFF_SRAND): New function to test the return value
9471         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
9472         * configure.in: Use it.
9473         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
9474         * configure, Makefile.in: Updated.
9476         * configure.in: Add test for strncasecmp().
9477         * src/include/lib.h: Use it.
9479 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
9481         * src/preproc/grn/Makefile.sub: Add MLIB.
9483 2000-05-29  Nix  <nix@esperi.demon.co.uk>
9485         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
9487 2000-05-29  Werner LEMBERG  <wl@gnu.org>
9489         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
9491         * PROBLEMS: Small update.
9493         * src/devices/grolbp/lbp.cc: Various small fixes.
9495 2000-05-28  Keith Thompson  <kst@sdsc.edu>
9497         * src/roff/nroff/nroff.sh: Fix main loop syntax.
9499         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
9501 2000-05-25  Werner LEMBERG  <wl@gnu.org>
9503         * man/roff.man: Removed unused macro.
9505 2000-05-24  Werner LEMBERG  <wl@gnu.org>
9507         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
9508         This is needed e.g. if you do
9509         `make distclean; ./configure; make dist'.
9511 Version 1.16 released
9512 =====================
9514 2000-05-23  Werner LEMBERG  <wl@gnu.org>
9516         Adding font CWI (constant width italic) to devdvi.
9518         * font/devdvi/CWI: New file.
9519         * font/devdvi/generate/Makefile: Add generating rule.
9520         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
9521         tmac/tmac.dvi: Use it.
9522         * NEWS: Announce it.
9524         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
9525         * font/devlj4/generate/Makefile: Cosmetic changes only.
9527         * man/groff.man: Removed most of the redundant description of
9528         special characters (which is in groff_char.man).  Added font
9529         translation CB->CR for devdvi.  Other minor fixes.
9531         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
9532         (registered) symbols.
9534 2000-05-22  Werner LEMBERG  <wl@gnu.org>
9536         * doc/Makefile: Added rule for creating info files.
9538         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
9539         AMS font metrics.
9540         * font/devdvi/generate/Makefile: Fixed dependencies.
9542         * font/devps/*: Regenerated.  Heavy changes for Bookman and
9543         NewCentury Schoolbook!
9544         * font/devps/generate/afmname: Will now run with GNU awk.
9545         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
9546         * font/devps/generate/Makefile: Cosmetic changes only.
9548 2000-05-21  Werner LEMBERG  <wl@gnu.org>
9550         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
9551         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
9552         `.SS' now produces a heading with a smaller size than `.SH'. 
9553         Completely formatted.
9554         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
9556         * man/groff.man: Improved table appearance.  Use of `eo' request
9557         to reduce number of doubled backslashes in macro definitions.
9558         Replacing `\e' with `\(rs'.  Other minor fixes.
9560         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
9561         to have correct line number.
9563         * INSTALL: Small improvement.
9565 2000-05-20  Bernd Warken  <bwarken@mayn.de>
9567         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
9568         WL).
9570 2000-05-19  Bernd Warken  <bwarken@mayn.de>
9572         * man/groff.man: Complete update (with a lot of corrections by WL).
9574 2000-05-18  Werner LEMBERG  <wl@gnu.org>
9576         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
9578         * font/*/*: Implement it.
9579         * man/groff_char.man, NEWS: Document it.
9581         * src/include/unix.h: Removed.  It isn't used.
9583         * doc/groff.texinfo: Slight improvements.
9585 2000-05-17  Werner LEMBERG  <wl@gnu.org>
9587         * README, win32-diffs: Small fixes and improvements.
9589 2000-05-16  Werner LEMBERG  <wl@gnu.org>
9591         * FDL: New file (the Free Documentation License version 1.1).
9593         * doc/groff.texinfo: Added many start-up values for gtroff.
9594         Some structural improvements of the source code.
9596 2000-05-15  Werner LEMBERG  <wl@gnu.org>
9598         * src/roff/troff/input.cc: Added small comment about troffrc-end.
9599         * src/roff/troff/troff.man: Added info about troffrc-end.
9601 2000-05-14  Werner LEMBERG  <wl@gnu.org>
9603         * Makefile.in (EXTRADIRS): Fix typos.
9604         (dist): Handle deletion of old .tar.gz file correctly.
9605         (DISTDIRS): Include all tty output devices.
9607         * doc/groff.texinfo: Adding more cross references; countless other
9608         fixes.
9610 2000-05-13  Werner LEMBERG  <wl@gnu.org>
9612         * MORE.STUFF: Added Robert Marks's utilities.
9614 2000-05-12  Werner LEMBERG  <wl@gnu.org>
9616         Added win32 port contributed by Blake McBride
9617         <blake@florida-software.com>.
9619         * README.WIN32, win32-diffs: New files.
9620         * NEWS: Updated.
9622         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
9623         (tmove, tmove2): Added parentheses to avoid compiler warnings.
9624         (change): Removed unused variables.
9626         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
9627         (savebounds): Changed return value from `int' to `void'.
9628         * src/preproc/grn/hdb.cc: Ditto.
9630         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
9631         final backslash in comment to avoid compiler warning.
9633         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
9635         * doc/groff.texinfo: More fixes.
9637 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
9639         * tmac/tmac.doc: Documentation fix.
9641 2000-05-11  Werner LEMBERG  <wl@gnu.org>
9643         * doc/groff.texinfo: Reading the source code shows up a lot of
9644         omissions and incorrect data...  More conversion to @Deffn macros.
9646 2000-05-10  Werner LEMBERG  <wl@gnu.org>
9648         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
9649         dependency.
9651         * src/roff/troff/request.h: Removing unused `no_break_flag'.
9653 2000-05-09  Werner LEMBERG  <wl@gnu.org>
9655         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
9656         improvements.
9658         * doc/groff.texinfo: Extended history section.  More conversion to
9659         @Deffn macros.  More .tr documentation.
9661 2000-05-07  Werner LEMBERG  <wl@gnu.org>
9663         * doc/groff.texinfo: Completed tab section.  Added info about
9664         fields.
9666 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
9668         * PROBLEMS: Describe configure script fix for OS/390 Unix.
9670 2000-05-05  Werner LEMBERG  <wl@gnu.org>
9672         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
9673         LaTeX 2e).
9674         * NEWS: Document it.
9676         * man/troff.man: Minor optical improvements.
9678 2000-05-03  Werner LEMBERG  <wl@gnu.org>
9680         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
9682         * font/*/*: Implement it.
9683         * man/groff_char.man, NEWS: Document it.
9685 2000-05-02  Werner LEMBERG  <wl@gnu.org>
9687         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
9688         expansion.
9689         * NEWS: Document the three new man pages.
9691         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
9692         * configure: Updated.
9694         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
9696 2000-05-01  Werner LEMBERG  <wl@gnu.org>
9698         Added grap support to grog.
9700         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
9701         * src/roff/grog/grog.man: Document it.
9703         * doc/groff.texinfo, NEWS: Add info about grap support.
9705         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
9706         (with slight fixes by me).
9708         * tmac/groff_tmac.man: New file documenting tmac mechanism.
9709         * tmac/Makefile.sub: Add groff_tmac.man.
9710         * man/roff.man: New file giving overview of roff system.
9711         * man/troff.man: A short reference of troff.
9712         * man/Makefile.sub: Add roff.man and troff.man.
9714 2000-04-30  Werner LEMBERG  <wl@gnu.org>
9716         Added grap support to groff.
9718         * src/roff/groff/groff.cc: Implement it.
9719         * src/roff/groff/groff.man: Document it.
9721         * src/devices/grotty/grotty.man: Add cp1047 device.
9722         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
9723         Ditto.
9724         * src/roff/groff/groff.man: Ditto.
9725         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
9726         * doc/groff.texinfo: Ditto.
9728         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
9729         for cp1047.
9731 2000-04-29  Werner LEMBERG  <wl@gnu.org>
9733         * man/groff_char.man: Add `pc' glyph.
9734         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
9735         * tmac/tmac.tty: Add `pc' glyph.
9736         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
9737         we use cp1047 output device.
9739         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
9740         there are still hardcoded latin1->unicode values in utf8's font
9741         definition files.
9742         * configure: Updated.
9743         * NEWS: Minor clarification.  Updated.
9745         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
9746         Unix.
9748 2000-04-28  Werner LEMBERG  <wl@gnu.org>
9750         Adding EBCDIC code page 1047.
9752         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
9753         font/devcp1047/DESC.proto: New files.
9755         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
9756         either ascii/latin1 or cp1047.
9757         * Makefile.in: Use it.
9758         * configure: Updated.
9760         Replacing and/or adding `md' (mathdot) glyph with `pc'
9761         (periodcentered) in all text fonts.
9763         * font/*/*: Change it.
9765 2000-04-27  Werner LEMBERG  <wl@gnu.org>
9767         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
9769         * configure.in: Add check for strings.h.
9770         * src/include/driver.h: Use HAVE_STRINGS_H.
9771         * src/devices/grolbp/lpb.cc: Remove string.h.
9773         * src/include/groff-getopt.h: New file.  It will be used instead of
9774         getopt.h (to be included in lib.h) to avoid endless problems with
9775         picky C++ compilers.
9776         * src/include/lib.h: Use groff-getopt.h.
9777         * src/include/Makefile.sub: Updated.
9779         * configure: Updated.
9780         * Makefile.in: Updated.
9782         * NEWS: Mention EBCDIC support.
9784 2000-04-26  Werner LEMBERG  <wl@gnu.org>
9786         * TODO: Some additions.
9788 2000-04-25  Werner LEMBERG  <wl@gnu.org>
9790         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
9791         of mso request.
9793 2000-04-23  Werner LEMBERG  <wl@gnu.org>
9795         * src/roff/troff/troff.man: Minor fixes.
9797 2000-04-22  Werner LEMBERG  <wl@gnu.org>
9799         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
9800         `.T' string register and the incompatible definition of the `.T'
9801         number register (compared to Unix troff).
9803         * man/groff_char.man: Add some missing characters.
9804         * font/devutf8/NOTES: Update.
9806 2000-04-21  Werner LEMBERG  <wl@gnu.org>
9808         * src/include/htmlindicate.h, src/include/lib.h,
9809         src/include/posix.h: Fix copyright.
9811         * src/include/Makefile.sub: Update.
9813 2000-04-20  Werner LEMBERG  <wl@gnu.org>
9815         * src/roff/troff/input.cc (input_char_description): Removing
9816         superfluous space char.
9818         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9820         * doc/groff.texinfo: Document EBCDIC.
9822 2000-04-19  Werner LEMBERG  <wl@gnu.org>
9824         Introducing `shc' as the glyph name for the soft hyphen character.
9826         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9827         font/devlatin1/R.proto: Use it.
9829         * NEWS: Updated.
9831 2000-04-18  Werner LEMBERG  <wl@gnu.org>
9833         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9834         dependency on ASCII order.
9836 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
9838         * src/libs/libgroff/illegal.c: Added EBCDIC table.
9839         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9841         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9842         to increase portability.
9844 2000-04-15  Werner LEMBERG  <wl@gnu.org>
9846         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9847         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9848         the generic `\n' if under OS/390 Unix.
9850         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9852         * configure: Regenerated.
9854 2000-04-14  Werner LEMBERG  <wl@gnu.org>
9856         * doc/groff.texinfo: More conversions to @Deffn.
9858 2000-04-12  Werner LEMBERG  <wl@gnu.org>
9860         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9861         with `:'.
9863         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9865 2000-04-10  Werner LEMBERG  <wl@gnu.org>
9867         * doc/groff.texinfo: More conversions to @Deffn.
9869 2000-04-08  Werner LEMBERG  <wl@gnu.org>
9871         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9872         Updated to latest version (glibc 2.1.3).
9874 2000-04-07  Werner LEMBERG  <wl@gnu.org>
9876         * doc/Makefile (clean): Include more index files.
9877         Add rule texinfo->dvi.
9879 2000-04-05  Werner LEMBERG  <wl@gnu.org>
9881         * doc/groff.texinfo: Added new index `op' for operators.  More
9882         info on end of sentence characters.  More use of @Deffn.
9884 2000-03-30  Werner LEMBERG  <wl@gnu.org>
9886         * */*.man: Adding a note that a whitespace can be inserted between
9887         a command line option and its parameter -- we are using GNU getopt.
9889         * src/roff/groff/groff.man: Add example of `-m mandoc'.
9891 2000-03-28  Werner LEMBERG  <wl@gnu.org>
9893         Correct anachronism of calling the man macro file with `-man'
9894         instead of `-m man' etc.
9896         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9897         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9898         load tmac.<package>.
9900         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
9902         * NEWS: Updated.
9904         * doc/groff.texinfo: Updated.
9906         * tmac/groff_man.man: Copyright added.
9908 2000-03-27  Werner LEMBERG  <wl@gnu.org>
9910         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9911         typeset the request resp. escape name with a tt font -- due to a
9912         bug in texinfo.tex it is necessary to use the `-e' switch with
9913         texi2dvi.
9915         Improving info about usage of groff units.
9917         Other minor fixes.
9919 2000-03-20  Werner LEMBERG  <wl@gnu.org>
9921         * doc/groff.texinfo: Added section about man macro package
9922         (I've basically taken groff_man.man).  Introducing new indices `ma'
9923         for macros/strings and `gl' for glyph names.  Other minor fixes.
9925         * tmac/groff_man.man: Fixed some typos.
9927 2000-03-19  Werner LEMBERG  <wl@gnu.org>
9929         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9930         Other minor fixes.
9932         * doc/texinfo.tex: New file.
9934 2000-03-18  Werner LEMBERG  <wl@gnu.org>
9936         * doc/groff.texinfo: Improved section on number registers.  Other
9937         minor updates.
9939 2000-03-16  Werner LEMBERG  <wl@gnu.org>
9941         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
9942         synopsis.
9944         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9945         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9946         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9947         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9949         * src/preproc/grn/grn.man: Better synopsis; added copyright.
9951         * src/roff/grog/grog.man: Updated copyright date.
9953 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
9955         * configure.in: Added test for strdup.
9957         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9958         is available.
9960         Replaced dynamic allocation of arrays `[...]' with `new' operator.
9962         Other minor fixes.
9964 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
9966         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9968 2000-03-11  Werner LEMBERG  <wl@gnu.org>
9970         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9971         compilers silent.
9972         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9973         * src/include/lib.h: Remove some spaces.
9975 2000-03-10  Werner LEMBERG  <wl@gnu.org>
9977         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9978         initializers from arguments (some compilers don't like this).
9980 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
9982         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9983         used by pic and eqn to tell grohtml where the graphic regions start
9984         and end.
9985         * src/libs/libgroff/Makefile.sub: Use it.
9986         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9987         graphic_start() and graphic_end() from htmlindicate.cc.
9989 2000-03-09  Werner LEMBERG  <wl@gnu.org>
9991         * tmac/tmac.safer: Will now work correctly in compatibility mode.
9992         * tmac/groff_man.man: More fixes.
9994 2000-03-08  Werner LEMBERG  <wl@gnu.org>
9996         * doc/Makefile: Added texput.log to the `clean' target.
9997         * doc/groff.texinfo: Added info about delimiters for escapes.
9999 2000-03-08  Bernd Warken  <bwarken@mayn.de>
10001         * src/preproc/pic/pic.man: Add info on conversion of pic images to
10002         other graphic formats.
10004 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
10006         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10007         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10008         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10009         files.
10011 2000-03-07  Werner LEMBERG  <wl@gnu.org>
10013         * doc/groff.texinfo: Spelling fixes.
10015 2000-03-06  Werner LEMBERG  <wl@gnu.org>
10017         * tmac/groff_man.man: Completely revised to cover everything in
10018         tmac.an.
10020         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10021         Other minor fixings.
10022         * src/roff/troff/env.cc (environment_copy): Improve error message and
10023         fix itoa->i_to_a.
10024         * src/roff/troff/TODO: Updated.
10026         * doc/Makefile: Bug fixes -- this is still provisional, though...
10028         * tmac/eqnrc: Small fixes.
10030 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10032         Adding a request `evc' to copy environments.
10034         * src/roff/troff/env.cc (environment::copy, environment_copy):
10035         Implement it.
10036         * src/roff/troff/env.h: Add prototype.
10038 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
10040         Adding strsep() -- Solaris 8 doesn't have it.
10042         * configure.in: Test it.
10043         * src/devices/grolbp/lbp.cc: Add code.
10045 2000-03-05  Werner LEMBERG  <wl@gnu.org>
10047         * src/roff/troff/div.cc (macro_diversion::output,
10048         top_level_diversion::output): Fixing an incompatibility with
10049         original troff: \x'0' updates the .a register also.  Thanks to
10050         <Andries.Brouwer@cwi.nl> for pointing this out.
10051         * doc/groff.texinfo: Document it.
10053         * Makefile.in: Create Makefile.dep if necessary before calling the
10054         submake process to avoid warning about nonexistent file.
10056         * NEWS, PROJECTS: Updated.
10058 2000-03-04  Werner LEMBERG  <wl@gnu.org>
10060         * tmac/troffrc: Add tmac.lbp.
10062 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
10064         * tmac/tmac.lbp: New file.
10065         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10066         command.
10068 2000-03-03  Werner LEMBERG  <wl@gnu.org>
10070         * Makefile.in: Fixing $(subdir).
10072         * README, NEWS: Small fixes.
10074         * test-groff: Adding path to grolbp.
10076         * configure.in: The (new) file src/xditview/Imakefile.in will be
10077         also configured -- it is now possible to build gxditview in a
10078         directory different from $srcdir.
10080 2000-03-02  Blake McBride  <blake@florida-software.com>
10082         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10084         * MORE.STUFF: Added website of bell labs and info about plot2dev.
10086 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
10088         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10089         files.
10091 2000-02-29  Werner LEMBERG  <wl@gnu.org>
10093         Adding GNU getopt to the groff distribution.
10095         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10096         New files.
10097         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10098         * aclocal.a4: Remove GROFF_GETOPT function.
10099         * configure.in, Makefile.in, PROBLEMS: Update.
10100         * src/include/lib.h: Replace getopt tests with getopt.h.
10101         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10103         * doc/groff.texinfo: Further checking/updating.  Adding more index
10104         entries.
10106         * man/groff_out.man: Fix nroff mode activation (for emacs).
10107         * man/groff_font.man: Add missing ligature.
10109 2000-02-28  Werner LEMBERG  <wl@gnu.org>
10111         * doc/groff.texinfo: Further checking/updating.  Adding more index
10112         entries.
10114         * src/devices/grolbp/grolbp.man: Added a comment line at the
10115         beginning of the file (similar to shell scripts) which indicates
10116         that `tbl' should be used as a preprocessor.
10118 2000-02-27  Blake McBride  <blake@florida-software.com>
10120         Adapting groff to MS Visual C++ 6.0 compiler (tested with
10121         Windows NT 4.0).  Uses _MSC_VER define where necessary.
10123         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
10124         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
10125         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
10126         src/include/lib.h, src/libs/libgroff/errarg.cc,
10127         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
10128         src/preproc/refer/label.y, src/preproc/refer/label.cc,
10129         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
10130         src/roff/troff/div.cc, src/roff/troff/env.cc,
10131         src/roff/troff/input.cc, src/roff/troff/node.cc,
10132         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
10133         if_to_a() to avoid name clashes.
10134         * src/include/posix.h: Don't use unistd.h.
10135         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
10136         clause for integrating non-Unix xtmpfile() code.
10137         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
10138         structure; use "rt" for popen() in pipe_source(); add getpid()
10139         dummy function.
10140         * src/roff/troff/node.cc: Use special versions of popen() in
10141         real_output_file() and pclose() in ~real_output_file().
10143 2000-02-27  Werner LEMBERG  <wl@gnu.org>
10145         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
10146         LBP-8 series laser printers).  This code has been contributed by
10147         Francisco Andrés Verdú <pandres@dragonet.es>.
10149         * src/devices/grolbp/*: The grolbp output device.
10150         * font/devlpb/*: The font description files.
10151         * Makefile.in: Add grolpb and devlbp subdirectories.
10153         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
10154         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
10155         typographic fixes.
10157         * doc/groff.texinfo: Further checking/updating.  Adding more index
10158         entries.
10160         * NEWS: Updated.
10162         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
10164         * man/groff_font.man: Adding info about obsolete DESC keywords.
10165         * src/devices/grolj4/grolj4.man: Documenting additional DESC
10166         keywords.
10168 2000-02-26  Werner LEMBERG  <wl@gnu.org>
10170         * src/preproc/grn/grn.man: Added info about the gremlin file format
10171         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
10173 2000-02-25  Werner LEMBERG  <wl@gnu.org>
10175         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
10176         friends to be non-integer.
10178         * src/preproc/grn/grn.man: Document it.
10180         * doc/groff.texinfo: Further checking/updating.  Adding more index
10181         entries.
10183 2000-02-24  Werner LEMBERG  <wl@gnu.org>
10185         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
10186         line thicknesses to be integer multiples of this value.
10188         * src/preproc/grn/grn.man: Commenting out the -s option -- the
10189         corresponding code doesn't work (yet).
10191         * doc/groff.texinfo: Further checking/updating.  Adding more index
10192         entries.
10194 2000-02-23  Werner LEMBERG  <wl@gnu.org>
10196         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
10197         specify line thickness instead of base units.  The new default
10198         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
10199         thick lines respectively.
10201         Removed unused variable `prevval'.
10203         * src/preproc/grn/grn.man: Updated.
10205 2000-02-22  Werner LEMBERG  <wl@gnu.org>
10207         * src/preproc/grn/main.cc: Slight formatting.
10209         * src/roff/groff/groff.man: Formatting fix.
10210         * src/preproc/grn/grn.man: Ditto.
10212         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
10214         * doc/groff.texinfo: Further checking/updating.
10216 2000-02-21  Werner LEMBERG  <wl@gnu.org>
10218         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
10220         * test-groff: Added grn subdir to path.
10222         * doc/groff.texinfo: Some restructing and other small improvements.
10224         * src/roff/groff/groff.cc (help): Fixed info string.
10226 2000-02-20  Werner LEMBERG  <wl@gnu.org>
10228         * doc/meref.me: Fix description of .GS request.
10230         * src/roff/troff/troff.man: Fixing typo.
10232         Adding the `grn' preprocessor for gremlin graphic files.
10234         * src/preproc/grn/*: This is the Berkeley distribution written by
10235         David Slattengren and Barry Roitblat, adapted to groff by Daniel
10236         Senderowicz and Werner Lemberg.
10238         * doc/grnexampl.{me,g}: A sample for grn.
10240         * Makefile.in: Added subdirectory entry for grn.
10242         * src/roff/groff/groff.cc: Added support for grn.  It can be now
10243         called with the switch `-g'.
10245         * src/roff/groff/groff.man: Updated.
10247         * src/roff/grog/grog.{man,pl,sh}: Updated.
10249         * NEWS: Updated.
10251 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
10253         * src/include/lib.h: Added xtmptemplate and made xtmpfile
10254         parametrically polymorphic.
10256         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
10257         and the alterations to xtmpfile.
10258         xtmpfile can be requested to return the filename created
10259         and asked not to unlink the temp file.  The default behaviour
10260         if parameters are absent is exactly the same as before.
10262 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
10264         A new request `length' is available which returns the length of a
10265         string in a number register:
10267         * src/roff/troff/input.cc (length_macro): Implement it.
10268         * src/roff/troff/input.cc (init_input_requests): Register it.
10270 2000-02-11  Werner LEMBERG  <wl@gnu.org>
10272         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
10273         of the `substring' request.
10275         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
10276         request.
10278         * src/roff/troff/TODO, NEWS: Updated.
10280 2000-02-09  Werner LEMBERG  <wl@gnu.org>
10282         * src/roff/groff/groff.man: Added an example.
10284 2000-02-06  Werner LEMBERG  <wl@gnu.org>
10286         I've considerably modified the directory structure of the
10287         distribution to get a more vertical layout.  For example, the number
10288         of top level directories has been reduced from 42 to 6.
10290         As a consequence, many changes, especially to the makefiles, were
10291         necessary:
10293         * The makefile variables `top_builddir' and `top_srcdir' have been
10294         introduced.  Virtually all relative paths have been replaced with
10295         absolute ones using these two variables.
10297         * Dependencies (in the files `Makefile.dep') are no longer part of
10298         the distribution.  Instead, they are created during a `make install'
10299         in the build directory.
10301         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
10302         make `top_srcdir' and `top_builddir' absolute.
10304         Some other changes:
10306         * Man pages now depend on the files `VERSION' and `REVISION'.
10308         * The added shell script `mkinstalldirs' will replace `mkdir' in
10309         almost all cases.
10311         * VERSION: Version number increased to 1.16.
10313 2000-02-04  Werner LEMBERG  <wl@gnu.org>
10315         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
10317         * Makefile.in: Removed $(tmac_m) since it is no longer needed
10318         (after an update of the mm stuff).
10320         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
10322 2000-02-03  Werner LEMBERG  <wl@gnu.org>
10324         The .psbb request will now also accept Mac PS images (i.e. using LF
10325         as the EOL character).
10327         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
10328         (with slight modifications).
10329         * troff/input.cc (do_ps_file): Use it.
10331         * test-groff: Add grohtml and grolj4 output devices to PATH.
10333 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10335         * NEWS, MORE.STUFF: Updated.
10337 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
10339         Add the `srand' command to pic.
10341         * pic/lex.cc, pic/pic.y: Implement it.
10342         * pic/pic.man: Document it.
10343         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
10345 2000-01-30  Werner LEMBERG  <wl@gnu.org>
10347         Add a new request `.psbb'.  This does exactly what the external
10348         program psbb did.  It scans a PostScript image file for a
10349         %%BoundingBox comment and extracts the bounding box values (in
10350         PostScript units) which are then stored in the four new (read-only)
10351         number registers `llx', `lly', `urx', and `ury'.
10353         This will allow the usage of the .PSPIC macro without worrying
10354         about unsafe behaviour of groff, i.e., it will work without the
10355         `-U' switch of groff.
10357         * troff/input.cc: Implement it.
10358         * tmac/tmac.pspic: Use it.
10359         * troff/troff.man, grops/grops.man, NEWS: Document it.
10360         * psbb/*, Makefile.in: Remove it since it is no longer needed.
10362         This is bloody C code simply adapted from psbb.c!  Any improvements
10363         welcome.
10365 2000-01-29  Werner LEMBERG  <wl@gnu.org>
10367         * man/groff_font.man: Minor clarifications.
10369         * NEWS: Updated.
10371 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10373         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
10375 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
10377         * man/groff_font.man: Brought up to date regarding tcommand
10378         extensions.
10379         * libgroff/font.cc: Handle everything after `--' as a comment
10380         in the font files.
10381         * devps/*: Added comment delimiter inside devps font files.
10383 2000-01-28  Werner LEMBERG  <wl@gnu.org>
10385         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
10386         \fC...\fP (which now works as expected).
10388         * troff/troff.man: Fix typo.
10390 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
10392         Completed the pass_filenames implementation in troff.
10394         * libdriver/input.cc: Will read the new `F' tcommand.
10395         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
10396         * troff/input.cc: Use it.
10398 2000-01-26  Werner LEMBERG  <wl@gnu.org>
10400         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
10401         font will now be updated even if an invalid font is selected.
10403 2000-01-24  Werner LEMBERG  <wl@gnu.org>
10405         * doc/homepage.ms: Updated for new tmac.arkup.
10407         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
10409         * tmac/tmac.arkup: Cleanup.
10411         Added `\&' to .HTML macro to `leave vertical mode', so to say.
10413         Removed obsolete .LINK macro completely.
10415         The macros .URL, .FTP, and .MAILTO now accept a third argument which
10416         will be immediately appended to the second argument (to be used with
10417         punctuation, for example).
10419         Disabled .CDFTP macro temporarily for security reasons.
10421         * tmac/groff_markup.man: Complete revision for latest changes in
10422         tmac.arkup -- note that it does not yet format correctly with
10423         grohtml :-(
10425 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
10427         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
10428         * devutf8/R.proto: Add mappings for wp, lh, rh.
10429         * devutf8/NOTES: Updated.
10431 2000-01-23  Werner LEMBERG  <wl@gnu.org>
10433         * doc/groff.texinfo: Updated version/copyright info.
10435 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
10437         Added support for two new directives in device descriptions:
10438         `pass_filenames' (to pass the input file name to the output device)
10439         and `use_charnames_in_special' (to support e.g. accented characters
10440         in the `X' request).
10442         * include/font.h, troff/charinfo.h: Declare it.
10444         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
10446         * devhtml/DESC: Use it.
10448         * troff/input.cc: New function encoded_char.
10450         * troff/token.h: Add test for `specialness'.
10452 2000-01-21  Werner LEMBERG  <wl@gnu.org>
10454         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
10455         mistake from the list of files to be installed.
10457 2000-01-18  Werner LEMBERG  <wl@gnu.org>
10459         * README: Added info how to apply patches.
10461 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
10463         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
10465 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10467         * troff/input.cc: Add support for troffrc-end.
10469         * tbl/main.cc: Altered to issue table-start and table-end special
10470         characters if using the html device.
10472         * devhtml/*: Modified font files to incorporate html encoding of
10473         characters.
10475         * tmac/groff_markup.man: New file documenting tmac.arkup.
10477         * tmac/troffrc-end: New file.  This is invoked after all user
10478         specified macros.  Currently used by the html device to include
10479         tmac.html.  Thus no need for users to specify -mhtml anymore.
10481         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
10482         (MAN7): Add groff_markup.man.
10484         * tmac/tmac.an, tmac/tmac.html: Small html updates.
10486         * tmac/troffrc: tmac.arkup will now be called for the html device.
10488         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
10489         extra device specific information about fonts.
10491         * doc/homepage.ms: New file.  It is an example how an HTML home page
10492         could look like with grohtml.
10494         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
10496 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
10498         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
10499         of Im, Re.
10501         * devutf8/NOTES: Updated.
10503 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
10505         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
10506         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
10507         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10508         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
10509         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
10510         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
10511         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
10512         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
10513         warnings.
10515         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
10517 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
10519         grolj4: Paper size will be searched case-insensitively.
10521         * include/lib.h: Add check for strcasecmp().
10522         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
10523         * configure.in: Check for strcasecmp().
10525 2000-01-11  Werner LEMBERG  <wl@gnu.org>
10527         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
10528         `REVISION'.
10530 2000-01-10  Werner LEMBERG  <wl@gnu.org>
10532         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
10533         revision scheme.
10535         Add a new read-only register, `.Y', which contains the groff
10536         revision.
10538         * troff/input.cc (init_input_requests): Define it.
10539         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
10540         * doc/groff.texinfo, troff/troff.man: Document it.
10542         * libgroff/Makefile.sub (version.cc): Add definition of
10543         `Version_string[]', consisting of `<major>.<minor>.<revision>'
10544         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
10545         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
10546         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
10547         troff/input.cc, pfbtops/pfbtops.c: Use it.
10549 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
10551         Add a revision scheme to the groff package.
10553         * REVISION: New file.
10554         * libgroff/Makefile.sub (version.cc): Use it to define
10555         `revision_string[]'.
10556         * grops/psrm.cc: Use revision_string (converted to an unsigned
10557         integer) in constructor of resource_manager.
10559 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
10561         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
10562         files.
10563         * Makefile.in (DEVDIRS): Add devutf8.
10564         * grotty/tty.cc: Include device.h.
10565         (glyph): Change type of `code' to `unsigned int'.
10566         (tty_printer): New field is_utf8.  Constructor takes device argument.
10567         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
10568         (tty_printer::add_char): Change type of first arg to `unsigned int'.
10569         (tty_printer::put_char): New function.
10570         (tty_printer::end_page): Use put_char() instead of ::putchar().
10571         (make_printer): Pass device to tty_printer constructor.
10572         * nroff.sh: Determine default device by calling 'locale'.  As a
10573         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
10574         Recognize UTF-8 locales.
10575         * tmac/eqnrc: Recognize utf8 like latin1.
10576         * tmac/troffrc: Device utf8 needs tmac.tty.
10578 2000-01-07  Werner LEMBERG  <wl@gnu.org>
10580         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
10582 2000-01-07  Paul Eggert  <eggert@twinsun.com>
10584         Add a new predefined writeable number register, `year',
10585         which contains the current year.
10587         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
10588         * tmac/tmac.s: Use it.
10589         * troff/input.cc (init_registers): Initialize it.
10591 2000-01-06  Werner LEMBERG  <wl@gnu.org>
10593         * PROBLEMS: Fixed typo.
10595 2000-01-04  Paul Eggert  <eggert@twinsun.com>
10597         * PROBLEMS: Add Y2k advice for the yr number register.
10599 2000-01-03  Paul Eggert  <eggert@twinsun.com>
10601         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
10603 2000-01-02  Werner LEMBERG  <wl@gnu.org>
10605         * tmac/tmac.arkup: Slight modification of macros to provide better
10606         appearance for non-HTML formats.
10608 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
10610         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
10611         does not automatically translate to malloc(n) on all OSes
10612         (e.g., SunOS) so do it explicitly.  Also, check the returned
10613         value.
10615 2000-01-01  Werner LEMBERG  <wl@gnu.org>
10617         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
10619         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
10620         expects this variable
10622 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
10624         * doc/Makefile: Added instructions to create HTML and text
10625         versions of some files.
10627 1999-12-31  Werner LEMBERG  <wl@gnu.org>
10629         * Updated INSTALL.gen.
10631         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
10632         better resp. correctly with non-HTML devices.
10634 Version 1.15 released
10635 =====================
10637 1999-12-28  Werner LEMBERG  <wl@gnu.org>
10639         * NEWS, VERSION: Changed to 1.15
10641 1999-12-27  Paul Eggert  <eggert@twinsun.com>
10643         * nroff/nroff.man: -S is safer, not safe.
10645         * groff/groff.cc (main): Use `safer', not `safe', in variable
10646         names.  This does not change the behavior.
10648         * troff/input.cc (main): Likewise.
10650         * nroff/nroff.sh: Likewise.
10652         * troff/input.cc (prepend_string): New function.
10653         (main): Prepend -msafer, so that we check macro libraries for
10654         safety.
10656         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
10658 Version 1.14 released
10659 =====================
10661 1999-12-26  Werner LEMBERG  <wl@gnu.org>
10663         * NEWS, VERSION: Changed to 1.14.
10665 1999-12-24  Werner LEMBERG  <wl@gnu.org>
10667         * refer/refer.cc: Fixing the last fix.
10669 Version 1.13 released
10670 =====================
10672 1999-12-23  Werner LEMBERG  <wl@gnu.org>
10674         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
10675         number disappear.
10677         * NEWS: Updated.
10679         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
10681         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
10682         document conventions, the version number must be a real.
10684 Version 1.12.1 released
10685 =======================
10687 1999-12-22  Werner LEMBERG  <wl@gnu.org>
10689         * VERSION: Changed to 1.12.1.
10691 1999-12-22  Alan Rooks  <arooks@istar.ca>
10693         * refer/refer.cc (do_file): Slight modification to satisfy the
10694         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
10695         UnixWare 7.1.
10697 1999-12-20  Werner LEMBERG  <wl@gnu.org>
10699         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
10700         notices.
10702         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
10703         list of unsafe requests.
10705         * pic/pic.man: Fixed a typo.
10707         * man/groff_out.man: Fixed a typo.
10709 1999-12-18  Werner LEMBERG  <wl@gnu.org>
10711         * Makefile.in: Doc fixes.
10713 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
10715         * groff/groff.cc: Missing `U' option added to getopt().
10717         * troff/troff.man: Missing `U' option added to synopsis.
10719 Version 1.12 released
10720 =====================
10722 1999-12-14  Werner LEMBERG  <wl@gnu.org>
10724         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
10725         to the synopsis.
10727         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
10728         with the more appropriate terms `safer' and `unsafe'.
10730         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
10731         sys_nerr and sys_errlist[].
10733         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
10735         * pic/pic.y, pic/pic.cc: Added check for fmod().
10737 1999-12-13  Werner LEMBERG  <wl@gnu.org>
10739         * VERSION: Changed to 1.12.
10741         Here some patches from various sources; most of them taken from
10742         the Debian distribution.
10744         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
10745         tmac/Makefile.sub: New files copied directly from the NetBSD
10746         distribution.  Probably, some additional adaptation later on is
10747         necessary...
10749         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
10750         of unsafe requests.
10752         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
10753         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
10754         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
10755         (`-S') is now the default.
10757         * README, NEWS: Updated.
10759 1999-12-09  Werner LEMBERG  <wl@gnu.org>
10761         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
10763         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
10765 1999-12-06  Werner LEMBERG  <wl@gnu.org>
10767         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
10768         grief than relief today.  Additionally, it is against the GNU
10769         coding standards.
10771         * configure: Recreated.
10773 1999-12-05  Werner LEMBERG  <wl@gnu.org>
10775         * configure.in: Added GROFF_LIBM.
10777         * configure: Recreated.
10779         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
10780         necessary.
10782         * Makefile.in: Added definition of $(LIBM).
10784         * Makefile.comm (LIBM): Removed.
10786         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
10788 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
10790         * doc/Makefile: Added rule for generation pic.html.
10792         (clean): Files produced by grohtml will be removed also.
10794         * doc/pic.ms: Small fix.
10796         * tmac/tmac.html: Fixed suppression of headers.
10798 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
10800         * tmac/tmac.html: Fixing horizontal arrows.
10802         Turning off hyphenation.
10804         * tmac/tmac.an: Improved support for grohtml; better indentation,
10805         no footers/headers.
10807 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
10809         * tmac/tmac.arkup: Added CDFTP macro
10811         * tmac/tmac.html: All headers are turned off for ms, me, and mm
10812         macros.
10814         * tmac/troffrc: Some additions for HTML stuff.
10816 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
10818         * tmac/tmac.html: Small changes.
10820 1999-09-26  Werner LEMBERG  <wl@gnu.org>
10822         * doc/groff.texinfo: Minor fixes.
10824 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
10826         * devhtml/TR: Changed spacewidth to 3.
10828         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10830         * tmac/tmac.html: Moved markup macros to tmap.arkup.
10832         * tmac/tmac.arkup: New file.
10834         * grohtml/ChangeLog: New file.
10836 1999-09-16  Werner LEMBERG  <wl@gnu.org>
10838         * doc/groff.texinfo (Common Features): Added Copying chapter.
10839         Changed format to @smallbook.
10841 1999-09-15  Werner LEMBERG  <wl@gnu.org>
10843         * NEWS: Added info about groff.texinfo.
10845         * doc/groff.texinfo: Will now compile (using texi2dvi) without
10846         warning messages.
10848 1999-09-14  Werner LEMBERG  <wl@gnu.org>
10850         * groff/groff.man: More updates.
10852 1999-09-13  Werner LEMBERG  <wl@gnu.org>
10854         * doc/groff.texinfo: New file.  This manual is still very
10855         rudimentary.  It has been originally contributed by Trent
10856         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10857         additions by me.
10859         * INSTALL: Added information about the `doc' subdir
10861         * troff/troff.man: Minor fixes.
10863         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10864         reordered options.
10866         * troff/input.cc (usage): Added missing `-ffam' to usage message.
10868         * Makefile.in (dist): groff-$(version).tar.gz must be removed
10869         also, otherwise it is included itself in another call of `make
10870         dist'.
10872         * groff/groff.cc (synopsis): Removed superfluous space.
10874         * PROJECTS, PROBLEMS, NEWS: Updated.
10876         * VERSION: Updated to 1.12beta.
10878         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
10880         * README: Updated: Included documentation about CVS repository,
10881         mailing lists, and daily snapshots.
10883         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10885 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
10887         * tmac/tmac.an: If the tag didn't fit into the space that the
10888         macro `TP' specifies, the rest of the tag went into the space for
10889         the next line.
10891 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
10893         * grolj4/lj4.cc: Added duplex printing (option `-d').
10895         * grolj4/grolj4.man: Document duplex printing.
10897 1999-09-12  Werner LEMBERG  <wl@gnu.org>
10899         * doc/Makefile (pic.ps): Fixed rule which caused problems with
10900         non-GNUish sed programs.
10902         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10903         definition.
10905         * configure.in (LIBS): Added `-lc'
10907         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10909         * pic/tex.cc (solid_arc): Casting M_PI to double.
10911         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10913         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10914         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10915         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10917         * groff/groff_man.man: New file.  This manual page was originally
10918         written for the Debian GNU/Linux system by Susan G. Kleinmann
10919         <sgk@debian.org>.
10921         * eqn/list.cc (list_box::compute_metrics,
10922         list_box::compute_sublist_width): Removed variable declaration to
10923         avoid shadowing warnings.
10925         * grops/psrm.cc (resource_manager::process_file): Ditto.
10927         * tfmtodit/tfmtodit.cc (main): Ditto.
10929         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10930         to avoid shadowing warnings.
10932         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10933         shadowing loop variable.
10935         * groff/groff.man, troff/troff.man: Added doc about grohtml.
10937 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
10939         New grohtml frontend to convert groff input to html.
10941         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10943         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10945         * tmac/eqnrc: Added html device.
10947         * tmac/tmac.html: New file.
10949         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10950         (troff_output::start_picture, troff_output::finish_picture),
10951         tbl/main.cc (process_input_file):
10952         Surrounded output with `graphics_start' and `graphics_end' so that
10953         the html driver can identify non-text portions.
10955         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10956         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10957         grotty/tty.ps (tty_printer::set_char): Additional parameter
10958         `name'.
10960         * include/printer.h: Class printer: New function
10961         set_char_and_width; new variables (is_char_named, is_named_set,
10962         named_command, named_char_s, named_char_n) to hold information
10963         about named characters -- needed by the html driver.
10965         * libdriver/printer.cc (printer::set_ascii_char,
10966         printer::set_special_char): Use set_char_and_width.
10968         * devhtml/*: New device files for html driver.
10970         * grohtml/*: New driver grohtml.
10972 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
10974         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10975         default strings.
10977 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
10979         * libgroff/string.cc (search): Small fix to test against NULL
10980         pointer.
10982 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
10984         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10985         \b'abc') were stacked in reverse order when processed in a
10986         diversion.
10988         * troff/node.h: Added `*last' to struct `node' to make the above
10989         fix work.
10991         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10992         The default scale for the 'f' and 't' graphics functions were 'm'
10993         rather than 'u' (i.e., no scaling).
10995 1999-09-11  Peter Miller  <peterm@jna.com.au>
10997         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10998         do_file), soelim/soelim.man: Added `-I file' option to soelim,
10999         defining include paths.
11001         * soelim/soelim.cc (include_path_append): New function.
11003 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
11005         * tbl/main.cc (process_options): Unix (at least Documenter's
11006         Workbench) tbl allows arbitrary non-alpha characters between
11007         options.
11009 1999-09-11  Paul Eggert  <eggert@twinsun.com>
11011         Y2k fixes.  Don't assume that the current year precedes 2000.
11013         * doc/meref.me: Add \n(y2, \n(y4.
11015         * tmac/doc-common (Yr): New number register.
11016         (Dd): Don't assume current year precedes 2000.
11018         * tmac/tmac.e (td): Likewise.
11019         (y2, y4): New number registers.
11021         * pic/pic.man: Update reference for pic paper to May, 1991
11022         version.
11024 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11026         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11027         Removed quotation marks which prevented correct expansion of
11028         $(tmac_wrap).
11030         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11032 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11034         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11035         `config.cache'.
11037         * Removed configure.old.
11039 1999-08-31  Werner LEMBERG  <wl@gnu.org>
11041         * VERSION: Updated to 1.11.1
11043 1999-05-27  Werner LEMBERG  <wl@gnu.org>
11045         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11047         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11048         added quotations around $(tmac_wrap) to avoid syntax error if
11049         variable is empty.
11051         * configure: Newly generated using autoconf 2.13.
11053         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11055 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
11057         * README, PROJECTS, NEWS, INSTALL, VERSION, 
11058         doc/Makefile. doc/pic.ms, groff/groff.man:
11059         Prepare for 1.11 release.  No code changes.
11060         Documentation for pic added (doc/pic.ms).
11062 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
11064         * Version 1.10 released.
11066 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
11068         * afmtodit/afmtodit.pl: Avoid comment on first line.
11070 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
11072         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11073         * configure.in: Call it.
11075         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11076         (distfiles): Doesn't depend on config.log or config.cache.
11078 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
11080         * grog/grog.sh: Use print "" rather than print in END rule.
11082 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
11084         * tbl/main.cc (process_data): Don't give error for excess data
11085         entries that are comments.
11087 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
11089         * tbl/main.cc (process_data): Fix case where new for-scope rules
11090         silently change meaning of code.
11092 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
11094         * troff/env.cc (hyphenate): Loop over all consecutive sequences
11095         of non-zero hyphenation codes.
11097 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
11099         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11101 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
11103         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11105 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
11107         * tmac/tmac.andoc: Make it work in compatibility mode.
11109         * refer/token.h (token_info::is_range_sep): New function.
11110         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
11111         * refer/ref.cc (reference::output): More sophisticated check for
11112         multiple pages.
11114         * devps/prologue.ps (MANUAL): New procedure.
11115         * grops/ps.cc (main): New -m option.
11116         (usage): Include -m.
11117         (ps_printer::~ps_printer): Implement -m.
11119         * aclocal.m4 (GROFF_G): New macro.
11120         * configure.in: Call it.
11121         * Makefile.in (g): Provided by configure.
11123         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
11125         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
11126         translations.
11128         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
11129         (tmac_m, tmac_s): Deleted.
11130         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
11131         tmac_s_prefix): New variables.
11132         (MDEFINES): Change accordingly.
11133         * Makefile.comm (.man.n): Use new TMAC_* variables.
11134         * configure.in (GROFF_TMAC): Call.
11135         * aclocal.m4 (GROFF_TMAC): Define.
11136         * tmac/Makefile.sub (stamp_wrap): New target.
11137         (install_data, uninstall_sub): Handle macro wrapping.
11139 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
11141         * tbl/main.cc (main): Ignore -T option.
11143 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
11145         * devlj4/generate/special.map: Add definition of \(nb.
11147         * tmac/tmac.dvi: Add definition of \(nb.
11149         * troff/dictionary.c (dictionary::dictionary): association::v gets
11150         initialized by association::association.
11152         * tmac/Makefile.sub: Avoid using temporary files when installing.
11154         * troff/env.cc (environment::set_font): Make bad font number a
11155         warning.
11157         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
11159         * Makefile.in (datadir): Use share rather than lib.
11161         * groff/groff.cc (basename): Rename to xbasename.
11163 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
11165         * Makefile (CCLIBS): Don't use.
11166         * Makefile.ccpg: Likewise.
11168         * acgroff.m4: Rename to...
11169         * aclocal.m4: Modify extensively for autoconf 2.
11170         * configure.in: Likewise.
11171         * Makefile.in: Likewise.
11173         * groff/pipeline.c (const): Declare as empty if __STDC__ not
11174         defined.
11175         (xstrsignal): Check for definition of NSIG. Conditionalize
11176         on SYS_SIGLIST_DECLARED.  Make return type const.
11178 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
11180         * troff/input.cc (interpolate_macro): Rephrase missing space
11181         warning.
11183 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
11185         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
11186         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
11187         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
11188         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11189         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
11190         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
11191         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
11192         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
11193         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
11194         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
11195         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
11196         Fix 'for' scoping.
11198 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
11200         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
11201         string_iterator.
11202         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
11203         file.
11204         (macro_iterator::macro_iterator): Add additional argument.
11206 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
11208         * troff/div.cc (vertical_size::vertical_size): In place of integer
11209         specifying line spacing use cunits specifying post vertical
11210         space.
11211         (macro_diversion::output, top_level_diversion::output): Likewise.
11212         * troff/div.h: Change declarations accordingly.
11213         * troff/env.cc (pending_output_line): Replace ls field by post_vs
11214         field.
11215         (pending_output_line::pending_output_line,
11216         pending_output_line::output, environment::output,
11217         environment::output_line, environment::output_title,
11218         environment::hyphenate_line):  In place of
11219         integer specifying line spacing use cunits specifying post vertical
11220         space.
11221         (environment::environment): Add post_vertical_spacing and
11222         prev_post_vertical_spacing arguments.
11223         (environment::get_post_vertical_spacing): New function.
11224         (environment::total_post_vertical_spacing): New function.
11225         (environment::post_vertical_spacing): New function.
11226         (init_env_requests): Initialize pvs request and .pvs register.
11227         * troff/env.h: Change declarations.
11229 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
11231         * tmac/tmac.pspic: Immediately remove the temporary file.
11233 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
11235         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
11236         height is specified.
11238 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
11240         * tbl/table.c (struct vertical rule, class table_entry): Use int
11241         not short for start_row and end_row.
11243 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
11245         * troff/input.cc (trapping_blank_line, blank_line_macro): New
11246         functions.
11247         (diverted_space_node::reread, process_input_stack): Call
11248         trapping_blank_line() rather than blank_line().
11249         (init_input_requests): Bind "blm" to blank_line_macro().
11251         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
11253 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
11255         * troff/env.cc (environment::possibly_break_line): Require that
11256         width total excluding width of final space node be greater than
11257         the target text length.
11259 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
11261         * troff/node.cc (kern_pair_node::vertical_extent): New function.
11263 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
11265         * troff/node.cc (charinfo_node): New class.
11266         (glyph_node, composite_node): Derive from charinfo_node.  Change
11267         member functions accordingly.
11269 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
11271         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
11273 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
11275         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
11277         * devps/generate/textmap (notsubset): Add.
11279         * tmac/tmac.a4: New file.
11281 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
11283         * pic/main.cc (had_parse_error): New variable.
11284         (do_picture, do_whole_file): Set had_parse_error if yyparse()
11285         returns non-zero.
11286         (main): Return 1 if had_parse_error is true.
11288 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
11290         * grolj4/lj4.cc (main): Avoid use of strtoul.
11292 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
11294         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
11295         iso_8859_1 or $LESSCHARSET is latin1.
11297 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
11299         * hpftodit: New directory.
11300         * Makefile.in (CCPROGDIRS): Add hpftodit.
11301         * devlj4/generate: New directory.
11303 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
11305         * configure.in: Don't use AC_VFORK.
11306         * groff/pipeline.c (run_pipeline): Use fork() always.
11308 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
11310         * grops/ps.cc (main): Use %1 not %s in error message for -w.
11312         * Makefile.in (CCPROGDIRS): Add grolj4.
11313         (DEVDIRS): Add devlj4.
11314         * grolj4, devlj4: New directories.
11315         * tmac/troffrc: Handle lj4.
11316         * tmac/tmac.lj4: New file.
11318 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
11320         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
11322 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
11324         * troff/input.cc (do_if_request): At end of second string, switch
11325         environments before getting next token.
11327 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
11329         * devps/psstrip.sed: Split rule that strips whitespace on either
11330         side of delimiters.
11332 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
11334         * troff/node.h (font_family::make_definition): Add return value to
11335         declaration.  * troff/symbol.h (symbol::operator==,
11336         symbol::operator!=): Likewise.
11338 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
11340         * groff/groff.cc (main, help, synopsis): Handle -S.
11341         (possible_command::insert_arg): New function.
11343         * tmac/tmac.safer: New file.
11344         * tmac/msafer.man: New file.
11345         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
11347 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
11349         * pic/pic.h, pic/main.cc (safer_flag): New variable.
11350         * pic/pic.y (placeless_element): Avoid unsafe operations if
11351         `safer_flag' is set.
11352         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
11354 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
11356         * eqn/lex.cc (get_token): Put call to add_context() in block to
11357         work around Sun C++ 4.0 bug.
11359         * include/stringclass.h (operator +): Use ?: instead of `if' to
11360         work around Sun C++ 4.0 bug.
11362 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
11364         * tbl/main.cc (process_format): Accept - as a synonym for the _
11365         key letter.
11367         * libbib/index.cc (minus_one): Don't declare as const.
11369 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
11371         * troff/input.cc (get_char_for_escape_name): Push back a newline.
11373 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
11375         * troff/input.cc (write_macro_request): New function.
11376         (init_input_requests): Bind write_macro_request to writem.
11378 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
11380         * tmac/tmac.s (@EN): Turn filling back on even if there was no
11381         equation.
11383         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
11385         * tmac/tmac.s (@TS): Renamed from TS.
11386         (TS): Call LP then TS again.
11387         (cov*ab-init): Alias @TS to TS.
11389         * tmac/tmac.s: Allow QP or RS to initialize.
11391         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
11392         Move initializations of PS and LL here.
11393         (par@init): Don't initialize HY.  Avoid changing environment 0.
11394         (par*env-init): Don't all par@reset.
11396 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
11398         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
11400 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
11402         * Makefile.in (MDEFINES): Add LDFLAGS.
11403         (LDFLAGS): Add definition line.
11405 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
11407         * troff/input.cc (get_optional_char): Split off error check into...
11408         (check_missing_character): New function.
11409         * troff/token.h: Declare it.
11410         * troff/env.cc (margin_character): Don't call get_optional_char.
11411         Only call tok.next() after making the node.
11413         * include/lib.h (getopt): Make 2nd argument char *const *.
11415 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
11417         * nroff/conftest.sh: Deleted.
11419 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
11421         * pic/make-dos-dist: Deleted.
11423 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
11425         * devps/psstrip.sed: Strip comments before stripping trailing
11426         white space.
11428 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
11430         * Version 1.09 released.
11432 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
11434         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
11436 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
11438         * libgroff/font.cc (font::load_desc): Fix typo in error message.
11440 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
11442         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
11443         about returning without a value.
11445         * troff/charinfo.h (charinfo::get_special_translation): Cast
11446         TRANSLATE_NONE to int.
11448         * refer/token.cc (lookup_token, store_token): Remove bogus loop
11449         test.  Fix test so that it works with n unsigned.
11451         * pic/pic.y (defaults_table): Fully bracket initializer.
11452         * pic/lex.cc (lookup_keyword): Likewise.
11453         * eqn/lex.cc (token_table, def_table): Likewise.
11454         * eqn/box.cc (param_table): Likewise.
11455         * troff/input.cc (warning_table): Likewise.
11456         * libgroff/font.cc (table): Likewise.
11457         * grops/ps.cc (ps_printer::special): Likewise.
11458         * grops/psrm.cc (resource_manager::process_file): Likewise.
11459         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
11460         * refer/command.cc (command_table): Likewise.
11461         * addftinfo/addftinfo.cc (param_table): Likewise.
11463         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
11464         about temp's being unused.
11465         (unused): New function.
11467         * groff/pipeline.cc: Declare c_fatal.
11469         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
11470         uchar.
11472         * libbib/index.cc (index_search_item::load): Prevent compiler
11473         warnings about fd_closer's being unused.
11474         (unused): New function.
11476 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
11478         * troff/input.cc (copy_mode_error): Make `prefix' static.
11479         Fix typo.
11481         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
11482         defined.
11483         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
11484         HAVE_CC_OSFCN_H and modify accordingly.
11486         * troff/input.cc (init_charset_table): radicalex overlaps
11487         horizontally.
11489         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
11490         udodo!hans@relay.NL.net).
11491         * groff/configure.in: Call it.
11493         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
11494         * groff/configure.in: Call it.
11495         * include/lib.h: Conditionalize declaration of pclose.
11497         * troff/div.cc (last_page_number): New global variable.
11498         (top_level_diversion::begin_page): Exit if we just printed the
11499         last page.
11500         * troff/div.h (last_page_number): Declare it.
11501         * troff/input.cc (parse_output_page_list): Set last_page_number.
11503         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
11504         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
11505         tmac/tmac.X: Likewise.
11506         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
11507         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
11509 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
11511         * tmac/doc-ditroff (hK): Remove groff specific code which
11512         prevented page-breaks between separate manual entries.  If this is
11513         the first page, don't set the page number to 1.
11515         * acgroff.m4 (GROFF_POSIX): New macro.
11516         * configure.in: Use it.
11518         * troff/node.cc (class real_output_file,
11519         real_output_file::real_output_file,
11520         real_output_file::~real_output_file): Conditionalize use of
11521         popen/pclose on POPEN_MISSING.
11522         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
11523         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
11524         (pipe_source): Similarily.
11526         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
11528         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
11529         presence of declarations by trying to compile example with
11530         conflicting declarations.  (gcc only gives a warning for missing
11531         declarations.)
11533 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
11535         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
11536         (from Ulrich Lauther).
11538 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
11540         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
11542 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
11544         * indxbib/indxbib.cc (write_hash_table): Add code for case where
11545         pointers and ints have different sizes.
11547 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
11549         * tmac/tmac.s (par*env-init): Call par@reset.
11551 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
11553         * tmac/tmac.s (@IP): Switch to a new environment when diverting
11554         tag.
11555         (par*push-tag-env, par*pop-tag-env): New macros.
11557 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
11559         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
11560         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
11562         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
11563         comment.  Include <time.h>.
11565 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
11567         * grops/ps.cc (is_small_h, is_small_v): Deleted.
11568         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
11569         lines.
11571 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
11573         * troff/input.cc (read_request): Only print a prompt if reading
11574         from the terminal.  Also clearerr on EOF if reading from the
11575         terminal.  Declare isatty.
11577 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
11579         * refer/label.y: Rename map_t to map_func and extractor_t to
11580         extractor_func.
11582 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
11584         * include/assert.h: Don't use volatile.
11585         * libgroff/assert.cc: Likewise.
11587 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
11589         * troff/input.cc (abort_request): Look at character in tok before
11590         calling get_copy().
11592 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
11594         * troff/troff.h (NO_RETURN): Deleted.
11595         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
11596         * troff/input.cc (exit_troff): Likewise
11598         * Makefile.in: Remove `Making ...' messages since GNU make now
11599         gives these. 
11601         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
11603 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
11605         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
11606         to constant 1 inch.
11608 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
11610         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
11612 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
11614         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
11615         MARK_REG if there was no left delimiter.
11617 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
11619         * pic/troff.cc (troff_output::text): Set line thickness to
11620         relative before outputting text.
11622         * tmac/tmac.e (@k): Don't zero ?T.
11623         ((z): Likewise.
11625 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
11627         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
11629 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
11631         * troff/input.cc (decode_args): Warn about unquoted tabs (from
11632         Paul Eggert).
11634 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
11636         * troff/input.cc (ignoring): New variable.
11637         (ignore): Set ignoring during call to do_define_macro.
11638         (do_define_macro): Clear ignoring before interpolating terminating
11639         macro.
11640         (copy_mode_error): New function.
11641         (get_char_for_escape_name, read_long_escape_name,
11642         interpolate_arg): Use copy_mode_error.
11643         (warning_table): Add WARN_IG.
11644         * troff/troff.h (WARN_IG): Declare.
11645         (WARN_TOTAL): Change accordingly.
11647         * groff/pipeline.c (strsignal): Rename to xstrsignal.
11648         * groff/groff.cc (strsignal): Delete declaration.
11650 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
11652         * troff/div.cc (page_offset): Use 'm' as default scaling.
11654 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
11656         * nroff/nroff.sh: Ignore -u.
11658 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
11660         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
11662 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
11664         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
11665         drawing box.
11666         (B2): With -Tascii, leave additional vertical space before
11667         and after. Ensure that the left and right indent is restored to
11668         what it was even if the point size changes.  Don't call
11669         par@finish. Change the indent, line length and title length
11670         directly.  With -Tascii, make the width of the box 1n less.
11671         (B1): Remember 1n at the current point size.  Don't call
11672         par@reset.  Change the indent, line length and title length
11673         directly.  Ensure that the temporary indent is preserved.
11674         (par*box-mark-top): Turn off no spacing mode.
11676 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
11678         * Makefile.in (dist): Use .gz suffix.
11680 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
11682         * troff/input.cc (main): Add return 0.
11683         * pic/main.cc (main): Use return instead of exit.
11684         * tbl/main.cc (main): Likewise.
11685         * eqn/main.cc (main): Likewise.
11686         * grops/ps.cc (main): Likewise.
11687         * grotty/tty.cc (main): Likewise.
11688         * groff/groff.cc (main): Likewise.
11689         * grodvi/dvi.cc (main): Likewise.
11690         * refer/refer.cc (main): Likewise.
11691         * indxbib/indxbib.cc (main): Likewise.
11692         * lkbib/lkbib.cc (main): Likewise.
11693         * soelim/soelim.cc (main): Likewise.
11694         * addftinfo/addftinfo.cc (main): Likewise.
11695         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
11696         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
11698         * troff/token.h (process_input_stack): Don't declare as static.
11699         * troff/input.cc: Likewise.
11701         * troff/node.c (invalidate_fontno): Make it a static member of
11702         class font_family.  Change callers.
11703         * troff/node.c: Change declaration.
11705         * tbl/main.cc (struct input_entry_format): Add explicit public
11706         specifier.
11707         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
11708         struct double_hline_stuff): Likewise.
11709         * tbl/table.h (struct entry_format): Likewise.
11710         * pic/object.h (struct saved_state): Likewise.
11712         * include/stringclass.h: Add forward declarations of friend
11713         functions that are later declared as inline.  Don't include inline
11714         specifier in friend declaration.
11716         * libgroff/lib.h: Declare popen and pclose.
11717         * acgroff.m4 (GROFF_POPEN): New macro.
11718         * configure.in: Call it.
11720         * include/lib.h (PI): New constant. Undef first if necessary.
11721         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
11722         * grops/ps.cc (degrees, radians): Likewise.
11723         * libgroff/font.cc (font::get_skew): Likewise.
11725         * grops/ps.cc (is_ascii): New function.
11726         (ps_output::put_string): Use is_ascii.  Use csprint rather than
11727         isprint.
11728         (ps_printer::define_encoding): Use csspace.
11729         * libgroff/strtol.c (ISASCII): New macro.
11730         (strtol): Cast arguments to is*() and tolower() to unsigned char.
11731         Use ISASCII rather than isascii.
11732         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
11733         * libgroff/cset.cc: Likewise.
11734         * libdriver/input.cc: Include cset.h.
11735         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
11736         than isdigit().
11738         * refer/refer.cc (main): Use %ld rather than %d for longs.
11740         * libbib/index.cc (index_search_item_iterator::get_tag): Use
11741         S_ISREG macro.
11743         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
11745 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
11747         * troff/input.cc (hyphenation_code): Skip white space between
11748         char/code pairs.
11750 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
11752         * tbl/table.h (table::entry_list_tailp): New member.
11753         (table::table): Initialize it.
11754         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
11755         behaviour.
11757 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
11759         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
11760         with negative horizontal positions. Remove casts of glyph::hpos to
11761         int.
11762         (USHRT_MAX): Delete definition.
11763         (SHRT_MAX, SHRT_MIN): New definitions.
11764         (glyph::hpos): Change type to short.
11765         (tty_printer::end_page): Output multiple backspaces if necessary.
11766          Remove casts of glyph::hpos to int.
11767         
11768 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
11770         * tmac/tmac.s (@RT): New definition.
11772 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
11774         * refer/refer.cc (do_file): Make sure current_filename is set when
11775         filename is "-".
11777         * pic/common.cc (common_output::dot_line): Handle zero length
11778         lines.
11780 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
11782         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
11783         (par@init): Initialize \n[HY].
11785 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
11787         * troff/dictionary.cc (dictionary::remove): Continue when
11788         r < j < i.
11790 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
11792         * Makefile.com (.y.cc): Avoid ending up with two versions of
11793         $(YTABH).
11795 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
11797         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
11798         (\(,C): Likewise.  Also fix typo.
11800 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
11802         * lib.h: Delete extraneous semi-colon.
11804         * Add pso request: `so' from a pipe.
11805         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
11806         (file_iterator::close): New function.
11807         (file_iterator::~file_iterator, file_iterator::next_file): Use
11808         file_iterator::close.
11809         (file_iterator::backtrace): Say `process' rather than `file' when
11810         the stream is popened.
11811         (pipe_source): New function.
11812         (init_input_requests): Bind ".pso" to pipe_source.
11814 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
11816         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11818         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
11819         digits in lower case.
11821 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
11823         * Version 1.08 released.
11825         * Makefile.in (dist): Insert || true after ln -s commands that
11826         might fail.
11828         * mm: Update to mm 1.16.
11830         * acgroff.m4 (GROFF_CSH_HACK): New macro.
11831         * configure.in: Call GROFF_CSH_HACK.  Substitute for
11832         SH_SCRIPT_SED_CMD.
11833         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
11834         MDEFINES.
11835         * nroff/Makefile.sub (nroff): New target.
11836         (install_data): Install nroff.
11837         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11838         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11840 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
11842         * eqn/Makefile.sub (neqn): Add chmod +x.
11844         * grog/Makefile.sub (grog): Remove spurious semi-colon.
11846 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
11848         * troff/input.cc (string_iterator::string_iterator()): Initialize
11849         lineno and count.
11851 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
11853         * troff/div.cc (macro_diversion::space,
11854         top_level_diversion::space): Don't set high_water_mark.
11855         (macro_diversion::output, top_level_diversion::output): Don't
11856         include post line space in high water mark.
11858 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
11860         * eqn/eqn.y: Don't define YYDEBUG.
11861         * pic/pic.y: Likewise.
11863 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
11865         * tmac/tmac.e ([3): Add space after comma following editors.
11866         Change double spaces to single spaces.
11867         ([4): Change double spaces to single spaces.
11869         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11870         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11871         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11872         after %!PS-Adobe- (for Newsprint).
11874         * troff/div.cc (top_level_diversion::begin_page): When
11875         before_first_page is 1, set page_number to 1.
11877 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
11879         * eqn/box.cc (box::top_level): Protect equation with \&.
11881 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
11883         * groff/groff.cc (possible_command::set_name): Delete old name.
11885         * groff/groff.cc (possible_command::~possible_command): Use
11886         a_delete.
11888         * troff/node.cc (troff_output_file::begun_page): New member.
11889         (troff_output_file::troff_output_file): Initialize it.
11890         (troff_output_file::really_begin_page): Only output V command if a
11891         page has been begun.
11893         * pic/pic.y (placeless_element): Delete argument to PRINT after
11894         use.
11896 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
11898         * Make wrapman work.
11899         * troff/div.h (class top_level_diversion): Replace
11900         first_page_begun by before_first_page (with opposite sense).
11901         * Change first_page_begun to before_first_page inverting sense.
11902         * troff/div.cc (class nl_reg): New class.
11903         (init_div_requests): Use class nl_reg for \n(nl.
11904         (top_level_diversion::begin_page): Don't call
11905         output_file::begin_page if before_first_page is 2;
11906         reset before_first_page afterwards.  If have_next_page_number is
11907         false, then always increment page_number.
11908         * tmac/tmac.an: Set traps within TH rather than at the top-level.
11909         Restore compatibility mode after loading, and then disable
11910         compatibility mode in TH.
11912 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
11914         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11915         past last line.
11916         * troff/node.h (output_file::trailer): Declare.
11917         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11918         * troff/node.cc (output_file::trailer): New function.
11919         (troff_output_file::~troff_output_file): Move most code into...
11920         (troff_output_file::trailer): New function.
11921         (class troff_output_file): Delete page_length member. Declare
11922         trailer().
11923         (troff_output_file::really_begin_page): Use current page length
11924         for final V command.
11926         * tbl/main.cc (struct options): New decimal_point_char member.
11927         (options::options): Initialize this.
11928         (process_options): Implement decimalpoint option.
11929         (process_data): Pass decimal_point_char option to table::table.
11930         * tbl/table.h (class table): New decimal_point_char member.
11931         (table::table): Add additional argument.
11932         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11933         second argument specifying decimal point character.  Use this
11934         instead of '.'.
11935         (table::table): Initialize decimal_point_char.
11936         (table::add_entry): Change call to find_dot.
11938         * troff/input.cc (get_copy, token::next): Implement \V.
11939         (interpolate_environment_variable): New function.
11941 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
11943         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11944         * pic/pic.y: Likewise.
11946         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11947         Add casts to int.
11948         * refer/ref.cc (reference::insert_field, reference::delete_field):
11949         Likewise.
11950         * troff/number.cc (parse_term): Likewise.
11952         * acgroff.m4 (GROFF_PROG_YACC): New macro.
11953         * configure.in: Use GROFF_PROG_YACC.
11955         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11956         and g++.
11957         * Makefile.in (OPTIMIZE): New define.
11958         (DEBUG): Empty by default.
11959         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11961         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11962         (GROFF_ARRAY_DELETE): Likewise.
11963         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11965         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11967         * devps/psstrip.sed: Use different delimiter on last line (so that
11968         it works with BSD 4.4 sed.)
11970 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
11972         * devps/psstrip.sed: Delete comments.
11974         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11975         optind, opterr, optarg.
11976         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11977         opterr, optarg.
11979 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
11981         * Makefile.in (check): Dummy target.
11983 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
11985         * Version 1.07 released.
11987         * Integrate mm 1.11.
11989         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11990         where start_col was meant.
11992 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
11994         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11996 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
11998         * troff/input.cc (token::next): Make \z\o'...' and similar things
11999         work.
12001         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12002         constants.
12003         (environment): Add margin_character_flags member.
12004         * env.cc (environment::environment(symbol),
12005         environment::environment(const environment *): Initialize
12006         margin_character_flags.
12007         (margin_character): Rewrite.
12008         (environment::output_line): Add a margin character if
12009         margin_character_flags is non-zero.  Turn off the
12010         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
12011         zero, use margin_character_node without copying and then set
12012         margin_character_node to 0.
12014         * devps/DESC.in: Change minimum size to 1000.
12016 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
12018         * troff/symbol.h (symbol::hash): Change return type to unsigned
12019         long.
12020         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12021         Add casts to int.
12023         * test-groff: Use -r rather than -x.
12025         * grops/psfig.diff: Include in distribution again.
12027 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12029         * Makefile.in (dist): Use gzip.
12031 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12033         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12034         unistd.h as well as in stdlib.h.
12035         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12036         defined; otherwise include <sys/types.h> and <unistd.h> if
12037         UNISTD_H_DECLARES_GETOPT is defined.
12039         * configure.in: use builtin(include, ... rather than include(...
12040         * configure: Regenerate with autoconf 1.3.
12042         * libdriver/print.cc (printer::adjust_arc_center): Use new
12043         algorithm suggested by Andy Fyfe.
12045         * libdriver/printer.cc (printer::adjust_arc_center): New function.
12046         * include/printer.h: Declare this.
12047         * grops/ps.cc (ps_printer::draw): Use it.
12048         * grodvi/dvi.cc (dvi_printer::draw): Use it.
12050 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
12052         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12054 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
12056         * eqn/main.cc (main): Handle "eqn -".
12058 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
12060         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12062         * mm: Integrate version 1.08.
12064         * pic/troff.cc (troff_output::finish_picture): Set
12065         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12066         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12067         if it's not defined. Check whether the register is non-zero rather
12068         than whether it's not defined.
12069         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12071         * indxbib/indxbib.cc: Move all signal handling into...
12072         * indxbib/signal.c: New file.
12073         * configure.in: Call AC_RETSIGTYPE.
12075         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12076         * configure.in: Call GROFF_STRUCT_EXCEPTION.
12077         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12079         * troff/input.cc (token::token, token::operator=): Work round SGI
12080         C++ bug.
12081         * pic/object.cc (position::position): Likewise.
12083 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
12085         * pic/pic.h: Move declaration of hypot().
12087 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
12089         * pic/pic.h: Declare hypot().
12091         * pic/pic.h: Define M_PI if necessary.
12093 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
12095         * tmac/tmac.e (re): Add alternative version that doesn't use groff
12096         `.ta T' feature.
12098         * devps/prologue.ps (RE): Handle the possibility that the old font
12099         doesn't have a FontName entry.
12101 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
12103         * tmac/tmac.e (fam): Redefine to set family in environment 2.
12104         (@C): Use @fam not fam.
12106 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
12108         * lookbib/lookbib.cc (main): Change type of start to const char *.
12109         * lkbib/lkbib.cc (main): Likewise.
12111         * eqn/lex.cc (definition::definition): Don't use member
12112         initializer syntax for members of anonymous unions.
12114         * troff/input.cc (input_stack::backtrace): Change type of to const
12115         char *.
12117 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
12119         * include/stringclass.h (class string): Declare inline friend
12120         functions as inline in class declaration.
12121         * troff/hvunits.h (class hunits, class vunits): Likewise.
12122         * include/refid.h (class reference_id): Likewise
12123         * troff/troff.h (points_to_units(units), scale(units, double)):
12124         Delete declarations.
12125         * libdriver/input.cc (get_char): Delete declaration.
12126         * include/lib.h: Change 2nd argument of getopt from const char **
12127         to char **.
12128         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
12129         char **' before assigning to a `const char **'.
12130         * tbl/table.cc: Delete extra declarations of prints().
12132 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
12134         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
12135         char **' before assigning to a `const char **'.
12137         * libgroff/errarg.cc (errarg::errarg): Don't use member
12138         initializer syntax for members of anonymous unions.
12140 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
12142         * mm: Integrate version 1.07.
12144 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
12146         * troff/input.c (translate2): Rename to
12147         (translate_no_transparent).
12148         (init_input_requests): Rename tr2 to trnt.
12150 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
12152         * troff/charinfo.h (class charinfo): Add transparent_translate field.
12153         (charinfo::set_translation, charinfo::set_special_translation):
12154         Add second argument that specifies value for
12155         transparent_translate.
12156         (charinfo::get_translation, charinfo::get_special_translation):
12157         Add optional second argument that specifies whether translation is
12158         being used for transparent throughput.
12159         * troff/input.cc (charinfo::set_translation,
12160         charinfo::set_special_translation): Handle second argument.
12161         (charinfo::charinfo): Initialize transparent_translate.
12162         (translate): Split main part off into
12163         (do_translate): New function.  Pass argument saying whether
12164         translation applies to transparent throughput.
12165         (translate2): New request.
12166         (init_input_requests): Bind translate2 to `tr2'.
12168 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
12170         * tbl/table.h (class table): Add `nokeep' flag.
12171         * tbl/main.cc (process_options): Handle `nokeep' option.
12172         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
12173         table::do_bottom): Don't output keep/release macro definitions or
12174         calls when `nokeep' option has been specified.
12176 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
12178         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
12180 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
12182         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
12183         block_entry::divert, alphabetic_block_entry::divert): Add extra
12184         argument giving column separation.
12185         (table::compute_widths): Pass column separation to
12186         table_entry::divert().
12187         (block_entry::do_divert): If an entry spans multiple columns and a
12188         minimumum width has been specified for each column, then set the
12189         line length to the sum of the widths (plus possibly the column
12190         separations).
12192         * troff/input.cc (set_escape_char): Don't set the escape_char
12193         until after calling has_arg().
12195 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
12197         * tbl/table.cc (table::do_top): Add missing \s0 for double box
12198         case.
12200         * tbl/table.cc (table::print_double_hline): Avoid extra new line
12201         in case where r > nrows - 1.
12203         * tbl/table.cc (BODY_HEIGHT): Deleted.
12204         (LINE_SEP): New definition.
12205         (table::print_single_hline, table::print_double_hline,
12206         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
12207         table::do_row, table::do_top): Use LINE_SEP space before a line
12208         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
12210         * tbl/table.cc (text_entry::print_contents): New function.
12211         (text_string_name, right_text_string_name): Deleted.
12212         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
12213         (simple_text_entry::do_width, numeric_text_entry::do_width,
12214         alphabetic_text_entry::do_width): Don't store the contents of the
12215         entry in a string.
12216         (left_text_entry::simple_print, right_text_entry::simple_print,
12217         center_text_entry::simple_print,
12218         alphabetic_text_entry::simple_print,
12219         numeric_text_entry::simple_print): Print the entry directly
12220         instead of using the stored string.
12222 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
12224         * devps/Makefile: Strip PostScript files.
12225         * devps/prologue: Rename to...
12226         * devps/prologue.ps.
12227         * devps/psstrip.sed: New file.
12228         * devps/download: Use .pfa rather than .ps for installed versions
12229         of fonts.
12231 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
12233         * troff/env.cc (input_trap): Give a warning if the argument is out
12234         of range.
12236         * troff/env.cc (adjust): Treat negative argument as missing. Round
12237         argument > 5 down to 5.
12239         * troff/env.cc (center, right_justify): Make negative argument zero.
12241         * troff/div.cc (page_offset, vertical_position_traps): Treat
12242         invalid argument as missing.
12243         * troff/env.cc (line_spacing, line_length, title_length, indent,
12244         underline, hyphen_line_max_request, control_char,
12245         no_break_control_char, widow_control_request, adjust, input_trap,
12246         point_size): Likewise.
12247         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
12248         constant_space): Likewise.
12249         * troff/input.cc (compatible, shift, warn_request,
12250         set_escape_char): Likewise.
12252         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
12253         * tbl/table.cc (table::table): Likewise.
12255         * Makefile.dev (install_dev): depends on $(DEVFILES).
12257 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
12259         * devX75, devX75-12, devX100, devX100-12: New directories.
12260         * Makefile.in: Add these to DEVDIRS.
12262         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
12263         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
12264         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
12265         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
12266         targets.
12267         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
12268         (uninstall): New target.
12269         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
12270         uninstall_prog, uninstall_dev): New targets.
12272         * troff/div.cc (return_request): Treat an invalid argument as
12273         missing.
12275 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
12277         * tmac/tmac.e ((f): Set up the environment even when there's a
12278         current diversion.  Transperently throughput a call to @N.
12279         (@N): New macro.
12281 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
12283         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
12284         up to vertical resolution.
12286         * tbl/table.cc (table::do_row): Change row number after printing
12287         stuff list.
12289         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
12291 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
12293         * Rename CHANGES to NEWS.
12295 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
12297         * libgroff/new.cc (operator new): Avoid calling malloc(0).
12299 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
12301         * man.ultrix: Removed.
12303 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
12305         * Makefile.comm (extraclean): Delete files whose names begin with
12306         `='.
12308         * pic/troff.cc (troff_output::text): Fix typo in implementation of
12309         aligned text.
12311 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
12313         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
12314         * troff/div.cc (page_length, need_space, space_request): Treat
12315         invalid optional argument as missing.
12316         * troff/env.cc (number_lines): If the first argument is present
12317         but not a number, turn on line numbering, don't change the next
12318         line number and parse the remaining arguments.
12320         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
12322 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
12324         * eqn/box.h: Change declaration accordingly.
12325         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
12326         the specified size was bad but don't give an error.  Check for
12327         overflow.
12328         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
12329         * eqn/lex (do_size): Likewise.
12331 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
12333         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
12334         compatible headers.
12336 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
12338         * tbl/table.cc (table::init_output): Improve error message when
12339         table won't fit on one page.
12341 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
12343         * pic/troff.cc (troff_output::start_picture): Generate line
12344         containing a horizontal motion equal to the width of the picture.
12346         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
12347         using GROFF_COMMAND_PREFIX environment variable.
12349 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
12351         * mdate.sh: Use $NF rather than $(NF).
12353 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
12355         * pic/main.cc (main):  Use %1 not %c in argument to warning.
12357         * eqn/main.cc (main): Output code to check that geqn was given the
12358         correct -T option.
12360 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
12362         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
12363         `ln -s ../Makefile .; make; rm -f Makefile'.
12365         * troff/hyphen: Rename to...
12366         * troff/hyphen.us:
12367         * troff/input.cc (main): Delete -H option. Don't call
12368         read_hyphen_file().
12369         * troff/env.cc: Include searchpath.h and macropath.h.
12370         (exception_dictionary): Deleted.
12371         (ht): Deleted.
12372         (read_hyphen_file): Deleted.
12373         (hyphenation_language): New struct.
12374         (class trie, class hyphen_trie): Move declarations up.
12375         (trie_node::~trie_node): Deleted.
12376         (trie::delete_trie_node): New function.
12377         (trie::do_delete): New pure virtual function.
12378         (hyphen_trie::do_delete): New function.
12379         (trie::~trie): New function.
12380         (hyphen_trie::~hyphen_trie): New function.
12381         (trie::clear): No need to chcek that tp is not 0.
12382         (current_language, language_dictionary): New variables.
12383         (hyphen_word): Give an error if no current language.  Use
12384         exceptions dictionary in current language.
12385         (hyphen_trie::read_patterns_file): Find file using macro_path.
12386         Allow comments (starting with %) in patterns file.  Don't make it
12387         a fatal error if the file can't be found.
12388         (hyphenate): Return if no current language.  Get the exceptions
12389         dictionary and the hyphenation patterns from the current language.
12390         (set_hyphenation_language): New variable.
12391         (hyphenation_patterns_file): New function.
12392         (hyphenation_language_reg): New class.
12393         (hyphenation_language_reg::get_string): New function.
12394         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
12395         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
12396         register.
12397         * groff/groff.cc (main, help, synopsis): Delete -H option.
12398         * include/Makefile.sub: Don't define HYPHENFILE.
12399         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
12400         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
12401         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
12402         hyphenation patterns.
12404 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
12406         * eqn/neqn.sh: New file.
12407         * eqn/Makefile.sub: Handle neqn.sh.
12409         * eqn/eqn.h: Declare `nroff' variable.
12410         * eqn/box.cc (param_table): Add `nroff' param.
12411         (nroff): Define it.
12412         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
12413         variable.
12414         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
12416         * troff/troff.h (WARN_FONT): New warning.
12417         (WARN_TOTAL): Change accordingly.
12418         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
12419         (warning_table): Add WARN_FONT.
12420         * troff/node.cc (mount_font_no_translate): Pass argument to
12421         font::load_font.  If this is non-zero, give a warning.
12422         Don't give an error message when accessing a font that has already
12423         been found to be invalid.
12424         * include/font.h (font::load, font::load_font): Add additional
12425         optional argument which suppresses error message if the font is
12426         not found.
12427         * libgroff/font.cc (font::load_font): Handle additional argument.
12428         (font::load): Add additional argument. If this is non-null, set it
12429         to 1 and don't give error message.
12431         * include/printer.h (printer::end_page): Add argument giving
12432         length of page.
12433         * libdriver/input.cc (do_file): Pass this.
12434         * grops/ps.cc (ps_printer::end_page): Add argument.
12435         * grodvi/dvi.cc (dvi_printer::end_page,
12436         draw_dvi_printer::end_page): Add argument.
12437         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
12438         columns_per_page members. New member nlines.
12439         (DEFAULT_LINES_PER_PAGE): Deleted.
12440         (tty_printer::tty_printer): Don't compute lines_per_page from
12441         font::paperlength. Don't compute columns_per_page from
12442         font::paperwidth.
12443         (tty_printer::add_char): Don't check horizontal position against
12444         columns_per_page. Grow glyphs vector if neccessary.
12445         (tty_printer::end_page): Add argument giving page_length in units.
12446         Discard lines past end of page.
12448 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
12450         * tmac/tmac.tty-char: Fix definition of \(/l.
12452         * tmac/tmac.X: Define \(en.
12454 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
12456         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
12457         lpq, then use lp rather than lpr.
12459         * tmac/tmac.s (par@reset): Don't call `ad'.
12460         (par*env-init): Call `ad'.
12462 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
12464         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
12465         date.
12467         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
12468         * indxbib/indxbib.cc: Likewise.
12470 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
12472         * libgroff/putenv.c: New file.
12473         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
12474         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
12475         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
12476         stdlib.h with AC_HAVE_HEADERS.
12478 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
12480         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
12481         does not exist.
12483 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
12485         * eqn/box.cc (gsize): Make it an int.
12486         (set_gsize): Parse argument handling increment or decrement.
12487         (box::top_level): Convert gsize to a string.
12489         * troff/input.cc (exit_troff): Make buf unsigned char [].
12490         Call to make_temp_iterator casts buf to char*.
12492         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
12494         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
12495         * Makefile.cpg (depend.temp): Likewise.
12497         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
12499         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
12501 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
12503         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
12505 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
12507         * Version 1.06 released.
12509         * Integrate mm 1.04.
12511 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
12513         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
12515 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
12517         * afmtodit/afmtodit.pl: Add -n option that disables generation of
12518         ligatures command.
12519         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
12520         afmtodit. Regenerate.
12522         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
12523         @f back past the current position.
12525         * tmac/tmac.e: Change calls to @R so that comments are not part of
12526         arguments.
12528 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
12530         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
12532         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
12533         check that we can link a call to a function declared in <stdio.h>.
12534         (GROFF_UNISTD_H): New macro.
12535         * configure.in: Call it.
12536         * Makefile.in: Document it.
12537         * include/posix.h: New file.
12538         * troff/troff.h: Don't include <osfcn.h>
12539         * troff/input.cc: Include posix.h.
12540         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
12541         osfcn.h.
12542         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
12543         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
12544         <fcntl.h>.
12545         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
12546         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
12547         * libbib/search.cc (O_RDONLY): Delete definition.
12548         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
12549         Don't include <osfcn.h>.
12551         * acgroff.m4 (GROFF_TIME_T): New macro.
12552         * configure.in: Call it.
12553         * Makefile.in: Document it.
12555         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
12556         * configure.in: Call it.
12557         * Makefile.in: Document -DTRADITIONAL_CPP.
12558         * include/ptable.h: Don't include generic.h.
12559         (name2): Define it.
12561         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
12562         Afterwards remove [T1 and [T2.
12563         (ref*spec!0, ref*spec!2): Use T1 rather than T.
12564         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
12565         (ref*add-T2): Renamed from ref*add-T.
12566         (ref*add-T1): New macro.
12568 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
12570         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
12572         * libbib/index.cc: Include <fcntl.h>.
12573         (O_RDONLY): Define if necessary.
12574         (make_index_search_item, index_search_item_iterator::get_tag,
12575         index_search_item::check_files): Use O_RDONLY.
12576         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
12577         (O_RDONLY): Define if necessary.
12578         (search_list::add_file): Use O_RDONLY.
12579         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
12580         <sys/stat.h>.
12581         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
12582         (main): Use these.
12584         * libbib/index.cc (S_ISREG): Define it if necessary.
12585         (index_search_item::load): Use S_ISREG.
12587         * include/driver.h: Include <errno.h>.
12589 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
12591         * eqn/box.cc (body_height): Increase default value to 85.
12592         (body_depth): Increase default value to 35.
12594 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
12596         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
12597         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
12598         protected from expansion with \E.
12600         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
12602         * Makefile (Makefile): New target.
12604         * Makefile.sub (configure, distfiles): New targets.
12606         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
12607         construct.
12609 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
12611         * eqn/box.cc (param_table): Add body_height and body_depth.
12613         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
12615 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
12617         * psbb/Makefile.sub: Don't link with libgroff.a.
12619         * acgroff.m4 (GROFF_PUTENV): New macro.
12620         * configure.in: Call GROFF_PUTENV.
12621         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
12622         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
12623         is defined.
12625         * troff/env.cc (distribute_space): Rename force_forward argument
12626         to force_reverse.  Reverse the list if force_reverse is true.
12628 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
12630         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
12632         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
12633         height or depth to be negative.  Guard against SUP_RAISE quantity
12634         being negative.
12636 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
12638         * devps/generate/textmap: Add `an' (arrowhorizex).
12639         * tmac/tmac.ps: \(an overlaps horizontally.
12640         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
12642         * devps/symbolchars: Add arrowverttp, arrowvertbt.
12643         * devps/textmap: Add arrowvertex.
12644         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
12645         updownarrow delimiters.
12646         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
12648         * tbl/table.cc (simple_entry::position_vertically,
12649         block_entry::position_vertically):  For a centered entry, perform
12650         the motion in two stages.
12652         * refer/refer.cc (split_punct): Don't call lookup_token if there
12653         is no token.
12655 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
12657         * troff/input.cc (token::next): Delete token_node after copying
12658         token.
12660         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
12661         cur_point_size.
12663         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
12665         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
12667 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
12669         * grops/ps.cc (usage): -b option takes an argument.
12671         * devps/prologue (PLG): New procedure.
12672         * grops/ps.cc (main, usage): New -g option.
12673         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
12674         length using PLG.
12676 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
12678         * include/cset.h: Include <limits.h> if we have it.
12680         * libgroff/illegal.cc: New file.
12681         * include/lib.h (illegal_input_char): Use table.
12682         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
12683         * pic/lex.cc (ARG1): Renumber to 14.
12684         * eqn/lex.cc (ARG1): Likewise.
12686         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
12687         (eg 1.05.90) correctly.
12689 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
12691         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
12692         Rename $r and $R registers to $v and $V.
12693         ($r, $R): Initialize to 0.
12694         (@v, @V): New macros.
12695         (sz): Call @v.
12696         (@M): Call @V.
12698         * troff/input.cc (main, usage): Add -R option that says not to
12699         load troffrc.
12700         * eqn/main.cc (main, usage): Rename -n to -R.
12702 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
12704         * devps/DESC.in: Leave font positions 5-9 blank.
12705         * devdvi/DESC.in: Likewise.
12707         * grog/grog.pl: Handle `.PS <file' correctly.
12709         * troff/input.cc (input_stack::push): Improve error message when
12710         input stack limit exceeded.
12712 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
12714         * refer/refer.cc (main): Fix typo in handling of `a' option.
12716         * refer/refer.cc (do_bib): In state START after a newline remain
12717         in state START.
12719         * groff/groff.sh: Deleted.
12720         * groff/Makefile.sub: Delete handling of groff.sh.
12722         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
12723         to determine whether to use \X'ps:...'.
12724         * tmac/troffrc: Set 0p register to 0.
12725         * tmac/tmac.ps: Set 0p register to 1.
12727         * groff/groff.cc: Support -X option. Give warning for -TXps and
12728         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
12729         * tmac/troffrc: Support -r.X=1.
12731         * pic/troff.cc (troff_output::dot): Don't test
12732         zero_length_line_flag.
12734 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
12736         * include/lib.h: Declare getopt() and friends unless
12737         STDLIB_H_DECLARES_GETOPT is defined.
12739         * doc/chars.tr: Delete.
12740         * man/groff_char.man: New file.
12742 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
12744         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
12745         user has changed register format.
12747 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
12749         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
12750         `postpro' command in DESC file.  Get spooler command from `print'
12751         command in DESC file.  Execute spooler command with /bin/sh.
12753         * groff/groff.cc: Split Unix-specific parts into...
12754         * groff/pipeline.c: New file.
12756         * LICENSE: Delete.
12757         * COPYING: New file.
12758         * all files: Update copyright notices.
12760         * Rearrange files.  Redo Makefiles.  Use autoconf.
12762 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
12764         * troff/input.c (charinfo_to_node_list): Interpret character
12765         definition with escape_char of `\'.
12767 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
12769         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
12770         Define INT_DIGITS as big enough for 64-bit integer.
12771         * lib/strtol.c: Don't include lib.h.
12772         * lib/lib.h: Delete ifdef __cplusplus stuff.
12774 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
12776         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
12777         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
12778         get DESC from current directory.
12780 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
12782         * tbl/main.c (main): Always reset the line number when reading
12783         from stdin.
12785         * tbl/table.c (table::print_single_hline, table::print_double_hline,
12786         table::define_bottom_macro, table::do_row, table::do_top): Round
12787         vertical spacing up to vertical resolution.
12789 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
12791         * ps/ps.h (enum resource_type): Avoid comma at end of
12792         enumerator-list.
12793         * dvi/dvi.c (class dvi_printer): Likewise.
12794         * dvi/tfmtodit.c (gf::load): Likewise.
12795         * refer/label.y (struct expression): Likewise.
12796         * refer/refer.c (class label_processing_state): Likewise.
12797         * refer/indxbib.c (do_file): Likewise.
12798         * troff/troff.c (enum warning_type): Likewise.
12799         * tbl/main.c (process_data): Likewise.
12800         * troff/charinfo.h (class charinfo):
12802 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
12804         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
12806 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
12808         * groff.c: Move to new groff subdirectory.
12809         * groff/Makefile: New file.
12810         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12812         * man/mdate.sh: Use ls -L if supported.
12814         * Consolidate all header files produced by gendef into lib/defs.h.
12815         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12816         Don't include path.h.
12817         * lib/Makefile (path.h): Don't generate.
12818         * troff/input.c: Include defs.h. Don't include config.h.
12819         * troff/Makefile (config.h): Don't generate.
12820         * refer/index.h: Don't include suffix.h.
12821         * refer/index.c: Include defs.h.
12822         * refer/indxbib.c: Include defs.h.
12823         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12824         defs.h.
12825         * refer/Makefile (suffix.h, path.h): Don't generate.
12826         * groff.c: Don't include config.h. Include defs.h.
12827         * Makefile (config.h): Don't generate.
12828         (lib/defs.h): Generate.
12829         (topclean): Remove lib/defs.h.
12831 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
12833         * lib/malloc.c, lib/getpagesize.h: Deleted.
12834         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
12835         related stuff.
12836         * lib/Makefile: Delete malloc-related stuff.
12837         * lib/new.c: Workaround COOKIE_BUG if necessary.
12839         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
12840         needed header files directly.
12841         * refer/refer.h: Omit definition of DEFAULT_INDEX.
12842         * Makefile: Include definition of DEFAULT_INDEX in path.h.
12844 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
12846         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12847         argument.
12848         * lib/font (font::load_desc, font::load): Don't split argument of
12849         unknown command.
12850         (font::handle_unknown_font_command): Change type.
12851         * ps/ps.c (ps_font::handle_unknown_font_command,
12852         handle_unknown_desc_command): Change type.
12853         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12855 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
12857         * lib/font.h (font::handle_unknown_font_command): Add file and
12858         line arguments.
12859         * lib/font.c (font::handle_unknown_font_command):
12860         * ps/ps.c (ps_font::handle_unknown_font_command):
12861         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12862         lineno arguments.  Use _with_file_and_line functions for error
12863         reporting.
12865         * lib/fontfile.c (font::unknown_desc_command_handler): New static
12866         data member.
12867         * lib/font.c (font::set_unknown_desc_command_handler): New
12868         function.
12869         (font::load_desc): For unknown commands, call
12870         unknown_desc_command_handler if not null.
12871         * lib/font.h (class font): Declare them.
12872         (FONT_COMMAND_HANDLER): New typedef.
12873         * ps/ps.c (handle_unknown_desc_command): New function.
12874         (main): Set bflag if we had a -b option. Call
12875         font::set_unknown_desc_command_handler.
12876         (broken.h): Don't include.
12877         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
12878         submake 
12879         * ps/devps/Makefile: Add `broken' command to DESC file using
12880         BROKEN_SPOOLER_FLAGS.
12882         * macros/tmac.e ([, ]): Add as synonyms for { and }.
12884         * macros/tmac.e ($p): Only exdent if \$3 > 0.
12886         * macros/tmac.e (@R, @S): New macros.
12887         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12888         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12889         Declare $H, $[0-9], .. macros with @S.
12890         Declare |0, |1, |2, |3 strings with @S.
12892         * macros/tmac.e (@S): Rename to @U.
12894         * macros/tmac.e (@z): Define @b and bp as empty instead of
12895         deleting them,
12897         * macros/tmac.e (@m): Deleted.
12898         (@h): Don't call @m.
12899         (@z): Don't set @m trap.
12901         * macros/tmac.e ($h, $f): Define |z as empty string.
12903         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12904         (@q): Likewise.
12906         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12907         removing them.
12908         ()f): Likewise for * register.
12910         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12911         argument is missing, don't change $R.  Call sr with three
12912         arguments when initializing.
12914 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
12916         * macros/tmac.e (sr): New macro.
12917         Initialize $r and $R using sr.
12919         * macros/tmac.e (,): Delete \*(#[.
12921         * troff/env.c (set_tabs): Read the tab type even if the position
12922         is bad.  Allow the position of the first tab stop to be negative.
12924 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
12926         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12927         _POSIX_VERSION.
12928         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12929         rather than -DPATHCONF_MISSING.
12930         * Makefile: Get rid of PATHCONF_MISSING.
12932         * refer/map.c: New file.
12933         * refer/index.c: Interface to mmap through map.c.  Rename map_size
12934         to map_len.
12935         * refer/Makefile: Handle map.c.
12936         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12938 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
12940         * Makefile: RANLIB should be `true' if there is no ranlib.
12941         * lib/Makefile (libgroff.a): Simplify.
12942         * driver/Makefile (libdriver.a): Simplify.
12944         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12945         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
12946         defined.
12948 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
12950         * troff/env.c (compare_ranges): Declare as extern "C".
12952         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12954         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12956 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
12958         * pic/troff.c (troff_output::text): Merge in grops_output::text,
12959         but conditionalize use of \X based on \*(.T.
12960         (grops_output::*): Deleted.
12961         * pic/output.h: Delete declaration of make_grops_output.
12962         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
12963         by default. -n sets it to 0.
12964         (usage): Corresponding changes.
12965         * groff.c (main): Don't pass -x or -p to pic.
12966         * groff.sh: Likewise.
12968         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12969         to be non-zero.
12971         * ps/devps/afmtodit: Change calculation of asc_boundary and
12972         desc_boundary.  Make these bounds inclusive.
12973         * ps/devps: Regenerate font files.
12975 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
12977         * macros/tmac.latin1: New file.
12978         * macros/tmac.tty-char: Use tmac.latin1.
12979         (tmac.tty-tr): Deleted.
12980         * macros/Makefile: Install tmac.latin1.
12981         * macros/tmac.dvi: Use tmac.latin1.
12982         * macros/troffrc: Translate \[char160] onto no-break space here.
12983         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12985 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
12987         * macros/tmac.Xps: Use `do' request.
12989         * macros/tmac.ps: Use `do' request.
12991         * macros/tmac.e (@C): Use `do' request.
12993         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12994         * macros/Makefile: Install tmac.X*.
12996         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12997         * tty/Makefile: Don't install tmac.tty*.
12998         * macros/Makefile: Install tmac.tty*.
13000         * dvi/tmac.dvi: Move to macros.
13001         * dvi/Makefile: Don't install tmac.dvi.
13002         * macros/Makefile: Install tmac.dvi.
13004         * ps/tmac.ps*: Move to macros.
13005         * ps/Makefile: Don't install tmac.ps*.
13006         * macros/Makefile: Install tmac.ps*.
13008         * eqn/box.c: Provide draw_lines parameter corresponding to -D
13009         option.
13010         * macros/eqnrc: Set draw_lines parameter based on device.
13011         * groff.c: Don't pass -D flag to eqn.
13012         * groff.sh: Likewise.
13013         * eqn/main.c: Warn about use of -D.
13015         * troff/input.c (process_startup_file): New function.
13016         (main): Call process_startup_file().
13017         * macros/troffrc: New file.
13018         * macros/Makefile: Install troffrc.
13019         * groff.c (main): Don't pass extra -m option to troff. For a 
13020         pseudo device pass the name of the pseudo device to troff using
13021         -d.
13022         * groff.sh: Likewise.
13023         * groff.c (possible_command::prepend_arg): Deleted.
13025         * troff/input.c (do_request): New function.
13026         (init_input_requests): Bind "do" to do_request.
13028         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13029         load eqnrc from macro directory.
13030         * macros/eqnrc: New file.
13031         * macros/Makefile: Install eqnrc.
13032         * ps/devps/eqnchar: Deleted.
13033         * ps/devps/Makefile: Don't install eqnchar.
13034         * dvi/devdvi/eqnchar: Deleted.
13035         * dvi/devdvi/Makefile: Don't install eqnchar.
13036         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13037         variable optM.
13039         * lib/device.[ch]: New files.
13040         * lib/font.h (font::set_device_name, font::get_device_name):
13041         Deleted.
13042         * lib/fontfile.c: Use device.h.
13043         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13044         * troff/input.c: Delete definition of `device'.
13045         (main): Don't initialize device.
13046         * troff/troff.h: Include device.h rather than declaring device.
13047         * troff/Makefile: No need to handle DEVICE.
13048         * driver/input.c: Include device.h. Don't use
13049         font::{set,get}_device_name.
13050         * groff.c, Makefile: Rename device.h to config.h.
13051         * groff.c: Use library device variable.
13052         * eqn/main.c: Use library device variable.
13053         * eqn/Makefile: No need to handle DEVICE.
13055         * lib/searchpath.[ch]: New files.
13056         * lib/Makefile: Handle searchpath.[ch].
13057         * troff/input.c (open_file, init_dirs): Deleted.
13058         (macro_dirs): Deleted.
13059         (open_mac_file, macro_source): Use class search_path.
13060         (add_string, struct string_list): Move definition.
13061         (main): Change -M option to use macro_path. Delete call to
13062         init_dirs().
13063         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13064         Rewrite to use class search_path.
13065         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13066         * lib/Makefile: fontfile.c depends on searchpath.h.
13067         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13068         MACROPATH.
13069         * lib/macropath.[ch]: New files.
13070         * troff/Makefile: No need to handle MACROPATH.
13072         * troff/input.c: Delete DUMP code.
13073         * lib/fontfile.c, lib/font.h: Delete
13074         font::forget_command_line_font_dirs.
13076         * troff/input.c (push_token): New function.
13077         (handle_first_page_transition): Use push_token().
13078         (process_input_stack): Change handling of a space at the beginning
13079         of the line.
13081 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
13083         * troff/input.c (font_dirs): Delete unused variable.
13085         * eqn/lex.c (do_set): Correct error messages.
13087 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
13089         * troff/input.c (do_define_string): Allow the string name to be
13090         followed immediately by a tab.
13091         (define_character): Likewise.
13093 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
13095         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13096         be negative.
13098         * troff/input.c (input_iterator::is_file): New virtual function.
13099         (file_iterator::is_file): New function.
13100         (input_stack::end_file): New function.
13101         (input_stack::next_file): Handle the situation where there is no
13102         file on the input stack correctly.  Avoid making two passes over
13103         the input stack.
13104         (next_file): Make the filename optional; in this case call
13105         input_stack::end_file().
13107 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
13109         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13110         produce a real _ charater when the current font is CW and _
13111         otherwise.
13113         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
13114         expression to work around gcc 2.2 bug.
13116 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
13118         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
13120         * troff/env.c (environment::add_padding): New function.
13121         (environment::add_char): Use add_padding().
13122         (environment::space): Likewise.
13123         (environment::wrap_up_field): Add some padding if there is none
13124         and there's no current tab.
13125         * troff/env.h: Declare environment::add_padding.
13127 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
13129         * pic/pic.y: undef fmod and rand before declaring them.
13131 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
13133         * troff/input.c (main): If the DESC file specifies a font name of
13134         0, then leave the corresponding font position empty.
13136         * nroff.sh: New file.
13137         * Makefile (install.nobin): Install nroff.sh.
13139         * tty/devlatin1/R.proto: Add ao as synonym for de.
13140         * tty/tmac.tty-char: Define ao as o.
13142         * tty/dev{ascii,latin1}/R.proto: Add aq.
13143         * tty/tmac.tty-char: Delete definition of aq.
13145 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
13147         * troff/input.c (init_charset_table): Don't translate 0240.
13148         * ps/tmac.ps: Translate char160 to space.
13149         * dvi/tmac.dvi: Likewise.
13150         * tty/tmac.tty: Likewise.
13152 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
13154         * dvi/tmac.dvi: Add support for all Latin-1 characters.
13156         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
13157         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
13158         \(oe, \(r?, \(r!.
13160         * tty/tmac.tty-char: Add \(ah.
13162         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
13163         No need to define \(FM and \(!/. Conditionalize all character
13164         definitions.
13166         * ps/devps/lgreekmap: Add +h, +f, +p.
13168         * ps/tmac.psnew: New file.
13169         * ps/Makefile: Install tmac.psnew.
13171         * troff/input.c (charinfo_to_node_list): Don't ever interpret
13172         character definitions in compatible mode.
13174         * troff/input.c (remove_character): New function.
13175         (init_input_requests): Bind remove_character to "rchar".
13177         * ps/tmac.psold: New file.
13178         * ps/Makefile: Install tmac.psold.
13179         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
13180         characters into tmac.psold.  Make these definitions unconditional.
13182         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
13184         * ps/tmac.ps: Don't define \('c and \('C.
13186         * ps/devps/textmap: Move Greek characters to...
13187         * ps/devps/symbolchars:
13189 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
13191         * ps/devps/text.enc: Add quotesingle.
13192         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
13193         * tty/tmac.tty-char: Likewise.
13194         * dvi/devdvi/texmi.map: Add +h, +f, +p.
13195         * dvi/devdvi/texi.map: Add Fn.
13196         * dvi/devdvi/msam.map: Add lz.
13197         * dvi/tmac.dvi: Handle Bq, bq, aq.
13199         * pic/lex.c (get_token): Recognize 'th.
13200         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
13202 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
13204         * ps/devps/textmap: Move di, mu, +- to...
13205         * ps/devps/symbolchars:
13207         * macros/tmac.s (@XS): Don't call par@reset or fi.
13208         (XA): Call LP. Turn off adjustment. Reduce line length.
13210         * macros/tmac.s: Initially alias XS to LP.
13211         (XS): Rename to @XS.
13212         (cov*ab-init): Alias XS to @XS.
13214 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
13216         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
13217         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
13218         (token::is_size, token::changes_env): Deleted.
13219         * troff/number.c (parse_term): No need to process \s explicitly.
13220         Call tok.next() only after scale indicator has been processed.
13221         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
13222         \f etc explicitly.
13223         (token::next): Handle \s, \f, \S, \H immediately rather than
13224         returning them as tokens.
13225         (token::operator==, token::description, token::add_to_node_list,
13226         token::process): Remove handling of deleted tokens.
13228         * troff/env.c (environment::add_char): When adding padding
13229         indicator character, call start_line() if necessary.
13231 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
13233         * ps/devps/afmtodit: Don't output 0 kerns.
13235         * ps/devps/afmtodit: Remove directory from name of encoding in
13236         font description file.
13238         * ps/devps/afmtodit: Improve error messages.
13240         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
13242         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
13243         * ps/devps/FontMakefile: Deleted.
13244         * ps/devps/afmname: New file.
13246         * ps/devps/symbol.sed: New file.
13247         * ps/devps/symbol.diff: Deleted.
13248         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
13249         Generate zapfdr.afm from zapfd.afm.
13251         * tty/tmac.tty (tty-char): Prefix definition with ".
13253         * macros/tmac.an (TP): Don't start a diversion if one has already
13254         been started.
13256         * tty/tmac.tty-char: Add Latin-1 characters.
13258         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
13260 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
13262         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
13263         Move declaration of struct horizontal_span.
13265         * tbl/table.c (table::table): Initialize span_list.
13266         (table::~table): Delete span_list.
13268         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
13270         * ps/devps/Makefile: Avoid dependency on GNU make.
13272         * ps/tmac.ps: Check that character does not already exist before
13273         defining it.
13275         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
13276         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
13277         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
13278         files.
13280         * tty/tmac.tty-char: New file.
13281         * tty/Makefile: Install tmac.tty-char.
13282         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
13283         tmac.tty-char.
13285         * tty/tmac.tty: Fix definition of \(34.
13287         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
13288         bracket-drawing characters onto |. Add *o.
13290         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
13291         only if current_field.
13293         * troff/dictionary.c (dictionary::lookup): Free old_table after
13294         rehashing. 
13296 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
13298         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
13299         whose glyphs are identical to glyphs of some Roman character.
13301         * tty/devlatin1/R.proto (bu): Deleted.
13302         * tty/devascii/R.proto (bu): Deleted.
13303         * tty/tmac.tty: Add definition of \(bu.
13305         * eqn/main.c (do_file): Pass FILE as argument.
13306         (main): Automatically load eqnchar.  New options -F and -n.
13307         Pass do_file an opened FILE.
13308         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
13309         No need to include font.h.
13310         * groff.sh: Likewise.  Don't need to use - for standard input.
13311         Prefix files with -- if first file starts with -.
13313         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
13315         * troff/env.c (environment::possibly_break_line): Don't set line
13316         to 0 across call to output_line().  Don't call output_line() until
13317         after discarding nodes after break.
13319 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
13321         * request.h (macro::empty): Declare it.
13322         * input.c (macro::empty): New method.
13323         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
13324         macro is empty.
13326 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
13328         * troff/env.c (environment::start_field): Decrement space_total
13329         when a space is frozen.
13331 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
13333         * macros/tmac.an (R): Delete macro.
13335         * troff/input.c (get_copy, token::next): Support \# (like \" but
13336         newline is ignored).
13338         * troff/input.c (token::next): Fix error message in 'Y' case.
13340 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
13342         * eqn/delim.c (define_extensible_string): Recognize any prefix of
13343         a delimiter name.
13345 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
13347         * c++test.c: Include <osfcn.h>.
13349         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
13350         <errno.h> doesn't.
13352 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
13354         * tbl/table.c (table::divide_span): Don't count column separation
13355         if expand was specified.
13357         * tbl/main.c (process_format): Don't ignore width specs in
13358         continued format.  Give warning for changing equal widths or
13359         column separation in continued format.
13360         (process_data): Set column separation, minimum width, equal
13361         columns at end of table.
13363 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
13365         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
13366         node::add_discretionary_hyphen): Use soft_hyphen_char.
13367         (set_soft_hyphen_char): New function.
13368         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
13370         * Makefile (c++tested): Give more helpful message if test fails.
13372 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
13374         * troff/input.c (init_charset_table): Translate 0240 to
13375         an unbreakable space.
13377         * troff/token.h (token::hyphen_indicator): New function.
13378         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
13379         translation.
13380         * troff/input.c (translate): Allow translation to \%.
13381         * troff/node.c (node::add_char): Handle
13382         TRANSLATE_HYPHEN_INDICATOR.     
13383         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
13385         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
13386         for \(hy.
13388         * tty/devlatin1/R.proto: \(hy and - should print as 055.
13390 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
13392         * groff.c (run_commands): If the last command gets a SIGPIPE send
13393         a SIGPIPE to all children than haven't yet terminated.  When
13394         command terminates, set pid field to -1.
13396 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
13398         * groff.c (main): Pass an appropriate -filename option to gxditview.
13400 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
13402         * Makefile.bd (install): Remove existing program before copying.
13404         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
13405         programs which have Unix counterparts to be installed with
13406         user-specified prefix.
13408         * troff/input.c (exit_troff): Don't check if exit_started.
13409         (exit_request): Don't call exit_troff if exit_started.
13411         * Makefile.bd (install.mm): Rename to install.dwbmm.
13413 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
13415         * driver/input.c (do_file): Add missing break for '#' case.
13417 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
13419         * troff/input.c (input_stack::clear):  Clear past any boundaries and
13420         then add the boundaries back.
13422         * troff/input.c (exit_troff): Return immediately if already
13423         exiting.
13425         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
13426         end macro.
13427         (pg*end-page): If the text has ended and there are no more
13428         footnotes or keeps, exit.
13430         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
13432         * troff/input.c (init_charset_table): Make \(rq transparent by
13433         default.
13435         * macros/tmac.an: Define lq and rq strings.
13437         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
13439 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
13441         * troff/env.c (environment::final_break): New function.
13442         (environment::newline): Set prev_line_interrupted to 2 if
13443         exit_started.
13444         * troff/env.h: Declare environment::final_break.
13445         * troff/input.c (exit_troff): Call environment::final_break()
13446         instead of environment::do_break().
13448         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
13449         doesn't already exist.
13450         * macros/man.local: New file.
13451         * macros/tmac.an: Load man.local.
13452         * macros/man.ultrix: New file.
13454 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
13456         * troff/input.c (exit_groff): Rename to...
13457         (exit_troff): New function.
13459         * troff/div.c (exit_started, done_end_macro,
13460         seen_last_page_ejector): New global variables.
13461         (began_page_in_end_macro): New static variable.
13462         (exit_flag): Deleted.
13463         (top_level_diversion::top_level_diversion): Initialize
13464         last_page_count.
13465         (top_level_diversion): More elaborate test for whether
13466         cleanup_and_exit() should be called.
13467         Set began_page_in_end_macro if the end macro isn't yet finished.
13468         * troff/div.h (top_level_diversion::last_page_count): New data
13469         member.
13470         (top_level_diversion::set_last_page): New function.
13471         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
13472         * troff/env.c (do_break): Zero prev_line_interrupted.
13473         * troff/input.c (exit_flag): Delete declaration.
13474         (LAST_PAGE_EJECTOR): New magic cookie.
13475         (token::next): Handle LAST_PAGE_EJECTOR.
13476         (exit_groff): Set exit_started and done_end_macro instead of
13477         exit_flag.  Call top_level_diversion::set_last_page.  Push a
13478         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
13479         another ejection after setting seen_last_page_ejector.
13481 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
13483         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
13485         * macros/tmac.e (TH): Make sure there's room for the initial
13486         header.
13488         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
13489         Set FVS in points rather than units.
13491 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
13493         * troff/div.c (top_level_diversion::add_trap): Don't consider the
13494         position of empty slots.
13496 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
13498         * ps/devps/S: Fix height and depth of parenrightex.
13499         * ps/devps/symbol.diff: Regenerate.
13501 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
13503         * tmac.e (u): Do underlining as in -mgs.
13505 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
13507         * tty/tty.c (tty_printer::end_page): If overstriking is
13508         suppressed, still turn overstruck horizontal and vertical lines
13509         into +.
13511         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
13512         2.1.
13514         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
13516 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
13518         * Version 1.05 released.
13520 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
13522         * tty/tty.c: Instead of keeping an array of glyphs and then
13523         sorting it, keep a ordered linked list of glyphs for each line.
13525         * driver/driver.h: Include stddef.h.
13527         * tty/tty.c (compare_glyph):
13528         * refer/refer.c (rcompare):
13529         * troff/env.c (compare_ranges): Arguments of qsort comparison
13530         function should be const void *.
13532         * troff/number.c (parse_term):
13533         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
13534         switch statement.
13536         * refer/label.y (consider_authors): Don't access variables
13537         constructed under a condition outside that condition: put braces
13538         round for statement containing declaration; redeclare use of same
13539         variable later.
13541         * pic/pic.y (text_expr): Delete production that allows
13542         parenthesised text_expr.
13543         (expr): Allow a conditional_expr to appear in parentheses.
13544         (conditional_expr): Rename to any_expr.
13546         * mm: Install new version 1.01 from jh.
13548         * lib/font.c (font::get_width): Cache scaled widths.
13549         (font::font): Initialize widths_cache.
13550         (font::~font): Destroy widths_cache.
13551         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
13553 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
13555         * c++test.c, c++test.ref: New files.
13556         * Makefile: Check that the C++ compiler works.
13558         * ps/tmac.pspic (PSPIC): Do a break.
13560         * ps/tmac.ps: Move definition of PSPIC into...
13561         * ps/tmac.pspic: New file.
13562         (PSPIC): Draw box around picture, but make it invisible to grops.
13563         * ps/tmac.ps: Load tmac.pspic.
13564         * ps/Makefile: Install tmac.pspic.
13566 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
13568         * lib/font.c (scale_round): If n is negative,
13569         subtract .5 before truncating floating point result.
13571         * lib/fontfile.c: Include <errno.h>.
13573 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
13575         * driver/input.c (get_char): Inline. Don't update current_lineno.
13576         Change callers to up date current_lineno if necessary.
13577         Use get_char() instead of getc(current_file).
13579 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
13581         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
13583 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
13585         * tty/tty.c (tmac.tty): Define \(rg as (R).
13587 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
13589         * lib/lib.h: New define a_delete.
13590         * Use a_delete instead of delete when deleting an array of objects
13591         without destructors.
13593         * lib/lib.h: Rename adelete to ad_delete.
13594         * Change uses of adelete.
13596 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
13598         * eqn/eqn.y: Include lib.h.
13600         * troff/node.c (grow_font_table): Delete old_font_table.
13602         * mm: Install new version from jh.
13604 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
13606         * tbl/table.h (format_type): Make global instead of local to class
13607         entry_format.  Prefix enumerators with FORMAT_.
13608         * tbl/table.c, tbl/main.c: Corresponding changes.
13609         * refer/token.h (token_type): Make global.  Prefix enumerators
13610         with TOKEN_.
13611         * refer/token.[ch]: Corresponding changes.
13612         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
13614         * troff/div.c (node::set_vertical_size): Don't name argument.
13616 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
13618         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
13619         * lib/lib.h: Define adelete accordingly.
13620         * pic/object.c (graphic_object::graphic_object):
13621         * tbl/main.c (format::~format):
13622         * tbl/table.c (table::~table):
13623         * refer/ref.c (reference::~reference, reference::merge,
13624         reference::insert_field, reference::delete_field): Use adelete.
13626         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
13627         * refer/token.h:
13628         * tbl/table.h: Corresponding changes.
13630         * common.c (common_output::dashed_arc, common_output::dotted_arc):
13631         Ensure total_angle is positive.
13633 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
13635         * refer/ref.c (reference::merge, reference::insert_field,
13636         reference::delete_field): Avoid delete[0].
13638         * refer/token.c (init_special_chars): Move calls to cmupper
13639         outside calls to init_two_char_letter to work around bug in gcc
13640         2.0.
13642 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
13644         * lib/new.c (operator new): Use __builtin_new for g++.
13646         * pic/object.c (graphic_object::~graphic_object):  Don't use
13647         delete [] on 0.
13649         * pic/object.c (output::compute_scale): Initialize max_width and
13650         max_height.
13652 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
13654         * troff/input.c (write_request): Call fflush.
13656         * troff/node.h (class composite_node): Move declaration to node.c
13657         * troff/input.c (charinfo_to_node): Rename to ...
13658         (charinfo_to_node_list): Return node list rather than composite
13659         node.
13660         * troff/node.c (make_composite_node): New function.
13661         (make_node, add_char): Call make_composite_node instead of
13662         charinfo_to_node.
13663         (class composite_node): Add a tfont * member.  Delete font_size
13664         member.
13665         (composite_node::composite_node, composite_node::copy,
13666         composite_node::size): Corresponding changes.
13667         (composite_node::tprint): Provide constant spacing, emboldening
13668         and track kerning as specified in tfont.
13669         (composite_node::width): Change width calculation accordingly.
13670         * troff/env.h (environment::composite): New member.
13671         (environment::is_composite, environment::set_composite): New
13672         functions.
13673         * troff/env.c (environment::environment): Initialize composite.
13674         * troff/input.c (charinfo_to_node): Call
13675         environment::set_composite.
13676         * troff/node.c (make_composite_node, make_glyph_node): Use the
13677         plain version of the tfont if the environment is composite.
13679         * troff/node.c (font_info::get_space_width): Additional argument
13680         giving space_size.  Handle constant space correctly. Scale by
13681         space_size unless constant spaced.
13682         (env_sentence_space_width): New function.
13683         * troff/node.h: Declare it.
13684         * troff/env.h (environment::get_space_size,
13685         environment::get_sentence_space_size,
13686         environment::get_narrow_space_width,
13687         environment::get_half_narrow_space_width): Make inline.
13688         (environment::get_space_width): Make inline.  Just call
13689         env_space_width.
13690         * troff/env.c: Delete definitions for funtions made inline.
13691         (environment::space_newline, environment::space): Use
13692         env_sentence_space_width(). Don't scale by space_size.
13693         * troff/node.h: Move declarations of env*space_width() functions
13694         into env.h.
13696 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
13698         * macros/tmac.s (PS): Don't try to set negative indent.
13700 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
13702         * pic/pic.y: Fix min function.
13704 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
13706         * man/mdate.sh: Clear LANGUAGE.
13708 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
13710         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
13711         * pic/lex.c: New COMMAND keyword.
13712         * pic/pic.y (print_args, print_arg): New rules.
13713         (placeless_element): Use print_args for PRINT.
13714         New COMMAND element.
13716 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
13718         * troff/input.c (terminal): Handle missing argument correctly.
13720         * pic/pic.y (text_expr): New rule.
13722         * pic/pic.y: Implement := operator.
13724 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
13726         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
13727         mdoc.
13729 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
13731         * ps/devps/dingbatsrmap: Include this in the distribution.
13733         * macros/tmac.doc: Replace with new version from 2nd Networking
13734         Release. Fix loading of doc-* files.
13735         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
13736         * macros/tmac.doc.old: New file.  Apply fixes that had been
13737         applied to old tmac.doc.
13738         * macros/tmac.andoc: Check that we're running under groff.
13739         * macros/Makefile: Rework.
13741 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
13743         * tbl/table.h (format_type): 
13744         * refer/token.h (token_type): If NESTED_TYPES is defined, use
13745         typedef to make these types visible at file scope.
13746         * Makefile: Add NESTED_TYPES configuration option.
13748         * troff/div.c (mark): At the top level use the value of
13749         nl_reg_contents rather than the current vertical position.
13751 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
13753         * tty/tty.c: Implement \D for horizontal or vertical lines.
13754         (tty_printer::set_char): Use vec_used+2 as serial number.
13755         Don't allow size of vector to exceed USHRT_MAX-2.
13756         Split off part into...
13757         (tty_printer::add_char): New function.
13758         (tty_printer::draw): New function.
13759         (compare_glyph): Handle equal serial numbers.
13760         (tty_printer::end_page): Handle overstruck characters from \D.
13761         (main, usage): Implement -d option.
13763 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
13765         * tbl/main.c (process_format):
13766         * eqn/text.c (split_text):
13767         * troff/input.c (token::next): Use inner block for declarations
13768         with initializers in switch statement.
13770 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
13772         * pic/common.c (common_output::dash_line): Cope with zero-length
13773         lines.
13775 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
13777         * Version 1.04 released.
13779 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
13781         * macros/tmac.an (TH): Define a macro an-init to define variables
13782         based on command line arguments.
13783         (an-header): Call it.
13785 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
13787         * Makefile (install.mm): Rename to install.dwbmm.
13789         * Makefile: Integrate mm.
13790         * mm: New directory.
13792 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
13794         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
13795         <sys/types.h>.
13797         * pic/troff.c (troff_output::simple_spline,
13798         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
13799         shadowing parameter.
13801         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
13803         * lib/ptable.h: Add explicit casts when converting from unsigned
13804         long to unsigned.
13806         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
13807         * dvi/devdvi/Makefile: Install SA, SB.
13809         * refer/indxbib.c: Add declaration of mktemp.
13811         * refer/lookbib.c: Add declaration of isatty.
13813 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
13815         * pic/lex.c (interpolate_macro_with_args):  While collecting
13816         arguments, keep track of whether we're in a string.
13818 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
13820         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13821         down with \v, so as to avoid problems with top of page trap
13822         setting no space mode.
13824 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
13826         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13828 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
13830         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13831         Improve error message.
13833 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
13835         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13836         printf("%03o");
13838 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
13840         * groff.c (possible_command::execp): Always use _exit() after a
13841         failed exec.
13843         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13844         NO_SYS_WAIT_H   configuration options.
13845         * groff.c: Use these options.  Use POSIX-style macros to extract
13846         fields from the status returned by wait().
13848 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
13850         * tbl/table.c (table::compute_separation_factor): Allow the
13851         separation factor to drop to 0.
13853 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
13855         * refer/search.c: Include <errno.h>.
13857 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
13859         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13861         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13862         C++. 
13864         * pic/lex.c (input_stack::bol): Move definition out of class body.
13866         * pic/main.c: On MSDOS munge argv[0].
13868         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13870         * lib/ptable.c (hash_string): Use unsigned long rather than
13871         unsigned.
13872         (next_ptable_size): Use unsigned rather than int.  Give an error
13873         message if we've hit the largest table size.
13874         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
13875         table size.
13877         * pic/object.h (object_spec): Make flags unsigned long.  Declare
13878         flags as const unisgned long rather than as enums.
13880         * pic/output.c: Deleted.
13882         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13884         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13885         Add additional argument.
13886         (line_entry::note_double_vrule_on_{left,right}): Set value of
13887         douvle_vrule_on_{right,left} flag according to argument.
13888         (simple_line_entry::simple_print,
13889         simple_line_entry::double_line_print): If adjacent to double vrule
13890         on a corner extend rather than shorten the rule by half the double
13891         vrule sep.
13893         * troff/number.c (parse_term): In checking for overflow, handle the
13894         case where the current horizontal position is negative.
13896 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
13898         * pic/object.c (draw_arrow): Check for object having zero length.
13900 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
13902         * eqn/main.c (do_file): Split off inline equation handling into...
13903         (inline_equation): New function.  Search for starting delimiter
13904         using...
13905         (delim_search): New function. Don't recognize a delimiter that
13906         occurs in the name of an escape sequence, number register, string
13907         etc.
13909 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
13911         * eqn/delim.c (delim_box::compute_metrics): Don't call
13912         define_extensible_string if left is 0.
13913         (delim_box::output):  Don't print the left delimiter if left is 0.
13914         (delim_box::debug_print): Check for left == 0 before calling printf.
13916 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
13918         * troff/Makefile (majorminor.c): Include only digits in
13919         minor_version.
13921 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
13923         * refer/dirnamemax.c: new file.
13924         * refer/genlimits.c: Deleted.
13925         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13926         Don't check path length.
13927         * refer/Makefile: Add dir_name_max.o; delete genlimits.
13928         * Makefile: Add PATHCONF_MISSING option.
13930         * refer/indxbib.c (get_cwd): New function.
13931         (main): Use get_cwd().
13932         * lib/getcwd.c: New file.
13933         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13934         GETCWD in SUBFLAGS.
13935         * lib/Makefile: Compile getcwd.o.
13937         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13938         userdict.
13940         * refer/indxbib.c (main): Check success of mktemp.
13942         * lib/tmpfile.c: New file.
13943         * lib/Makefile: Add tmpfile.c.
13944         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13945         * ps/ps.h: Delete declaration of mktemp().
13946         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13947         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13948         * driver/driver.h: No need now to include errno.h.
13950         * everywhere: Set errno to 0 before calling fopen().
13952         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13953         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13954         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13956 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
13958         * troff/env.h (translate_space_to_dummy): Declare it.
13959         * troff/env.c (environment::space_newline, environment::space):
13960         If translate_space_to_dummy is set then make the width of spaces 0.
13961         * troff/input.c (translate): If the second character of a
13962         translation is a space, translate to unbreakable space.  If the
13963         first character is a space, set or clear translate_space_to_dummy
13964         according to whether the second character is \&.  Weird!
13966 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
13968         * groff.c (run_commands): Don't use non-zero exit code because a
13969         command gets SIGPIPE.
13971         * groff.c, groff.sh: Use -mXps with -TXps.
13973         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13974         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13975         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13976         (ps_printer::special): New specials invis and endinvis.
13977         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13978         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
13979         (ps_printer::end_page): Check that invis_count == 0.
13980         (ps_printer::invis_count): New member.
13981         (ps_printer::ps_printer): Initialize invis_count to 0.
13983         * troff/env.c (environment::hyphenate_line): Hyphenation
13984         indicator at beginning of word inhibits splitting after -, \(em
13985         etc.
13987         * pic/pic.y (element): Allow another element to follow } without
13988         any intervening separator.
13990 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
13992         * pic/lex.c (get_delimited): Allow tabs before delimiter.
13994 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
13996         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
13997         declaration of wait() in header files.
13998         * Makefile: Get rid of -DHAVE_UNION_WAIT.
14000         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14002         * lib/lib.h: Declare return type of strerror as char *.
14004         * man/Makefile: Add g flag to sed substitutions.
14005         * Makefile (shgroff, bindist): Likewise.
14007 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
14009         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14010         * ps/devps/prologue (PBEGIN): Define showpage after pushing
14011         userdict.
14013 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
14015         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14016         userdict.
14018 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14020         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14021         group.
14023 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14025         * troff/input.c (define_number_reg):  If currently undefined,
14026         don't define it if the argument is an invalid expression.
14028         * Makefile: Ignore return value of `if' commands without `else'
14029         parts.
14031         * Makefile: Split up CPPDEFINES into a series of separate
14032         configuration options.
14034         * troff/input.c (init_registers): Use time_t instead of long
14035         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14036         than passing pointer.
14037         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14039         * lib/Makefile (fontpath.h): Use gendef.
14041 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
14043         * troff/input.c (input_iterator::shift): Delete argument name.
14044         * troff/node.c (suppress_output_file::really_begin_page,
14045         suppress_output_file::really_transparent_char, node::ascii_print,
14046         node::tprint): Delete names of unused arguments.
14048 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
14050         * refer/label.y (string):  Pass $4 to command_error.
14052 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
14054         * Version 1.03 released.
14056 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
14058         * Makefile: Pass definition of SHELL in SUBFLAGS.
14060         * gendef: New file.
14061         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14062         ps/Makefile: Use gendef to construct header files that are
14063         constructed from the Makefile.
14065         * macros/Makefile: make all should build stripped version of tmac.e.
14067         * refer/Makefile (clean): Remove y.output.
14069 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
14071         * ps/pfbtops.c (main): Add -v option which prints out a version
14072         number.
14073         * ps/Makefile (pfbtops): Link with libgroff.a.
14075 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
14077         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14078         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14080         * refer/lkbib.c (main): Always terminate reference with blank
14081         line.
14082         * refer/lookbib.c (main): Likewise.
14084         * refer/linear.c (file_buffer::load): Check that the file is not a
14085         binary file.
14087         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14088         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14089         Delete second inclusion of <sys/param.h>.
14091 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
14093         * troff/token.h (token::special): Deleted.
14095         * tbl/main.c (process_format): Rework so that opt->tab_char is
14096         recognized only when appropriate.
14098         * ps/Makefile (clean): Remove pfbtops.
14100 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
14102         * lib/font.c (text_file::next): Don't return if we have got a
14103         blank line.
14105 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
14107         * refer/refer.c (store_reference): Get hash code from old_table[i]
14108         when rehashing the table.
14110 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
14112         * eqn/box.c (box::top_level): Save size and prev size using \R and
14113         restore it afterwards. Set the size to the size at the beginning
14114         of the line.
14115         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
14116         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
14118         * refer/Makefile (limits.h): Use ./genlimits.
14120 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
14122         * refer/index.c: Delete declarations of stat() and fstat().
14124 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
14126         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
14128 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
14130         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
14132 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
14134         * troff/input.c (token::get_char): Handle \e.
14136         * refer/linear.c: Delete declarations of fstat() and stat().
14138 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
14140         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
14141         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
14143 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
14145         * troff/input.c (do_define_macro): Improve error handling for end
14146         of file while defining macro.
14148 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
14150         * eqn/box.h: Fix declaration of set_gsize.
14151         * eqn/box.c (set_gsize): Make argument const char *.
14152         (gsize): Declare as char *.
14153         * eqn/main.c (main): Don't convert gsize to int.
14154         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
14156         * Version 1.02 released.
14158 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
14160         * macros/tmac.andoc: New file.
14161         * macros/Makefile: Install tmac.andoc.
14163         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
14164         operator new and delete on OP_DELETE_BROKEN not being defined.
14165         * Makefile: Mention OP_DELETE_BROKEN.
14167 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
14169         * Makefile (bindist): Pass SUBFLAGS.
14171 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
14173         * Makefile, groff.c: Pass definitions to groff.c via device.h.
14175         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
14176         parameter.
14178         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
14180         * ps/ps.h, ps/psrm.c: Make comment_table and
14181         header_comment_table local to resource_manager::process_file.
14183         * groff.sh: With -TXps pass -printCommand option to gxditview.
14185         * groff.c (possible_command::print): Implement using
14186         append_arg_to_string.
14188         * xditview: Merge in new implementation with own ChangeLog.
14190 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
14192         * groff.c (main): Implement PRINT_OPTION.
14193         (append_arg_to_string): New command.
14194         (device_table): Set PRINT_OPTION flag for Xps.
14196 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
14198         * troff/groff.h: Rename to troff.h.
14200         * pic/lex.c (lookup_keyword, docmp): New functions.
14201         (get_token): Use new lookup_keyword.
14202         Don't include key.h.
14203         * pic/key.[ch], pic/pic.gperf: Deleted.
14204         * pic/Makefile: Remove gperf stuff.
14206         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
14207         into output.h.
14208         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
14210         * troff/Makefile, troff/node.c: Move definition of
14211         STORE_WIDTH into node.c.
14213         * etc/grog.pl, etc/grog.sh: Support -mdoc.
14215 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
14217         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
14218         dvi/devdvi/texb.map: Add lq and rq.
14219         dvi/devdvi: Regenerate fonts.
14220         * ps/devps/textmap: Add lq and rq.
14221         * ps/devps: Regenerate fonts.
14222         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
14223         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
14225         * pic/object.c (position_rectangle): When checking radius
14226         cope with possiblity that width or height is negative.
14227         (box_object::box_object): Have separate xrad and yrad with
14228         signs matching signs of dim components.
14229         (box_object::{north,south}_{east,west}): Use xrad and yrad.
14230         (box_object::print): With rounded boxes use absolute values
14231         for dim and rad arguments.
14233         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
14234         in fontpath.h.
14236         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
14238         * various files: Add explicit destructors to keep Saber CC +d
14239         happy.
14241 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
14243         * eqn/box.c (box::top_level): Restore fonts correctly after
14244         font changes in line containing inline equation.  Also
14245         restore previous font as well as current font.
14246         * eqn/pbox.h: Define necessary string and register names.
14248         * troff/input.c (token::next): Case 'R' calls do_register.
14249         (do_register): New function.
14251 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
14253         * groff.c, groff.sh: Support Xps device.  Allow each device
14254         to have a pseudo_name and a real_name.
14256         * groff.c (run_commands): Don't print `Broken pipe' messages.
14258         * ps/pfbtops.c: New file.
14259         * ps/Makefile: Add pfbtops.
14261         * troff/number.c (parse_term): Improved error message.
14263 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
14265         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
14267         * Makefile: Integrate refer.
14268         * refer: New directory.
14269         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
14270         man/lkbib.man: New files.
14271         * man/Makefile: Support refer man pages.
14273         * lib/lib.h: Declare is_prime.
14274         * lib/prime.c: New file.
14276         * troff/input.c (macro_source): New function.
14277         (init_input_requests): Bind "mso" to macro_source.
14279         * troff/env.c (environment::possibly_break_line): Maintain
14280         pointer to pointer to node to be split in ndp so as to avoid
14281         using address of freed node.
14283         * troff/env.c (environment::hyphenate_line): Maintain pointer to
14284         pointer to first node to be hyphenated in startp so as to
14285         avoid using address of freed node.
14287         * troff/env.c (class trie, class hyphen_trie): Make the
14288         elements of the trie be of type char not unsigned char.
14289         Declare arguments to be const char* instead of unsigned char *.
14290         
14291         * troff/env.c (hyphenate): Initialize hbuf[0].
14293         * troff/input.c (set_string): Declare p to be char * and cast
14294         *p to unsigned char when necessary.
14296         * troff/input.c (do_define_macro): Declare s to be const
14297         char*. Cast element to unisgned char when necessary, Declare
14298         d to be an int.  Handle EOF better.
14300         * troff/Makefile, troff/input.c: Different scheme for passing
14301         definitions of MACROPATH, HYPHENFILE and DEVICE.
14303 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
14305         * tty/devascii/R.proto: Delete entry for em.
14306         * tty/devlatin1/R.proto: Likewise.
14308 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
14310         * troff/input.c (translate): Stop when we get a space. Treat eof
14311         like newline.
14313         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
14315 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
14317         * tbl/main.c (process_format): A font name following a `f'
14318         modifier that starts with a digit can be only one character long.
14319         Also deal with EOF on the second character of the font name.
14321 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
14323         * troff/input.c (token::next): Turn \~ into an
14324         unbreakable_space_node.
14325         * troff/node.c (unbreakable_space_node): New class.
14326         * troff/node.h: Declare it.
14328 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
14330         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
14331         it's >= 0, before outputting it as a single byte.
14333 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
14335         * lib/font.c: Make font_char_metric::code an int.
14336         (font::get_code): Change return type to int.
14337         (font::load): Allow code to be arbitrary integer.
14338         * lib/font.h (font::get_code): Change return type to int.
14339         (font::number_to_index): Change argument type to int.
14340         * troff/input.c (token::next):  In case 'N', allow any value.
14341         Store value in token::val.
14342         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
14343         (token::get_char, token::add_to_node_list, token::process): Get
14344         number from val.
14345         (charinfo::set_number): Change argument to int.
14346         (charinfo::get_number):  Require that NUMBERED flag be set.
14347         (get_charinfo_by_number): Store numbered characters not between 0
14348         and 255 in a dictionary.
14349         * troff/charinfo.h (get_charinfo_by_number): Change argument type
14350         to int.
14351         (charinfo::number): Change type to int.
14352         (charinfo::set_number): Change type of set_number to int.
14353         * troff/node.c (troff_output_file::put_char_width,
14354         troff_output_file::put_char): Test whether character is numbered
14355         using charinfo::numbered().
14356         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
14357         values of num.
14358         * lib/nametoindex.c: New implementation to cope with arbitrary
14359         number characters.
14361         * troff/input.c (token::operator==): Test val for
14362         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
14363         TOKEN_SIZE.
14365         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
14366         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
14368 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
14370         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
14371         variable.
14373         * all Makefiles: rm targets of cp and >.
14375         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
14376         it.
14378         * eqn/lex.c (def_table): Add dollar.
14380 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
14382         * troff/input.c (do_width): Push back newline before closing delim
14383         like do_bracket.
14385 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
14387         * groff.c (possible_command::prepend_arg): New function.
14388         (main): Prepend device -m option.
14389         * groff.sh: Put device -m options before command-line options.
14391 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
14393         * macros/tmac.an (IP): Quote argument to TP.
14395         * ps/ps.c (main): New option -b, which sets...
14396         (broken_flags): New variable.
14397         (ps_printer::~ps_printer): Incorporate the setup section in the
14398         prolog if (broken_flags & NO_SETUP_SECTION).
14399         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
14400         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
14401         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
14402         ps_printer::print_needed_font_comment,
14403         ps_printer::print_supplied_font_comment,
14404         ps_printer::print_include_font_comments,
14405         ps_printer::lookup_doc_font, ps_printer::download_fonts,
14406         ps_printer::read_download_file, read_document_fonts, add_font,
14407         skip_line, parse_fonts_arg, document_font::document_font,
14408         document_font::~document_font, document_font::download,
14409         ps_output::include_file):  Deleted.
14410         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
14411         rather than %!PS-Adobe-2.0.  Make calls to
14412         resource_manager::need_font for each font that we used. Replace
14413         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
14414         print_supplied_font_comment, print_needed_font_comment by call to
14415         resource_manager::print_header_comments. Output %%Orientation
14416         comment. Output %%Requirements: numcopies comment if ncopies > 1.
14417         Don't output the prolog directly.  Instead call
14418         resource_manager::output_prolog.  Only define #copies when ncopies
14419         > 1.  Delete calls to print_include_font_comments  and
14420         download_fonts.  Add call to resource_manager::document_setup.
14421         (ps_printer::do_file): Call resource_manager::import_file instead
14422         of including it ourselves.
14423         (ps_printer::do_import): Likewise.  Also don't call
14424         merge_import_fonts. Push userdict on the dictionary stack before
14425         and pop it afterwards.
14426         Move declaration of ps_output into ps.h.
14427         * ps/psrm.c: New file implementing resource_manager class.
14428         * ps/ps.h: New file declaring ps_output and resource_manager
14429         classes.
14430         * ps/devps/zapfdr.ps:
14431         * ps/devps/symbolsl.ps:
14432         * ps/devps/prologue:  Use 3.0 conventions.
14433         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
14434         Add default definition of BROKEN_SPOOLER_FLAGS.
14435         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
14436         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
14438 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
14440         * etc/grog.pl: New file.
14441         * Makefile (GROG): New variable.
14442         Add GROG to SUBFLAGS.
14443         * etc/Makefile (GROG): New variable.
14444         (install.nobin): Install $(GROG) rather than grog.sh.
14446 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
14448         * eqn/special.c (special_box::compute_metrics): Make the input and
14449         output strings the same.  Get the new height and depth from the
14450         predefined height and depth registers.  Also make subscript kern
14451         and skew available.
14452         (special_box::compute_subscript_kern, special_box::compute_skew):
14453         New functions.
14455         * eqn/box.c (pointer_box::compute_skew,
14456         simple_box::compute_metrics, box::top_level)
14457         * eqn/text.c (prime_box::compute_metrics,
14458         prime_box::comput_subscript_kern)
14459         * eqn/limit.c (limit_box::compute_metrics):
14460         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
14461         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
14462         negative numbers in `nr' requests with a leading 0.
14464 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
14466         * eqn/special.c: New file.
14467         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
14468         Add new rule for simple.
14469         * eqn/lex.c (token_table): Add SPECIAL.
14470         * eqn/box.h: Declare make_special_box.
14471         * eqn/Makefile: Add special.[co].
14473 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
14475         * ps/devps/prologue: Possibly set packing to true while defining.
14476         Create grops dictionary here.  Initialize local variables before
14477         defining procedures.
14478         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
14479         the dictionary stack. Set strokeadjust and overprint to false if
14480         the relevant operators are defined.
14481         (PEND): New procedure.
14482         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
14483         prologue.  Do everything else in the setup section.
14484         (ps_printer::do_import): Just call PBEGIN and PEND around the
14485         picture. Also push userdict before, and pop it afterwards.
14487 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
14489         * troff/node.c (bracket_node::tprint): Brackets were being printed
14490         1m too low.
14492         * macros/tmac.an (SH, SS): Set fill mode.
14494 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
14496         * troff/div.c (top_level_diversion::begin_page): Set
14497         high_water_mark to 0.
14499 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
14501         * man/mdate.sh: New file.
14502         * man/mdate.c: Deleted.
14503         * man/Makefile: Use mdate.sh instead of mdate.
14504         (mdate): Deleted.
14506         * eqn/lex.c (do_gsize): Supply missing argument to error message.
14508 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
14510         * man/mdate.c: New file.
14511         * man/*.man: Replace modification date by @MDATE@.
14512         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
14513         (mdate): New target.
14515         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
14516         Remove illegal input characters.
14518 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
14520         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
14522 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
14524         * troff/div.c (begin_page): Change behaviour when
14525         !first_page_begun and !break_flag.
14527         * troff/input.c (do_name_test): Return 0 if argument is empty.
14529         * troff/input.c (read_long_escape_name): Require closing ] to be
14530         at same input level as opening [.
14532         * troff/input.c (read_increment_and_escape_name): New function.
14533         (get_copy, process_input_stack): Use this for \n.
14535 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
14537         * troff/div.c (top_level_diversion::begin_page): Ignore the
14538         current value of page_number if !first_page_begun.
14540         * groff.c (main): Fix declaration of buf.
14542         * troff/input.c (do_name_test): New function.
14543         (token::next): Implement \A.
14544         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
14545         (token::description, token::add_to_node_list, token::process):
14546         Handle TOKEN_ESCAPE.
14547         * troff/token.h: New token TOKEN_ESCAPE.
14549 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
14551         * pic/main.c (do_picture): Allow space before and after filename
14552         following `<'.  Check that the filename is not empty.
14554 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
14556         * Version 1.01 released. 
14558         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
14560         * dvi/tmac.dvi: ftr HR to H.
14562         * macros/tmac.e: Round up computation of $r.
14564         * xditview/tmac.X:  Don't give up completely in compatibility mode.
14565         Use \n(.s instead of \n[.s].
14567         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
14568         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
14569         Add u to factors inside \s[...]. Rename frac to dvi-frac.
14570         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
14571         short names in the char definitions.
14573         * ps/tmac.ps: Don't give up completely in compatibility mode.
14574         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
14575         quote in front of \n(.s. Add u to factors inside \s[...].
14577 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
14579         * tty/tmac.tty: Call the nroff request.
14581         * macros/tmac.e ((x, )x):  Better definitions that work properly
14582         in a diversion.
14583         (@0, @1): Helper macros for (x.
14585         * macros/tmac.e ($s, hl): Use \l rather than \D.
14587         * tty/tmac.tty: Make it work better in compatibility mode.
14588         (pchar): Rename to tty-char.
14590         * macros/tmac.e (@E): New macro.
14591         (r, i, b, rb, bi): Use @E.
14593         * macros/tmac.e (@F): Don't use (;...) syntax.
14595         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
14596         it was modified for groff.
14598         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
14600         * macros/tmac.e (<., .>): Removed.
14601         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
14603         * macros/tmac.e: Remove check that groff is being used.
14605         * macros/tmac.e (@C): Change families only if using groff; turn
14606         compatibility mode off while changing familes. Save compatibility
14607         mode before changing families and restore it afterwards.
14609         * macros/tmac.e (@h): Remove test for offset + line length.
14611         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
14612         (lo, th, ac): Define to call @S instead of using als.
14614         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
14615         the ratio of the vertical spacing to the point size in units
14616         expressed as a percentage.  Use these instead of $10r and $10R,
14617         Delete $10r and $10R.
14619         * lib/font.c (font::load): In default computation of space_width,
14620         divide by sizescale.  Use scale_round.
14622         * macros/tmac.an (TP): Don't call `nf'.
14623         (an-do-tag): Don't call `fi'.
14625 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
14627         * troff/input.c (process_input_stack): Handle the case where
14628         spaces at the beginning of an input line are followed by a
14629         newline.
14631 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
14633         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
14634         * groff.sh: Use pic -x with the dvi device.
14636         * dvi/devdvi/FontMakefile (H): Don't use -s.
14638         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
14639         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
14640         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
14641         in FONTS.
14643 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
14645         * ps/psfig.diff: New file.
14646         * ps/tmac.psfig: New file.
14648 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
14650         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
14651         (]-): Don't call ref*do-tl.
14653         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
14655         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
14656         (fn@do-FS): Rename to fn*do-FS.
14658         * troff/input.c (transparent_translate): New function.
14659         (process_input_stack): Apply transparent_translate before calling
14660         diversion::transparent_output(unsigned char).
14662 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
14664         * troff/input.c (do_define_macro): Define the macro before calling
14665         skip_line.
14667         * xditview/Makefile: Add DEVICES variable.  Change install target
14668         to use this.
14670 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
14672         * groff.c (run_commands): Handle the possibility that there are
14673         child processes other than those forked by us.
14675 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
14677         * lib/string.c (string::append): New function.
14678         * lib/stringclass.h: Declare it.
14680 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
14682         * eqn/main.c (main): New option -N which sets
14683         no_newline_in_delim_flag. 
14684         (do_file): If no_newline_in_delim_flag is set don't allow newlines
14685         in delimiters.
14686         * groff.c (main): Pass -N on to eqn.
14687         (help, synopsis): Mention -N.
14688         * groff.sh: Implement -N.
14690 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
14692         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
14693         (]-): Call ref*do-tl if ref*need-tl is non-zero.
14694         (XP): Allow as initializer.
14696 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
14698         * troff/env.c (environment::wrap_up_field): If field_spaces are
14699         non-zero and we have a current_tab, subtract padding from
14700         tab_distance.  If this makes tab_distance <= 0, use the next tab
14701         stop instead.  If there isn't any next tab or it's a left tab,
14702         wrap up the current tab.
14703         (environment::start_field): Initialize tab_precedes_field.
14704         (environment::wrap_up_tab): If there's a current field, update
14705         pre_field_width, field_distance and tab_precedes_field.
14706         * troff/env.h (environment::tab_precedes_field): New member.
14708 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
14710         * ps/ps.c (ps_printer::do_file): New function.
14711         (ps_printer::special): Bind to `file' special.
14712         (ps_printer::do_exec): Set ndefined_styles to 0.
14714 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
14716         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
14717         Avoid stripping first character from the start of unrecognized
14718         escapes.  Use lex_error instead of error to report errors.
14719         * eqn/lex.c (get_token): Rework handling of escapes.
14720         (lex_error): Move declaration into...
14721         * eqn/eqn.h.
14723         * xditview/xditview.c (main): Make -page option work.
14725         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
14727 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
14729         * macros/tmac.s (B2): Correct size of box.
14731 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
14733         * macros/tmac.s (B2): Postpone drawing the box until in the
14734         top-level diversion.
14736         * tty/tmac.tty: Add font translations for C, CR, CW.
14738         * groff.c (synopsis, help): Document -i.
14739         * groff.sh: Implement -i.
14741         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
14742         Simplify the construction of SN.
14744         * troff/number.c (parse_term): Give `|' a higher precedence.
14745         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
14746         accordingly.
14748         * macros/tmac.s (B2): Use par@finish instead of par@reset.
14750 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
14752         * lib/string.c (string::move): New function.
14753         * lib/stringclass.h: Declare it.
14755 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
14757         * troff/env.c (distribute_space): Add optional argument
14758         `force_forward'.
14759         (environment::wrap_up_field): Call distribute_space with
14760         `force_forward' argument of 1.
14762 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
14764         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
14765         Inline it.  Move reallocation into...
14766         (string::grow1): New function.
14767         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
14768         dependencies to include library header files.
14769         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
14771 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
14773         * macros/tmac.s (@NH): Use the same number registers than -ms does
14774         for the heading level counters.  Use the same string that -ms does
14775         for the number for this heading.
14777 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
14779         * lib/new.c (operator new): Cast result of malloc to char *.
14781         * troff/input.c (spring_trap, lookup_request): Add assert that nm
14782         is not null.
14784 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
14786         * groff.c (main): Support -i.
14788 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
14790         * pic/pic.h: Include <osfcn.h>.
14792         * ps/ps.c: Add declaration of mktemp.
14794         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
14795         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
14796         argument as union wait *.
14797         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
14798         argument to union wait *.
14800 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
14802         * tty/tmac.tty: Add definition of \(co.
14804         * pic/object.c (make_arc): Only increase radius when radius
14805         strictly less than d.
14806         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
14807         more than once.
14809         * troff/env.c (environment::environment(symbol),
14810         environment::environment(const environment *)):  Initialize
14811         input_trap_count.
14813 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
14815         * tbl/main.c (main): Add exit(0).
14817         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14819         * pic/main.c (main):
14820         * eqn/main.c (main):
14821         * tbl/main.c (main):
14822         * etc/soelim.c (main):
14823         * driver/printer.c (printer::~printer):
14824         * troff/node.c (real_output_file::~real_output_file,
14825         real_output_file::flush):  Check for errors on stdout.
14827         * most files: Add 1991 to copyright notice.
14829         * macros/tmac.s: Don't test \n(.x and \n(.y.
14831         * troff/input.c (token::next): Rename `escape_char' label to
14832         `handle_escape_char' and `normal_char' label to
14833         `handle_normal_char'.
14835 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
14837         * groff.c (main, synopsis, help): Support -a option.
14838         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
14839         to trflags while parsing options.
14841 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
14843         * troff/number.c (parse_term): With `m', `M' and `n' scale
14844         indicators, convert scale factor to hunits before scaling.
14846 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
14848         * lib/font.c (scale_round): Better test for overflow when n is
14849         negative.
14851 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
14853         * tbl/main.c (process_format): Add second argument of type
14854         options*. Change callers.  Allow opt->tab_char as well as '\t'
14855         between format items.
14857 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
14859         * macros/tmac.an (PD): With no arguments, make sure register PD is
14860         at least \n[.V].
14861         (TH): Call PD with no argument, instead of setting register PD
14862         directly.
14864 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
14866         * Version 1.00 released.
14868 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
14870         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14872         * dvi/devdvi/DESC: Mount CW instead of CR.
14874         * dvi/tmac.dvi: Add definition of \(tm.
14876         * dvi/devdvi/texsy.map: Add lh, and rh.
14877         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14878         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14880         * dvi/devdvi/FontMakefile: Generate H from cmss10.
14881         * dvi/devdvi/Makefile: Install H.
14882         * dvi/devdvi/H: New file.
14884 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
14886         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14887         be 0.
14889 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
14891         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14893         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14895         * macros/tmac.s (@EN): Handle the case where the equation is empty
14896         but the label is not.
14898 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
14900         * troff/groff.h: New warning category WARN_SPACE.
14901         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14902         WARN_SPACE to warning_table.
14903         (interpolate_macro): Give a warning of type WARN_SPACE if the name
14904         is longer than two characters and is not defined, but the first
14905         two characters do make a defined name.
14907         * PROBLEMS: New file.
14909         * CHANGES: New file.
14910         * README-0.6, README-1.00: Deleted.
14912         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14913         * xditview/devX75/Makefile: Make devX75-12.
14914         * xditview/devX100/Makefile: Make devX100-12.
14916         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14917         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14919 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
14921         * README-0.7: Rename to README-1.00.
14923         * macros/tmac.pic: New file.
14924         * macros/Makefile (install.nobin): Install tmac.pic.
14926 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
14928         * troff/env.c (hyphen_word): Correct the test for whether the
14929         token is a hyphen.  Reset npos to 0.
14931         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14933 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
14935         * macros/tmac.s (ds*common-end): Call par*reset.
14936         (PE): Likewise.
14937         (par@reset-indent): Deleted.
14939         * macros/tmac.s (@IP): Divert the label.
14941 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
14943         * xditview/draw.c (setGC): Use a line width of .1m rather than
14944         .04m by default; round rather than truncate value.
14946         * tbl/table.c (class empty_entry): New class.
14947         (empty_entry::empty_entry, empty_entry::line_type): New functions.
14948         (table::add_entry): Represent empty entries by objects of type
14949         empty_entry.
14950         (table_entry::line_type): Return -1.
14951         (table::determine_row_type): Ignore entries with line_type 0.
14952         Treat type -1 as non-lines.
14954 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
14956         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14957         macros/tmac.s: Rename \(-d to \(Sd.
14959 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
14961         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14962         * xditview/libXdvi/DviChar.c: Likewise.
14963         * dvi/devdvi/texsy.map: Add `<<', `>>'.
14965 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
14967         * troff/div.c (top_level_diversion::begin_page): Call
14968         init_output() if the_output is 0.
14970 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
14972         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14973         ESCAPE_c.
14974         (get_copy): Turn \E into ESCAPE_E.
14975         (token::process, asciify): Handle ESCAPE_E.
14977         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14978         (RD): New macro.
14979         (DS): Implement `.DS R'.
14981 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
14983         * macros/tmac.s (FS): New macro.
14985         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14987         * macros/tmac.s (cov*tl-init): Remove after first execution
14988         instead of aliasing to @nop.  Call top of page macro explicitly
14989         instead of setting trap; call @init first.  Set pg@top as top of
14990         page macro.
14991         (cov*auto-init): Deleted.  Set cov*tl-init instead of
14992         cov*auto-init as top of page trap. 
14993         (TL, LP): Do a break instead of calling cov*tl-init.
14994         (cov*print): With RP format but no TL, alias FS and FE to @FS and
14995         @FE; in this case also give a warning and always start another
14996         page. No need to set pg@top here.
14997         (cov*tl-init): Rename to cov*first-page-init.
14999         * macros/tmac.s (RP): Do `.pn 0'.
15000         (cov*tl-init): With RP format don't do `.pn 0'.
15002         * macros/tmac.s (pg@cs-top): Set no space mode.
15004         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15005         (cov*ab-init): Alias TL, AU and AI to these.
15007 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
15009         * macros/tmac.s (@EQ): Move the space before the equation into @EN
15010         (@EN): Do nothing unless \n[dl] is > 0.
15012 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
15014         * pic/object.c (ellipse_object::radius): New function.
15016         * VERSION: Change version to 0.7.
15018         * tbl/table.c (block_entry::do_divert): Declare return type as
15019         void.
15020         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15022 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15024         * troff/column.c: New file.
15025         * troff/Makefile: Corresponding changes.
15027         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15028         Friend of vunits.
15030         * troff/div.c (top_level_diversion::space): If the space causes
15031         the first-page transition and springs a trap, truncate the space
15032         to 0.
15034 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15036         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15037         the document.
15039         * pic/troff.c (troff_output::line_thickness,
15040         troff_output::set_fill): Do a horizontal motion to compensate for
15041         the width of the \D escape sequence.
15043 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
15045         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15046         (not X75).
15048         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
15049         to printf.
15051         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15052         Supply empty definition.
15053         (text_entry::simple_print, simple_text_entry::simple_print):
15054         Delete declarations.
15055         (table::add_entry): Represent empty entries by objects of type
15056         `simple_entry'.
15058 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
15060         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15062         * tbl/table.c (left_text_entry::add_tab): New function.
15064         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
15065         initialize like LP.
15067 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
15069         * troff/env.c (environment::start_field): Give an error message if
15070         there is no next tab.
15072 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
15074         * troff/env.c (hyphenate): Skip initial elements with zero
15075         hyphenation code.
15077         * macros/tmac.s (par@init): Keep VS in points rather than units.
15079 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
15081         * pic/main.c (main): Implement `-c' option.
15082         * pic/output.h: Declare make_tpic_output().
15083         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15084         protected.
15085         (tpic_output): New class.
15086         (tpic_output::tpic_output, tpic_output::set_pen_size,
15087         tpic_output::command, make_tpic_output): New functions.
15089 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
15091         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
15092         if they're not already defined.
15093         * tbl/table.c (init_output): Don't test \n(.g.
15095         * troff/input.c (do_if_request): Delete `g' condition. Recognize
15096         `d', `r' and `c' conditions even in compatibility mode.
15098 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
15100         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15101         box.
15103 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
15105         * troff/env.h (environment::prev_line_interrupted): New member.
15106         (environment::get_prev_line_interrupted): New function.
15107         * troff/env.c (environment::newline): Set prev_line_interrupted.
15108         (environment::environment(const environment *),
15109         environment::environment(symbol)): Initialize
15110         prev_line_interrupted.
15111         * troff/input.c (process_input_stack): Don't give special
15112         treatment to space and newline at the beginning of the line if the
15113         previous line was interrupted.
15115 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
15117         * eqn/eqn.y: Disallow PRIME by itself.
15118         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
15119         PRIME.
15120         (def_table): Remove definition of '.  Define prime to be `.
15122         * eqn/eqn.y: Split off part of rule `script' into a new rule
15123         `nonsup'.
15125 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
15127         * macros/tmac.s ({, }): New string aliases.
15129 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
15131         * README-0.7: New file.
15133 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
15135         * macros/tmac.s: New file.
15136         * man/groff_ms.man: New file.
15137         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
15138         * Makefile.bd: Similarily.
15139         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
15140         definition of TMAC_S.
15141         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
15142         * macros/TODO: New file.
15144 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
15146         * troff/env.c (right_justify): New function.
15147         (init_env_requests): Bind this to request "rj".
15148         (center_lines): Set right_justify_lines to 0. If we get a bad
15149         integer, center 1 line.
15150         (environment::environment(symbol), environment::environment(const
15151         environment *)): Initialize right_justify_lines.
15152         (environment::get_right_justify_lines): New function.
15153         (init_env_requests): Bind this to number_register ".rj".
15155         * troff/env.c (environment::choose_breakpoint): Implement
15156         hyphenation_margin and hyphenation_space.
15157         (environment::get_hyphenation_space,
15158         environment::get_hyphenation_margin): New functions.
15159         (init_env_requests): Bind these to .hys and .hym.
15160         (hyphenation_space_request, hyphenation_margin_request): New
15161         functions
15162         (init_env_requests): Bind these to hys and hym.
15163         (environment::environment(symbol), environment::environment(const
15164         environment *)): Initialize hyphenation_margin and
15165         hyphenation_space.
15166         * troff/env.h: Corresponding changes to class environment.
15168 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
15170         * troff/div.c (blank_line): Always do a break.
15172         * eqn/box.c (do_text): Turn off escapes while appending text to
15173         string.
15175 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
15177         * troff/input.c (while_break_request, while_continue_request): New
15178         functions.
15179         (init_input_requests): Bind these to "break" and "continue".
15180         (while_depth, while_break_flag): New variables.
15181         (while_request): Update while_depth.  Break out of loop if
15182         while_break_flag is set.
15184 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
15186         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
15187         rather than 0.
15189 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
15191         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
15193         * stringify: New file.
15194         * Makefile (groff.o): Use stringify.
15196         * xditview/tmac.X: Remove definition of \(rn.
15197         * xditview/libXdvi/DviChar.c: Remove radicalex from
15198         Adobe_symbol_map.
15200 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
15202         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
15203         (alphabetic_block_entry::alphabetic_block_entry,
15204         alphabetic_block_entry::divert, alphabetic_block_entry::print):
15205         New functions.
15206         (block_entry::divert): Split off body into ...
15207         (block_entry::do_divert): If the block is alphabetic, subtract 2n
15208         from the line length; also update the span width to dl+2n, and the
15209         alphabetic span width to dl.
15211         * driver/input.c (do_file):  While reading argument to D command,
15212         when expanding buffer, multiply szp by sizeof(int) rather than 2
15213         in the argument to memcpy.
15215         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
15216         width of alphabetic columns.
15218 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
15220         * troff/node.c (lookup_family): Supply second argument to lookup.
15222         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
15223         search, return immediately if v is 0.
15225         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
15226         (troff_output::start_picture): Set this reg.
15227         (troff_output::end_picture): Remove this reg
15228         * eqn/box.c (box::extra_space): Don't produce `\x's if
15229         EQN_NO_EXTRA_SPACE_REG is defined.
15231         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
15232         * eqn/text.c (split_text): Map ' to \(fm when it's the first
15233         character.
15235 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
15237         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
15238         requests.
15240         * troff/div.c (top_level_diversion::top_level_diversion):
15241         Initialize page_number to 0.
15243 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
15245         * groff/troff (environment::environment(const environment *)):
15246         Initialize name to e->name, rather than "anonymous".
15248 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
15250         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
15251         requested_page.  Split middle part into ...
15252         (FindPage): New function.
15253         (SetValues): If we don't yet know the last page, and the requested
15254         page is greater than the current page, call FindPage.
15255         Update the font_map_string before doing this.
15257         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
15258         Translate \(lh and \(rh into left and right double arrows.
15260         * troff/node.c (class hyphen_inhibitor_node): New class.
15261         (hyphen_inhibitor_node::hyphen_inhibitor_node,
15262         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
15263         hyphen_inhibitor_node::type,
15264         hyphen_inhibitor_node::get_hyphenation_type): New functions.
15265         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
15266         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
15267         word.
15269 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
15271         * troff/node.h (dummy_node::get_hyphenation_type,
15272         transparent_dummy_node::get_hyphenation_type):  Declare them.
15273         * troff/node.c: (dummy_node::get_hyphenation_type,
15274         transparent_dummy_node::get_hyphenation_type): New functions.
15276 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
15278         * xditview/libXdvi/draw.c: If M_PI not defined after including
15279         math.h, then define it.
15281         * xditview/Makefile: Add definition of AR. Pass it to the submake
15282         in libXdvi.
15283         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
15285 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
15287         * troff/dictionary.h (object_dictionary::alias): Declare return
15288         value as int.
15289         * troff/dictionary.c (object_dictionary::alias): Return non-zero
15290         if the old name was defined.
15291         * troff/input.c (alias_macro): Give a warning if the old name was
15292         not defined.
15293         * troff/reg.c (alias_reg): Likewise.
15295 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
15297         * troff/input.c (token::next): Delete implementation of \R.
15299         * macros/Makefile: Strip comments from tmac.e while installing it.
15301         * troff/input.c: New variable `nroff_mode'.
15302         (troff_request, nroff_request): New functions.
15303         (init_input_requests): Bind `troff' and `nroff' to troff_request
15304         and nroff_request.
15305         (do_if_request): Compute results of t and n conditions from
15306         nroff_mode.
15308         * text/text.c (split_text): Fix typo in >=.
15310         * eqn/lex.c: Add definition of `==' to def_table.
15312 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
15314         * pic/tex.c (tex_output::start_picture): Change the definitions of
15315         \graph and \graphtemp so that they work properly with Plain TeX.
15317         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
15318         argument to `ar' is not less than the first.
15320         * pic/pic.y: Allow a comma between elements of the variable list
15321         in the argument to `reset'.
15323         * pic/object.c (arc_object::arc_object): Fix computation of
15324         radius.
15326         * eqn/main.c (main): Add exit(0).
15328 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
15330         * troff/div.c (begin_page): Test no_space_mode after doing the
15331         break, but still push the page ejector cookie before doing the
15332         break.  Also set the next page number after doing the break.
15333         
15334         * xditview/xditview.c (NewFile): Don't set the title and icon name
15335         if this is the first file and its name is `-'.
15336         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
15337         the X75 and X100 devices.
15338         (main): If a device has the XT_OPTION flag set and there's exactly
15339         one file argument, pass the driver -xrm and -title options to set
15340         the icon name and window title to the name of the file.
15342         * troff/env.c (environment_switch): If there was an argument but
15343         it wasn't a valid number or name, then pop an environment but
15344         don't give an error message on underflow.
15346         * troff/number.c (start_number): Correct spelling in error message.
15348         * troff/input.c (token::delimiter): Don't print an error message
15349         if err is false.
15351         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
15352         ParseDrawFunction if dw->display_enable is true.
15354 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
15356         * pic/pic.y: Parse text positioning like normal attributes, so as
15357         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
15358         positioning attribute.
15360 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
15362         * tbl/main.c (process_data): When in state START while reading a
15363         text block, don't change to state MIDDLE if c is a newline.
15365 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
15367         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
15368         so as to avoid shadowing parameter.
15370 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
15372         * tbl/table.c (trim_space): Deleted.
15373         (table::add_entry): Don't call trim_space.
15375 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
15377         * VERSION: Change version to 0.6.
15379         * troff/number.c (parse_expr): Make == work.
15381 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
15383         * man/grog.man: New file.
15384         * man/Makefile: Add grog.n to MAN1PAGES.
15385         * etc/grog.sh: New file.
15386         * etc/Makefile: Install grog.sh as grog.
15388 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
15390         * troff/input.c (token::next): Implement \E.
15392 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
15394         * xditview/tmac.X: Change font translations to match tmac.ps.
15396         * troff/input.c (non_empty_name_warning): Don't give a warning if
15397         `\{' terminates the name.
15399 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
15401         * ps/devps/symbol.diff: New file.
15402         * ps/devps/FontMakefile: Mention symbol.diff.
15404 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
15406         * troff/node.c (font_position): Use get_long_name to read the
15407         external_name.
15409         * troff/env.c (environment_switch): If we get a number that's < 0
15410         or >= NENVIRONMENTS, treat it like a name.
15411         Change NENVIRONMENTS to 10.
15413         * troff/groff.h: Remove definition of FONTS_MAX.
15414         * troff/node.h (class font_family): Make map a pointer instead of
15415         an array. Add a map_size member. Make it a class. Make nm const
15416         and public. Make invalidate_fontno a friend.
15417         * troff/node.c: Define font_table_size. Make font_info a pointer
15418         rather than an array.
15419         (class troff_output_file): Allocate font_position dynamically. Add
15420         nfont_positions member.
15421         (troff_output_file::set_font): Grow font_position if necessary.
15422         (troff_output_file::~troff_output_file): Delete font_position.
15423         (troff_output_file::troff_output_file): Allocate font_position.
15424         (grow_font_table): New function.
15425         (troff_output_file::really_begin_page,
15426         troff_output_file:really_copy_page): Use nfont_positions rather
15427         than FONTS_MAX.
15428         (mount_font_no_translate, mount_style): Call grow_font_table if
15429         necessary.
15430         (font_family::font_family): Allocate map.
15431         (font_family::make_definite): Grow map if necessary. Use
15432         font_table_size instead of FONTS_MAX.
15433         (font_family::~font_family): New function.
15434         (invalidate_fontno): Use font_family::map_size.
15435         (get_fontno, env_space_width, env_half_narrow_space_width,
15436         env_narrow_space_width, symbol_fotno, is_good_fontno,
15437         get_bold_fontno, make_glyph_node): Use font_table_size rather than
15438         FONTS_MAX.
15439         (next_available_font_position): Never return 0.
15441 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
15443         * ps/tmac.ps: Add font translations for compatibility with dpost.
15445 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
15447         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
15448         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
15449         Move definitions baseline_sep, shift_down, column_sep,
15450         matrix_side_sep into...
15451         * eqn/box.c: Add them to param_table.
15452         * eqn/pbox.h: Add declarations to pbox.h.
15454         * troff/input.c (set_string): Cast value to unsigned char *.
15456         * troff/token.h (process_input_stack): Declare it static before
15457         declaring it a friend.
15459 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
15461         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
15462         and bottom.
15463         * dvi/devdvi/EX: Regenerate.
15465         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
15466         transparent.
15468 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
15470         * eqn/lex.c: In defaults_table, make definition of `dot' call
15471         `dot_def'.  Don't explicitly make it roman.  Similarily for other
15472         accents.
15474         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
15475         argument.
15476         (for_input::get, for_input::peek): Use this.
15477         (do_for): Add by_is_multiplicative argument.
15478         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
15479         Change semantic value of optional_by to be a double plus a flag
15480         saying whethet the by clause is multiplicative.
15482         * eqn/lex.c (get_delimited_text): Remember location of start of
15483         definition.  Improve error handling when EOF is encountered.
15485         * lib/font.h: Rename handle_x_command to
15486         handle_unknown_font_command.
15487         * lib/font.c (font::load): Call handle_unknown_font_command for
15488         any unknown command in the font description file.  Don't call
15489         handle_x_command. Include the name of the command in the argv.
15490         Improve message for unknown command after kernpairs or charset
15491         command.
15492         * ps/ps.c (ps_font::handle_x_command): Rename to
15493         handle_unknown_font_command.  Remove message about `x download'
15494         command.  Give error message for wrong number of arguments.
15495         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
15496         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
15497         handle_unknown_font_command. Give an error message for wrong
15498         number of arguments.  Rename design_size to designsize.
15499         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
15500         checksum', `designsize' instead of `design_size'.
15502 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
15504         * eqn/*.[chy]: Change underaccent to uaccent.
15506         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
15507         give it the same precedence as ACCENT.
15508         * eqn/other.c (make_underaccent_box): New function.
15509         * eqn/box.h: Declare it.
15510         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
15511         def_table.
15513 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
15515         * pic/pic.y (reset_all): New function. Called in rule for RESET.
15516         (parse_init): Call reset_all.
15517         (define_variable): When defining scale reset only those
15518         pre-defined variables that are scaled.
15519         (defaults_table): Add `scale' as non-scaled value.
15521         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
15522         together with the text; allow any number of positioning words;
15523         allow center as a positioning word.
15525         * pic/object.c (output::compute_scale): Get picture maximum height
15526         and width from variables called maxpswid and maxpsht.
15527         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
15529 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
15531         * pic/object.c (object_spec::make_text): Multiply textht by number
15532         of text items.
15534         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
15535         occur.
15536         (do_sprintf): New function.
15537         (pic.gperf): Add sprintf token.
15538         (text, sprintf): New rules.
15540         * pic/pic.y: `rand()' with no arguments returns a random number
15541         in the range [0,1).
15543         * pic/pic.y: Allow a bare expression to be an attribute: change
15544         precedences to support this.  Change optional_ordinal rule to
15545         optional_ordinal_last to avoid reduce/reduce conflict.
15546         * pic/object.c (object_spec::object_spec): Initialize direction.
15548         * pic/pic.y: Implement ^ operator meaning exponentiation.
15550         * troff/node.h: Add default argument to mount_font.
15551         * troff/node.c (font_position): Read an optional third argument
15552         giving the external_name.
15553         (mount_font): Add optional argument giving the external_name.
15554         (mount_font_not_translate): Have additional argument giving
15555         external name.  Use this name to load the font.  Pass both names
15556         to font_info::font_info.
15557         (font_info::font_info): Have additional argument giving
15558         external_name.
15559         (class tfont): New member external_name.
15560         (font_info::get_tfont): Use external name to construct tfont_spec.
15562 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
15564         * eqn/lex.c (init_table): Add argument giving device.  Define
15565         name of device to be "1".
15566         (do_ifdef): Counts as true if the argument has been defined with
15567         `define'.
15568         * eqn/main.c (main): Call init_table with device argument. Make
15569         device local to main.
15570         * eqn/eqn.h: Change declaration of init_table. Remove declaration
15571         of device.
15573         * pic/lex.c (get_delimited): Allow text to be delimited by
15574         matching {}s.  Don't recognize ending delimiter within a string.
15576         * troff/input.c (get_delim_name): New function.
15577         (token::next): Implement \C.
15579         * lib/font.c (font::load): Grok ---.  Add an alias for each
15580         character based on its code.
15581         (font::get_code_width): Deleted.
15582         * lib/font.h (class font): Declare font::number_to_index().
15583         Remove declaration of font::get_code_width.
15584         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
15585         to indices of named characters.
15586         (font::number_to_index): New function.
15587         * troff/input.c (font::number_to_index): New function.
15588         (get_charinfo_by_number, charinfo::get_number,
15589         charinfo::set_number): New functions.
15590         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
15591         (token::process, token::description, token::get_char,
15592         token::add_to_node_list, token::operator==): Handle
15593         TOKEN_NUMBERED_CHAR.
15594         * troff/charinfo.h: Declare get_charinfo_by_number,
15595         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
15596         charinfo class.
15597         (charinfo::numbered): New function.
15598         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
15599         * troff/env.h (class environment): Remove declaration of ...
15600         * troff/env.c (environment::make_numbered_char_node): Deleted.
15601         * troff/node.c (make_numbered_node): Deleted.
15602         (class numbered_glyph_node): Remove.
15603         (troff_output_file::put_char_width, troff_output_file::put_char):
15604         Handle numbered chars.
15605         (troff_output_file::numbered_char): Removed.
15606         (tfont::get_code_width): Removed.
15607         (make_glyph_node): Don't search special fonts for numbered
15608         characters.
15609         * troff/node.h: Remove declaration of make_numbered_node.
15610         * driver/input.c (do_file): Handle N command.
15611         * driver/printer.h: Add declaration of ...
15612         * driver/printer.c (printer::set_numbered_char): New function.
15613         * dvi/tfmtodit.c (main): Generate unnamed entries.
15614         * ps/devps/afmtodit: Likewise.
15615         * xditview/xtotroff.c (MapFont): Likewise.
15616         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
15618         * tbl/main.c (process_format): If multiple widths are specified
15619         for a column but all the widths are the same, don't give an error
15620         message.
15622         * tbl/table.c (table::do_row): If the current row is all lines and
15623         the stuff doesn't contains a line, mark the top of the row after
15624         printing stuff before the row.  If the current row is not all
15625         lines and the stuff doesn't contain a line, don't unnecessarily
15626         mark the top of the row before printing the stuff.
15627         
15628 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
15630         * troff/groff.h: Remove MAX_PATH.
15631         * troff/input.c (open_file): Dynamically allocate space for the
15632         path.
15633         (open_mac_file, process_macro_file): Corresponding changes.
15635 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
15637         * troff/node.h (class output_file): Make copy_file pure.  Add
15638         vspace method ifdef COLUMN. Add is_printing method.
15639         * troff/node.c: Add class printing_reg. Add class
15640         real_output_file. Derive other output_file classes from
15641         real_output_file; in these classes rename begin_page to
15642         really_begin_page, print_line to really_print_line, copy_file to
15643         really_copy_file, transparent_char to really_transparent_char.
15644         Move output_file::flush to real_output_file. Add printing member
15645         to class output_file.
15646         * troff/div.h: Remove printing member from top_level_diversion.
15647         Add vspace member function to class diversion ifdef COLUMN. Add
15648         some declarations ifdef COLUMN.
15649         * troff/div.c (top_level_diversion::copy_file,
15650         top_level_diversion::transparent_output,
15651         top_level_diversion::output): Don't test printing member before
15652         output.
15653         * troff/input.c: Handle initial variable_space_request ifdef
15654         COLUMN.
15655         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
15656         but comment it out.
15658 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
15660         * troff/div.c (diversion::need): Make any space forced.  If we
15661         sprung a trap, set truncated_space to minus the distance to the
15662         trap and set needed_space to the amount that was needed.
15663         (top_level_diversion::space): A forced space turns no_space_mode
15664         off.
15665         (class constant_vunits_reg): New class.
15666         (init_div_requests): Implement number registers .trunc and .ne
15667         using constant_vunits_reg.
15668         (class truncated_space_reg): Deleted.   
15670         * troff/div.h: Don't have a no_space_mode member in diversion.
15671         Instead have it in top_level_diversion.
15672         * troff/div.c (diversion::diversion): Don't initialize
15673         no_space_mode.
15674         (top_level_diversion::top_level_diversion): Initialize
15675         no_space_mode.
15676         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
15677         (macro_diversion::output): Don't clear no_space_mode.
15679         * troff/input.c (diverted_space_node::reread): Don't call
15680         environment::do_break.  In fill mode, act like a blank line.
15681         (diverted_copy_file_node::reread): Don't call
15682         environment::do_break.
15684         * troff/div.c (blank_line): New function.
15685         * troff/div.h: Declare it.
15686         * troff/input.c (process_input_stack): Call it.
15688         * troff/div.c (truncated_space_reg::get_string): New function.
15689         (init_div_requests): Bind to .trunc.
15690         (space_request, top_level_diversion::space,
15691         top_level_diversion::output, macro_diversion::space,
15692         macro_diversion::output): Update truncated_space.
15693         (macro_diversion::output): Redo calculations when trap sprung.
15694         (macro_diversion::output, macro_diversion::space): No need for
15695         trap_flag.
15697         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
15698         after truncating post line spacing.
15700 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
15702         * ps/devps/prologue (MF, SF): Make them work even if setfont is
15703         defined as a procedure rather than as an operator.
15705 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
15707         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
15709 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
15711         * troff/div.c (top_level_diversion::output): Merge
15712         output_file::print_line and output_file::end_of_line member
15713         functions.
15714         * troff/div.h (class output_file):
15715         * troff/node.c (troff_output_file::print_line,
15716         troff_output_file::end_of_line, output_file::end_of_line,
15717         ascii_output_file::print_line, suppress_output_file::print_line):
15718         Corresponding changes.  
15720 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
15722         * troff/input.c (token::next): Don't give a warning for `\.'.
15724         * troff/env.c (environment::get_center_lines): New function.
15725         (init_env_requests): Bind number register .ce to it.
15726         * troff/env.h: Declare it.
15727         * tbl/table.c (table::init_output): Define reset macro to restore
15728         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
15729         Then do .ce 0.
15730         (table::print): If center option not given, then imply center
15731         option if SAVED_CENTER_REG > 0.
15733 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
15735         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
15736         Troff.ps from DOWNLOAD.
15737         
15738         * troff/Makefile: Change comment in DEFINES to avoid confusing
15739         System V make.
15741         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
15742         code.  Don't try to catch errors with stopped.
15743         (check_line_lengths): New function.
15744         * ps/devps/prologue (EXEC): Deleted.
15745         (EBEGIN, EEND): New procedures.
15747 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
15749         * troff/input.c: Include request.h before node.h.
15750         * troff/node.c: Likewise.
15751         * troff/env.c: Likewise.
15752         * troff/div.c: Likewise.
15753         * troff/node.h (class special_node): Store argument as a macro
15754         rather than a char *.
15755         * troff/node.c (special_node::special_node, special_node::copy):
15756         Grok this.
15757         (special_node::~special_node): Deleted.
15758         (special_node::tprint): Deleted.
15759         (special_node::tprint_start, special_node::tprint_end,
15760         special_node::tprint_char): New functions.
15761         (troff_output_file::special): Deleted.
15762         (troff_output_file::start_special, troff_output_file::end_special,
15763         troff_output_file::special_char): New functions.
15764         * troff/input.c (special_node::tprint): New function.
15765         (do_special): Use macro not char *.
15766         (do_transparent_macro): Deleted.
15767         (token::next): Don't call do_transparent_macro.
15769         * troff/input.c (token::next): Add 'Y' case.
15770         (do_transparent_macro): New function.
15771         * troff/node.c (troff_output_file::special): Handle newlines with
15772         argument using new continuation convention.
15773         * driver/input.c (get_string): Cope with continuation convention.
15774         (do_file): Don't call skip_line after calling get_string(1).
15775         * ps/ps.c (ps_printer::special, ps_printer::do_import,
15776         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
15777         arg.
15778         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
15779         with +.
15781 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
15783         * troff/input.c (asciify): By default, illegal input characters
15784         should return empty string.
15786         * troff/input.c (copy_file): Handle first page transition like title.
15787         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
15789         * troff/input.c (token::next): Improve error message for EOF after
15790         escape character.
15791         (input_char_description): New function.
15792         (get_char_for_escape_name): Use input_char_description.
15793         (token::next): Warn about unrecognized escape sequences.
15794         (warning_table): Add WARN_ESCAPE.
15795         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
15796         accordingly.
15798         * troff/token.h: Remove declaration of process_input_stack.
15800         * troff/input.c: Remove declaration of init_hyphen_requests.
15801         * troff/request.h: Correct spelling in declaration of same.
15803         * troff/input.c (token::next): Check whether escape_char is 0.
15805 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
15807         * groff.c (main, usage, help): Implement -P and -L options.
15808         * groff.sh: Likewise.
15810         * troff/input.c (token::next): Use some gotos to avoid code
15811         duplication.
15813         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15814         Avoid calling symbol::symbol if name empty.
15816 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
15818         * troff/input.c (init_input_requests): Make \n(.x return the major
15819         version number and \n(.y return the minor version number.
15820         * troff/Makefile: Construct file majorminor.c defining
15821         major_version and minor_version automatically from ../VERSION.
15823         * troff/node.c (class glyph_node): Make operator new and operator
15824         delete public.
15825         (class ligature_node): Similarily.
15827         * troff/input.c (operator==(const macro &, const macro &)): New
15828         function.
15829         (non_interpreted_node::same): Use this.
15830         (string_iterator::string_iterator): Make macro& argument const.
15832         * troff/input.c (input_iterator::get): New function. Don't make
15833         asciify_macro or class non_interpreted_node friends of class
15834         input_iterator.
15835         (non_interpreted_node::interpret): Use input_iterator::get.
15836         (asciify_macro): Likewise.
15838         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15839         ~non_interpreted_node): Deleted.
15840         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15841         Deleted.
15843         * troff/symbol.h: Make all symbol member functions const.
15845         * lib/strtol.c: New file.
15846         * lib/Makefile: Add strtol.c.
15847         * Makefile: Define STRTOL as strtol.o to include strtol in
15848         libgroff.a.
15850 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
15852         * pic/troff.c (troff_output::simple_circle): Divide by scale.
15854 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
15856         * troff/input.c (do_special): Use input_level.
15858         * troff/token.h (TOKEN_BACKSPACE): New token.
15859         (token::backspace): New function.
15860         * troff/input.c (token::description, token::next, token::process):
15861         Grok TOKEN_BACKSPACE.
15862         (do_special): Turn TOKEN_BACKSPACE back into \b.
15864         * troff/token.h (token::leader): New function.
15865         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15867         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15869         * troff/input.c (do_special): Use token::description in error
15870         message.
15872 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
15874         * troff/input.c (decode_args): Combine quoted and
15875         quote_input_level variables. Make it a for (;;) loop.
15877         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15879         * troff/input.c (read_long_escape_name): The test for whether to
15880         expand buffer was off by 1.
15881         (read_string): Similarily.
15883 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
15885         * troff/input.c: Use `const int' rather than `static const int'.
15887         * troff/div.h (diversion::copy_file): Declare as pure virtual.
15888         (macro_diversion::copy_file): New function.
15889         * troff/node.h: New class diverted_copy_file_node.
15890         * troff/node.c: Implement it.
15891         * troff/input.c (copy_file): Use diversion::copy_file. Handle
15892         first page transition by pushing a diverted_copy_file_node.
15893         * troff/input.c (token::next, process_input_stack): Don't handle
15894         COPY_FILE_REQUEST.
15896 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
15898         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15899         whether space widths need adjusting.
15901         * troff/charinfo.h: Generalize translated_to_space to
15902         special_translation so as to allow translation to \&.
15903         * troff/input.c (translate): Allow translation to \&.
15904         (charinfo::*): Corresponding changes.
15905         * troff/node.c (make_node, node::add_char): Corresponding changes.
15906         * troff/node.h (dummy_node::dummy_node): Allow optional first
15907         argument.
15909         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15910         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15911         TOKEN_REQUEST.
15912         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15913         TOKEN_REQUEST with an argument of TITLE_REQUEST.
15914         (token::process): Grok that.
15915         * troff/input.c (copy_file): Handle first page transition like
15916         title by pushing a COPY_FILE_REQUEST cookie.
15917         (token::next, process_input_stack): Grok that.
15918         * troff/node.h (output_file::copy_file): Add x and y arguments.
15919         Make it non-pure.
15920         * troff/div.c (top_level_diversion::copy_file): Supply them.
15921         * troff/node.c (troff_output_file::copy_file): Add x and y
15922         arguments; moveto specified position.  Invalidate font_position
15923         array after copying file.
15924         (output_file::copy_file): New function.
15925         (suppressed_output_file::copy_file, ascii_output::copy_file):
15926         Removed.
15927         * troff/input.c (transparent_file): New function.
15928         (init_input_requests): Bind to "trf".
15929         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15930         (process_input_stack): Likewise.
15932         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15934         * troff/node.c (init_node_requests): New number registers .kern
15935         pointing to global_kern_mode, and .lg pointing to
15936         global_ligature_mode.
15938         * troff/node.c (ligature): Don't change it if we get a bad
15939         integer.
15941         * troff/input.c (do_define_string): Don't strip tabs.
15943         * troff/input.c (asciify_macro): Make the string_iterator auto.
15945         * troff/node.c (init_font_requests): Rename to...
15946         (init_node_requests):
15947         * troff/node.h: Change declaration.
15948         * troff/input.c (main): Change call.
15950         * troff/input.c (node::reread, diverted_space_node::reread): New
15951         methods.
15952         (process_input_stack): Call reread rather than
15953         get_diverted_space_node.
15954         * troff/node.c (node::get_diverted_space_node,
15955         diverted_space_node::get_diverted_space_node): Removed.
15956         * troff/node.h: Declare reread methods instead of
15957         get_diverted_space_node methods. Make `n' member private.
15958         * troff/input.c: (token::diverted_space): Removed.
15959         * troff/token.h: Removed declaration.
15960         
15962 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
15964         * eqn/script.c (script_box::compute_metrics): Don't let
15965         SUP_RAISE_FORMAT become negative.
15967         * tbl/table.c (table::do_row): Entries that don't end in the
15968         this row shouldn't make the row non-blank.
15969         
15970         * tbl/table.c (table::make_columns_equal): Only set the width of
15971         columns which are marked as equal.
15972         
15973         * tbl/main.c (process_data): Before issuing excess data error,
15974         if last character was a newline unget it; then get it again after
15975         the error.  Also include the contents of the entry in the message.
15977         * groff.c: New file.
15978         * Makefile: Build groff from groff.c.  Make it possible to use
15979         either groff.sh or groff.c as groff.
15980         * Makefile.bd: Similarily.
15982 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
15984         * groff.sh: Don't delay expansion of $@ in assignment to files.
15985         Remove occurrences of \".
15987 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
15989         * all Makefiles: Simplify and rearrange.
15991         * Makefile: Handle fmod like malloc.
15992         * lib/Makefile: Similarily.
15993         * lib/fmod.c: Remove #ifdef NEED_FMOD.
15995         * Makefile: Rename OPTIMISE to OPTIMIZE.
15997         * groff.sh: Remove assignment to PATH.
15998         * Makefile: Remove SHPATH variable.
15999         * Makefile.bd: Similarily.
16001         * groff.sh: Add -V option to print the pipeline instead of
16002         executing it.
16004 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
16006         * lib/font.c: Split off file searching into ...
16007         * lib/fontfile.c: New file.
16009         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16011 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
16013         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16014         Also change misleading comment.
16015         (table::do_vspan): Change similarily misleading comment.
16016         * tbl/main.c (process_data): A format row with an explicit `s'
16017         uses up a data line, even if all the other columns are `_' or `='.
16019         * troff/input.c (token::description): Fix description of
16020         TOKEN_DUMMY and TOKEN_EMPTY.
16022 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16024         * groff.sh: Fix description of -Z in help message.
16026 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16028         * pic/object.c (object_spec::make_object): Allow negative and zero
16029         line thicknesses.
16030         * pic/pic.y: Give linethick default value of -1.0.
16031         * pic/troff.c (troff_output::troff_output): Initialize
16032         last_line_thickness to BAD_THICKNESS.
16033         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16034         (troff_output::line_thickness): Canonicalize negative thicknesses
16035         to RELATIVE_THICKNESS.
16036         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16037         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16038         to -1.0.
16039         (tex_output::start_picture): Set pen_size to -2.0.
16041         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16042         0, then use 0 linewidth.
16043         (ps_printer::ps_printer): Initialize line_thickness to -1.
16045         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16047         * ps/devps/symbolchars: Remove `or'.
16048         * ps/tmac.ps: Implement \(or with .char.
16050         * ps/devps/symbolchars: Move most characters into textmap.
16051         * ps/devps/textmap: Add names for troff bracket characters. Remove
16052         ul, ru, br, bv.
16054         * ps/devps/TSymbol.ps: Removed.
16055         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16056         * ps/tmac.ps: Do with .char what TSymbol did.
16057         * ps/devps/download: Remove TSymbol.
16059         * ps/devps/T: Removed.
16060         * ps/devps/Troff.ps: Removed.
16061         * ps/devps/Troff.afm: Removed.
16062         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16063         * ps/devps/download: Remove Troff.
16064         * ps/devps/FontMakefile: Remove T target.
16065         * ps/devps/DESC-A4: Remove T from font list.
16066         * ps/devps/DESC-letter: Likewise.
16068         * troff/input.c (macro_to_node): Rename to ...
16069         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
16070         character's definition while processing it.
16071         * troff/node.c (node::add_char, make_node): Change calls to
16072         macro_to_node accordingly.
16074         * troff/input.c (token::next): Translate \_ to \(ul.
16076         * tty/devascii/R.proto: Add `|'.
16077         * tty/devlatin1/R.proto: Likewise.
16079 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
16081         * man: Put the version number in all the man pages.
16083 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
16085         * Makefile.bd: New file.
16086         * README.bd: New file.
16088         * VERSION: New file.
16089         * lib/version.c: Removed.
16090         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16091         in clean target.
16093         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16094         environment variable.
16096         * all Makefiles: Split install target into install.bin for
16097         binaries, and install.nobin for everything else.
16098         * Makefile: Add bindist target.
16100         * man/afmtodit.man: New file.
16101         * man/Makefile: Add afmtodit.n to MAN1PAGES.
16102         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16103         in BINDIR.
16104         * ps/Makefile: Pass BINDIR to make install in devps.
16106         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16107         the space character.
16109         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
16111 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
16113         * ps/ps.c: Redo font downloading.
16114         * ps/devps/download: New file.
16115         * ps/devps/Makefile: Add download to DEVICEFILES.
16116         * ps/devps/afmtodit: Remove -d option.
16117         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
16118         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
16119         * ps/devps/zapfdr.ps: Likewise.
16120         * ps/devps/TSymbol.ps: Likewise.
16122 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
16124         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
16126 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
16128         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
16129         then strip the first line if it starts with %.
16130         * Makefile: Add a comment about this.
16132         * man/tfmtodit.man: New file.
16133         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
16134         * dvi/Makefile: Install tfmtodit in BINDIR.
16136         * dvi/tfmtodit.c (usage): Mention -v option.
16138 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
16140         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
16141         * troff/node.c (troff_output_file::transparent_char): Don't call
16142         flush_tbuf.
16144         * eqn: Add check_tabs method to most box classes.
16145         * eqn/box.c (box::top_level): Call check_tabs.
16147         * eqn/script.c (script_box::output): Use \Z.
16148         * eqn/limit.c (limit_box::output): Use \Z.
16150         * eqn/box.c (box::top_level): Use itoa.
16152 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
16154         * dvi/tmac.dvi: Add font translations for CR, C, TT.
16155         * dvi/devdvi/Makefile: Don't make links to CW.
16157         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
16158         HX, HD.
16159         * xditview/tmac.X: Likewise.
16161         * troff/node.c: Add font translation feature.
16162         (get_font_translation): New function.
16163         (symbol_fontno): Translate the font name.
16164         (mount_font_no_translate): Rename to mount_font to this.
16165         (mount_font): New function.
16166         (font_family::make_definite): Call mount_font_no_translate instead
16167         of mount_font.
16168         (mount_style): Translate the font name.
16169         (font_translate): New function.
16170         (init_font_requests): Bind "ftr" to font_translate.
16172         * ps/devps/prologue (SN): New procedure that rounds a position to
16173         the nearest (pixel + (.25,.25)).
16174         (DL): Use SN to round endpoints.
16176         * lib/version.c: Changed version to 0.5.
16178 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
16180         * Makefile: Move definition of PAGE to the very beginning, so that
16181         people are less likely to miss it.
16183 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
16185         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
16187         * troff/env.c (environment::choose_breakpoint): Make `can't find
16188         breakpoint' error a warning of type WARN_BREAK.  Change message to
16189         `can't break line'.
16190         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
16191         code 040000.
16192         * troff/input.c: Add WARN_BREAK to warning_table.  Include
16193         WARN_BREAK in DEFAULT_WARNING_MASK.
16195         * tty/tmac.tty: Add definition of \(+-.
16197         * groff.sh: Remove `--' option to set command.
16199         * dvi/devdvi/texsy.map: Remove duplicate md entry.
16201         * ps/devps/eqnchar: Better definition of cdot using md.
16202         * dvi/devdvi/eqnchar:  Likewise.
16203         * xditview/devX100/eqnchar:  Likewise.
16204         * xditview/devX75/eqnchar: Likewise.
16205         * eqn/lex.c: Add definition of cdot.
16207 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
16209         * troff/input.c (get_optional_char): New function.
16210         * troff/input.c (set_page_character): Use get_optional_char(),
16211         rather than has_arg() and tok.get_char(1).
16212         * troff/env.c (tab_character, leader_character, hyphen_char,
16213         field_characters): Likewise.
16214         (margin_character): Likewise.  Also always delete the
16215         margin_character_node.
16217         * troff/input.c (token::get_char): Use token::description.
16219         * troff/input.c (has_arg): Don't skip over tab and \}.
16220         * troff/number.c (start_number): Give a warning if the number
16221         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
16223 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
16225         * troff/input.c (empty_name_warning, non_empty_name_warning): New
16226         functions.
16227         (get_name, get_long_name): Use these.  Rename `warn' argument to
16228         `required'.
16230         * troff/node.c (get_fontno): Test that the symbol is not null.
16232         * troff/input.c (token::description): New function.
16233         * troff/number.c (parse_term): Use token::description in `numeric
16234         expression expected' message.
16235         * troff/groff.h: Add WARN_MISSING.
16236         * troff/number.c (start_number): New function.
16237         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
16238         get_incr_number): Use start_number().
16239         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
16240         default.
16241         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
16242         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
16243         token::descripion.
16244         * troff/input.c (token::get_char): Use WARN_MISSING.
16245         * troff/input.c (token::delimiter): Use token::description.
16246         * troff/env.c (environment_switch): Back out Aug 3 change.
16247         * troff/input.c (has_arg): Skip over \}s and tabs but give a
16248         warning.
16249         * troff/token.h (token::tab): New function.
16250         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
16251         * troff/reg.c (alter_format): Likewise.
16252         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
16254 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
16256         * troff (most files): Redo warnings. Divide warnings into various
16257         categories; warning() has an additional first argument indicating
16258         the category it falls into.
16259         * troff/input.c (main): -w now takes an argument. New option -W.
16260         (enable_warning, disable_warning): New functions.
16262         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
16263         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
16265 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
16267         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
16268         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
16269         * xditview/devX75/eqnchar: Likewise.
16270         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
16272         * eqn/other.c: When bar or over applies to a single character
16273         don't produce an overline_box or an underline_box. Instead produce
16274         an accent_box or an underaccent_box, with the accent a line
16275         whose width is accent_width.  New classes underaccent_box,
16276         overline_char_box and underline_char_box.
16277         * eqn/box.h: Move overline_box, underline_box, accent_box class
16278         declarations into eqn/other.c. Add declarations of
16279         make_underline_box, make_overline_box, make_accent_box.
16280         * eqn/eqn.y: Call make_overline_box, make_underline_box
16281         make_accent_box instead of constructors.
16282         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
16284         * eqn/other.c: Add accent_box::~accent_box.
16285         * eqn/box.h: Declare it.
16287         * groff.sh: With -Tps, use eqn -D.
16289         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
16290         rather than \l.
16291         (underline_box::output): Similarily.
16292         (accent_box::output): Use \Z.
16294         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
16295         bit smaller.)
16297 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
16299         * troff/div.c (top_level_diversion::transparent_output(unsigned
16300         char)): Use asciify.
16301         * troff/input.c (asciify): Don't make it static.
16302         * troff/token.h (asciify): Declare it.
16303         
16304         * troff/input.c (get_name, get_long_name, token::get_char,
16305         token::delimiter): Add an extra default argument which says
16306         whether a warning should be printed.
16307         * troff: Pass a non-zero argument to one of these rather than
16308         printing a warning directly.
16310 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
16312         * troff: Consistently use symbol::is_null.
16314         * troff/dictionary.h: Move some inline functions into
16315         dictionary.c.
16317         * troff/request.h: Move inline functions into input.c.
16318         (request_or_macro::invoke): Make it pure.
16320         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
16321         * troff/input.c (init_input_requests): Use class constant_int_reg.
16322         (class compatible_reg): Deleted.
16323         * troff/div.c (init_div_requests): Use class constant_int_reg.
16324         (class last_post_line_extra_space_reg): Deleted.
16326         * troff/env.c (tab_character): Don't change the tab character if
16327         we get an invalid argument.
16328         (hyphen_char): Similarily.
16330         * troff/reg.c (alter_format): Check that nm is not null.
16332         * Makefile, groff.sh: Make it possible to customize the commands
16333         used for printing PostScript and dvi files. Also make it possible
16334         to customize the path used by groff.sh.
16336         * eqn/eqn.y: Make `left' right associative.
16338 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
16340         * pic/pic.h: Added definition of M_SQRT2 for those systems that
16341         don't have it.
16343         * pic/pic.h: Removed definition of INT_MAX.
16345         * troff/node.c (italic_corrected_node::vertical_extent): Omit
16346         `return'.
16348         * troff/input.c (token::next):  Handle \R like \n.
16350 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
16352         * ps/tmac.pc (PSPIC): Simplify.
16354         * troff/env.c (tab_stops::to_string):
16355         * pic/pic.y (object_type_name):
16356         * pic/troff.c (simple_output::line):
16357         * pic/tex.c (tex_output::spline):
16358         * pic/object.c (object_spec::make_object):
16359         * tbl/main.c (process_data):  Add cases to switch statements to
16360         avoid cfront warnings. (Some of these are spurious, since the
16361         switch already has a default case.)
16363         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
16364         `ps-'.  Don't test systat; instead check number of arguments to
16365         ps-bb.
16367 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
16369         * macros/tmac.e: Do not decrease the page offset by 0.5i.
16371         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
16372         Unlink the file as soon as we have opened it, so that we don't
16373         have to bother with signal handlers.
16374         (handler): Deleted.
16375         (fatal_error_exit): Deleted.
16376         (main): Don't call signal.
16378         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
16379         can be ignored.
16380         * dvi/devdvi/Makefile: Use the -k option with S and MI.
16382         * pic/pic.y:  If there is a label, or an nth construction before
16383         the first `.' in the argument to `with', ignore it and generate a
16384         warning.
16385         * pic/lex.c (lex_warning): New function.
16387         * tbl/table.c (table::init_output): In section keep and release
16388         macro, use 0 indent when diverting and the correct indent when
16389         rereading.
16391         * troff/input.c (interpolate_number_format): Do not interpolate
16392         anything if the number register is not defined.
16394         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
16396 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
16398         * ps/devps/prologue (PICTURE): Set components of graphics state to
16399         their default values.
16401         * ps/devps/text.enc: Add trademark
16402         * ps/devps/textmap: Add names for club, spade, heart, diamond,
16403         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
16404         * ps/devps/symbolchars: Add names for summation and product.
16406         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
16407         suchthat. Add pp. Add upper-case letters.
16409         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
16410         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
16411         Upsilon.
16413         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
16414         rA (right angle bracket) to ra.  Introduce names for double-headed
16415         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
16416         * ps/devps/textmap: Likewise for ps device.
16417         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
16418         * tty/devascii/R.proto: Rename lA to la and rA to ra.
16419         * tty/devascii/R.proto: Likewise.
16420         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
16421         \(uA, \(dA.
16422         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
16424         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
16426         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
16427         def_table.
16429 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
16431         * troff/div.c (when_request): Use symbol::is_null rather than
16432         has_arg to determine whether we have an argument.
16433         (change_trap): Remove the trap if we get an invalid number. Give
16434         an error if we don't get at least the macro name.
16435         (diversion_trap): Remove trap if we get an invalid name or number.
16437         * troff/env.c (environment_switch): Pop if we get an invalid
16438         symbol or numeric expression.
16440         * troff/input.c (do_define_macro):  If EOF is encoutered while
16441         defining the macro, do tok.next() before returning.
16443         * troff/token.h (has_arg): Move definition from here, to ...
16444         * troff/input.c (has_arg): ... here
16446         * troff/env.c (space_size): Do nothing if we get an invalid argument.
16447         * troff/input.c (shift): Likewise.
16449         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
16450         for `.c'.
16452         * pic/troff.c (troff_output::start_picture):  Comment out calls to
16453         `..'.
16455         * eqn/main.c (do_file): Subtract 1 from current_lineno if
16456         interpret_lf_args succeeds.
16458         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
16459         \\.  This avoids problems with \$N.
16461         * groff.sh: Pass -C to preprocessors.
16463         * lib/lf.c (interpret_lf_args):  Be more flexible.
16465         * tbl/main.c (main): Add -C option.
16466         (table_input::get): Do not recognize TE if followed by character
16467         other than a space or newline unless -C option given.
16468         (process_input_file): Likewise for lf, TS.
16469         (process_data): Likewise for lf in text blocks.
16471         * eqn/main.c (main): Add -C option.
16472         (do_file): Don't recognize EQ, EN or lf if followed by character
16473         other than space or newline unless -C option given.
16474         * eqn/lex.c (file_input::read_line): Similarily.
16475         * eqn/eqn.h: Declare compatible_flag.
16477         * etc/soelim.c (main): Add -C option.
16478         (interpret_lf_args): Use version in libgroff.
16479         (do_file):
16481         * pic/main.c (main): Add -C option, which sets compatible_flag.
16482         (top_input::get), (top_input::peek):  If -C option not given,
16483         do not recognize .PS/.PE/.PF/.lf if followed by a character
16484         other than space or newline.
16485         * pic/lex.c (file_input::read_line): Similarily.
16486         * pic/pic.h: Add declaration of compatible_flag.
16488 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
16490         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
16492         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
16493         derived from node.  New class space_char_hmotion_node.
16494         * troff/input.c (asciify_macro): New function.
16495         * troff/input.c (init_input_requests): New request `asciify' bound
16496         to asciify_macro.
16497         * macros/mm.diff: New file.
16498         * Makefile:  In install.mm target use `patch' to apply
16499         macros/mm.diff.
16501         * troff/input.c (macro::print_size): Just print the size in bytes.
16503         * troff/div.c (return_request): Correct the argument
16504         interpretation.
16506 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
16508         * troff/node.h (class composite_node): Add sz member.
16509         * troff/node.c (composite_node::size): Return sz.
16510         * troff/input.c (macro_to_node):  Use the initial size in the
16511         environment as the size of the composite_node.
16513         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
16514         default.
16516 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
16518         * troff/div.c (change_trap): If we get a bad number expression,
16519         do nothing.
16521 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
16523         * lib/matherr.c (matherr): Define this only if math.h defines
16524         TLOSS.
16526 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
16528         * troff/div.c (macro_diversion::distance_to_next_trap): If there
16529         no diversion trap return vunits(INT_MAX - vresolution).
16531 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
16533         * troff/input.c (do_zero_width): New implementation that doesn't
16534         use a temporary environment. Use instead:
16535         (token::add_to_node_list): New function.
16536         * troff/env.c (environment::get_prev_char_height),
16537         (environment::get_prev_char_height),
16538         (environment::get_prev_char_skew): New functions.
16539         (environment::get_prev_char): New function.
16540         (environment::get_prev_char_width): Change to use get_prev_char.
16541         (init_env_request): Implement new registers .cht, .cdp, .csk.
16542         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
16543         \Z being processed in a separate environment.
16545 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
16547         * tbl/table.c: Removed TABLE_BOTTOM_REG.
16549         * tbl/table.c (table::init_output): In the section release macro,
16550         give a warning message if the section won't fit on one page.
16552         * tbl/table.c (table::do_top): Emit table keep only if table is
16553         boxed.
16554         (table::do_bottom): Likewise for table release.
16555         (table::table), (table::add_vertical_rule):  Remove reference to
16556         keep member.
16557         * tbl/table.h: Remove keep member.
16559         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
16560         SECTION_RELEASE_MACRO, if there's not enough space before the next
16561         trap to output the diversion, call T# ourselves, set
16562         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
16563         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
16564         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
16565         vertical position and return to it before turning traps on again.
16566         
16567 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
16569         * troff/node.c, troff/node.h: In classes derived from node,
16570         replace prev_char_width method by last_char_node method.
16571         * troff/env.c (environment::get_prev_char_width): Use
16572         node::last_char_node rather than node::get_prev_char_width.
16574         * Makefile: Added comment about -fno-inline on 68030-based
16575         Apollos.
16577         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
16578         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
16579         expressions using sizeof to int.
16580         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
16582         * macros/tmac.e (TS):  Don't move @f back past the current
16583         position.
16585 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
16587         * ps/ps.c (main): Buffer stderr.
16588         * dvi/dvi.c (main): Likewise.
16589         * tty/tty.c (main): Likewise.
16591         * ps/ps.c (ps_printer::do_import): Improve error handling.
16593         * troff/input.c (abort_request): Use asciify.
16595         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
16596         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
16597         type of first argument int rather than char.  This works around a
16598         bug on the 68030 based Apollo using g++ 1.37.1.
16600         * tbl/table.h (class table): Add `keep' member.
16601         * tbl/table.c (table::table): Initialize `keep'.
16602         (table::add_vertical_rule): Set `keep' to 1.
16603         (table::do_top): Only emit table keep macro is `keep' is non-zero.
16604         (table::do_bottom): Likewise for table release macro.
16605         (table::do_row): Emit section keep macro even if the row is 0.
16607 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
16609         * macros/tmac.e (@C): Preserve the font family across the change
16610         in environments.
16612 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
16614         * lib/font.c: Initialize font::hor and font::vert to 1.
16615         (font::load_desc): Check the values of font::hor and font::vert.
16617         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
16618         be included in a C compilation.
16619         (iftoa): Use INT_DIGITS. Include lib.h.
16620         (itoa): Likewise.
16621         (as_string): Likewise.
16622         * tbl/table.c: Removed definition of INT_DIGITS.
16623         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
16624         * troff/input.c (input_input_requests): Likewise.
16625         * ps/ps.c (make_encoding_name): Likewise.
16626         (ps_printer::set_style): Likewise.
16627         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
16629         * tty/devascii/R.proto: Map fm onto '.
16630         * tty/devlatin1/R.proto: Likewise.
16632 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
16634         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
16635         argument to \w is at a different input level.
16637         * tbl/table.c (table::init_output): Define a new macro
16638         REPEATED_VPT_MACRO, like vpt but if in a diversion also
16639         transparently outputs itself.
16640         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
16641         vpt.
16642         (table::do_row): Likewise.
16644         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
16645         TRANSPARENT_STRING_NAME.
16647         * tbl/table.c (table::init_output): In the table release macro
16648         print an error message and don't produce any output if after
16649         issuing the need request the table still will not fit.  Also
16650         remove the diversion after bringing it back.
16652         * tbl/table.c (table::init_output): Define a new macro
16653         REPEATED_MARK_MACRO, like mk but if in a diversion also
16654         transparently outputs itself.
16655         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
16656         is necessary because .TH might not call .T#.
16657         (table::do_top): Likewise TOP_REG.
16658         (table::define_bottom_macro): If TOP_REG is no longer valid, use
16659         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
16660         table header might contain just the two top rules.
16662 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
16664         * troff/div.c: Implement new request `ptr' to print all traps.
16666         * troff/env.c (init_env_requests): Implement `.tabs' reg with
16667         init_string_env_reg.
16668         * troff/env.c (class tab_reg): Deleted.
16670 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
16672         * troff/div.c: New number register .pn returns the number of the
16673         next page as set by the pn request.
16675         * macros/tmac.an: Redid headers and footers.  Number each manual
16676         entry starting from 1 unless \nC is > 0, like Sun.  Added an
16677         optional 5th argument to .TH which specifies the manual name and
16678         appears in the center of the header.  Understand the X, P and D
16679         registers like Sun.
16681 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
16683         * troff/env.c (init_env_requests): New number register `.lt' to
16684         return the title length.
16686         * troff/node.h (class transparent_dummy_node): New class.
16687         * troff/node.c (class transparent_dummy_node): Provide member
16688         functions. 
16689         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
16690         than a dummy_node.
16692         * troff/input.c (token::next): New escape sequence \).
16693         * troff/input.c (get_copy): Recognize \) in copy mode.
16695         * troff/input.c (input_stack::clear): New function.
16696         * troff/input.c (exit_request): Use input_stack::clear.
16698         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
16699         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
16701         * troff/env.c: Move set_page_character to input.c.  Move
16702         page_character to input.c also.
16703         * troff/env.c (title): Split off the reading of the parts of the
16704         title into read_title_parts.
16705         * troff/input.c (read_title_parts): New function.  Check the
16706         input_level when testing whether a token matches the delimiter.
16708         * troff/input.c (exit_request): New function.
16709         * troff/input.c (init_input_requests): Bind ex request to
16710         exit_request rather than exit_groff.
16712         * troff/input.c (exit_groff): Call tok.next() before
16713         process_input_stack().
16715 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
16717         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
16718         * troff/env.h: ditto.
16719         * troff/input.c: ditto.
16721         * troff/env.c (environment::is_empty): Test pending_lines.
16723         * troff/env.c (environment::have_pending_lines): Removed.
16725         * troff/input.c: Add request to flush pending lines from the
16726         environment.
16728         * troff/env.c, troff/env.h: Add automatic widow control feature.
16730         * troff/input.c (exit_groff):  Do process_input_stack() after
16731         do_break() but before setting exit_flag to 2.
16733         * troff/input.c: Remove FLUSH_PENDING_LINES and
16734         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
16735         environment after END_TRAP token seen, but only if there aren't
16736         any more traps still unfinished.
16737         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
16739 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
16741         * troff/env.c: Rename the `retain_size' member of class
16742         pending_output_line to `no_fill'.
16744         * troff/env.c (title): When the line is output, make the
16745         retain_size argument !fill.
16747         * troff/node.h: Add `hyphenated' member to struct breakpoint.
16748         * troff/node.c (space_node::get_breakpoints),
16749         (dbreak_node::get_breakpoints):  Fill this in.
16750         * troff/env.c:  Allow specification of maximum number of
16751         consecutive hyphenated lines.
16753         * troff/env.c (environment::is_empty): Add test for !current_tab.
16755 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
16757         * troff/env.c (environment::hyphenate_line): Don't completely give
16758         up if the word is not to be hyphenated; continue so that breaks
16759         can be made at break_char_node's.
16761         * lib/lib.h: Only define INT_MAX if it's not already defined;
16762         undef INT_MIN if it's already defined.
16764         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
16766         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
16767         This works around a bug in AT&T C++ 2.0 used with an ANSI C
16768         compiler.
16769         
16770         * macros/tmac.an (an-header): Set no-space mode.
16772         * macros/tmac.an (TH): Start a new page if necessary.
16774         * Started using ChangeLog at version 0.4.
16776 Local Variables:
16777 version-control: never
16778 coding: latin-1
16779 End: