* tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
[s-roff.git] / ChangeLog
blob3baef83115c20662a1381808e3e84f54efa39bf2
1 2004-11-23  Y T  <doarhop@hotmail.com>
3         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
4         the volume and number refer entries.
6 2004-11-22  Werner LEMBERG  <wl@gnu.org>
8         * src/devices/grohtml/html-table.cpp
9         (html_table::emit_table_header): Don't emit `cols' attribute which
10         doesn't exist in HTML 4.0 and is thus invalid.
12         * NEWS: More minor fixes and updates.
14 2004-11-18  Werner LEMBERG  <wl@gnu.org>
16         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
17         (HTML</p>): Minor clean-up.
19         * tmac/groff_www.man: Updated.
21         * src/devices/grohtml/grohtml.man: Revised and updated.
23         * NEWS: Updated.
25 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
27         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
28         Fix space insertion.
29         (html_printer::do_links): Fix rules generation around automatic
30         heading links.
32         * tmac/www.tmac (LK): Use HTML-TAG-NS.
33         (HR): Simplify.
34         No longer emit empty line for non-HTML devices.
36 2004-11-17  Werner LEMBERG  <wl@gnu.org>
38         * doc/Makefile.in (prepare_examples, webpage.html): Handle
39         `groff.css'.
41         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
42         prepare_examples, webpage.html): Handle `groff.css'.
44 2004-11-15  Werner LEMBERG  <wl@gnu.org>
46         * NEWS, README, doc/webpage.ms: Updated.
48         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
50 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
52         * src/include/printer.h (printer): Remove virtual function
53         `round_width'.
54         Update all source files.
56         * src/devices/grohtml/post-html.cpp (html_printer): New member
57         function `round_width'.
59 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
61         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
62         column key letter suffix.
64 2004-10-14  Werner LEMBERG  <wl@gnu.org>
66         * Makefile.in (check): Depend on `site.exp' and `docheck'.
67         (docheck): Run dejagnu's `runtest' if it exists.
68         (site.exp): Create dejagnu configuration file.
70         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
72 2004-10-13  Werner LEMBERG  <wl@gnu.org>
74         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
75         src/devices/grohtml/post-html.cpp (make_val,
76         html_printer::handle_state_assertion): Fix compiler warnings.
78         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
79         (diversion::diversion): Fix order of initializers.
81         * src/roff/troff/div.h: Don't include `mtsm.h'.
83         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
84         (environment::environment): Fix order of initializers.
85         (environment::make_tag, environment::construct_format_state): Fix
86         compiler warnings.
88         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
89         (input_iterator::input_iterator, macro::macro): Fix order of
90         initializers.
92         * src/roff/troff/mtsm.cpp: Include only necessary header files.
93         (state_set::add, state_set::val): Fix compiler warnings.
95         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
96         (bool_value_state, int_value_state, units_value_state,
97         string_value_state): Remove comma after last element which causes
98         an error with g++ 3.3.3.
100         * src/roff/troff/node.cpp: Include `stringclass.h'.
101         (hline_node::hline_node, vline_node::vline_node,
102         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
103         warnings.
104         (zero_width_node::zero_width_node): Fix order of initializers.
106         * src/roff/troff/node.h: Don't include `mtsm.h'.
107         (hmotion_node): Fix compiler warnings.
109         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
111 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
113         * doc/groff.css: New file.
115         * doc/webpage.ms: Use `groff.css'.
116         Other small fixes.
118         * tmac/an-old.tmac (need_eo_h): New number register.
119         (TH): Emit `.eo.tl' tag after title.
120         (SH): Set `need_eo_h'.
121         (an-trap): Handle `need_eo_h'.
122         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
124         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
125         (TL): Always start diversion.
126         Updated.
127         (@AI): Always call `par@reset'.
128         (@AB): Update code for -Thtml.
129         (cov*tl-au-print): Handle -Thtml.
130         (par@reset): Handle `need_eo_tl', `need_eo_h'.
131         (@IP): Simplified.
132         (@IT-html): Removed.
133         (@SH): Set `need_eo_h' for -Thtml.
134         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
135         Set `need_eo_tl'.
136         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
137         Set `need_eo_h' for -Thtml.
138         (@EQ, @EN): Don't handle -Thtml specially.
139         (par@load-init): Don't handle -Thtml specially.
141         * tmac/www.tmac (www:paraspace): New macro.
142         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
143         (HTML</p>, HTML-TAG-NEXT): New macros.
144         (HnE): Emit tag `.eo.h' instead of break.
145         (HR): s/HTML-NS/HTML/.
146         (www-end-nowhere): End diversion only if `www-html' not set.
147         Emit `.eo.tl' tag.
148         (ULS, ULE): s|HTML|HTML</p>|.
149         (LI): Call `www:paraspace'.
150         (HEAD): New macro.
152 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
154         * src/roff/troff/request.h (macro): Make `p' public.
155         New variable `is_a_diversion'.
156         New member function `is_diversion'.
159         * src/devices/grohtml/html.h (simple_output): New member function
160         `force_nl'.
162         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
163         computation of `total'.
164         (tabs::check_init): New function.
165         (html_table::emit_table_header): Emit style data.
166         (html_table::insert_column): Improved.
168         * src/devices/grohtml/html-table.h: Updated.
170         * src/devices/grohtml/html-text.cpp (html_text::html_text):
171         Initialize `start_space' with TRUE.
172         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
173         cases.
174         (html_text::flush_text): Set `start_space' flag.
175         (html_text::uses_indent, html_text::remove_para_space,
176         html_text::get_alignment): New functions.
177         (html_text::push_para): Updated.
178         (html_text::do_para): Check for empty argument.
179         Don't set `space_emitted'.
180         (html_text::do_space, html_text::emit_space): Updated.
182         * src/devices/grohtml/html-text.h (tag_definition): New variable
183         `really_issued'.
184         (html_text): New member function `uses_indent', `remove_para_space',
185         `get_alignment'.
187         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
188         function.
189         (simple_output:nl): Always emit `\n'.
191         * src/devices/grohtml/post-html.cpp: Include `string.h'.
192         (BASE_POINT_SIZE): Removed.
193         (base_point_size, head_info): New global variables.
194         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
195         `is_eo_h'.
196         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
197         tags, respectively.
198         (page::add_and_encode): Pass additional parameter for tag flag.
199         (assert_pos): New structure.
200         (assert_state): New class.
201         (html_printer): Remove `indentation', `prev_indent'.
202         Add variables `troff_indent', `device_indent', `temp_indent'.
203         Add variables `seen_indent', `next_indent', `seen_pageoffset',
204         `next_pageoffset', `seen_linelenght', `next_linelength',
205         `seen_center', `next_center', `seen_space', `seen_break', `as'.
206         Add member functions `do_check_center', `do_space', `do_head',
207         `get_troff_indent', `restore_troff_indent', `handle_assertion',
208         `handle_state_assertion', `do_end_para', `set_char_and_width'.
209         Change argument to `do_fill' to `char *'.
210         Update constructor.
211         (html_printer::emit_raw): Call `shutdown_table'.
212         Use new functions.
213         (html_printer::do_center): Simplified.
214         (html_printer::do_title): Improved.
215         (html_printer::write_header): Emit one more newline.
216         Use new functions.
217         (html_printer::do_heading, html_printer::do_indent,
218         html_printer::do_eol, html_printer::do_tab_ts,
219         html_printer::do_tab, html_printer::do_tab0,
220         html_printer::calc_po_in, html_printer::next_horiz_pos,
221         html_printer::remove_courier_tabs,
222         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
223         Updated.
224         (html_printer::do_linelength, html_printer::do_pageoffset,
225         html_printer::do_indentation, html_printer::do_tempindent,
226         html_printer::do_tab_te): Simplified.
227         (html_printer::do_pointsize): Check whether point size is really
228         associated a `.tl' tag.
229         (html_printer::do_break): Rewritten.
230         (html_printer::troff_tag): Improved.
231         (html_printer::flush_globs): Updated.
232         (html_printer::lookahead_for_tables): Handle `is_br'.
233         Use new functions.
234         (html_printer::set_char): Check `sbuf_style.f'.
235         (html_printer::write_navigation): Use string comparison.
236         (html_printer::~html_printer): Emit `head_info'.
237         (html_printer::special): Rewritten.
238         (get_str, make_val): New functions.
239         (main): New option `s' to set the base point size.
241         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
243 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
245         * src/roff/troff/node.cpp: New extern `debug_state'.
246         Include `stringclass.h' and `mtsm.h'.
247         Implement new classes and class members from `node.h'.
248         (real_output_file): Make `fp' public.
249         (troff_output_file): New variables `cur_div_level' and `tag_list'.
250         Update constructors.
251         (troff_output_file::really_print_line): Check whether we should push
252         the current troff state and use the state at the start of the
253         invocation of this diversion.
254         (troff_output_file::add_to_tag_list): New member function.
255         (node::add_char): Handle `glyph_comp_np'.
257         * src/roff/troff/node.h: Include `mtsm.h'.
258         (node): New variables `state', `push_state', `div_nest_level',
259         `is_special'.  Update constructors, all descendants.
260         Pass additional argument to `add_char' member function.
261         New virtual member functions `is_tag', `debug_node',
262         `debug_node_list'.  Update all descendants.
263         (tag_node): New class for handling tags.
264         (output_file): Add variable `state'.
266 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
268         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
269         providing a minimal troff state machine to emit meta tags for the
270         post-grohtml device driver.
272         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
273         files.
275 2004-10-09  Werner LEMBERG  <wl@gnu.org>
277         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
279 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
281         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
283         * src/roff/troff/div.h: Include `mtsm.h'.
284         (diversion): New variables `any_chars_added', `needs_push',
285         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
286         `saved_suppress_next_eol', `modified_tag'.
287         New virtual member function `is_diversion'.  Update all descendants.
289         * src/roff/troff/div.cpp (diversion::diversion,
290         macro_diversion::macro_diversion): Updated.
291         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
292         `suppress_next_eol'.
293         (top_level_diversion::space): Handle `curenv->seen_space'.
294         (page_offset): Update tag handling.
295         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
297         * src/roff/troff/env.h (environment): Make `tabs' public.
298         Remove `ignore_next_eol', `emitted_node'.
299         Update `output_line', `output'.
300         New variables `seen_space', `seen_eol', `suppress_next_eol',
301         `seen_break'.
302         New member functions `construct_state', `make_tag',
303         `construct_format_state, `construct_new_line_state,
304         `dump_troff_state'.
305         Remove `add_html_tag', `make_html_tag'.
307         * src/roff/troff/env.cpp: New externs `suppress_push',
308         `get_diversion_state', `global_diverted_space'.
309         (pending_output_line): New variable `was_centered'.
310         Update constructor and all callers.
311         (pending_output_line::output): Call `curenv->construct_format_state'.
312         (environment::environment, environment::copy): Updated.
313         (environment::output): Handle `was_centered'.
314         (environment::add_char): Handle construct and diversion state.
315         (environment::add_node): Handle construct state.
316         (environment::newline): Handle `was_centered'.
317         (environment::output_line): Updated.
318         (environment::possibly_break_line): Updated.
319         Update tag handling.
320         (environment::add_html_tag): Replaced with...
321         (environment::make_tag): New function.
322         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
323         (environment::dump_troff_state): New debugging function.
324         (environment::construct_state, environment::construct_format_state,
325         environment::construct_new_line_state): New functions.
326         (environment::do_break): Updated.
327         Handle `global_diverted_space'.
328         (environment::handle_tag): Update tag handling.
329         (point_size, fill, do_break_request): Don't call `add_html_tag'.
330         (no_fill): Don't call `add_html_tag'.
331         Set `suppress_next_eol'.
332         (center, right_justify, line_length, indent, temporary_indent,
333         set_tabs):
334         Update tag handling.
336         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
337         (input_iterator): New variables `is_diversion', `diversion_state'.
338         Update constructors.
339         (input_stack): New member functions `get_div_level',
340         `get_diversion_state', `check_end_diversion'.
341         New variables `div_level', `diversion_state'.  Initialize them.
342         (suppress_push, global_diverted_space): New global variables.
343         (input_stack::finish_get, input_stack::finish_peek,
344         input_stack::remove_boundary, input_stack::end_file,
345         input_stack::clear, input_stack::pop_macro): Call
346         `check_end_diversion'.
347         (input_stack::push): Handle `div_level' and `diversion_state'.
348         (get_diversion_state): New function.
349         (diverted_space_node::reread): Handle `global_diverted_space'.
350         (macro::macro): Update constructors.
351         (macro::is_diversion): New function.
352         (macro::operator=): Set `is_a_diversion'.
353         (string_iterator): New member function `is_diversion'.
354         (string_iterator::string_iterator): Update constructors.
355         (string_iterator::fill): Set `div_nest_level'.
356         (macro_iterator): New member function `is_diversion'.
357         (do_if_request): Handle `suppress_push'.
358         (tag, taga): New functions.
359         (init_input_requests): Add `tag' and `taga' requests.
361 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
363         * src/include/font.h (font): New member function
364         `get_image_generator'.
365         New variables `unscaled_charwidths' and `image_generator'.
367         * src/libs/libgroff/font.cpp (font::get_width): Always return the
368         character's unscaled width if `font::unscaled_charwidths' is set.
369         (font::get_image_generator): New function.
370         (font::load_desc): Check the `unscaled_charwidths' and
371         `image_generator' keywords.
373         * src/libs/libgroff/fontfile.cpp: Initialize
374         `font::unscaled_charwidths' and `font::image_generator'.
376         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
378         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
380         * man/groff_font.man: Document `unscaled_charwidths' and
381         `image_generator'.
383         * src/preproc/html/pre-html.cpp: Include `device.h'.
384         (image_gen): New global variable.
385         (imageList::createPage): Use `image_gen'.
386         (main): Use `image_generator' keyword.
388 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
390         * tmac/html.tmac: Handle \[sqrtex].
392 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
394         * src/include/printer.h (printer): New virtual method `round_width'.
396         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
397         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
398         src/devices/grotty/tty.cpp (printer::round_width): New function
399         member.
401         * src/devices/grohtml/post-html.cpp (printer::round_width): New
402         function member.
403         (html_printer::set_numbered_char): Use it.
405 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
407         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
409         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
411         * configure: Regenerated.
413         * Makefile.in (GHOSTSCRIPT): New variable.
414         (MDEFINES): Add GHOSTSCRIPT.
416 2004-10-03  Werner LEMBERG  <wl@gnu.org>
418         * INSTALL.gen: Updated (taken from texinfo CVS).
420 2004-09-28  Werner LEMBERG  <wl@gnu.org>
422         * NEWS: Updated.
424 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
426         * tmac/groff_www.man: Revised and updated.
428 2004-09-26  Werner LEMBERG  <wl@gnu.org>
430         Fix \$@ and \$* to handle any number of arguments.
432         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
433         characters.
435         * src/roff/troff/input.cpp (input_iterator::internal_level):
436         Removed.
437         (input_stack): New member functions `increase_level' and
438         `decrease_level'.
439         (input_stack::get_level): Don't use `internal_level'.
440         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
441         (end_quote_iterator): Completely removed.
442         (interpolate_arg): Build string for \$@ and \$* which is then
443         pushed onto the input stack.
445 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
447         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
448         2004-09-19.
450 2004-09-23  Werner LEMBERG  <wl@gnu.org>
452         * tmac/an-old.tmac (ne): Using default scaling operator.
454 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
456         This change implements the following features:
458         PORPHANS
459           New numeric register: Defines number of lines following LP, PP,
460           QP, IP or XP, which must be kept together, before any automatic
461           page break.  If insufficient space remains on the current page, a
462           page break is forced before the new paragraph begins.
464         HORPHANS
465           New numeric register: Sets number of lines of following paragraph
466           which must be kept with a heading, defined by NH or SH, before any
467           automatic page break.  If insufficient space remains on the
468           current page, a page break is forced before the heading.
470         GROWPS
471           (Thanks to Joerg van den Hoff, for this idea).
473           New numeric register: Sets the first level of heading (set with
474           NH), which will keep the same point size as body text; e.g. if
475           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
476           point size specified by \n[PS], but .NH 2 and .NH 1 will have
477           progressively larger point sizes, determined by \n[PSINCR] (see
478           below).
480         PSINCR
481           New numeric register: Sets the point size increment for each level
482           of heading, (set with NH), below the threshold level set by
483           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
484           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
485           and all other levels will remain at 10pt, (because \n[PS] = 10).
487         SH
488           Existing macro now accepts a numeric argument, to make heading
489           size match that of NH with same argument value, when the
490           GROWPS/PSINCR feature is enabled.
492         SN-DOT
493           New string, set by NH macro, replaces the existing (undocumented)
494           use of SN, to represent the assigned section number.
496         SN-NO-DOT
497           New string, set by NH macro, represents the assigned section
498           number, but omits the terminal period (periods at intermediate
499           levels are retained).
501         SN
502           String set by NH macro, originally undocumented, now implemented
503           as an alias for SN-DOT (which reproduces original behaviour).
505         * tmac/s.tmac (PORPHANS): New register.
506         (par*start): Use it.
507         (HORPHANS, GROWPS, PSINCR): New registers.
508         (SH-NO-TAG, @SH): Use them.
509         (@NH): Improved.
511 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
513         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
514         of `Ds' and `De' macros.
516 2004-09-10  Werner LEMBERG  <wl@gnu.org>
518         In tbl, handle \a as an interpreted leader character if in
519         compatibility mode.
521         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
522         LEADER_CHAR): New macros.
523         (compatible_flag): New declaration.
525         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
526         LEADER_3, and LEADER_4 to `state'.
527         (table_input::get): Handle `\a'.
529         * src/preproc/tbl/table.cpp (PREFIX): Removed.
530         (LEADER_REG): New macro.
531         (table::init_output): Define LEADER_REG string register if in
532         compatibility mode.
534         * src/preproc/tbl/tbl.man: Document it.
536 2004-08-18  Werner LEMBERG  <wl@gnu.org>
538         * tmac/doc.tmac (An): Fix error message.
540 2004-08-06  Werner LEMBERG  <wl@gnu.org>
542         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
543         file can't be opened.  UNIX tbl has the same behaviour.
545 2004-08-05  Y T  <doarhop@hotmail.com>
547         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
548         (DBRead): If in compatibility mode, take into account the text
549         when computing figure boundaries.
551 2004-08-05  Werner LEMBERG  <wl@gnu.org>
553         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
554         from Tadziu Hoffmann.
556 2004-08-03  Werner LEMBERG  <wl@gnu.org>
558         * doc/meref.me: Document `_M' register.
560 2004-08-03  Martin Husemann  <martin@duskware.de>
562         Make hpftodit work correctly on big-endian systems.
564         * src/utils/hpftodit/hpftodit.cpp (File): New method
565         `get_uint32(char *)'.
566         (entry): New member `orig_value'.
567         (read_tags): Use new method.
568         (output_font_name, read_and_output_pcltypeface, dump_ascii):
569         Updated.
571 2004-08-01  Werner LEMBERG  <wl@gnu.org>
573         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
574         are already in X11's `macros.t' file.
576 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
578         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
579         Fix casting bug.
580         (read_and_output_pcltypeface): Handle strings with length <= 4.
582 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
584         * tmac/s.tmac (pg@top): Don't save `PO' register.
585         (pg*end-col, pg*end-page): Directly use `PO' register.
587 2004-07-27  Werner LEMBERG  <wl@gnu.org>
589         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
591         * src/preproc/refer/refer.cpp (output_references): Check for
592         empty hash table.
593         * src/preproc/refer/refer.man: Improve documentation of
594         `bibliography' command.
596 2004-07-26  Werner LEMBERG  <wl@gnu.org>
598         Add requests `fcolor' and `gcolor'.
600         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
601         New functions.
602         (init_env_requests): Add `fcolor' and `gcolor'.
604         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
606         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
607         Document new requests.
609 2004-07-24  Werner LEMBERG  <wl@gnu.org>
611         Add support for fractional point sizes in ms macros.  A value for
612         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
613         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
615         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
616         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
618         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
620 2004-07-19  Werner LEMBERG  <wl@gnu.org>
622         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
623         Update constructor.
624         (do_for, for_input::get, for_input::peek): Handle negative `by'.
625         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
627 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
629         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
630         * tmac/groff_mdoc.man: Updated.
632 2004-07-05  Werner LEMBERG  <wl@gnu.org>
634         * doc/groff.texinfo: Further improve documentation of `hcode'.
636 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
638         Improve appearance of arrows in pic.
640         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
641         arrow head thin.
642         Use two line segments for drawing non-filled arrow head.
643         (line_object::print, spline_object::print): Shorten line length to
644         avoid arrow sticking.
645         (arc_object::print): Take arrow direction into account.
647 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
649         * tmac/groff_www.man: Update documentation of .MPIMG.
651 2004-07-03  Werner LEMBERG  <wl@gnu.org>
653         * tmac/an-old.tmac (RI): Always start with font `R'.
654         (RI, IR): Properly end with font `R'.
656 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
658         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
659         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
660         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
661         Don't pass more than six arguments to .R, .I, .B, etc., for
662         compatibility with traditional troff macros.
664 2004-07-02  Werner LEMBERG  <wl@gnu.org>
666         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
667         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
668         Update all users.
669         (PUSH_COMP_MODE): New internal character constant.
670         Update all users.
672         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
673         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
674         (token::next, macro::append): Handle PUSH_COMP_MODE.
675         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
676         POP_GROFFCOMP after each of the decoded arguments to make them
677         independent from the compatibility mode status.
678         (comp_mode): Add `COMP_ENABLE'.
679         (do_define_string, do_define_macro): Handle COMP_ENABLE.
680         (define_string, append_string, define_macro, define_indirect_macro,
681         append_macro, append_indirect_macro): Handle `compatible_flag'.
682         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
684         * man/groff_diff.man, doc/groff.texinfo: Updated.
686 2004-07-01  Werner LEMBERG  <wl@gnu.org>
688         * doc/groff.texinfo: Improve documentation of `hcode'.
689         Use @documentencoding and convert document to latin-1; to do that
690         make latin characters active and assign proper macros (within a
691         @tex...@end tex environment).
692         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
693         * doc/Makefile.sub (groff): Ditto.
695 2004-06-29  Werner LEMBERG  <wl@gnu.org>
697         Implement two new conditional operators `F <name>' and `S <name>'
698         which check whether <name> is a valid font or style, respectively.
700         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
701         (text_file::text_file): Updated.
702         (text_file::error): Don't emit message if `silent' is set.
703         (font::load_font): Add optional third argument (which is directly
704         passed to `load'.
705         (font::load): Add optional second argument to check the header of
706         a font only, without emitting warning or error messages.
707         * src/include/font.h (font): Updated.
709         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
710         conditionals.
711         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
712         fourth argument to check a font without mounting.
713         (check_font, check_style): New functions.
714         * src/roff/troff/node.h: Updated.
716         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
717         Updated.
719 2004-06-27  Werner LEMBERG  <wl@gnu.org>
721         Implement new string-valued register `.sty' to return the current
722         style name.
724         * env.cpp (environment::get_style_name_string): New function.
725         (init_env_requests): Add `.sty' register.
726         * env.h (environment): Updated.
727         * node.cpp (font_info): Make `get_style_name' a friend.
728         (get_style_name): New function.
729         * node.h: Updated.
731         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
732         Updated.
734 2004-06-15  Werner LEMBERG  <wl@gnu.org>
736         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
737         `nospaces' option.
739 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
741         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
742         and \n[mo] to avoid dependency on current date.
744 2004-06-08  Werner LEMBERG  <wl@gnu.org>
746         * Makefile.sub (install_data): New target.
748 2004-06-04  Werner LEMBERG  <wl@gnu.org>
750         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
752 2004-06-03  Werner LEMBERG  <wl@gnu.org>
754         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
755         order of libraries.
756         (install_data): Add $(srcdir).
758         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
759         libraries.
761 2004-06-02  Werner LEMBERG  <wl@gnu.org>
763         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
764         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
765         Add test for Xmu library.
766         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
767         GROFF_APPRESDIR_DEFAULT): New macros.
769         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
770         and GROFF_APPRESDIR_DEFAULT.
772         * configure: Regenerated.
774         * Makefile.in (appresdir): New variable.
775         (MDEFINES): Add appresdir.
777         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
778         -Xt.
779         (install_data, uninstall_sub): New targets to handle GXditview.ad.
781         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
782         `$(srcdir)/eign', not `eign'.
784         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
786         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
787         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
788         Protect (g)xditview with `\%' to avoid hyphenation.
789         Other minor formatting.
791 2004-06-01  Werner LEMBERG  <wl@gnu.org>
793         Integrate gxditview into groff's standard directory hierarchy.
795         * src/xditview/*: Moved to ...
796         * src/devices/xditview/*: Here.
797         Moved DviChar.h and XFontName.h to src/include.
798         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
799         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
800         Moved xtotroff.c to new directory src/utils/xtotroff.
801         Provide proper Makefile.sub files (reusing the stuff from
802         Imakefile.in).
803         DESC renamed to DESC.in.
804         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
805         Converted everything from K&R to ANSI C.
806         Decorated with const where appropriate.
807         Cast string constants with `String' and `char *' where appropriate.
808         Made it compile with C++ (used as a C compiler).
809         Removed other minor compiler warnings.
811         * src/devices/xditview/device.c: Include config.h, string.h, and
812         defs.h.
813         Don't declare `exit', `strtok', `strchr', and `getenv'.
814         (FONTPATH): Remove.
816         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
817         `XFormatFontName'.
819         * src/devices/xditview/xditview.c: Include config.h.
820         Include stdio.h earlier.
821         Protect declaration of `popen' and `pclose' with
822         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
823         Replace `caddr_t' with `XtPointer'.
824         (MakePromptFunc): New typedef.
825         (DoPrint): Use RETSIGTYPE.
826         (promptfunction): Change type to MakePromptFunc.
827         (MakePrompt): Use MakePromptFunc for third argument.
828         (xmalloc): Removed.
830         * src/devices/xditview/ad2c: Add casts to `String'.
832         * src/include/XFontName.h (XFontNameString): Don't use array
833         notation.
834         Add prototypes for `XParseFontName', `XFormatFontName',
835         `XCompareFontName', and `XCopyFontName'.
837         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
838         `XFontName.h'.
840         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
841         Don't declare `XParseFontName' and `XFormatFontName'.
842         (xmalloc): Removed.
843         (main): Remove `optind' and `optarg'.
845         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
846         (to select programs which need X).
847         Make XDEVIDIRS depend on `FORCE'.
848         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
849         X support).
850         (MDEFINES): Updated.
851         (LIBDIRS): Use XLIBDIRS.
852         (CPROGDIRS): Use XPROGDIRS.
853         (DEVDIRS): Remove font directories for gxditview.
854         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
855         (EXTRADIRS): Remove src/xditview.
857         * Makefile.sub (DISCLEANFILES): Updated.
859         * Makefile.comm (LIBXUTIL): New variable.
860         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
861         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
863         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
865         * aclocal.m4 (GROFF_X11): New function.
867         * configure.ac: Call GROFF_X11.
868         Don't create src/xditview/Imakefile.
869         Don't emit notice how to build gxditview.
871         * configure: Regenerated.
873         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
875 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
877         * Makefile.in (CPPFLAGS): Define.
878         (MDEFINES): Add CPPFLAGS.
880 2004-05-27  Werner LEMBERG  <wl@gnu.org>
882         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
884 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
886         Fix problems with `friend name injections'.
888         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
889         make_script_box), src/roff/troff/div.h (end_diversions),
890         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
891         change 2004-04-08.
893 2004-05-25  Bernd Warken  <bwarken@mayn.de>
895         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
897 2004-05-25  Werner LEMBERG  <wl@gnu.org>
899         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
900         src/libs/libgroff/color.cpp: Include lib.h.
902 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
904         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
905         through Forte 6u1, and for how to get GNU make on Solaris.
907 2004-05-24  Werner LEMBERG  <wl@gnu.org>
909         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
910         by Paul Eggert.
912 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
914         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
915         rule.
917 2005-05-14  Werner LEMBERG  <wl@gnu.org>
919         * REVISION: Set to 2.
921         * aclocal.m4 (GROFF_STDINT_H): Removed.
922         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
924         * configure.ac: Updated.
925         * configure, src/include/config.hin: Regenerated.
927         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
928         inttypes.h conditionally.
930 2003-05-13  Werner LEMBERG  <wl@gnu.org>
932 Version 1.19.1 released
933 =======================
935 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
937         * src/preproc/refer/label.y (same_author_last_name,
938         same_author_name): Handle empty sort keys.
940 2004-05-10  Werner LEMBERG  <wl@gnu.org>
942         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
943         tmac/TODO: Updated.
945         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
946         doc-str-Lb-librt): Reset font.
947         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
948         Provide `doc-str-Lb' to reset font.
949         * tmac/groff_mdoc.man: Updated.
951 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
953         * src/preproc/html/pre-html.cpp (make_message): Make it work for
954         snprintf versions which don't conform to ANSI C 99 (this is,
955         counting the string's trailing null byte in the return value).
957 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
959         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
960         that all implementations of sprintf handle null pointers correctly.
962 2004-05-04  Werner LEMBERG  <wl@gnu.org>
964         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
965         Document `.U' register.
967         * src/roff/troff/env.cpp (environment::mark_last_line)
968         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
970 2004-05-04  Larry Kollar  <kollar@alltel.net>
972         New read-only register `.U'; it returns 1 in safer mode and 0
973         otherwise.
975         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
976         register.
978 2004-05-03  Werner LEMBERG  <wl@gnu.org>
980         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
982 2004-04-17  Werner LEMBERG  <wl@gnu.org>
984         * src/include/font.h (font): Use `int' for ch_index.
985         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
986         font::compact): Updated.
988         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
989         warnings.
991         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
992         (hyphen_word): Fix compiler warnings.
993         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
994         `char'.
995         Update all callers.
996         (get_delim_number, get_line_arg): Change second argument type to
997         `unsigned char'.
998         (macro_header::copy, token::next, do_define_string,
999         do_define_character, substring_request, asciify_macro,
1000         unformat_macro, read_size, non_interpreted_node::interpret,
1001         while_request, main: Fix compiler warnings.
1002         (read_color_draw_node): Initialize `col'.
1004         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1005         `start_col' and `end_col' of type `int'.
1006         (vertical_rule): Make `col' of type `int'.
1008         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1009         for EOF.
1011         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1012         New arrays.
1013         (format_serial): Use them to remove dependency on ASCII.
1015         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1016         compiler warning.
1017         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1018         Ditto.
1020         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1021         compiler warnings.
1022         (glyph): Change type of `hpos' to `int'.
1024         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1025         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1027         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1029         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1031 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1033         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1034         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1035         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1036         `double' instead of `float' everywhere.
1037         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1038         everywhere.
1039         (main): Add return value.
1040         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1041         everywhere.
1042         Update all user functions.
1044         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1045         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1046         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1047         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1048         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1049         src/roff/troff/input.cpp, src/roff/troff/request.h,
1050         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1051         declarations.
1053         * src/utils/indxbib/signal.c: Include stdlib.h.
1055 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1057         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1058         before the first page.
1060 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1062         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1063         (doc-operating-system-*): Updated.
1064         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1065         (doc-str-Lb-*): Add more library names.
1067 2004-04-10  Art Haas  <ahaas@airmail.net>
1069         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1070         use anonymous type.
1072 2004-04-09  Art Haas  <ahaas@airmail.net>
1074         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1076 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1078         * arch/misc/shdeps.sh: Generate better comment for sed script.
1080 2004-04-08  Art Haas  <ahaas@airmail.net>
1082         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1083         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1084         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1085         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1086         (polyfill), src/preproc/grn/main.cpp (polyfill),
1087         src/preproc/refer/command.cpp (command_table),
1088         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1089         gcc 3.5 doesn't like).
1091 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1093         Removing many compiler warnings.  groff should now compile with
1094         a C++ compiler used for C files also.  [Simple variable renamings
1095         to avoid shadowing aren't logged in detail.]
1097         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1098         (draw_dvi_printer::draw) ['c']: Enclose in block.
1100         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1101         (page::add_line): Fix typos.
1102         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1104         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1105         Some local variable renamings.
1106         * src/devices/grolbp/lbp.h: Some local variable renamings.
1108         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1109         variable renamings.
1111         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1112         Remove redundant local variable declaration.
1113         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1114         Don't use `caddr_t' but `void *'.
1115         Enclose functions with `extern "C"' for C++.
1117         * src/libs/libdriver/input.cpp (remember_filename,
1118         remember_source_filename): Use cast for string constant.
1120         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1121         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1122         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1123         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1124         style.
1125         Enclose functions with `extern "C"' for C++.
1126         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1127         (needs_quoting): Return `int'.
1128         (quote_arg): Add proper casts to malloc and realloc.
1129         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1130         various MS Windows environments.
1131         (spawnvp_wrapper): Add proper cast to malloc.
1133         * src/preproc/eqn/box.h: Remove redundant declarations of
1134         `make_script_box', `make_mark_box' and `make_lineup_box'.
1135         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1136         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1137         variable renamings.
1139         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1140         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1141         (dx, dy): Renamed functions to...
1142         (deltax, deltay): This.
1143         * src/preproc/grn/main.cpp: Some local variable renamings.
1144         (deffont): Add `const'.
1145         (initpic, conv): Use cast for string constant.
1147         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1148         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1149         (char_buffer::run_output_filter): Second argument is unused.
1150         * src/preproc/html/pushback.cpp: Some local variable renamings.
1152         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1153         * src/preproc/pic/object.cpp: Some local variable renamings.
1155         * src/preproc/refer/label.y (lookup_label): Remove redundant
1156         declaration of local variable.
1158         * src/preproc/soelim.cpp: Remove redundant declaration of
1159         `interpret_lf_args'.
1161         * src/preproc/tbl/main.cpp: Some local variable renamings.
1163         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1164         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1165         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1166         Don't use C++-style comments.
1168         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1169         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1170         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1171         renamings.
1172         * src/roff/troff/div.h: Remove redundant declaration of
1173         `end_diversions'.
1174         * src/roff/troff/troff.h: Remove redundant declaration of
1175         `cleanup_and_exit'
1176         * src/roff/troff/input.cpp: Remove redundant declaration of
1177         `handle_first_page_transition' and `process_input_stack'.
1179         * src/utils/hpftodit.cpp: Some local variable renamings.
1181         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1182         for C++.
1183         Don't define RETSIGTYPE.
1184         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1186         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1187         (error): Use `const' in argument.
1188         (main): Remove redundant declaration of `optind'.
1189         Move declaration of `Version_string' to top-level.
1191         * PROBLEMS: Document difficulties compiling signal.c if a C++
1192         compiler is used for C.
1194 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1196         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1198 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1200         Make scripts like nroff.sh and neqn.sh portable across various
1201         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1202         non-POSIX path separators.  The idea is to extend those scripts to
1203         decide at run-time (of the script) which path separator to use.
1205         * arch/misc/Makefile.sub: New file.
1206         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1207         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1208         a proper definition of the variable `GROFF_RUNTIME'.
1210         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1211         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1212         (PROGDEPDIRS): New variable.
1213         `FORCE' it.
1214         (PROGDIRS): Add PROGDEPDIRS.
1216         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1217         Don't substitute @SEP@ and @BINDIR@.
1218         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1219         (PATH): Use GROFF_RUNTIME.
1221         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1222         Don't substitute @SEP@ and @BINDIR@.
1223         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1224         (PATH): Use GROFF_RUNTIME.
1226 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1228         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1229         Cygwin which doesn't handle stderr correctly.
1231 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1233         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1234         against empty argument.  Problem reported by <cgd@broadcom.com>.
1236 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1238         * Makefile.in (SEP): Replaced with...
1239         (RT_SEP, SH_SEP): Separators for the target platform's native path
1240         separator and the build environment, respectively.
1241         (fontpath, tmacpath): Use RT_SEP.
1242         (MDEFINES): Updated.
1244         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1245         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1246         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1247         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1249 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1251         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1252         reduce alignment problems with newer printers which use built-in
1253         TrueType fonts (instead of the older Intellifonts).  The ideal
1254         solution is to provide a second set of groff metric files, but this
1255         is extremely time-consuming to produce, given that HP's metric
1256         files are very rudimentary.
1258 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1260         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1261         s/operand/argument/ in error message.
1263 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1265         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1266         is in use.
1268 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1270         * tmac/s.tmac (XE): Fix error message.
1272 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1274         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1275         New macros.
1277         * src/roff/groff/pipeline.c: Declare strcasecmp.
1278         (run_pipeline) [_WIN32]: Use function name variants which don't
1279         start with `_'.
1280         Fix stream handling.
1282 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1284         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1285         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1286         for platforms which use the native Win32 runtime libraries.
1287         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1289         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1290         QUOTE_ARG_REALLOC_ERROR): Fix string.
1292         * src/preproc/html/pre-html.cpp: Remove declaration of
1293         `spawnvp_wrapper'.
1294         Don't use __MINGW32__.
1295         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1296         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1297         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1298         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1299         calls to `set_redirection' and `WAIT'.
1300         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1301         Fix calls to `set_redirection' and `save_and_redirect'.
1302         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1303         to `set_redirection' and `save_and_redirect'.
1304         (usage): Fix message.
1305         (makeTempFiles, main): Use `DEBUG_FILE'.
1307 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1309         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1311 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1313         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1314         quoting for MSVC's spawn* and exec* functions.
1315         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1316         spawnvp with proper quoting for MSVC.
1318         * src/libs/libgroff/assert.cpp (program_name),
1319         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1320         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1322         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1324         * src/include/error.h (program_name): Declare as `extern "C"'.
1325         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1327 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1329         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1330         spawnvp_wrapper.
1331         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1333 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1335         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1336         variable.
1337         (sbasename) [__MSDOS__ || ...]: New function.
1338         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1339         generic algorithm.
1340         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1341         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1342         of XXX.
1343         Use STDOUT_FILENO instead of hardcoded file handle.
1344         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1346 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1348         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1349         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1351 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1353         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1354         new font and mapping files.
1356 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1357             Keith Marshall  <keith.d.marshall@ntlworld.com>
1359         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1360         an input pipe.  This is needed for the MSVC compiler to make troff's
1361         `-o' option work.
1363         * src/roff/troff/div.cpp: Include nonposix.h.
1364         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1366 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1368         * font/devlj4/generate/special.awk: New script.
1369         * font/devlj4/generate/Makefile (S): Use special.awk.
1370         * font/devlj4/*: Regenerated, including the following new files:
1371         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1372         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1373         * NEWS: Document new lj4 fonts and revised hpftodit.
1375 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1377         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1379 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1381         * src/libs/libgroff/progname.cpp: Replaced with...
1382         * src/libs/libgroff/progname.c: New file.
1383         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1385 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1387         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1389 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1391         * font/devlj4/generate/wingdings.map,
1392         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1393         Use groff glyph names where possible.
1394         * src/devices/grolj4/lj4_font.man: Minor updates.
1396 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1398         * tmac/www.tmac (DC): Handle TTY devices.
1400         * doc/webpage.ms: Document viewCVS from ffii.org.
1401         * NEWS, README: Updated.
1403         * src/roff/groff/groff.man: Mention lj4_font man page.
1405         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1406         variables.
1407         (FONTS): Add SYMBOL and WINGDINGS.
1408         (SYMBOL, WINGDINGS): New targets.
1410 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1412         * src/devices/grolj4/lj4_font.man: New man page.
1413         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1414         * src/devices/grolj4.man: Mention lj4_font man page.
1416         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1417         * src/utils/hpftodit/hpftodit.man: Document it.
1418         (CW): New macro.
1419         Remove details about fonts (which are now in lj4_font.man).
1421         * font/devlj4/generate/symbol.map,
1422         font/devlj4/generate/wingdings.map: New files.
1424 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1426         * README: Mention ffii's viewcvs access.
1428 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1430         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1432 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1434         Revert most of the change from 2004-01-03 to better control used
1435         symbol sets.
1437         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1438         (text_symbol_sets, special_symbol_sets): New arrays.
1439         (symbol_set_table): New global variable.
1440         (read_symbol_sets): Use search order given in the text_symbol_sets
1441         and special_symbol_sets arrays.  If command line flag -a is not
1442         given, search both arrays.
1443         (output_charset): Require x_height_tag only for command line flag -i.
1445 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1447         Implement string-valued registers \n[.m] and \n[.M] to return the
1448         name of the current drawing and background color, respectively.
1450         * src/roff/troff/symbol.h: Moved to...
1451         * src/include/symbol.h: Here.
1452         Small fixes to make it work outside of the `troff' directory.
1453         * src/roff/troff/symbol.cpp: Moved to...
1454         * src/libs/libgroff/symbol.cpp: Here.
1455         Small fixes to make it work outside of the `troff' directory.
1457         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1458         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1459         Updated.
1461         * src/include/color.h: Include symbol.h.
1462         (color): Add new field `nm'.
1463         * src/libs/libgroff/color.cpp (color::color): Updated.
1465         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1466         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1467         src/roff/troff/reg.cpp: Don't include symbol.h.
1469         * src/roff/troff/env.cpp: Don't include symbol.h.
1470         (environment::get_glyph_color_string,
1471         environment_get_fill_color_string): New member functions.
1472         (init_env_requests): Handle `.m' and `.M' registers.
1473         * src/roff/troff/input.cpp: Don't include symbol.h.
1474         (default_symbol): Moved to symbol.cpp/symbol.h.
1475         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1476         to color constructor.
1477         * src/roff/troff/env.h: Updated.
1479         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1480         Document new registers.
1482 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1484         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1485         space_node::nbreaks): Protect against zero `next' field.
1487 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1489         In hpftodit, use the symbol sets offered in the TFM.
1491         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1492         (symbol_set, text_symbol_sets, special_symbol_sets,
1493         symbol_set_table): Removed.
1494         (get_printcode): Removed.
1495         (read_symbol_sets): Initialize `symbol_set' field with
1496         `NO_SYMBOL_SET'.
1497         Simplify code to just use the `kind' value.
1498         (output_charset): Improve output formatting.
1499         (dump_symbols): Simplified.
1501 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1503         * font/devlj4/generate/text.map: Add more MSL numbers.
1505 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1507         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1508         (text_symbol_sets): Add more symbol sets.
1509         (debug_flag): New static variable (moved from `main').
1510         (get_printcode, show_symset): New functions.
1511         (main): Remove `debug_flag'.
1512         (output_charset): Use `show_symset'.
1513         (dump_symbols):  Use `show_symset'.
1514         Print symsets for all glyphs.
1515         (read_map): Actually call `unicode_to_ucode_make' but this time
1516         correctly.
1518 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1520         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1521         Fix placement of comments.
1523 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1525         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1526         option `-d' is given.
1527         (output_charset): Improve warning messages to give more information.
1528         (dump_symbols): Make information more precise.
1529         (usage): Updated.
1530         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1531         appear as-is and shouldn't be decomposed.
1533 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1535         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1536         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1537         (FONTS): Add TrueType font families Arial and Times New Roman.
1538         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1539         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1540         `fl'.
1542 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1544         * test-groff.in (SEP): Quote value.
1545         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1546         `tem' to `char*' to avoid deallocation of a pointer to a constant
1547         object which some compilers don't like.
1549 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1551         * font/devlj4/generate (text.map, special.map): Rewritten to work
1552         with the new hpftodit version.
1554 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1556         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1557         set and 8bit character code for all glyphs also.
1559 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1561         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1563 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1565         More fixes for MSVC compiler.
1567         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1568         $(SEP).
1570         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1571         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1572         (getpid) [_MSC_VER]: Remove.
1573         Include direct.h and process.h conditionally.
1575         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1576         parentheses for a_delete.
1578         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1580         * test-groff: Replaced with...
1581         * test-groff.in: This new template to handle path separator
1582         properly.
1584         * configure.ac: Check for direct.h and process.h.
1585         Generate test-groff script.
1586         * configure, src/include/config.hin: Regenerated.
1588 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1590         Add integral extension glyph.
1591         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1593         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1595         * font/devps/generate/textmap: Provide entry for `integralex' to
1596         override (old) PUA value of the AGL.
1597         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1598         * font/devps/*: Regenerated.
1600         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1601         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1603 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1605         Add forgotten `coproduct' symbol (already available for DVI).
1607         * font/devhtml/R.proto, font/devps/generate/textmap,
1608         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1609         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1610         U+2210 (\[coproduct]).
1612 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1614         hpftodit has been extended to handle TrueType metric files and
1615         more glyphs.  See hpftodit.man for more details.
1617         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1618         ctype.h, and unicode.h.
1619         s/msl/charcode/ everywhere since we now handle Unicode values also.
1620         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1621         Use it where appropriate.
1622         (MULTIPLIER): Replaced with...
1623         (multiplier): New global static variable.
1624         (scale): Updated.
1625         (tag_type): Add more TFM tags.
1626         (tag_name): New array.
1627         (ENUM_TYPE, FLOAT_TYPE): Removed.
1628         (BYTE_TYPE): New value assigned.
1629         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1630         (text_symbol_sets, special_symbol_sets): Extended to cover more
1631         sets.
1632         (check_type): Add return value.
1633         (check_units): Add parameters to get ppi and upem values.
1634         Handle TrueType TFM data.
1635         (output_font_name): New function.
1636         (output_charset): Add parameter to handle TFM type.
1637         Handle TrueType TFMs also.
1638         (em_fract): New macro.
1639         (dump_tags): Be much more verbose and handle more tags.
1640         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1641         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1642         functions.
1643         (read_map): Add parameter to handle TFM type.
1644         Handle both MSL and Unicode mappings.
1645         (main): Add two new command line options `-a' and `-q'.
1646         Updated to make use of new functions.
1647         (usage): Updated.
1649         * src/utils/hpftodit/hpuni.cpp: New file.
1651         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1652         Updated.
1654 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1656         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1658 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1660         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1661         by Michail Vidiassov <master@iaas.msu.ru>.
1663 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1665         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1666         and u0049_0307.
1667         Add missing latin-2 glyphs.
1668         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1670         * tmac/troffrc: Load `composite.tmac' earlier.
1672         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1673         u00{53,73}_0327, and u0049_0307.
1674         * tmac/X.tmac: Add u00{47,67}_0306.
1675         * tmac/tty-char.tmac: Use composite glyph names for readability.
1677         * NEWS: Updated.
1679         * src/include/unicode.h: Remove `extern' keywords.
1681 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1683         * tmac/latin5.tmac: New file.
1685 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1687         Add some glyphs needed for Turkish.
1689         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1690         and u0049_0307.
1692         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1693         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1694         u00{53,73}_0327, and u0049_0307.
1696 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1698         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1699         from 2001-10-04.
1700         Remove trailing zeros.
1702 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1704         Make \? transparent to end-of-sentence recognition.
1706         * src/roff/troff/input.cc (non_interpreted_node): Add
1707         `ends_sentence' member function.
1709 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1711         * doc/groff.texinfo: Document `dt' request correctly.
1712         Other minor typographical improvements.
1714 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1716         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1718 2003-12-10  Richard Stallman  <rms@gnu.org>
1720         * LICENSE: Better wording.
1722 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1724         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1725         * configure, NEWS: Updated.
1727 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1729         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1731 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1733         * LICENSE: Updated.
1735 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1737         * INSTALL: Improved.
1739 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1741         Use path separator character of target platform for compiled-in
1742         default paths.
1744         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1745         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1746         * configure: Regenerated.
1747         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1749 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1751         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1752         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1754 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1756         * LICENSE: New file.
1758 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1760         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1761         ligatures present in AFM files since groff currently only
1762         understands some standard ligatures and nothing else.
1764 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1766         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1767         option -v is given.
1769         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1770         messages.
1771         Close stdout copy.
1772         Don't use Unix wait flags.
1774 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1776         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1777         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1778         src/roff/troff/uniuni.cpp: Moved to...
1779         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1780         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1781         src/libs/libgroff/uniuni.cpp: Here.
1783         * src/include/Makefile.sub.old (HDRS),
1784         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1785         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1787 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1789         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1790         `DEBUG_FILE'.
1791         Updated all users.
1793 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1795         * groff.texinfo: Document special behaviour of `.vs 0'.
1796         Improve documentation of `cflags' request.
1797         * NEWS: Updated.
1799 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1801         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1802         * font/devlj4/CORONET: Regenerated.
1804 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1806         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1807         if processing hyphenation patterns in traditional mode.
1808         Improve error messages.
1810 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1812         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1813         troff_output_file::put_char): Fix type of local variable `c'.
1815 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1817         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1818         declarations.
1819         (i_to_a): Removed.  libgroff already provides this function.
1820         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1822 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1824         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1825         HAVE_DECL_SYS_LIST.
1827 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1829         * COPYING: Use correct version.
1831 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1833         LynxOS 4.0.0 doesn't declare vfprintf.
1835         * configure.ac: Check for vfprintf.
1836         * configure: Regenerated.
1837         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1838         * src/include/config.hin: Regenerated.
1840 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1842         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1844         * configure.ac: Check for vsnprintf.
1845         * configure: Regenerated.
1846         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1847         `HAVE_VSNPRINTF'.
1848         * src/include/config.hin: Regenerated.
1850 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1852         * aclocal.m4: Updated syntax to autoconf 2.59.
1853         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1854         Don't check for gsos2.
1855         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1856         working abs_top_srcdir and abs_top_builddir.
1858         * configure.ac: Updated syntax to autoconf 2.59.
1859         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1860         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1861         * configure: Regenerated.
1863         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1864         s/@groff_top_builddir@/@abs_top_builddir@/.
1866         * src/roff/groff/pipeline.c (xstrsignal):
1867         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1869 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1871         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1872         make start angle smaller than end angle to circumvent a bug in tpic
1873         handling of some versions of dvipdfm (and dvipdfmx).
1875 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1877         * src/devices/grops/grops.man: Improve section on creating EPS.
1879 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1881         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1882         -P-pletter).
1884 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1886         * doc/groff.texinfo: Fix documentation of `.if'.
1888 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1890         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1891         the form `uniXXXX' also.
1893 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1895         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1896         contrib/pic2graph/pic2graph.sh: Implement secure management of
1897         temporary files.
1898         Pass `-P-pletter' to groff to avoid data outside of the converted
1899         area -- some versions of `convert' (for example 5.3.8) don't check
1900         the bounding box of the image but always use a fixed image size
1901         (letter paper format).
1902         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1903         contrib/pic2graph/pic2graph.man: Updated.
1905         * src/roff/groff/groff.man: Document $TMP and $TEMP.
1907 2003-10-26  Werner LEMBERG  <wl@gnu.org>
1909         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1910         troff_output::simple_ellipse, troff_output::simple_arc,
1911         troff_output::simple_line, troff_output::simple_spline,
1912         troff_output::simple_polygon): Insert a space before arguments.
1913         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1914         latter doesn't produce a node, so the following `.sp -1' would do
1915         the wrong thing.
1916         Don't emit `.sp -1' after \M.  This also doesn't produce a token
1917         (and we don't have to care about compatibility mode).
1918         (troff_output::set_color, troff_output::reset_color): Don't emit
1919         `.sp -1' after \M and \m.
1921         * src/roff/troff/input.cpp (old_have_input): New global variable.
1922         (input_stack::get): Handle `old_have_input'.
1923         (process_input_stack) <token::TOKEN_NEWLINE>: Call
1924         `trapping_blank_line' depending on `old_have_input', not
1925         `have_input'.
1927 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
1929         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1930         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1931         default directory names for temporary files.
1932         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1934         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1935         [__MSDOS__] (run_pipeline): Honour environment variables.
1936         Don't use `tmpnam' but `tempnam' to work around messy
1937         implementation.
1939         * README.MinGW: New file.
1941 2003-10-16  Werner LEMBERG  <wl@gnu.org>
1943         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1944         `(*t)->next' without testing validity of `*t'.
1945         (usage): Make it more readable.
1947 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
1949         Make html device run under both MS-DOS and Win32.
1951         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1952         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1953         spawn or fork+exec has to be used, and whether parent must sleep
1954         until the child process terminates.  Used in
1955         `char_buffer::run_output_filter'.
1956         (copyofstdoutfd): Removed.
1957         (char_buffer): Replace `write_file_html' and `write_file_troff'
1958         member functions with `emit_troff_output' and `run_output_filter'.
1959         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1960         macros.
1961         (replaceFd): Replaced with...
1962         (set_redirection): New auxiliary function.
1963         (waitForChild): Replaced with...
1964         (save_and_redirect): New auxiliary function for.
1966         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1967         functions.
1969 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1971         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1972         (GROFF_LIBC): New function.
1973         * configure.ac: Call GROFF_LIBC.
1974         Check for `kill'.
1975         * configure: Regenerated.
1977         * src/include/lib.h: Handle __MINGW32__.
1978         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1979         Add macro for `pipe'.
1980         Define P_tmpdir.
1982         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1983         correctly.
1985         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1986         Implement.
1988 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1990         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1991         <chuq@chuq.com>.
1993         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1994         directory.
1996 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1998         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1999         src/roff/troff/input.cc (usage): Updated.
2001         * NEWS, doc/groff.texinfo: Updated.
2003 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2005         * src/libs/libgroff/searchpath.cpp
2006         (search_path::open_file_cautious): New function which also handles
2007         `-' as stdin and stdout depending on the access mode.
2008         * src/include/searchpath.h (search_path): Updated.
2010         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2011         * src/devices/grops/ps.h: Include `searchpath.h'.
2012         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2013         Open resource file with `include_search_path.open_file_cautious'.
2014         * src/devices/grops/grops.man: Document new `-I' switch.
2016         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2017         (main), src/devices/grolj4/lj4.cpp (main),
2018         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2020         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2021         Replaced with...
2022         (include_search_path): New global variable.
2023         (include_path_append): Removed.
2024         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2025         (do_file): Simplify, using new
2026         `include_search_path.open_file_cautious'.
2028         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2029         parameter.
2030         (main): Pass arguments to `-I' to both troff and devices.
2031         Improve handling of `-V'.
2032         * src/roff/groff/groff.man: Document changes to -I and -V.
2034         * src/roff/troff/input.cpp (include_search_path): New global
2035         variable.
2036         (next_file, source, ps_bbox_request, transparent_file,
2037         process_input_file): Use new
2038         `include_search_path.open_file_cautious'.
2039         (main) Handle `-I' switch.
2040         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2041         Use new `include_search_path.open_file_cautious'.
2042         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2043         * src/roff/troff/troff.man: Document new `-I' switch.
2045 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2047         Support multiple calls of .Lb in LIBRARY section.
2049         * tmac/doc-common (doc-in-library-section): New register.
2050         (doc-section-library): New string.
2051         (Sh): Set `doc-in-library-section'.
2052         (Rd): Updated.
2053         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2054         if in LIBRARY section.
2055         * tmac/doc.tmac (doc-save-global-vars): Updated.
2056         * NEWS, tmac/groff_mdoc.man: Updated.
2058 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2060         * tmac/doc-common (doc-default-operating-system): New variable.
2061         (Os): Use it.
2063 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2065         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2067 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2069         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2070         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2071         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2072         $(DEVFILES) are not empty.
2073         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2075 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2077         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2078         with parallel runs of `make'.
2080 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2082         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2083         insert SORT_SEP.  With certain combinations of sort specifications,
2084         refer sorted entries in the wrong order.  In particular, entries
2085         with a missing field should be be sorted before all entries that
2086         have that field, before refer looks to the next field.
2088 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2090         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2091         g++ linker is used.  Reported by Mark J. Reed
2092         <mark.reed@turner.com>.
2094 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2096         Add key character `x' to tbl which makes tbl call a user-defined
2097         macro on a table cell.
2099         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2100         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2101         `set_modifier' after printing the compatibility request.
2102         (set_modifier): Print call to `m->macro' if not empty.
2103         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2104         `macro'.
2105         (process_format): Implement cases `x' and `X'.
2106         * src/preproc/tbl/tbl.man, NEWS: Updated.
2108 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2110         * doc/groff.texinfo: Minor fixes.
2112 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2114         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2116 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2118         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2119         argument list to nothing if there is no file to match.  Use `ls' as
2120         a protection, similar to autoconf.
2122         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2123         empty argument lists.
2125         * doc/groff.texinfo: Improve documentation how vertical spacing
2126         and line breaks interact.
2127         Other minor fixes.
2129         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2131 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2133         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2134         EPS (using eps2eps or similar programs to compute the bounding box).
2136 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2138         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2139         * doc/texinfo.tex: Updated from texinfo 4.6.
2140         * README.CVS: From now on we need texinfo 4.6.
2142 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2144         Add requests `dei1' and `ami1' for completeness.
2146         * src/roff/troff/input.cc (calling_mode): Remove
2147         CALLING_DISABLE_COMP.
2148         (comp_mode): New enumeration.
2149         (do_define_string, define_string, define_nocomp_string,
2150         append_string, append_nocomp_string): Updated.
2151         (do_define_macro): Add third parameter.
2152         (define_macro, define_nocomp_macro, define_indirect_macro,
2153         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2154         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2155         functions.
2156         (ignore): Updated.
2157         (init_input_requests): Add `dei1' and `ami1'.
2159         * tmac/trace.tmac: Handle de1 and am1.
2160         (de): Improve tracing message.
2161         (am): Add missing `do'.
2162         (return): Use de1.
2164         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2165         Document new requests.
2167 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2169         Add option -G to .MPIMG to insert a gap between text and the image.
2171         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2172         www-finish-left-ll): Updated.
2173         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2174         (MPIMG): Make option -L and -R optional.
2175         Implement option -G.
2177 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2179         * src/devices/grohtml/post-html.cpp
2180         (html_printer::do_file_components): Don't use `stdout' as lvalue
2181         since it can be a macro.
2183 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2185         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2186         the corresponding test in aclocal.m4.
2188 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2190         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2191         names but RGB values directly.  Otherwise pnmtopng depends on
2192         an external file `rgb.txt' which maps colour names to values.
2194 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2196         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2197         * configure, src/include/config.hin: Regenerated.
2199         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2201 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2203         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2205 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2207         * *.man: Switch to non-compatibility mode temporarily if GNU
2208         syntax extensions are used in the particular man page.
2210         * PROBLEMS: Add solutions for SGR problems.
2212 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2214         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2215         used to change the drawing scheme.
2217         * src/devives/grotty/tty.cpp (bold_flag_option,
2218         underline_flag_option, italic_flag_option, reverse_flag_option,
2219         bold_underline_mode_option): New global variables.
2220         (update_options): New function.
2221         (tty_printer::special): Call update_options.
2222         (main): Don't set xxx_flag but xxx_flag_option, then call
2223         update_options.
2225 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2227         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2229         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2230         values.
2231         (hline_char, vline_char): New global variables.
2232         (tty_printer::tty_printer): Initialize them.
2233         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2234         horizontal and vertical lines.
2235         (crossings): New global array.
2236         (tty_printer::end_page): Use it to determine the proper crossing
2237         character for -Tutf8.
2239 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2241         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2242         (HTMLDOCFILES): Revert to `pic.html'.
2243         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2245 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2247         * doc/pic.ms: Improve documentation of absolute coordinates.
2248         Document absolute positioning of pictures.
2250         * NEWS: Add new pic capability.
2252 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2254         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2255         Rewritten.
2257 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2259         Implement support for dashed and dotted ellipses in pic.  Based on
2260         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2262         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2263         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2264         functions.  Ellipse arcs are approximated with circle arcs.
2265         * src/preproc/pic/common.h (common_output): Updated.
2266         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2267         functions.
2268         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2270         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2272 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2274         Make grotty work on platforms which have unsigned char as the
2275         default for char.  Based on a patch by Thomas Klausner
2276         <wiz@netbsd.org>.
2278         * src/devices/grotty/tty.cpp (schar): New typedef.
2279         Updated calls to declare_ptable and implement_ptable.
2280         (glyph): Use schar for back_color_idx and fore_color_idx.
2281         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2282         (tty_printer::tty_color, tty_printer::tty_printer,
2283         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2285 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2287         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2288         * src/roff/nroff/nroff.man: Updated.
2290 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2292         * NEWS, tmac/groff_www.man: Updated.
2293         * doc/Makefile.sub: Updated.
2295 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2297         Implement support for multiple HTML output files.
2299         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2300         -j command line option.
2302         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2303         global variables.
2304         (file): New fields `new_output_file', `require_links',
2305         `output_file_name'.
2306         (file::file): Updated.
2307         (files::set_file_name, files::set_links_required,
2308         files::are_links_required, files::is_new_output_file,
2309         files::file_name, files::next_file_name): New functions.
2310         (header_desc): New fields `no_of_level_one_headings',
2311         `header_filename'.
2312         (header_desc::header_desc): Updated.
2313         (header_desc::write_headings): Handle multiple files.
2314         (html_printer::write_header): Save file name in which header occurs.
2315         (html_printer::determine_header_level): Possibly split files on
2316         level one headings.
2317         (html_printer::do_links, html_printer::troff_tag): Updated.
2318         (html_printer::insert_split_file, html_printer::do_job_name,
2319         html_printer::emit_link, html_printer::write_navigation,
2320         html_printer::do_file_components): New functions.
2321         (html_printer::~html_printer): Handle multiple files.
2322         (main): Handle command line option `-j'.
2324         * src/devices/grohtml/grohtml.man: Updated.
2326         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2327         which splits file.
2329         * tmac/www.tmac (JOBNAME): New macro.
2330         * tmac/s.tmac (SH-NO-TAG): New macro.
2331         (@SH): Call SH-NO-TAG.
2332         (@NH): Updated.
2334 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2336         * tmac/groff_mdoc.man: Improve documentation of punctuation
2337         characters.
2339 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2341         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2343 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2345         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2347 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2349         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2350         after `/*' and `*/'.
2351         Fix spacing.
2352         (Fn, Fo): Reduce indentation in synopsis.
2354         * tmac/doc-common (doc-check-depth): New macro.
2355         (doc-end-macro, Sh, Ss): Use it.
2356         (Cd): Fix behaviour in synopsis.
2357         (In): Make it parsed and callable.
2358         If not in the synopsis, represent the C header file enclosed in
2359         angle brackets.
2360         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2361         Use minus, not hyphen.
2363         * tmc/groff_mdoc.man: Updated.
2365 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2367         Integrated grap2graph, contributed by Eric S. Raymond.
2369         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2370         New files.
2371         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2372         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2374 2003-07-01  Colin Watson  <cjwatson@debian.org>
2376         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2377         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2379 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2381         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2383 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2385         * doc/Makefile.sub (CLEANADD): Remove all files created by
2386         running `make groff.{pdf,dvi}'.
2388         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2389         src/xditview also.
2391 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2393         * Makefile.in (SHELL): Define as @SHELL@.
2394         (mkinstalldirs): Use $(SHELL).
2395         (MDEFINES): Add $(SHELL).
2396         * Makefile.comm (SHELL): Removed.
2398 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2400         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2401         The X11 documentation files use them.
2402         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2404 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2406         * tmac/e.tmac (@C): Handle .ad also.
2408 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2410         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2412         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2413         Assign `n' even here.  It is possible to construct a node
2414         immediately following an escape character:
2416           .di xx
2417           \?\\\?a
2418           .br
2419           .di
2420           .xx
2422 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2424         * README.WIN32: Removed.
2425         * MANIFEST: Updated.
2427 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2429         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2431 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2433         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2434         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2436 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2438         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2439         is done by the calling function.
2441 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2443         * tmac/X.tmac: Fix definition of `em'.
2445 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2447         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2448         argument.
2450 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2452         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2453         to make items work which consist only of a tag.
2455 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2457         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2458         aren't stretched in a tag (this can fail with unformatted boxes).
2459         Instead, insert a break and go back one line.
2461 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2463         * src/roff/troff/input.cc (return_macro_request): If called with
2464         argument pop macro twice.  We need this to trace `return'.
2466         * tmac/trace.tmac: Handle `return'.
2467         Fix typos.
2469         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2470         Document.
2472 2003-05-15  Larry Kollar  <kollar@alltel.net>
2474         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2475         registers `FPS', `FVS', and `FPD'.
2477 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2479         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2480         correctly.
2482 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2484         * tmac/groff_mdoc.man: Slight improvements.
2486 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2488         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2489         `doc-header-space' after header line if register `cR' is set.
2491 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2493         * TODO: Updated.
2495 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2497         * tmac/doc-common (Nd): Use \[em].
2499 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2501         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2502         doc-footer-space): Initialize to 0.5i.
2503         (doc-setup-page-layout): Don't set doc-header-space and
2504         doc-footer-space.
2506 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2508         * REVISION: Set to 1.
2510         * doc/pic.ms: Document possible problems with `figname'.
2512 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2514 Version 1.19 released
2515 =====================
2517         * VERSION: Set to 1.19.
2518         * REVISION: Set to 0.
2519         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2521         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2522         Define charset as `US-ASCII' in html output.
2524         * tmac/www.tmac (ULE): Add missing scaling indicator.
2526         * win32-diffs: Removed.
2528 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2530         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2531         `.da' and `.boxa'.
2532         Document how to insert discardable whitespace with `.ss'.
2534 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2536         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2537         work with plain TeX also.
2539         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2541 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2543         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2544         Use a loose DTD.
2546 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2548         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2549         vbox with positive height and zero depth if in TeX mode.
2551         * NEWS: Document glyph name changes for grodvi and grolj4.
2553 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2555         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2556         * doc/pic.ms: Fixed.
2558 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2560         HP-UX 10.20 has `snprintf' but it isn't declared.
2562         * configure.ac: Add declaration test for snprintf.
2563         * configure: Regenerated.
2564         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2565         * src/include/config.hin: Regenerated.
2567 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2569         Add keyword `figname' to pic, specifying the name of the picture
2570         box in TeX mode.  Based on a patch from William J Poser
2571         <wjposer@unagi.cis.upenn.edu>.
2573         * src/preproc/pic/pic.y: New token `FIGNAME'.
2574         (macro_name): New rule of type <str>.
2575         (placeless_element): Handle `FIGNAME'.
2576         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2577         * src/preproc/pic/main.cpp (graphname): New global variable.
2578         (do_picture): Initialize `graphname'.
2579         * src/preproc/pic/pic.h: Updated.
2580         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2581         `graphname'.
2582         Simplify TeX code.
2583         (tex_output::text): Beautify output.
2584         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2585         `shaded' and `outlined' unconditionally.
2586         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2587         Minor improvements.
2589         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2590         greater is necessary.
2592 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2594         Add option -r to soelim to avoid emission of `.lf' lines.
2595         Add option -t to produces TeX comment lines instead of `.lf' lines.
2597         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2598         and `tex_flag'.
2599         (usage): Updated.
2600         (main): Handle `-r' and `-t'.
2601         (set_location): Handle `raw_flag' and `tex_flag'.
2602         * src/preproc/soelim/soelim.man, NEWS: Updated.
2604 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2606         * tmac/hyphenex.sh: Replaced with...
2607         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2608         nightmares.
2610         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2611         if --quiet is used for the configure script.
2612         * configure: Regenerated.
2614 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2616         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2617         Add `const' to second argument.
2618         (html_printer::add_table_end): Add `const' to argument.
2619         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2620         `const' to arguments.
2621         * src/devices/grohtml/html-text.h: Updated.
2623         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2624         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2625         argument.
2627         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2628         cast for integer constant.
2630         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2631         (writeNbytes): Add `const' to first argument.
2632         (writeString): Add `const' to argument.
2633         (char_buffer::can_see): Add `const' to third argument.
2634         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2635         `const' to argument.
2636         * src/preproc/html/pushback.h: Updated.
2638         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2639         (include_path_append): Add `const' to argument.
2640         (do_file): Updated.
2642         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2643         for `value'.
2644         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2645         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2646         for `value'.
2647         (unicode_decompose_init::unicode_decompose_init): Updated.
2648         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2649         for `value'.
2650         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2651         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2652         argument.
2654         * tmac/hyphenex.sh: Make script more portable by using a here
2655         document.
2657 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2659         Renamed all `*.cc' files to `*.cpp'.
2660         Updated all configuration files, makefiles, and documentation.
2662 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2664         * tmac/hyphenex.sh: Slight improvements.
2666 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2668         * font/devascii/R.proto, font/devcp1037/R.proto,
2669         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2670         character slots with unnamed glyphs.
2672         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2673         (an-first): New global variable.
2674         (an-header): Emit vertical space between multiple man pages.
2676 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2678         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2679         values.
2681 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2683         * PROBLEMS: Revised.
2685 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2687         * doc/webpage.ms: Improved.
2689 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2691         Add register \n[.height] which returns the value of \H.
2692         Add register \n[.slant] which returns the value of \S.
2694         * src/roff/troff/env.cc (init_env_requests): Implement.
2695         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2696         Document.
2698 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2700         * tmac/html.tmac: Move some of the data into html-end.tmac.
2701         Remove most of the character translations for eqn since html fonts
2702         now cover those characters.
2703         Load www.tmac.
2704         * tmac/html-end.tmac: New file.
2705         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2706         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2707         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2709 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2711         * man/groff_out.man: Document negative values of `N' if -Thtml is
2712         used.
2714 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2716         * Makefile.comm (depend.temp): Check location of YTABC.
2718 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2720         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2721         binary path.
2722         (groff_bin_path): Rename to GROFF_BIN_PATH.
2723         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2724         * doc/Makefile.in (TROFFBIN): New variable for troff
2725         binary path.
2726         (GROFFBIN): New variable for groff binary path.
2727         (groff_bin_path): Rename to GROFF_BIN_PATH.
2728         (TROFF): Use TROFFBIN.
2729         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2730         * doc/Makefile.sub (GROFFBIN): New variable for groff
2731         binary path.
2732         (groff_bin_path): Rename to GROFF_BIN_PATH.
2733         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2735         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2736         with INSTALL_SCRIPT.
2737         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2738         * Makefile.dev (all): Depend on DEVSCRIPTS.
2739         (install_dev): Likewise.
2740         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2741         scripts.
2742         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2743         (DEVGENSCRIPTS): New variable to hold generated scripts.
2745 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2747         * src/libs/libdriver/input.cc (IntArray::operator[],
2748         IntArray::get_data): Remove meaningless `const' in return value.
2750         * README.CVS: New file.
2752 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2754         Check for stdint.h in C++, not in C.
2756         * aclocal.m4 (GROFF_STDINT_H): New function,
2757         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2758         AC_CHECK_HEADERS.
2759         * configure, src/include/config.hin: Regenerated.
2760         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2763         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2764         with a negative value, representing the width of the unbreakable
2765         space (only for -Thtml).  grohtml then converts this back to
2766         &nbsp; and uses the value of N as its width.
2768         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2769         unbreakable_space_node::tprint): Emit `N-<width>'.
2770         * src/include/printer.h (printer::set_numbered_char): Make it
2771         virtual.
2772         Make members `font_table' and `nfonts' protected instead of private.
2773         * src/devices/grohtml/post-html.cc
2774         (html_printer::set_numbered_char): New member function.
2777         * src/libs/libgroff/maxfilename.cc:
2778         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2780         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2781         emit word marker.
2783 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2785         * man/roff.man: Small fixes.
2787 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2789         Make groff independent from locale's numeric settings.
2791         * configure.ac: Check for `setlocale'.
2792         * configure, src/include/config.hin: Regenerated.
2794         * src/include/lib.h: Handle HAVE_SETLOCALE.
2796         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2797         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2798         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2801         * doc/groff.texinfo: Change dir category to `Typesetting'.
2802         (Man font macros): Mention that there is no space between arguments
2803         of .BI and friends.
2805         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2806         (*printer::change_color, *printer::change_fill_color): Add missing
2807         `const'.
2809 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2811         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2812         html_table::is_gap): Compute table widths after converting border
2813         positions to avoid rounding errors.
2815 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2817         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2818         `space_emitted' properly.
2820 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2822         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2823         (html_table::set_linelength): Don't add 1.
2824         (html_table::add_indent): Don't subtract 1.
2826         * tmac/html.tmac: Set default page offset to zero.
2828 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2830         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2832         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2833         unbreakable_space_node::tprint): New functions.
2834         (troff_output_file): Make space_char_hmotion_mode::tprint and
2835         unbreakable_space_node::tprint to friends.
2836         * src/roff/troff/node.h: Updated.
2838         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2839         in the HTML standard).
2841 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2843         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2844         Otherwise, the following code
2846           .di xxx
2847           .ps 10
2848           a
2849           .br
2850           .di
2851           x\*[xxx]
2853         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2854         font changes in diversions for -Thtml.
2856         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2857         `HTML-TAG'.
2858         (an-do-tag-html): Merge with ...
2859         (an-do-tag): This macro.
2860         Change code slightly to circumvent grohtml bug.
2861         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2863         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2864         html_table::is_gap): Round `width' properly.
2866         * tmac/html.tmac: Provide some default layout parameters for
2867         grohtml.
2869         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2870         command.
2872 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2874         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2876 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2878         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2879         defined.
2881 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2883         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2884         `.vs'.
2885         * doc/groff.texinfo: Updated.
2887 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2889         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2890         TOKEN_END_TRAP>: Reset `have_input'.
2892 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2894         * src/roff/groff/groff.man: Mention groff_trace man page.
2896 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2898         * Makefile.in (LIBEXT): New variable to indicate the file extension
2899         of library files.  Computed heuristically from $(OBJEXT).
2900         (MDEFINES): Add $(LIBEXT).
2901         * Makefile.lib, Makefile.comm: Use it.
2903         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
2904         overlong lines into smaller chunks.
2905         (get_binary): New function.
2906         (main): Use them.
2907         * src/utils/pfbtops/pfbtops.man: Updated.
2909 2003-03-15  Colin Watson  <cjwatson@debian.org>
2911         * src/roff/groff/groff.man: Minor syntax fix.
2913 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
2915         * src/devices/grops/ps.cc (ps_printer::media_set,
2916         ps_printer::~ps_printer): Handle zero paper width and length.
2918 2003-03-13  Werner LEMBERG  <wl@gnu.org>
2920         Add options -p and -l to grodvi.
2922         * src/devices/grodvi/dvi.cc: Include paper.h.
2923         (landscape_flag, user_paper_length, user_paper_width): New global
2924         variables.
2925         (dvi_printer::begin_page): Emit `papersize' special.
2926         Set color after initialization of `cur_h' and `cur_v'.
2927         (main): Add options `-l' and `-p'.
2928         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2929         * src/devices/grodvi/grodvi.man, NEWS: Updated.
2931         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2933 2003-03-12  Werner LEMBERG  <wl@gnu.org>
2935         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2936         * man/groff_tmac.man: This man page.
2937         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2938         deprecated.
2940         * tmac/X.tmac: Don't load pspic.tmac.
2942 2003-03-11  Werner LEMBERG  <wl@gnu.org>
2944         Make variable `pr' local to libdriver/input.cc.  Based on a patch
2945         by Bernd Warken <bwarken@mayn.de>.
2947         * src/include/driver.h (pr): Removed.
2949         * src/libs/libdriver/input.cc (pr): New global variable.
2950         (do_file): Deallocate `pr'.
2951         * src/libs/libdriver/printer.cc (pr): Removed.
2953         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2954         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2955         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2956         (main): Don't delete `pr'.
2958 2003-03-10  Werner LEMBERG  <wl@gnu.org>
2960         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2961         * tmac/papersize.tmac: New file.
2962         * tmac/troffrc: Include `papersize.tmac'.
2963         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2964         * tmac/an-old.tmac: Set LT to LL by default.
2966         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2967         doc/groff.texinfo: Updated.
2969         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2970         bug which caused all odd iso papers to have wrong dimensions.
2972         * src/devices/grops/ps.cc (user_paper_width): New global variable.
2973         (main) <'p'>: Set `user_paper_width' also.
2974         (ps_printer::media_width, ps_printer::media_height): Use values
2975         given with option `-p'.
2977 2003-03-09  Werner LEMBERG  <wl@gnu.org>
2979         * src/include/nonposix.h: Provide default for SET_BINARY.
2981         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2982         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2983         unconditionally.
2985         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2986         (main): Treat \r\n as \n.
2988 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2990         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2991         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2993 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2995         Added support to access more than 256 glyphs in Type 1 fonts.
2997         * src/devices/grops/ps.cc (subencoding): New structure.
2998         (style): Add `sub' field.
2999         Updated all users.
3000         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3001         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3002         functions.
3003         Updated all users.
3004         (ps_printer::set_char): Use `set_subencoding'.
3005         (make_subencoding_name): New function.
3006         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3007         (ps_printer::~ps_printer): Emit subencoding definitions.
3009         * src/devices/grops/psrm.cc (valid_input_table): New array to
3010         properly support EBCDIC.
3011         (white_space): Add `\f'.
3012         (ps_get_line): Change first argument to be of type `string &'.
3013         Updated all callers.
3014         This allows to get lines of arbitrary length.
3015         Use `valid_input_table'.
3016         Remove warning about non-conforming PS line length.  This seems
3017         not to be of great importance -- for example, dvips don't emit
3018         a warning either.
3019         (PS_LINE_MAX): Removed.
3020         (matches_comment): Change first argument to be of type `string &'.
3022         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3024         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3025         %AGL_to_unicode, %default_ligatures): New hash tables.
3026         Read all map entries.
3027         Add unencoded characters.
3028         Check for default ligatures if there are no `L' entries.
3029         Print all kern entries.
3030         Print all characters in charset.
3031         * src/utils/afmtodit/afmtodit.man: Updated.
3033         * font/devps/*: Regerated all fonts.
3035         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3036         of characters, just use `.trin'.  Otherwise the mapping depends
3037         on the font encoding.
3038         * tmac/ps.tmac: Add `fi' and `fl'.
3039         Improve `Fi' and `Fl'.
3040         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3041         * tmac/Xps.tmac: Fix `em'.
3043         * NEWS: Updated.
3045 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3047         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3048         `have_input'.
3050 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3052         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3054         * font/devps/generate/textmap: Remove entry `similarequal'.
3055         * font/devps/symbolmap: Updated.
3057 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3059         * src/libs/libgroff/font.cc (font::load): Fix error message for
3060         bad character type.
3062         * src/devices/grops/grops.man: Improve documentation of the -b
3063         flag.
3065         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3066         `ascii' and `cp1047'.
3068 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3070         Document composite glyphs and the `composite' request.
3072         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3074 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3076         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3077         * font/devdvi/*EC: Updated.
3079         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3080         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3081         * tmac/troffrc: Load `composite.tmac'.
3082         * tmac/Makefile.sub (NORMALFILES): Updated.
3084         * doc/groff.texinfo (Input Encodings): New section.
3085         * NEWS: Updated.
3087 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3089         * doc/texinfo.tex: New version 2003-02-11.06.
3091         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3092         * tmac/groff_mdoc.man: Fix description of `Dt'.
3094 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3096         * font/devps/prologue.ps: Fix for included Postscript that does
3097         a setpagedevice -- which is now safely ignored.
3099         * NEWS: Updated.
3101         * src/devices/grops/ps.cc: Now sets the page size in the generated
3102         document.  This is done in two ways: Via a %%-comment for gv and
3103         the like, and via a PageSize and setpagedevice for programs that
3104         understands Postscript proper, like ps2pdf.
3106         * src/devices/grops/ps.h: New broken-flag to avoid page size
3107         definition, if required.
3109         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3111         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3112         Not really necessary due to the fix in prologue.ps, but cleaner:
3113         Such information does not belong in an .eps file.
3115         * doc/Makefile.sub: See doc/Makefile.in.
3117 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3119         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3120         instead of P1 since the latter is broken in some versions of netpbm.
3121         * configure: Updated.
3123 2003-02-26  Larry Kollar  <kollar@alltel.net>
3125         Make man pages more customizable.
3127         * tmac/an-old.tmac (FT): New register holding footer distance from
3128         bottom.
3129         (HF): New string holding the default heading font.
3130         (TH): Handle registers `IN' and `SN' set on the command line.
3131         Use `FT'.
3132         (PT, BT): New strings to customize header and footer lines.
3133         (an-header, an-footer): Use them.
3134         (SH, SS): Use `HF'.
3135         * tmac/groff_man.man: Document changes.
3137         * doc/groff.texinfo: Document man changes.
3138         Document Ultrix extensions of man.
3140 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3142         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3143         `have_input' after changing back to old environment.
3145         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3146         function up to be defined before first call.  This is necessary to
3147         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3149         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3150         the default font directory also.  Based on a patch from James
3151         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3152         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3153         * src/utils/afmtodit/afmtodit.man: Document it.
3155         * NEWS: Updated.
3157         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3159 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3161         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3162         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3163         * configure.ac: Use it.
3164         * configure: Regenerated.
3165         * Makefile.in: Updated.
3167         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3168         (CLEANADD): Add www.tmac-sed.
3169         (pnmtops_nosetpage): Define default.
3170         (install_data): Handle www.tmac-sed and substitute
3171         @PNMTOPS_NOSETPAGE@.
3172         (stamp-sed): Add www.tmac.
3173         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3174         It now breaks URLs at suitable places.
3175         (www:substring_ok): New register set by...
3176         (www:@test_substring): New macro.
3177         (www:error): New alias to www-error.
3178         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3179         New macros.
3180         (URL): Use www:url_breaks.
3181         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3182         (CDS, CDE): New macros.
3184 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3186         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3187         buffer overflow.
3189 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3191         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3192         can be negative also.
3194         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3195         `int16'.
3196         (read_char_table): Avoid negative ascenders.
3197         (output_charset): Add cast.
3198         * font/devlj4/*: Regenerated.
3200         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3201         possible.
3203         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3204         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3205         of `<>'.
3206         * font/devdvi/*: Regenerated.
3208         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3209         normal width, while the previously used characters (U+2329 and
3210         U+232A) are classified as wide due to canonical equivalence with the
3211         CJK punctuation characters U+3008 and U+3009.
3213         * font/devutf8/R.proto: Updated.
3214         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3216         * man/groff_char.man: Simplify handling of table traps by
3217         introducing `start block' and `end block' macros.
3218         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3219         (DL): Make it work with Unix troff also.
3220         Fix code values of `la' and `ra'.
3222         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3224 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3226         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3227         New destructor, fixing a major memory leak.
3229 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3231         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3232         to be in conformance with Unicode 3.0 and newer.
3234         * font/devlj4/generate/text.map: Add `Eu'.
3235         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3236         * font/devlj4/S: Regenerated.
3238         * man/groff_char.man: Completely rewritten.
3240         * doc/groff.texinfo: Fix description of request and macro arguments.
3242 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3244         Valgrind fixes.
3246         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3247         Deallocate `columns' list.
3248         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3249         New destructor.
3250         (text_glob::text_glob_html, text_glob::text_glob_special,
3251         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3252         text_glob::text_glob_tag): Avoid memory leaks.
3253         (text_glob::remember_table): Free memory before reassigning.
3255 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3257         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3258         alias `hbar'), the Planck constant over two pi.
3260         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3261         `+e' for position 34.
3262         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3263         `u2662' and `u2661'.
3264         * font/devdvi/{MI,S}: Regenerated.
3265         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3266         * font/devlbp/*: Add `hbar' alias.
3267         * font/devlj4/generate/special.map: Ditto.
3268         * font/devlj4/S: Regenerated.
3269         * font/devps/generate/symbolchars: Add `+e'.
3270         * font/devps/generate/textmap: Fix PS name for `-h'.
3271         Add `hbar' alias.
3272         * font/devps/symbolmap: Regenerated.
3274         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3276         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3277         `-h', `hbar'.
3278         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3279         `-h'.
3281         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3282         `hbar'.
3283         * tmac/tty-char.tmac: Add `+e'.
3285 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3287         Another round trying to really fix problems with `have_input'.
3289         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3290         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3292         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3293         handling if both foreground and background colors are default.
3295         * doc/groff.texinfo (Debugging): Document .lf differences to
3296         AT&T troff.
3298 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3300         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3301         null-bytes in created string.
3303         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3304         alias_macro, lookup_request): Improve warning messages.
3306         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3307         not `strdup'.
3308         Free `last_image_filename'.
3310         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3311         `buffer'.
3312         (imageList::createPage, imageList::createImage): Use `free', not
3313         `a_delete'.
3314         (imageItem::~imageItem): Free `imageName'.
3315         (addRegDef): Use `strsave', not `strdup'.
3316         (get_resolution): Free `pathp'.
3318 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3320         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3321         to `dummy'.
3323 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3325         Add memory management for colors to deallocate unnamed colors
3326         properly.
3328         * src/include/color.h (color): New members `free_list' and `next'.
3329         New member functions `new' and `delete'.
3330         Add destructor.
3331         * src/libs/libgroff/color.cc: Implement it.
3333         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3334         for array size of new operator.
3336         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3337         redundant comparison.
3339         * src/roff/troff/input.cc (word_space_node::reread,
3340         hmotion_node::reread): Avoid warning about unused parameter.
3341         (reset_output_registers): Remove redundant parameter.
3342         (define_color): Undo change 2003-02-12.
3344         * src/roff/troff/reg.h: Updated.
3346         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3347         output_file::put_filename, real_output_file::really_put_filename,
3348         ascii_output_file::really_print_line,
3349         break_char_node::get_hyphen_list): Avoid warning about unused
3350         parameter.
3351         (suppress_node::tprint): Updated.
3353         * configure.ac: Check declaration for rand() and srand().
3354         * configure: Regenerated.
3356         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3357         conditionally.
3358         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3359         and srand().
3361         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3362         to avoid compiler warnings.
3364         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3365         unused.
3367         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3368         is unused.
3369         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3370         (unused) parameter.
3371         Updated all callers.
3373         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3374         is unused.
3375         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3376         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3378         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3379         Parameter is unused.
3380         (html_printer::add_table_end): Define parameter conditionally.
3381         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3382         is unused.
3384         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3385         (lbp_printer::set_char): Last parameter is unused.
3387         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3389 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3391         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3392         Make \D'f ...' move horizontally again for backwards compatibility.
3393         Replace it with \D'Fg ...' where appropriate to avoid dependency
3394         on horizontal resolution.
3396         * src/roff/troff/input.cc (do_get_long_name): New function.
3397         (get_long_name): Call it.
3399         (read_draw_node): Handle `\D'Fx ...' by calling ...
3400         (read_color_draw_node): New function.
3402         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3403         `end'.
3404         Pass it to `do_get_long_name' which is used instead of
3405         `get_long_name'.
3407         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3408         unnecessary value guard.
3409         (parse_D_command) <'f'>: Add horizontal shift.
3411         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3412         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3413         (FILL_MAX): Removed.
3415         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3416         Updated.
3418 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3420         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3421         do_zero_width): Push `\n' if closing delimiter is missing.
3423         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3424         <'F'>: Make \F non-transparent at the beginning of line.
3425         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3426         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3427         `have_input'.
3429         (define_color): Free color in case of reassignment.
3431         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3432         @DefescListEnd): Use @Var, not @var.
3433         Fix all calls.
3435         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3437         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3438         `shaded' and `outlined' arrays.
3439         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3440         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3441         Use strsave.
3442         (closed_object::set_fill_color): Ditto.
3443         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3444         instead of strdup.
3445         (troff_output::reset_color): Use a_delete instead of free.
3446         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3448 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3450         * doc/groff.texinfo: Improve documentation of `ad'.
3451         Document that \D'f...' is dependent on the horizontal resolution.
3452         * man/groff_diff.man: Improve documentation of \D'f...'.
3454         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3455         compensating \h'...' for \D'f ...' since the latter no longer moves
3456         current position.
3457         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3459 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3461         Improve error messages for `x F' (and `F') commands.
3463         * src/include/error.h: Add declaration for
3464         `current_source_filename'.
3465         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3466         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3467         parameter for source file string.
3468         Updated all callers.
3470         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3471         (remember_source_filename): New function.
3472         (parse_x_command <'F'>, do_file <'F'>): Use it.
3474 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3476         Make grotty not emit warnings about unknown colors more than
3477         necessary.
3479         * src/devices/grotty/tty.cc: Include `ptable.h'.
3480         (TTY_MAX_COLORS): Removed.
3481         (DEFAULT_COLOR_IDX): Defined to -1.
3482         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3483         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3484         Change `tty_colors' to be a ptable.
3485         First arg of `put_color' is now `char'.
3486         New functions `make_rgb_string' and `tty_color'.
3487         (tty_printer::tty_printer): Use `tty_color'.
3488         (tty_printer::color_to_idx): Return value is now `char'.
3489         Use `tty_color'.
3491         * src/include/color.h (color): Add `print_color' member function.
3492         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3494 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3496         Valgrind fixes.
3498         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3499         encoding file.
3501         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3502         assume that value has been allocated with `new[]', thus use
3503         `a_delete' for deallocation.
3505         * src/libs/libdriver/input.cc (get_integer_arg,
3506         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3507         where appropriate.
3509         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3510         * src/libs/libgroff/nametoindex.cc
3511         (character_indexer::named_char_index): Use `new <type>[1]'.
3513         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3514         <type>[1]'.
3515         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3516         (split_text): Use `a_delete'.
3518         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3519         <type>[1]'.
3521         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3522         harmless memory leak.
3523         (hyphen_trie::read_patterns_file): Initialize `buf'.
3524         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3525         Initialize `current_fill_color'and `current_glyph_color'.
3526         * src/roff/troff/glyphuni.cc
3527         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3528         * src/roff/troff/uniuni.cc
3529         (unicode_decompose_init::unicode_decompose_init): Ditto.
3530         * src/roff/troff/uniglyph.cc
3531         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3533 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3535         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3536         `access' before calling `unlink'.
3537         (do_file): Handle __EMX__.
3539         * src/include/nonposix.h: Handle __EMX__.
3541         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3542         (fontpath,tmacpath): Use it.
3543         (MDEFINES): Add it.
3544         Sorted alphabetically.
3546         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3547         @SEP@.
3548         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3549         @SEP@.
3551 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3553         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3554         New files, copied from gnulib.
3555         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3556         * configure.ac: Updated.
3557         * configure: Regenerated.
3559         * src/include/config.hin: Regenerated.
3560         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3561         Don't define `strcasecmp' as `strcmp'.
3562         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3563         Dont define `strncasecmp' as `strncmp'.
3565         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3566         Removed.
3568 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3570         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3571         s/unline/unlink/.
3573 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3575         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3577 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3579         Add US-english hyphenation exceptions (converted from Barbara
3580         Beeton's hyphenation exception log reports which appear irregularly
3581         in TUGBoat).
3583         * tmac/hyphen.us: Updated to latest version.
3584         * tmac/README: Updated.
3585         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3586         * tmac/troffrc: Load `hyphenex.us'.
3587         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3588         * doc/groff.texinfo: Updated.
3590 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3592         Improve hyphenation slightly.  This is a first step in redesigning
3593         the hyphenation algorithm to make it more flexible (e.g. allowing
3594         kerns and ligatures between the hyphenation character and the
3595         following character -- while not used normally in English, other
3596         languages like German would benefit).
3598         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3599         assertion instead of if-clause.
3600         Let `get_hyphen_list' return the number of involved characters in
3601         the hyphenation pattern instead of computing it directly (which
3602         often yields too small values).
3603         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3604         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3605         parameter.
3607 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3609         Fixing a bug which caused groff to hang if the hyphenation exception
3610         dictionary tried to grow.
3612         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3613         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3614         pointer to dictionary.
3616 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3618         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3619         negative left italic correction.
3620         * src/utils/afmtodit/afmtodit.man: Document it.
3622         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3623         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3624         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3626         * NEWS: Updated.
3628 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3630         * NEWS: Updated.
3632 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3634         * src/preproc/refer/refer.man: Mention REFER environment variable.
3636 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3638         Similar to \[is], the square root glyph (\[sr]) and the square root
3639         extension glyph (\[radicalex]) are now text symbols.  The new
3640         mathematical versions are called \[sqrt] and \[sqrtex],
3641         respectively.
3643         * font/devX*/S: Regenerated.
3644         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3645         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3646         * font/devdvi/EX, font/devdvi/S: Regenerated.
3647         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3648         * font/devlj4/generate/special.map: Add `sqrt'.
3649         * font/devlj4/S: Regenerated.
3650         * font/devps/generate/textmap: Add `sqrt'.
3651         * font/devps/S, font/devps/symbolmap: Regenerated.
3653         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3654         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3655         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3656         overlap horizontally.
3658         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3659         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3660         Fix `radicalex'.
3662         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3663         and `sqrtex' are overlapping glyphs.
3665 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3667         * font/devdvi/generate/texsy.map: Add `is'.
3668         * font/devps/symbolmap: Regenerated.
3669         * font/devdvi/*TC, MI, S: Regenerated.
3671         * tmac/dvi.tmac: Remove `is'.
3673 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3675         `is' is now a text symbol (only relevant for dvi).  The math variant
3676         can be accessed with `integral'.
3678         * font/devX*/S: Regenerated.
3679         * font/devdvi/generate/texex.map: Remove `is'.
3680         * font/devdvi/EX: Updated.
3681         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3682         * font/devlj4/generate/special.map: Ditto.
3683         * font/devlj4/S: Regenerated.
3684         * font/devps/generate/textmap: Add `integral'.
3685         * font/devps/S: Regenerated.
3687         * tmac/dvi.tmac: Define `is'.
3689         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3691         * src/preproc/tbl/main.cc (process_format): Fix error message.
3693 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3695         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3696         * font/devps/textmap: Fix entries for `ne' and `nc'.
3697         * font/devps/symbolmap: Regenerated.
3699         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3700         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3701         `38', `58', `78', `-+', `|=', `nc', `ne'.
3703         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3704         Use `schar' for `aq'.
3705         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3706         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3707         * tmac/tty.tmac: Add `ne'.
3709         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3710         for fallback glyphs.
3712 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3714         Add glyph `|='.
3716         * font/devX*/*: Regenerated.
3717         * font/devdvi/generate/ec.map: Remove `eq'.
3718         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3719         Assign `|=' to position 39.
3720         * font/devdvi/*EC, S: Regenerated.
3721         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3722         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3723         Assign `|=' to position 549.
3724         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3725         `equalmath'.
3726         Add `uni2243' for `|='.
3728         * tmac/ec.tmac: Add `eq'.
3729         * tmac/dvi.tmac: Add `=~'.
3730         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3731         `|='.
3733 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3735         * font/devdvi/generate/tc.map: Remove `**'.
3736         * font/devdvi/*TC: Regenerated.
3737         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3738         `78', `<<', `>>'.
3739         * font/devutf8/NOTES: Updated.
3741         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3742         Don't give default parameter to `set_macro'.
3743         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3744         instead of `set_macro'.
3745         (charinfo::setx_macro): Implement it.
3746         (charinfo::set_macro): Don't change `mode'.
3748         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3749         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3750         * tmac/dvi.tmac: Define `!=' with `.schar'.
3752 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3754         * font/devX*/S: Regenerated.
3755         * font/devdvi/generate/ec.map: Remove `pl'.
3756         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3757         * font/devdvi/*{TC,EC}: Regenerated.
3758         * font/devhtml/R.proto: Add `-+'.
3759         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3760         * font/devlbp/*: Remove `or'.
3761         * font/devlj4/generate/special.map: Remove `or'.
3762         * font/devlj4/S: Regenerated.
3763         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3764         `seveneighths', `threeeighths'.
3765         Remove `plusmath'.
3766         Replace `minusplus' with `uni2213'.
3767         * font/devps/symbolmap: Regenerated.
3768         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3769         Add `-+'.
3771         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3772         function.
3773         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3774         Call glyph_color and fill_color even if tcommand_flag isn't set.
3775         (make_node, node::add_char): Check not ci->is_fallback but
3776         ci->is_normal.
3778         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3779         * tmac/ec.tmac: Add .rchar entry for `f/'.
3780         Don't remove `12', `14', `34'.
3781         Define `pl' to be always roman.
3782         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3783         Define `18', `38', `58', `78'.
3784         * tmac/tty.tmac: Add `-+'.
3785         * tmac/dvi.tmac: Define `f/'.
3786         (dvi-frac): Use `f/'.
3787         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3788         Define `18', `38', `58', `78'.
3790 2002-12-15  Colin Watson  <cjwatson@debian.org>
3792         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3794 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3796         Add glyph `tno', a textual variant of `no'.
3798         * font/devX*/*: Regenerated.
3799         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3800         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3801         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3802         * font/devdvi/*: Regenerated.
3803         * font/devlbp/*: Add `tno'.
3804         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3805         * font/devlj4/*: Regenerated.
3806         * font/devps/generate/textmap: Replace `no' with `tno'.
3807         * font/devps/generate/symbolchars: Add `no'.
3808         * font/devps/*: Regenerated.
3810         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3812         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3813         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3815         * NEWS: Updated.
3817         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3818         Add definition for `sd'.
3819         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3821         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3823 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3825         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3826         mode to avoid rounding errors.
3827         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3829         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3830         src/roff/troff/troff.man: Improve documentation of -T.
3832 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3834         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3835         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3837 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3839         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3840         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3841         Scaling Euro.sansserif glyphs down to have the same height as
3842         digits.
3843         Removed unnecessary points; added some extrema.
3845         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3846         Regenerated.
3848 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3850         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3851         and `Euro.symbol.bold.slanted'.
3852         Improve some glyph offsets and widths.
3853         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3854         Regenerated.
3855         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3856         typo.
3857         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3858         direcory.
3860         * tmac/europs.tmac: Updated to new glyph indices.
3861         Use Euro.symbol for font familiy `A'.
3863         * doc/groff.texinfo: Minor improvements.
3865 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3867         * font/devdvi/generate.tc.map: s/%O/%0/.
3868         * font/devdvi/*TC: Regenerated.
3870         * src/roff/troff/div.cc (init_div_requests): Sorted.
3872         * tmac/dvi.tmac: Remove `Ye'.
3873         * tmac/ec.tmac: Remove `Ye'.
3874         Add .rchar entry for `de'.
3876         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3877         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3878         * NEWS: Updated.
3880 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3882         Add PS font for various Euro glyphs.
3884         * font/devps/generate/freeeuro.sfd: New master font file for
3885         pfaedit.
3886         * font/devps/generate/sfdtopfa.pe: New conversion script for
3887         pfaedit.
3888         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3889         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3890         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3891         `freeeuro.sfd'.
3892         * font/devps/EURO: Generated from `freeeuro.afm'.
3893         * font/devps/download: Add `freeuro.pfa'.
3894         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3895         `freeeuro.pfa'.
3897         * tmac/europs.tmac: New file.
3898         * tmac/ps.tmac: Include `europs.tmac'.
3899         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3901 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3903         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3904         * font/devdvi/S: Regenerated.
3905         * font/devhtml/R.proto: Fix `CR' and `ci'.
3906         Add `OK'.
3907         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3908         Remove `bs'.
3909         * font/devps/symbolmap: Regenerated.
3910         * font/devutf8/R.proto: Fix `CR' and `ci'.
3911         Add `OK'.
3912         * font/devutf8/NOTES: Updated.
3914         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3915         `ci'.
3916         Add `OK'.
3917         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3919         * tmac/dvi.tmac: Add `lh' and `rh'.
3920         * tmac/Xps.tmac: Fix `lh' and `rh'.
3921         * tmac/X.tmac: Add `OK'.
3922         * tmac/lj4.tmac: Ditto.
3924 2002-11-24  Werner LEMBERG  <wl@gnu.org>
3926         * font/devX*/S: Regenerated.
3927         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3928         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3929         * font/devdvi/generate/texsy.map: Remove `or' glyph.
3930         * font/devdvi/S: Regenerated.
3931         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3932         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3933         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3934         `bracketleftbt', `bracketrighttp', `bracketrightex',
3935         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3936         `braceex', `braceleftex', `bracerightex', `bracerighttp',
3937         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3938         `rb', and `bv'.
3939         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3940         * font/devutf8/NOTES: Updated.
3941         * font/devlj4/generate/special.map: Add glyph `braceex'.
3942         * font/devlj4/S: Regenerated.
3944         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3946 2002-11-14  Werner LEMBERG  <wl@gnu.org>
3948         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3949         and `vA'.
3950         Fix code for `an'.
3951         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3953         * doc/texinfo.tex: New version from texinfo 4.3.
3954         * doc/groff.texinfo: Updated for texinfo 4.3.
3955         Use @tie{} where appropriate.
3956         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3957         * font/devdvi/generate/tc.map: Remove `rn'.
3958         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3959         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3960         Fix code for `an'.
3961         * font/devX100/*, font/devX100-12/*, font/devX75/*,
3962         font/devX75-12/*: Regenerated.
3964         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3965         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3966         Improve definition of `an'.
3967         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3968         `ru'.
3969         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3970         * tmac/X.tmac: Add definition for `or'.
3971         * tmac/Xps.tmac: Undo change 2002-11-05.
3972         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3974 2002-11-11  Werner LEMBERG  <wl@gnu.org>
3976         * src/roff/troff/node.cc (troff_output_file::put_char): Always
3977         call flush_tbuf.
3979 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3981         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3982         defines a glyph which is searched after the check for fonts declared
3983         with `.special' (and before the check for all mounted special
3984         fonts).  `fschar' defines a glyph for a particular font which is
3985         searched after the check for fonts declared with `.fspecial' (and
3986         before the check for fonts declared with `.special').  `rfschar'
3987         removes glyphs defined with `fschar'.
3989         * src/roff/troff/token.h (char_mode): New enum.
3990         Declare do_define_character.
3991         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3992         `mode'.
3993         (charinfo::is_fallback): Updated.
3994         (charinfo::is_special): New method.
3995         * src/roff/troff/input.cc (do_define_character): Add and use
3996         optional second parameter used as a prefix for font-specific glyph
3997         names.
3998         (define_character, define_fallback_character): Updated.
3999         (define_special_character): New function.
4000         (init_input_requests): Add `schar'.
4001         (charinfo::charinfo, charinfo::set_macro): Updated.
4002         * src/roff/troff/node.cc: Include `stringclass.h'.
4003         (make_glyph_node): Handle special glyphs defined with `.schar' and
4004         `.fschar'.
4005         (define_font_special_character, remove_font_special_character): New
4006         functions.
4007         (init_node_requests): Sorted.
4008         Add `fschar' and `rfschar'.
4009         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4010         Document new requests.
4012         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4013         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4015 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4017         Added new font `SC' (cmtex10) to devdvi.
4019         * devdvi/generate/Makefile (FONTS): Add `SC'.
4020         (SC): New rule.
4021         * devdvi/generate/textex.map: New map file for cmtex.
4022         * devdvi/SC: New.
4023         * devdvi/Makefile.sub (DEVFILES): Updated.
4024         * tmac/dvi.tmac: Add fspecial entries for SC.
4025         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4026         found before `S' since the font position of `SC' is lower due to the
4027         gaps in DESC's `font' line.
4028         * tmac/ec.tmac: Add a `special' call.
4029         * NEWS: Updated.
4031         * font/devhtml/R.proto: Remove double entry for `ti'.
4032         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4033         * tmac/tty-char.tmac: Remove entry for `bq'.
4034         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4035         * tmac/ec.tmac: Don't remove `aq' glyph.
4036         * tmac/X.tmac: Fix entry for `em'.
4037         Add entries for `fo' and `fc'.
4038         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4040         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4041         documentation of `special' and `fspecial' requests.
4043 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4045         * font/devascii/R.proto, font/devcp1047/R.proto,
4046         font/devlatin1/R.proto: Remove entry for `.i'.
4047         * font/devdvi/generate/textt.map: Add entry for `ad'.
4048         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4049         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4050         We need this for getting kerning values to compose `/l' and `/L'.
4051         * font/devdvi: Regenerated font definition files for CM fonts.
4052         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4053         * font/devutf8/R.proto: Ditto.
4054         Remove double entry for `ti'.
4056         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4057         for (groff) ligatures, `la', and `ra'.
4058         Add "'C", "'c", `IJ', and `ij'.
4059         Remove double entry for `ti'.
4060         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4061         double entries.
4062         Add "'C", "'c", `IJ', and `ij'.
4063         Fix entries for (groff) ligatures, `la', and `ra'.
4065         * tmac/ps.tmac (ps-achar): New macro.
4066         Define "'c" and "'C".
4067         * tmac/tty.tmac: Add entry for `.i'.
4068         * tmac/X.tmac (X-achar): New macro.
4069         Define "'c", "'C", and `:Y'.
4070         Add entries for `IJ' and `ij'.
4071         * tmac/Xps.tmac (Xps-achar): New macro.
4072         Define "'c" and "'C".
4073         Add entries for `IJ' and `ij'.
4074         * tmac/lbp.tmac (lbp-achar): New macro.
4075         Add fallback characters for all groff ligatures and many other
4076         glyphs.
4077         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4078         Add entries for `/l' and `/L'.
4079         Define "'c" and "'C".
4080         Add entries for `IJ' and `ij'.
4082 2002-11-02  Larry Kollar  <kollar@alltel.net>
4084         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4086 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4088         Adding support for composite glyphs: \[xxx yyy ...] and the
4089         `composite' request.
4091         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4092         to Unicode-based glyph names.
4093         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4094         glyph names to groff glyph names.
4095         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4096         Unicode-based glyph names.
4097         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4098         for handling Unicode glyph names.
4099         * src/roff/troff/input.cc: Include unicode.h.
4100         (composite_glyph_name): New function.
4101         (token::next) <'['>: Handle Unicode glyph names and composite
4102         glyphs.
4103         (composite_dictionary): New dictionary for the `composite' request.
4104         (composite_request): Implement `composite' request.
4105         (init_input_requests): Add `composite'.
4106         Alphabetically sorted.
4107         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4108         commented out).
4109         (init_env_requests): Alphabetically sorted.
4110         Removed `tas' and `tar' (already commented out).
4111         * src/roff/troff/Makefile.sub: Updated.
4113 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4115         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4116         of options.
4118 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4120         Fix computation of .trunc register.  Additionally, its value (and
4121         the value of the .ne register) is now always set before entering the
4122         trap.
4124         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4125         `needed_space' before calling `space'.
4126         (top_level_diversion::space): Remove special code for 'sp before the
4127         first page.
4128         Call `begin_page' with the discarded space as a parameter.
4129         (top_level_diversion::begin_page): Add optional parameter to set
4130         `truncated_space'.
4131         * src/roff/troff/div.h: Updated.
4133         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4134         \n[.ne].
4136         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4137         (LP): Remove superfluous call to `br'.
4138         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4139         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4141 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4143         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4144         (doc-setup-header): Don't set page register `%'.
4145         * tmac/doc-nroff: Remove variable `C'.
4146         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4147         (doc-setup-header): Don't set page register `%'.
4148         Don't call `bp'.
4149         * tmac/doc-common (doc-header): Call `ns'.
4150         (doc-paragraph): Protect .sp with .br so that it survives traps
4151         possibly set by the user.
4152         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4154         * tmac/doc*: Replace ' with . for consistency if no effect.
4156 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4158         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4159         so that it survives traps possibly set by the user.
4161         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4162         (troff_output_file::set_font): Call flush_tbuf if necessary.
4163         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4164         flush_tbuf and do_motion only if necessary.
4165         (troff_output_file::start_special,
4166         troff_output_file::put_char_width, troff_output_file::put_char,
4167         troff_output_file::draw): Updated.
4168         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4169         vmotion_node::tprint): Undo change 2002-10-23.
4171 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4173         * tmac/www.tmac (DC): Fix case of overlapping images.
4175 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4177         * src/roff/troff/node.cc (troff_output_file::fill_color,
4178         troff_output_file::glyph_color): Set current color before testing
4179         color_flag.
4180         (troff_output_file::put_char_width, troff_output_file::put_char,
4181         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4182         before glyph_color.
4183         (troff_output_file::file_color, troff_output_file::glyph_color):
4184         Call do_motion.
4185         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4186         vmotion_node::tprint): Move first, then call fill_color.
4188 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4190         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4191         possible to use multiple main macro packages.
4193 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4195         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4196         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4197         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4198         is set.
4199         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4200         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4202 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4204         * NEWS, doc/webpage.ms: Updated.
4206 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4208         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4209         troff_output_file::put_char, troff_output_file::fill_color,
4210         troff_output_file::glyph_color): Handle case where color pointer
4211         is null.
4213 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4215         Add the new -r option to grotty.  It is similar to the -i option
4216         except it tells grotty(1) to use the "reverse video" attribute to
4217         render italic fonts.
4219         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4220         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4221         (tty_printer::make_underline, tty_printer::put_color,
4222         tty_printer::end_page): Use it.
4223         (main): Add -r switch.
4224         (usage): Updated.
4225         * src/devices/grotty/grotty.man: Document it.
4227 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4229         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4230         cast to `unsigned char' to properly read patterns with 8bit
4231         characters.
4233 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4235         * REVISION: Increased to 2.
4237 Version 1.18.1 released
4238 =======================
4240 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4242         * doc/webpage.ms, NEWS: Updated.
4244 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4246         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4247         suppress additional whitespace after the header.
4249         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4250         with NetBSD.
4252         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4254 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4256         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4257         (Dt): Use it to improve language localization (especially Russian
4258         and French).
4260 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4262         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4263         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4264         drawing commands.
4265         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4266         curve type.
4267         Call `picurve' for BSPLINE.
4268         (HGPrintElt): Handle BSPLINE.
4269         * src/preproc/grn/README: Document it.
4271 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4273         * src/roff/troff/node.cc (break_char_node::col): New variable.
4274         Updated constructor.
4275         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4276         unconditionally.
4277         (space_node::space_node): Remove assertion.
4278         (break_char_node::add_self): Pass color argument to space node.
4279         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4280         Ditto.
4281         * src/roff/troff/env.cc (environment::do_break,
4282         environment::add_padding): Ditto.
4284 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4286         Redesigning color support in troff.  Colors are no longer
4287         represented as separate nodes but are now part of glyph nodes and
4288         friends.  This fixes the current formatting misbehaviour due to the
4289         changes introduced on 2002-09-20.  Some extra code is necessary for
4290         proper grotty support: Without adding color variables to
4291         space-related nodes, the background color would be changed too late.
4293         * src/roff/troff/node.h, src/roff/troff/node.cc:
4294         s/current_pagecolor/current_fill_color/.
4295         s/current_glyphcolor/current_glyph_color/.
4296         (glyph_color_node, fill_color_node): Removed.
4297         (node::get_glyph_color, node::get_fill_color): New virtual member
4298         functions.
4299         (space_node::col): New variable.
4300         Updated constructors of space_node and derived classes accordingly.
4301         (hmotion_node::col): New variable.
4302         Updated constructors of hmotion_node and space_char_hmotion_node
4303         accordingly.
4304         (vmotion_node::col): New variable.
4305         Updated constructor accordingly.
4306         (draw_node::gcol, draw_node::fcol): New variables.
4307         Updated constructor accordingly.
4308         (special_node::gcol, special_node::fcol): New variables.
4309         Updated constructors accordingly.
4310         (troff_output_file::put_char, troff_output_file::put_charwidth,
4311         troff_output_file::draw): Set glyph and fill color.
4312         (troff_output_file::start_special): Set glyph and fill color.
4313         Always set current font.
4314         (troff_output_file::fill_color, troff_output_file::glyph_color):
4315         Don't call `do_motion'.
4316         (glyph_node::gcol, glyph_node::fcol): New variables.
4317         Updated constructors of glyph_node and ligature_node accordingly.
4318         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4319         member functions.
4320         (glyph_node::merge_glyph_node,
4321         kern_pair_node::add_discretionary_hyphen,
4322         node::add_discretionary_hyphen): Updated.
4323         (break_char_node::merge_self): Updated.
4324         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4325         vmotion_node::tprint): Handle color.
4326         (make_glyph_node, make_node, node::add_char): Updated.
4328         * src/roff/troff/env.cc (environment::space_newline,
4329         environment::space, environment::output_line, environment::do_break,
4330         environment::make_tab_node, environment::add_padding, title):
4331         Updated.
4332         (environment_switch, environment_copy): Don't add color nodes.
4334         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4335         nothing.
4336         (token::next): Updated.
4337         \m and \M now are as transparent as \s.
4338         (process_input_stack, token::add_to_node_list, token::process,
4339         read_draw_node): Updated.
4340         (charinfo_to_node_list): Don't add color nodes.
4342         * doc/groff.texinfo: Updated.
4344 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4346         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4347         strings.
4349 2002-09-27  Colin Watson  <cjwatson@debian.org>
4351         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4353 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4355         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4356         appropriate.
4357         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4358         (linewidth_factor): New global variable.
4359         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4360         linewidth_factor.
4361         (long_options): Add -w/--linewidth option.
4362         (usage): Updated.
4363         (main): Handle -w option to set linewidth_factor.
4364         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4365         line_thickness.
4367         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4369 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4371         Fixed a bug in the line thickness setting code.
4373         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4374         variable.
4375         (lbp_printer::set_line_thickness): Pass environment as second
4376         parameter.
4377         Implement it actually.
4378         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4379         and `set_line_thickness, depending on the current font size.
4381 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4383         Some Debian patches.
4385         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4386         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4387         `list->last'.
4389 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4391         * configure: Regenerated with autoconf 2.54.
4393 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4395         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4396         glyph_color.
4397         Rename cur_fill_color to fill_color.
4398         * src/roff/troff/env.cc: Updated.
4400 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4402         * src/roff/troff/env.cc (title): Copy color status after processing
4403         title.
4404         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4405         fill color nodes to reset colors properly.
4407         * tmac/www.tmac (DC): Fix color handling.
4409         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4410         * doc/groff.texinfo: Fixing documentation of `tl' request.
4411         * doc/webpage.ms: Updated.
4413 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4415         * src/roff/troff/env.cc (environent_switch, environment_copy):
4416         Emit glyph and fill color nodes to initialize colors properly.
4418 2002-09-17  Colin Watson  <cjwatson@debian.org>
4420         * src/roff/troff/env.cc (environment::set_glyph_color,
4421         environment::set_fill_color): Fix typo which prevented \m[] work
4422         correctly.
4424 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4426         Add left and right italic correction to non-slanted PS fonts.  This
4427         is an experimental feature to improve image rendering of grohtml.
4429         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4430         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4431         * font/devps/*: All non-slanted fonts regenerated.
4432         * NEWS: Updated.
4434 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4436         Add a site-specific font directory.
4438         * Makefile.in (localfontdir, legacyfontdir): New variables.
4439         (fontpath): Use them.
4440         (MDEFINES, uninstall_dirs): Updated.
4441         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4442         Remove `FONTPATH' and `MACROPATH'.
4444         * src/roff/troff/troff.man, NEWS: Updated.
4445         * doc/groff.texinfo (Font Directories): New section.
4446         Other minor fixes.
4448         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4449         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4450         src/preproc/grn/grn.man: Minor fixes.
4452         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4453         Remove unused variable.
4455 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4457         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4458         * man/groff_out.man: Fix documentation of 'N'.
4460 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4462         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4463         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4464         set.
4465         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4466         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4467         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4468         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4469         PRE_TAG>: Call `begin' with `FALSE'.
4471 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4473         * src/libs/libgroff/string.cc (string::extract): Fix position of
4474         terminating null byte.
4476 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4478         Add global option `nospaces' to tbl so that leading and trailing
4479         spaces in data items are ignored.
4481         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4482         function to remove leading and trailing spaces.
4483         * src/include/stringclass.h: Updated.
4485         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4487         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4488         option.
4489         Fix typo in error messages.
4490         (process_data): Implement `nospaces' option.
4491         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4493 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4495         * src/include/config.hin: Add `HAVE_ISATTY'.
4496         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4497         `fname' member.
4498         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4499         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4500         `operator!=' for `char'.
4501         * doc/groff.texinfo: Replace @ifnottex block for top node with
4502         @ifhtml block.
4504 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4506         * doc/Makefile.in (.texinfo.html): Add -I switch.
4507         * doc/groff.texinfo: Add @ifnottex block for top node to make
4508         translation to HTML work.
4510 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4512         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4513         (get_papersize, determine_vertical_offset): Removed.
4514         (char_buffer::do_image): Always specify letter size.
4515         (main): Updated.
4516         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4517         -sPAPERSIZE.
4519 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4521         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4522         default indentation.
4524 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4526         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4527         -sPAPERSIZE for gs.
4528         (generateImages): Clean up push-back buffer.
4530 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4532         * doc/groff.texinfo: Minor fixes.
4534 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4536         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4537         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4538         (gsPaper): Removed.
4539         (determine_vertical_offset): Use LETTER_LENGTH.
4540         (createPage): Moved to ...
4541         (imageList::createPage): This.
4542         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4543         (imageList::getMaxX): New function.
4544         (createImage): Moved to ...
4545         (imageList::createImage): This.
4546         (imageList::createImages): New function.
4547         (generateImages): Read `maxx' directly.
4548         Updated.
4549         (scanArguments): Don't specify `gsPaper' for `-o'.
4550         (makeTempFiles): Call `xtmpfile' with the last argument set to
4551         `TRUE'.
4553 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4555         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4556         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4557         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4558         * src/preproc/html/pushback.cc: Include nonposix.h.
4559         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4560         conditionally.
4562 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4564         Use $(OBJEXT) for the object file extension.
4566         * Makefile.comm (.SUFFIXES): Add .obj.
4567         (.cc.obj, .c.obj): New implicit rules.
4568         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4569         (MDEFINES): Add EXEEXT and OBJEXT.
4570         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4572 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4574         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4576 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4578         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4579         the file.
4580         (html_printer::update_min_max, html_printer::add_table_end): New
4581         methods.
4582         (html_printer::lookahead_for_tables): Use them.
4583         Reset page offset correctly.
4584         (html_printer::~html_printer): Add creation of creator comment up.
4586 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4588         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4589         * man/groff_tmac.man: Fix typos.
4590         * man/groff_font.man: Minor reordering.
4591         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4593 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4595         Avoid endless loops while scanning for tables.
4597         * src/devices/grohtml/post-html.cc (list::insert): Set
4598         ptr->right->left.
4599         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4600         all callers.
4601         Return immediately if that argument is NULL.
4602         (html_printer::calc_nf): Don't test if `g' is NULL.
4603         (html_printer::lookahead_for_tables): Use
4604         `glyphs.move_right_get_data'.
4605         Don't test if `g' is NULL.
4607 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4609         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4611         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4612         a pointer.
4613         (char_block::char_block): Allocate `buffer'.
4614         (char_buffer::add_string): Use it.
4616 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4618         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4619         src/devices/grodvi/grodvi.man: Document default line thickness.
4621 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4623         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4624         8192.
4626 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4628         * doc/webpage.ms: Updated.
4630 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4632         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4633         unbreakable space.
4635 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4637         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4638         (&& -> &).
4640 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4642         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4643         tok.next().
4644         (read_gray): Ditto.
4645         Don't push back a space but a newline onto the stack.
4647 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4649         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4650         inadvertently.
4652         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4653         html_printer::start_font): Handle them.
4654         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4655         reset bold and tt.
4656         (html_text::do_bold): Don't reset italic and tt.
4657         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4658         * font/devhtml/DESC.proto: Add those fonts.
4659         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4661 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4663         * MORE.STUFF: Added gpresent.
4665         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4666         whitespace before printing the logging message.
4668 2002-07-31  Colin Watson  <cjwatson@debian.org>
4670         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4671         Initialize `n' to zero.  This fixes a segfault on ARM.
4673 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4675         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4677 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4679         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4680         final semicolon.
4682 2002-07-28  Colin Watson  <cjwatson@debian.org>
4684         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4685         `.ps'.
4686         (html_printer::html_printer): Initialize `pointsize'.
4688 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4690         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4691         gnu.png.
4692         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4693         (gnu.eps): Add -rle switch to pnmtops.
4694         (distfiles): Add gnu.eps and gnu.png.
4696 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4698         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4699         Add `operator!='.
4701 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4703         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4704         ' \+' but '  *' for sed.
4705         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4707 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4709         * doc/groff.texinfo: Document `papersize' keyword.
4710         * NEWS, man/groff_font.man: Updated.
4712 2002-07-23  Colin Watson  <cjwatson@debian.org>
4714         Extend papersize keyword to accept more than a single entry.  The
4715         first valid will be used.
4717         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4718         (font::scan_papersize): Really skip final newline.
4719         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4721 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4723         * configure.ac: Test for isatty.
4724         * configure: Regenerated.
4725         * src/include/posix.h: Check HAVE_ISATTY.
4726         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4727         * src/utils/lookbib/lookbib.cc: Include posix.h.
4728         Don't declare isatty.
4730 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4732         * NEWS: Add `output' request.
4734         * REVISION: Increased to 1.
4736 Version 1.18.0 released
4737 =======================
4739 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4741         Allow internal glyph indices > 0xFF in grohtml for input characters.
4743         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4744         as parameter.
4745         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4746         Updated all callers.
4747         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4748         (html_printer): Updated.
4750 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4752         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4753         * font/devutf8/R.proto: Adding some missing glyphs.
4754         * font/devutf8/NOTES: Updated.
4756         * tmac/dvi.tmac: Add more composite glyphs.
4757         * tmac/html.tmac: Updated.
4759         * man/groff_char.man: Add `sum' and `product' entities.
4761         * NEWS: Updated.
4763 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4765         Improved table, tab, and indenting support.
4767         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4768         string_iterator::suppress_newline_flag): Removed.  Updated all
4769         function which have used it.
4771         * src/roff/troff/env.cc: Include `input.h'.
4772         (environment::add_node): Accept 0 as parameter.
4773         (environment::add_html_tag): Add `force' parameter.
4774         Updated all callers.
4775         (environment::add_html_tag_tabs): Ditto.
4776         For the moment, support left-aligned tabs only.
4777         (environment::make_html_tag): New function.
4778         (fill, no_fill): Set .br html tag additionally.
4779         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4780         (environment::add_html_tag_eol): Removed.
4781         (tab_stops::distance_to_next_tab): Add variant for handling 
4782         nextpos'.
4783         (environment::distance_to_next_tab): Ditto.
4784         Updated all callers.
4785         (environment::handle_tab): Handle tabs for html.
4786         
4787         * src/roff/troff/env.h: Updated.
4789         * src/roff/troff/div.cc: Updated all callers of
4790         `environment::add_html_tag'.
4792         * src/devices/grohtml/html-table.cc,
4793         src/devices/grohtml/html-table.h: New files.
4795         * src/devices/grohtml/html-text.cc (html_text): New members
4796         `blank_para' and `start_space'.
4797         (html_text::issue_tag): Don't emit TABLE_TAG.
4798         Handle indentation for PRE_TAG and P_TAG.
4799         (html_text::end_tag): Updated.
4800         (html_text::table_is_void, html_text::issue_table_begin,
4801         html_text::issue_table_end): Removed.
4802         (html_text::do_push): Simplified.
4803         [DEBUGGING]: Small fix.
4804         (html_text::push_para): Add new parameter for indentation; updated
4805         all callers.
4806         Handle PRE_TAG.
4807         (html_text::do_indent, html_text::do_table, html_text::done_table,
4808         html_text::is_in_table): Removed.
4809         (html_text::do_pre): Handle P_TAG also.
4810         (html_text::shutdown): Handle p->indent.
4811         (html_text::check_emit_text): Simplified.
4812         (html_text::do_emittext): Reset `blank_para'.
4813         (html_text::do_para): Add new parameter for indentation; updated
4814         all callers.
4815         (html_text::remove_indent): New function.
4816         (html_text::do_space): Handle verbatim text properly.
4817         (html_text::ever_emitted_text, html_text::starts_with_space,
4818         html_text::remove_para_align): New functions.
4819         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4821         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4822         Updated.
4824         * src/devices/grohtml/post-html.cc: Include html-table.h.
4825         (INDENTATION): Removed.
4826         (text_glob): Added many `is_<foo>' functions.
4827         Added table description `tab'.
4828         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4829         member functions.
4830         (list): Add `insert' and `move_to' member functions.
4831         (page): Add `insert_tag' member function.
4832         (page::dump_page) [DEBUG_TABLES]: Improved.
4833         (html_printer): Add `table' and `max_linelength' elements.
4834         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4835         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4836         `remove_tabs', `remove_courier_tabs'.
4837         (html_printer::emit_raw): Handle indentation.
4838         (html_printer::do_center, html_printer::write_header): Updated.
4839         (html_printer::is_courier_until_eol): Check for tag.
4840         (html_printer::do_linelength): Handle max_linelength.
4841         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4842         fill_on.
4843         (html_printer::do_tempindent): Updated.
4844         (html_printer::do_indentedparagraph): Removed.
4845         (html_printer::do_indent): Simplified.
4846         (html_printer::do_eol): Use `ever_emitted_text'.
4847         (html_printer::do_flush, html_printer::do_links): Don't call
4848         done_table.
4849         (html_printer::do_break): Handle end_tempindent.
4850         (html_printer::troff_tag): Get argument.
4851         Don't handle `.ip'.
4852         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4853         (html_printer::flush_page): Call `lookahead_for_tables'.
4854         Don't call `done_table'.
4855         (html_printer::add_to_sbuf): Always call do_indent.
4857         * src/devices/grohtml/Makefile.sub: Updated.
4859         * tmac/an-old.tmac (TP): Don't handle html device specially.
4860         (an-do-tag-html): New function which will be used instead of
4861         `an-do-tag' if html device is used.
4863         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4865         * tmac/s.tmac (@IP): Don't handle html device specially.
4866         (@IP-html): New function which will be used instead of `@IP' if
4867         html device is used.
4869         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4870         is a hack which will eventually vanish again.
4871         (PIMG): Handle `-C' option correctly if not html.
4872         (HR): Use HTML-NS.
4874 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4876         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4878 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4880         * contrib/pic2graph/pic2graph.*: Use convert(1).
4881         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4883 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4885         * tmac/groff_trace.man: New file.
4886         * tmac/Makefile.sub: Updated.
4887         * NEWS: Updated.
4889 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4891         * src/roff/groff/groff.man: Add some cross references.
4893 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4895         * src/roff/troff/input.cc (substring_request): Add warnings for
4896         string indices out of range.
4898 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4900         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4901         * font/devdvi/*EC: Regenerated.
4903 2002-07-10  Bernd Warken  <bwarken@mayn.de>
4905         * man/groff_char.man: Updated and extended.
4907 2002-07-10  Werner LEMBERG  <wl@gnu.org>
4909         * src/roff/troff/input.cc (length_macro): Renamed to...
4910         (length_request): This.
4911         Move call of `tok.next()' to the very end, otherwise the register
4912         value hasn't been updated yet.
4913         (init_input_requests): Updated.
4915 2002-07-09  Werner LEMBERG  <wl@gnu.org>
4917         * src/roff/troff/input.cc (substring_macro): Renamed to...
4918         (substring_request): This.
4919         (init_input_requests): Updated.
4920         * src/roff/troff/request.h: Updated.
4922 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
4924         * src/roff/grog/grog.sh: Fix typo.
4926 2002-07-08  Werner LEMBERG  <wl@gnu.org>
4928         * win32-diffs: Updated.
4930         Handle `papersize' keyword properly in DESC.
4932         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4933         type.
4934         Updated all callers.
4935         * src/libs/libgroff/paper.cc: Add four more paper formats used by
4936         grolj4.
4937         * src/include/paper.h: Updated.
4939         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4940         Other minor C syntax fixes.
4941         (papersize, paperlength, paperwidth): Renamed to `user_*'.
4942         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4943         members.
4944         (lbp_printer::lbp_printer): Pass three arguments.
4945         Set paper dimensions properly.
4946         (make_printer, main): Updated.
4947         (handle_unknown_desc_command): Fix error messages.
4948         (main): Handle papersize keyword in DESC properly.
4950         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4951         `user_paper_size'.
4952         (lbp_printer::lbp_printer): Pass an argument.
4953         Set paper_size properly.
4954         (handle_unknown_desc_command): Removed.
4955         (make_printer, main): Updated.
4956         * src/devices/grolj4/grolj4.man: Minor documentation fix.
4958         * man/groff_font.man, NEWS: Updated.
4960 2002-07-07  Werner LEMBERG  <wl@gnu.org>
4962         Integrated eqn2graph, contributed by Eric S. Raymond.
4964         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4965         files.
4966         * Makefile.in, NEWS: Updated.
4968 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4970         Changing the substring request to make it fit better with other
4971         string manipulation functions in other programming languages:
4972         Index 0 is now the first character in the string, and index -1
4973         indicates the last character.  Since this request didn't work
4974         properly anyway in the last release, it doesn't harm too much to
4975         change the syntax.
4977         * src/roff/troff/input.cc (substring_macro): Use loops to get
4978         the real string length (ignoring COMPATIBLE_SAVE and
4979         COMPATIBLE_RESTORE) and offsets.
4980         Implement change described above.
4982         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4983         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4985         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4987 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4989         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4990         COMPATIBLE_RESTORE are completely ignored.
4992         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4993         functions.
4994         (macro): `length' field renamed to `len'.
4995         Added new field `empty_macro' (1 if macro is empty), to be used
4996         instead of checking `len'.
4997         Updated all callers.
4998         (macro::empty): Updated.
4999         (macro::length, macro::set, macro::get): New functions.
5000         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5001         Set `empty_macro'.
5002         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5003         COMPATIBLE_RESTORE pairs.
5004         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5005         * src/roff/troff/request.h: Updated.
5007         * doc/groff.texinfo: Document .chop's behaviour better.
5009 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5011         * doc/pic.ms: Fix documentation for the addition of positions.
5013         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5015 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5017         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5019         * src/roff/troff/input.cc (have_string_arg): New global variable.
5020         (read_mode): New enumeration.
5021         (read_escape_name): Use it.  Update all calls.
5022         (read_long_escape_name): Use it.  Update all calls.
5023         Set have_string_arg if appropriate.
5024         (get_char_for_escape_name): Add parameter for handling space
5025         character.
5026         (interpolate_string_with_args, decode_string_args): New functions.
5027         (get_copy, token::next): Call it if necessary.
5028         (interpolate_string): Fix error message.
5030         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5031         Document it.
5033 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5035         * man/groff_tmac.man: Updated and extended.
5037 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5039         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5041 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5043         * doc/pic.ms: Improve documentation of composite block objects.
5045 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5047         * src/roff/troff/input.cc (init_registers): Add three registers
5048         `seconds', `minutes', and `hours' to hold the current time.
5050         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5051         Updated.
5053 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5055         Make \X accept both `\ ' and `\~', converting them to single space
5056         characters.
5058         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5059         (token::unstretchable_space): New inline function.
5060         * src/roff/troff/input.cc (token::next, token::delimiter,
5061         token::description, token::add_to_node_list, token::process): Handle
5062         TOKEN_UNSTRETCHABLE_NODE.
5063         (encode_char): Handle tok.stretchable_space and
5064         tok.unstretchable_space.
5066         * NEWS, doc/groff.texinfo: Document it..
5068 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5070         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5072         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5073         keyword to enable/disable SGR output.
5074         (tty_printer::change_fill_color): New function.
5075         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5077         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5078         call.
5080 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5082         Add a `color' request and a `.color' register to control usage of
5083         colours.
5085         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5086         (color_flag): This (which is the inverse).
5087         (activate_color): New function.
5088         (main, init_input_requests): Updated.
5089         * src/roff/troff/troff.h, src/roff/troff/node.cc
5090         (troff_output_file::fill_color, troff_output_file::glyph_color):
5091         Updated.
5093         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5094         Document the changes.
5096 2002-06-17  Colin Watson  <cjwatson@debian.org>
5098         Circumvent bug in autoconf 2.53 regarding top_builddir.
5100         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5101         * Makefile.in, doc/Makefile.in:
5102         s/@top_builddir@/@groff_top_builddir@/.
5103         * configure: Regenerated (with autoconf 2.53).
5105 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5107         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5108         `paperwidth' and `paperlength' for the `papersize' keyword.
5110 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5112         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5114 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5116         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5117         html_printer::do_linelength, html_printer::do_pageoffset,
5118         html_printer::do_indentation, html_printer::do_tempindent,
5119         html_printer::do_break, html_printer::begin_page): Clear indented
5120         text.
5121         * tmac/html.tmac: Disable hyphenation.
5123 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5125         Don't produce HTML files if utility programs are missing.
5127         * Makefile.in (make_html, make_install_html): New variables.
5128         (MDEFINES): Updated.
5130         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5131         utility programs.
5132         * configure.ac: Use it.
5133         * configure: Regenerated.
5135         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5136         (HTMLEXAMPLESFILES): This new variable.
5137         (EXAMPLESIMAGEFILES): Renamed to...
5138         (HTMLEXAMPLEIMAGEFILES): This.
5139         (CLEANADD): Add HTMLEXAMPLEFILES.
5140         (all): Use `make_html'.
5141         (html): New target.
5142         (install_data): Use `make_install_html'.
5143         Move html stuff to...
5144         (install_html): This new target.
5145         (uninstall_sub): Updated.
5147 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5149         * src/roff/grog/Makefile.sub (grog): Renamed to...
5150         (grog.old): This.
5151         (grog): New rule to always install grog.sh as grog.
5153 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5155         * src/roff/grog/grog.pl: Fix typo.
5157 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5159         * doc/groff.texinfo: Add more info on .tr arguments.
5161 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5163         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5165         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5166         * configure: Regenerated.
5168 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5170         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5172         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5174 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5176         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5177         is not initialized at the time we need it in case `--prefix' hasn't
5178         been set.  Check for `ac_default_prefix' also.
5179         Test for `papersize' keyword also and generalize allowed whitespace.
5180         * configure: Regenerated.
5182         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5183         `paperlength'.
5185         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5186         with...
5187         (src_version, src_revision): New variables to avoid overwriting
5188         from parent make process.
5189         (version.cc): Updated.
5191         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5192         (linebuf, linebufsize): New global variables.
5193         (sys_fatal): Use `fatal' to abort properly.
5194         (get_line): New function.
5195         (get_resolution): Use it.
5196         Improve error messages.
5197         (get_papersize): Check `papersize' also.
5198         Use `get_line'.
5199         Improve error messages.
5201 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5203         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5204         should be removed only if builddir is not srcdir.
5205         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5206         (clean): Depend on `mostlyclean'.
5207         (distclean): Depend on `clean'.
5208         (realclean, extraclean): Depend on `distclean'.
5209         (.y.cc, .y.o): Simplified.  The output files are no longer written
5210         to srcdir but to builddir.
5211         * Makefile.in (MDEFINES): Add `version' and `revision'.
5212         (uninstall_dirs): Fix order of directories.
5213         * doc/Makefile.sub (version, revision): Removed.
5214         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5215         Added `HTMLDOCFILES'.
5216         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5217         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5218         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5219         as prefix.
5221         * doc/texinfo.tex (\authortt): New macro.
5222         (\shortcontt): Define.
5223         (\titlepage): Set \tt to \authortt while defining \authorfont.
5224         (\appendixbox): New macro.
5225         (\chapmacro, \appendixentry): Use \appendixbox to get even
5226         indentation for letters.
5227         (\summarycontents): Set \tt.
5228         (\internalpagesize): Add two arguments for real paper width and
5229         height as needed by pdfTeX.
5230         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5231         Updated.
5232         (\tempdima, \tempdimb): New temporary dimensions.
5233         (\pagesizesyyy): Updated.
5235 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5237         Adding a new keyword `papersize' to the DESC file format (similar
5238         but not completely identical to grolbp's extension).  grops now has
5239         a -p command line option to override `papersize'.  Finally, grolbp
5240         has been adapted to the new syntax.
5242         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5243         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5244         elements.
5245         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5246         (CCSRCS): Add `paper.cc'.
5248         * src/include/font.h (font): Add `papersize' element.
5249         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5250         (font::scan_papersize): New function.
5251         (font::load_desc): Use it for handling `papersize' keyword.
5252         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5254         * src/devices/grops/ps.cc: Include paper.h.
5255         (user_paper_length): New global variable.
5256         (ps_printer): Use paper length as initializer.
5257         (make_printer): Updated.
5258         (main): Handle new `-p' option.
5259         * src/devices/grops/grops.man: Updated.
5261         * src/devices/grolbp/lbp.cc: Include paper.h.
5262         s/papersizes/lbp_papersizes/.
5263         (set_papersize): Use new `papersizes' array.
5264         (handle_unknown_desc_command): Don't handle `papersize'.
5265         (main): Use `font::scan_papersize' for handling `-p' option.
5266         * src/devices/grolbp/grolbp.man: Updated.
5268         * man/groff_font.man: Document `papersize'.
5269         * NEWS: Updated.
5271 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5273         * src/devices/grops/TODO: Updated.
5274         * src/devices/grops/grops.man: More info on paper formats.
5275         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5277 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5279         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5280         to list only if srcdir != currdir.
5281         (distfiles): New target.
5283         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5284         (NOMAKEDIRS): New variable.
5285         (DISTDIRS): Use it.
5287 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5289         Add .output request, similar to \! at top-level.
5291         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5292         (output_request): New function.
5293         (init_input_requests): Add it.
5294         Sorted.
5295         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5296         Document it.
5298         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5299         (prepare_examples): Fix typo.
5300         * doc/groff.texinfo (@direntry): Fix it.
5302 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5304         Including the doc subdir into groff's Makefile system.
5306         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5307         * configure.ac: Use it.
5308         Generate `doc/Makefile'.
5309         * configure: Regenerated.
5311         * Makefile.in (infodir, INSTALL_INFO): New variables.
5312         (MDEFINES, uninstall_dirs): Updated.
5313         (OTHERDIRS): Add `doc'.
5314         * Makefile.comm (CLEANDIRADD): New variable.
5315         (mostlyclean): Use it.
5317         * doc/Makefile.sub, doc/Makefile.in: New files.
5318         * doc/Makefile: Removed.
5320         * NEWS, INSTALL: Updated.
5322 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5324         * doc/homepage.ms: Renamed to ...
5325         * doc/webpage.ms: This.
5326         Use `.NHR'.
5328 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5330         Integrating the `mom' macro package, contributed by Peter Schaffter
5331         <df191@ncf.ca>.
5333         * contrib/mom/*: New subdirectory tree.
5334         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5335         be used for documentation files.
5336         (MDEFINES, uninstall_dirs): Use them.
5337         (OTHERDIRS): Add contrib/mom.
5338         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5339         @HTMLDOCDIR@.
5340         * MANIFEST, NEWS: Updated.
5342 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5344         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5345         if at outer level; at start-up we are at outer level.
5347         * src/roff/troff/input.cc (do_suppress): Implement it.
5348         Simplify \O[3].
5350         Add option -p to show progress information.
5351         pre-grohtml will now render only one page at a time, reducing the
5352         size of needed disk resources enormously.
5354         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5355         (imagePageName): New global variable.
5356         (psPageName, show_progress, currentPageNo): New global variables.
5357         (html_system): Close saved stderr and stdout handles.
5358         (write_end_image): Accept a parameter to control \O escape.
5359         (write_start_image): Adapted to new \O meaning.
5360         (char_buffer::write_upto_newline): Updated.
5361         (createAllPages): Replaced with...
5362         (createPage): This new function to create a single page for images.
5363         It uses `psselect' from the psutils package.
5364         (removeAllPages): Removed.
5365         (createImage): Updated.
5366         Handle progress display.
5367         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5368         (scanArguments): Add option -p.
5369         (makeTempFiles): Updated to create temp files for psPageName and
5370         imagePageName.
5371         (removeTempFiles): Removed.
5372         (main): Updated.
5374         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5375         html_printer::write_header): Append `\0' to `buffer'.
5376         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5377         (main): Handle -p.
5378         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5379         Handle `text_emitted'.
5380         (html_text::table_is_void): Slightly rewritten.
5381         (stop): New external symbol.
5382         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5383         (html_text::shutdown): Call `dump_stack'.
5384         (html_text::do_space): Rewritten.
5385         * src/devices/grohtml/grohtml.man: Document -p and the need of
5386         `psselect'.
5388         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5389         new \O syntax.
5390         Call \O[0] if `ps4html' is active.
5391         * tmac/s.tmac (@EQ, @EN): Handle html better.
5392         (@TS, TE): Ditto.
5393         * tmac/html.tmac: Don't use black for background colour.
5395         * src/roff/troff/node.cc: Include `div.h'.
5396         (troff_output_file::really_print_line): Don't use `is_on'. 
5397         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5398         troff_output_file::check_charinfo,
5399         troff_output_file::put_char_width, troff_output_file::put_char,
5400         troff_output_file::determine_line_limits, troff_output_file::draw,
5401         real_output_file::begin_page, glyph_color_node::tprintf,
5402         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5403         Use `is_on'.
5404         (troff_output_file::really_on): Call `do_motion'.
5405         (suppress_node::tprint): Use `get_page_number' instead of `%'
5406         register.
5407         Call `reset_output_registers' conditionally on `is_on'.
5409         * doc/groff.texinfo: Document new syntax of \O.
5410         * NEWS, man/groff_diff.man: Updated.
5412 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5414         * MORE.STUFF: Add info about David Frey's deroff implementation.
5415         Mention troff.org.
5417 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5419         Pic's `with' attribute now accepts positions.
5421         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5422         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5423         conflicts.
5424         (object_spec): Add rule for `WITH' and `position'.
5425         (relative_path): Give `corner' the precedence of `CHOP'.
5426         * src/preproc/pic/object.h (path): New members `pos' and
5427         `is_position'.
5428         * src/preproc/pic/object.cc: Updated initializers of `path'.
5429         (path::follow): Handle `is_position'.
5431         * doc/pic.ms: Completely updated grammar description.
5432         Many typographical improvements.
5434 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5436         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5437         code of x in range 0-127) also.
5438         * doc/groff.texinfo, man/groff_diff.man: Updated.
5440         Added keywords `north', `south', `east', and `west' for corners
5441         in pic.
5443         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5444         and WEST.
5445         (yylex): Handle them.
5446         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5447         (corner): Handle them.
5449 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5451         * src/devices/grops/grops.man: Clarify handling of `download' file.
5453 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5455         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5456         Jeffrey Friedl <jfriedl@yahoo.com>.
5458         * src/roff/troff/input.cc (spread_limit, warn_scale,
5459         warn_scaling_indicator): New global variables.
5460         (warnscale_request, spreadwarn_requests): New functions.
5461         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5462         (init_input_requests): Updated.
5463         (error_type): Add `OUTPUT_WARNING'.
5464         (do_error): Handle it.
5465         (output_warning): New warning function which shows output location.
5466         * src/roff/troff/env.h (spread_limit): New external variable.
5467         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5468         `output_warning'.
5469         (distribute_space): Emit warning if added space is larger than
5470         `spread_limit'.
5471         (environment::possibly_break_line): Emit warning if a line can't
5472         be adjusted on both sides.
5474         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5476 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5478         * src/roff/troff/node.cc (special_node::special_node): Use
5479         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5480         \X''\% crashes, for example.
5482         * doc/groff.texinfo: Document \! and \? used at top-level.
5484 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5486         * src/preproc/pic/pic.man: Fix some keyword syntax.
5487         Other minor typographical fixes.
5489         * src/roff/groff/groff.man: Fix typos.
5491 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5493         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5494         (ShortOpt[]): This to avoid problems with refer.
5496         * doc/pic.ms: Fix typo.
5497         Fix pic grammar description.
5499         * tmac/an-old.tmac (ne): Use de1, not de.
5501 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5503         * doc/groff.texinfo: Finished separation of glyphs and characters.
5504         Don't use the string `Appendix' for appendix headers (both in
5505         the text and the table of contents).
5506         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5507         directories.
5509         Use registers LL and LT (similar to -ms) for controlling the
5510         length of title and line, respectively, in the -man and -mdoc
5511         macro packages.
5513         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5514         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5515         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5516         (TH): Use \n[LL].
5517         (an-header, an-p-footer): Use \n[LT].
5518         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5519         doc/groff.texinfo: Document it.
5521 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5523         * doc/fdl.texi: New file.
5524         * doc/groff.texinfo: Include it.
5525         Define and use @copying.
5526         Starting with separating glyph, symbol, and character.
5528 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5530         * Makefile.in (EXEEXT): Set it.
5531         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5532         programs.
5534         * src/include/nonposix.h: Define GS_NAME.
5535         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5537         Some preliminary changes for EMX support under OS/2.
5539         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5540         __EMX__ similar to __MSDOS__.
5541         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5543 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5545         * doc/groff.texinfo: Integrated groff_out.man.
5546         Some macro fixes.
5548 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5550         * man/groff_out.man: Minor fixes.
5552 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5554         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5555         correct page references.
5556         Fixed many index entries.
5558 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5560         * man/roff.man: Enlarged.
5562 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5564         * doc/groff.texinfo: More examples, other fixes.
5566 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5568         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5569         will now form a chain, e.g.
5571           .pi foo
5572           .pi bar
5574         is now the same as
5576           .pi foo | bar
5578         This is for compatibility with plan 9's troff.
5580         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5581         with UNIX troff.
5582         * NEWS: Updated.
5584         * doc/groff.texinfo: Add documentation of remaining requests and
5585         registers.
5587 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5589         * doc/groff.texinfo: Add documentation of remaining escapes.
5591         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5592         * font/devdvi/*TC: Regenerated.
5594 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5596         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5597         if not in compatibility mode, i.e., increment relative to the
5598         previous height.
5599         * doc/groff.texinfo: Updated accordingly.
5601 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5603         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5605 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5607         * src/roff/groff/groff.man: Improve documentation of -P option.
5608         Other minor fixes.
5610 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5612         Add new escape \F to switch font family.
5614         * src/roff/troff/input.cc (token::next): Handle \F.
5615         * src/roff/troff/env.cc (environment::set_family): Handle
5616         `interrupted' flag.
5617         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5618         Document it.
5620 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5622         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5623         spaces in tags.
5625 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5627         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5628         \m[] and \M[], respectively.
5630         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5631         (symbol::symbol): Handle NULL string and empty string differently.
5632         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5633         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5634         Add optional parameter.
5635         Updated calling functions.
5636         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5637         `symbol::is_empty'.
5638         * src/roff/troff/env.cc (environment::set_font): Ditto.
5640         * src/preproc/pic/troff.cc (troff_output::set_fill,
5641         troff_output::reset_color: Updated.
5643         * tmac/www.tmac: Updated.
5645         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5646         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5647         Updated.
5649         * tmac/Xps.tmac: Remove some redundant code.
5651         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5652         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5653         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5654         \f[].
5656 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5658         * src/include/printer.h, src/libs/libdriver/printer.cc
5659         (printer::change_fill_color): New member function.
5660         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5662 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5664         * doc/groff.texinfo: Completed pass on gtroff reference.
5666 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5668         * doc/groff.texinfo: More fixes.
5670 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5672         * src/include/color.h: Decorate with `const'.
5673         Use `size_t'.
5674         Include `stddef.h'.
5675         * src/libs/libgroff.color.cc: Decorate with `const'.
5676         Use `size_t'.
5677         (color::color): Initialize members.
5678         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5679         command according to the documentation.
5681         * man/groff_out.man: Updated.
5682         Minor fixes.
5684 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5686         * src/preproc/html/pre-html.cc (write_start_image): Remove
5687         redundant output.
5688         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5690         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5691         \C'hy' caused an assertion failure.
5693         * src/roff/troff/env.cc (environment::environment): Initialize
5694         `emitted_node'.
5695         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5697 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5699         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5700         Document pvs request and .pvs register.
5702 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5704         * doc/groff.texinfo: Improve and fix documentation of diversions
5705         and environments.
5707 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5709         * doc/groff.texinfo: Fix documentation of drawing functions.
5710         Other minor fixes.
5712 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5714         * doc/groff.texinfo: Better documentation of double quotes as
5715         arguments.
5716         Other minor fixes.
5718 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5720         * man/groff_font.man: Document names of special characters better.
5721         * doc/groff.texinfo: Minor improvements.
5723         * tmac/lbp.tmac: Load latin1.tmac.
5724         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5726         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5728 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5730         * tmac/tty.tmac: Don't use shc request.
5731         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5732         * NEWS: Updated.
5734         * man/groff_diff.man: Minor fixes.
5736         * font/devlbp/*: Remove all `charXXX' entities.
5738         * src/libs/libgroff/font.cc (font::~font): Deallocate
5739         `special_device_coding'.
5740         (font::load): Use `new' for allocating `special_device_coding'.
5741         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5742         Removed unused member.
5744 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5746         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5747         (resource_manager::do_begin_binary,
5748         resource_manager::do_begin_data): Use it.
5750         * doc/texinfo.tex: Updated to version 4.2.
5752         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5753         (token::zero_width_break): New inline function.
5754         * src/roff/troff/input.cc (token::next): Use it.
5755         (token::description): Updated.
5756         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5757         (token::add_to_node_list, token::process): Use it.
5758         * NEWS, doc/groff.texinfo: Updated.
5760         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5761         * tmac/tty.tmac: Add missing backslash.
5763 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5765         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5766         `.ps' register instead of `.s' to handle fractional point sizes.
5767         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5768         limit_box::output): Ditto.
5769         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5770         size_box::output): Ditto.
5771         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5772         over_box::output): Ditto.
5773         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5774         script_box::output): Ditto.
5775         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5776         sqrt_box::output): Ditto.
5778 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5780         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5781         Fix typo.
5783 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5785         * doc/homepage.ms: Reduce title size.
5786         * doc/groff.texinfo: Fix documentation of .t register.
5787         Fix handling of colon.
5788         Fix `\' vs. `\\'.
5790         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5791         only if page length is positive to avoid a loop.
5793         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5794         tbl.
5796 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5798         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5799         s/__CYGWIN32__/__CYGWIN__/.
5801 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5803         * doc/gnu.xpm: New image contributed by Emily Mulley.
5804         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5805         (homepage.html): Be dependent on gnu.eps.
5806         * doc/homepage.ms: Updated to new image.
5808         * src/devices/grohtml/post-html.cc (html_printer): New member
5809         `sbuf_prev_hpos'.
5810         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5811         (html_printer::sbuf_continuation): Use it.
5813 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5815         * src/libs/libgroff/getopt.c: Updated to latest version.
5817         * tmac/README: More on hyphen.tex license.
5819 2002-03-26  Larry Kollar  <kollar@alltel.net>
5821         * doc/groff.texinfo: Add documentation of most missing requests.
5823 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5825         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5826         of `+-', `mu', and `di', respectively.
5828         * font/devascii/R.proto, font/devutf8/R.proto,
5829         font/devlatin1/R.proto, font/devhtml/R.proto,
5830         font/devcp1047/R.proto, font/devlpb/*: Add them.
5831         * font/devps/generate/textmap: Ditto.
5832         * font/devps/*: Regenerated.
5833         * font/devlj4/generate/text.map: Add them.
5834         * font/devlj4/*: Regenerated.
5835         * font/devdvi/generate/tc.map: Use them.
5836         * font/devdvi/generate/texsy.map: Add them.
5837         * font/devdvi/*: Regenerated.
5838         * font/devX*/*: Regenerated.
5840         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5841         tmac/tty-char.tmac: Updated.
5843         * NEWS, man/groff_char.man: Updated.
5845 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5847         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5848         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5849         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5850         we use `.fchar' in dvi.tmac.
5851         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5852         * tmac/Xps.tmac: Simplify some char definitions.
5853         Add definition for \[f/].
5854         * man/groff_char.man: Updated for new X.tmac.
5856         * tmac/README: New file.
5858 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5860         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5861         internal .y.o rule took precendence over the .y.cc rule, compiling
5862         the yacc files with gcc instead of g++.
5864 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5866         * tmac/dvi.tmac: Add replacement font for `CB'.
5868         * tmac/doc.tmac: s/request/macro/ in messages.
5869         (doc-generic-macro): Improve error message.
5870         * tmac/groff_mdoc.man: Minor improvements.
5872 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5874         * doc/groff.texinfo: Document possible conflict between `tr' and
5875         `char' requests.
5877 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5879         Improve handling of hyphenation patterns.  It is now possible to
5880         use most of TeX's pattern files unmodified.  To make the process
5881         more flexible, a new request `hpfcode' has been added which
5882         provides a character code mapping for the `hpf' request.  See
5883         comment before hpf_getc() for more details.
5885         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5886         functions.
5887         (read_patterns_file): Additional parameter for exception dictionary.
5888         Extended to recognize \pattern, \hyphenation, and \endinput.
5889         (do_hyphenation_patterns_file): Updated.
5890         * src/roff/troff/env.h (hpf_code_table): New extern.
5892         * src/roff/troff/input.cc (hpf_code_table): New array.
5893         (init_hpf_code_table, hyphenation_patterns_file_code): New
5894         functions.
5895         (hyphenation_code): Handle translation from `trin' correctly.
5896         (main, init_input_requests): Updated.
5897         (charinfo::set_translation): Handle hyphenation code also.
5899         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5900         inline function.
5902         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5903         char' is used for offsets in hyphenation exceptions.
5905         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5907         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5909 2002-03-20  Larry Kollar  <kollar@alltel.net>
5911         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5912         requests.
5914 2002-03-18  Werner LEMBERG  <wl@gnu.org>
5916         * tmac/html.tmac: Fix serious typo.
5918 2002-03-17  Larry Kollar  <kollar@alltel.net>
5920         * doc/groff.texinfo: Add documentation for `writec' request.
5922 2002-03-17  Werner LEMBERG  <wl@gnu.org>
5924         Added request `hpfa' to append hyphenation patterns.
5926         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5927         parameter `append'.
5928         (hyphenation_patterns_file): Renamed to...
5929         (do_hyphenation_patterns_file): This.
5930         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5931         functions.
5932         (init_hyphen_requests): Updated.
5933         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5935 2002-03-16  Werner LEMBERG  <wl@gnu.org>
5937         Added request `writec' in analogy to `tmc'.
5939         * src/roff/troff/input.cc (write_request): Renamed to...
5940         (do_write_request): This.
5941         Added one parameter.
5942         (write_request, write_request_continue): New functions.
5943         (init_input_requests): Updated.
5944         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5946         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5947         5-10000pt.
5948         * NEWS: Document it.
5950 2002-03-15  Werner LEMBERG  <wl@gnu.org>
5952         * man/groff.man: Add writem request.
5954         Add request `trin' (translate input) to make `.asciify' work
5955         correctly.  This is necessary since `charXXX' entity names are no
5956         longer hardcoded in font definition files.
5958         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5959         `translate_input' members.
5960         (charinfo::set_asciify_code, charinfo::get_asciify_code,
5961         charinfo::set_translation_input): New methods.
5962         (charinfo::set_translation): Add third argument.
5963         * src/roff/troff/input.cc (charinfo:set_translation): Set
5964         `asciify_code'.
5965         (do_translate): Add second argument.
5966         (translate_input): New function.
5967         (init_input_requests): Updated.
5968         * src/roff/troff/node.cc (glyph_node::asciify,
5969         composite_node::asciify): Use `get_asciify_code'.
5971         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5973         * NEWS, man/groff.man, man/groff_diff.man: Updated.
5975 2002-03-14  Larry Kollar  <kollar@alltel.net>
5977         * doc/groff.texinfo: Improve documentation of .RS and .RE.
5979 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5981         Add a new request `sizes' similar to the `sizes' command in DESC
5982         files.
5984         * src/roff/troff/env.cc (override_sizes): New function.
5985         (init_env_requests): Use it.
5986         * src/roff/troff/token.h: Export `read_string'.
5987         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5989 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5991         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5993 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5995         * tmac/pspic.tmac: Add support for -Tdvi.
5996         * tmac/dvi.tmac: Include pspic.tmac.
5997         * src/devices/grodvi/grodvi.man: Document it.
5998         * NEWS: Updated.
6000         * font/devlj4/generate/Makefile: Fix URL of metric files.
6002 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6004         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6006 2002-03-09  Larry Kollar  <kollar@alltel.net>
6008         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6010 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6012         * doc/groff.texinfo: Fixes for texinfo 4.1.
6014 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6016         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6017         included.
6018         Handle CYGWIN properly.
6020 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6022         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6023         * tmac/lbp.tmac: Add some font translations.
6025 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6027         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6028         font/devhtml/R.proto: Remove `charXXX'  entries.
6029         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6030         where appropriate.
6032         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6033         * font/devlj4/*: Regenerated all font definition files.
6034         * tmac/lj4.tmac: Load latin1.tmac.
6036         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6037         from 2000-06-17: LJ4 metric files are *not* text files.
6039         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6040         register to test for EBCDIC.
6042 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6044         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6045         files (as grops already does).
6046         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6047         files.
6048         * src/devices/grops/grops.man: Document comment lines in encoding
6049         files.
6051         * tmac/cp1047.tmac: New file.
6052         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6053         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6054         * tmac/Makefile.sub (NORMALFILES): Updated.
6056         * tmac/ec.tmac: Don't load latin1.tmac again.
6058         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6059         font/devps/generate/dingbats.map,
6060         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6061         font/devps/generate/Makefile (symbolmap): Add header comment.
6062         * font/devps/generate/textmap: Ditto.
6063         Remove `charXXX' entries.
6064         * font/devps/symbolmap: Regenerated.
6065         * font/devps/*: Regenerated all font definition files.
6067 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6069         Add color support to grodvi (for drawing colors are currently
6070         translated to gray values).
6072         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6073         (dvi_printer): Add `cur_color' member.
6074         (dvi_printer::set_color): New function.
6075         (draw_dvi_printer): Remove `fill'.
6076         (draw_dvi_printer::fill_next): Pass environment as parameter.
6077         Update code for new color support translated to gray.
6078         (dvi_printer::set_char): Updated.
6079         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6080         changes crossing the page border.
6081         (dvi_printer::draw): Updated.
6082         Remove cases `f' and `F'.
6083         * tmac/dvi.tmac: Add color definitions.
6084         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6086         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6087         used incorrectly.
6089         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6090         versions of autoconf.
6091         * configure: Updated.
6093         * doc/homepage.ms: Use `.blm'.
6094         * tmac/www.tmac (www-depth): New auxiliary variable.
6095         (www-pop-level): Don't issue HTML tag.
6096         (ULS, ULE, LI): Use absolute indentation.
6098         * src/devices/grops/ps.cc (ps_printer::begin_page,
6099         ps_printer::end_page): Switch forth and back to default color while
6100         starting a new page.
6102 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6104         Add EC and TC fonts to devdvi.
6106         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6107         * font/devdvi/generate/cork.map: Renamed to...
6108         * font/devdvi/generate/ec.map: This.
6109         Remove entry for `aq'.
6110         * font/devdvi/generate/tc.map: New file.
6111         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6112         EC and TC fonts.
6113         (FONTS): Updated.
6114         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6115         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6116         * tmac/ec.tmac: New file.
6117         * tmac/Makefile.sub (NORMALFILES): Updated.
6118         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6119         * man/groff_char.man: Check `ECFONTS' register.
6121         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6123 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6125         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6126         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6127         * font/devdvi/*: Updated.
6128         * tmac/dvi.tmac: Formatting.
6130         Add font `HBI' for the dvi output.
6131         Add support for font families `T' and `H'.
6133         * font/devdvi/HBI: New file.
6134         * font/devdvi/B: Renamed to ...
6135         * font/devdvi/TB: This.
6136         * font/devdvi/BI: Renamed to ...
6137         * font/devdvi/TBI: This.
6138         * font/devdvi/I: Renamed to ...
6139         * font/devdvi/TI: This.
6140         * font/devdvi/R: Renamed to ...
6141         * font/devdvi/TR: This.
6142         * font/devdvi/H: Renamed to ...
6143         * font/devdvi/HR: This.
6144         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6145         * font/devdvi/generate/Makefile (HBI): New rule.
6146         (FONTS): Updated.
6147         (R, I, B, BI, H): Renamed to ...
6148         (TR, TI, TB, TBI, HR): This, respectively.
6149         (srcdir): Fixed.
6150         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6151         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6152         Add `styles' and `family' keywords.
6153         * tmac/dvi.tmac: Alias `H' to `HR'.
6154         Add some fspecial requests for italic fonts.
6155         Add TR and TI as special.
6156         Add support for `_' with font CWI.
6158         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6159         operator `:'.  Until now, the expression `0:1' would return 2
6160         instead of 1.
6162 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6164         * man/groff_char.man: Added some missing PS glyph names (from the
6165         Adobe Glyph List).
6166         * font/devps/generate/textmap, font/devps/symbolmap: Add
6167         `arrowupdn'.
6169         * doc/groff.texinfo: Minor additions and fixes.
6170         * man/groff_diff.man: Remove documentation of fp request.  This
6171         is already covered in the original troff manual.
6172         Updated to be consistent with other doc files.
6173         * NEWS: Updated.
6175 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6177         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6178         TTYDEVDIRS.
6179         Define new variable OTHERDEVDIRS (containing `font/devlj4
6180         font/devlbp' if not EBCDIC).
6181         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6182         (OTHERDEVDIRS): New variable.
6183         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6184         * configure: Regenerated.
6186         * NEWS, src/devices/grotty/grotty.man: Updated.
6188 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6190         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6191         get_line_arg): Honour input level.
6193         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6195         * font/*/*: Implement it in all font files.
6196         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6197         * font/devps/symbolmap: Updated.
6198         * font/devlj4/generate/text.map: Updated.
6199         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6200         * font/devdvi/generate/texmi.map: Updated.
6202         * font/devutf8/R.proto: Remove all `charXXX' entries.
6203         * font/devutf8/NOTES: Updated.
6205         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6206         version 4.1.0.
6208         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6210         * NEWS, man/groff_char.man: Updated.
6212 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6214         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6216 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6218         * src/roff/grog/grog.pl: Fix computation of $refer.
6220 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6222         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6223         `snprintf' and `vsnprintf'.
6225         * src/include/htmlindicate.h: Renamed to...
6226         * src/include/htmlhint.h: This.
6227         * src/include/Makefile.sub: Updated.
6228         * src/preproc/eqn/main.cc: Updated.
6230 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6232         * man/roff.man, man/groff_out.man, man/groff.man,
6233         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6234         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6236         * win32-diffs: Updated.
6238 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6240         * doc/Makefile (clean): Add *.eps.
6241         (MEMACROS): Removed.
6242         (TFLAG): New variable.
6243         (TROFF): Use it.
6244         Add -ww.
6245         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6246         (.me.dit): Fixed.
6247         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6249         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6250         `.tl'.
6251         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6252         unstripped.
6253         * src/roff/troff/troff.man: Fix order of parameter description.
6255         * NEWS: Updated.
6257 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6259         Simplify image handling for grohtml.
6260         Fix <p> bug.
6262         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6263         comment out.
6264         (html_text::dump_stack): Don't emit newline while debugging.
6265         (html_text::do_push) [DEBUGGING]: Print more info.
6266         (html_text::check_emit_text): Fix handling of <p>.
6267         * src/devices/grohtml/html.h: Updated.
6268         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6269         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6270         send its data to stderr also.
6271         Update all callers.
6272         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6273         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6274         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6276         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6277         Removed.
6278         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6279         is_inline_image): Removed.
6280         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6281         (graphic_start, graphic_end): Removed.
6282         * src/include/htmlindicate.h: Updated.
6283         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6284         (macroset_template): New global variable.
6285         (makeFileName): Use `macroset_template'.
6286         (write_end_image): Don't take a parameter.
6287         Don't emit newline.
6288         (write_start_image: Don't emit newline.
6289         (char_buffer::write_upto_newline): Updated.
6290         (char_buffer::skip_to_newline): Renamed to ...
6291         (char_buffer::skip_until_newline): This.
6292         Fix code.
6293         (char_buffer::write_file_troff, char_buffer::write_file_html):
6294         Simplified.
6295         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6296         (removeAllPages): Remove `DEBUGGING' conditionals.
6297         (addRegDef, dump_args): New functions.
6298         (char_buffer::do_html, char_buffer::do_image): Handle
6299         `www-image-template' command line variable.
6300         Add more debugging code.
6301         (addps4html): Removed.
6302         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6304         * src/preproc/eqn/main.cc: Include `ctype.h'.
6305         (suppress_html): Removed.
6306         (do_file): Updated.
6307         (inline_equation): Use `html_begin_suppress' and
6308         `html_end_suppress'.
6309         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6310         (troff_output::start_picture, troff_output::finish_picture):
6311         Updated.
6312         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6313         (process_input_file): Updated.
6315         * src/roff/troff/div.cc (page_number): Set page number only if the
6316         `ps4html' register isn't defined.
6317         * src/roff/troff/input.cc (image_no): New external variable.
6318         (do_suppress): Use it.
6319         * src/roff/troff/node.h (suppress_node::image_id): New member.
6320         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6321         (suppress_node::suppress_node): Initialize `image_id' member.
6322         (suppress_node::same): Handle `image_id' also.
6323         (suppress_node::copy): Updated.
6324         (last_image_id): New global variable.
6325         (suppress_node::tprint): Use it.
6327         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6328         HTML-IMAGE-END.
6329         * tmac/pspic.mac (PSPIC): Fix html support.
6330         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6331         * tmac/www.tmac (www-image-template): Set up.
6332         (HTMLINDEX): Renamed to...
6333         (HX): This.
6334         (BODYCOLOR): Renamed to...
6335         (BCL): This.
6336         (BACKGROUND): Renamed to...
6337         (BGIMG): This.
6338         (URL): Change order of parameters for consistency.
6339         (MAILTO): Renamed to...
6340         (MTO): This.
6341         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6342         (IMG, PIMG, MPIMG): This.
6343         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6344         (HnS, HnE): This.
6345         (LINKS): Renamed to...
6346         (LK): This.
6347         (LINE): Renamed to...
6348         (HR): This.
6349         (NO-AUTO-RULE): Renamed to...
6350         (NHR): This.
6351         (HTML-TL): Renamed to...
6352         (HTL): This.
6353         (UL-BEGIN, UL-END): Renamed to...
6354         (ULS, ULE): This.
6355         (DROPCAP): Renamed to...
6356         (DC): This.
6357         (TS, TE, EQ, EN): Provide default definitions.
6358         (www-make-unique-name): Updated.
6359         (HTML-IMAGE-INLINE): Fix typo.
6360         * tmac/groff_www.man: Updated.
6362         * doc/Makefile (homepage.html): Add option -r to grohtml.
6363         Use shortened image name.
6364         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6365         * doc/homepage.ms: Updated and extended.
6367 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6369         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6371         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6372         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6373         (tty_printer::put_color): Use it.
6374         (ttr_printer::end_page): Simplify.
6376 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6378         * tmac/groff_tmac.man: Moved to...
6379         * man/groff_tmac.man: This place.
6380         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6382 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6384         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6385         $(COMPILE.c) to not include groff's assert.h.
6387         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6388         variable.
6389         * NEWS, src/drivers/grotty/grotty.man: Document it.
6391 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6393         * src/libs/snprintf/snprintf.c: Updated to latest version
6394         (2002-02-11).
6396         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6397         test whether there is `.]' also.
6398         Don't check for spaces after `.['.
6399         * src/roff/grog/grog.sh: Do the same.
6401 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6403         Illegal -> Invalid.
6405         * src/libs/libgroff/illegal.cc: Renamed to ...
6406         * src/libs/libgroff/invalid.cc: This.
6407         (illegal_char_table): Renamed to ...
6408         (invalid_char_table): This.
6409         * src/libs/libgroff/Makefile.sub: Updated.
6410         * win32-diffs: Updated.
6412         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6413         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6414         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6415         font::load), src/preproc/eqn/main.cc (read_line, main),
6416         src/preproc/eqn/lex.cc (file_input::read_line),
6417         src/preproc/pic/lex.cc (file_input::read_line,
6418         simple_file_input::get, simple_file_input::peek),
6419         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6420         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6421         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6422         do_bib), src/preproc/tbl/main.cc (table_input::get),
6423         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6424         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6425         do_zero_width, read_request, encode_char, ps_get_line,
6426         transparent_file, get_char_for_escape_name, transparent_translate,
6427         asciify, input_char_description, read_string, set_string),
6428         src/roff/troff/env.cc (environment::add_html_tag),
6429         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6431         * src/include/lib.h: Updated.
6433         * src/preproc/eqn/eqn.cc: Removed.
6435         * NEWS: Updated.
6437         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6439 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6441         * doc/gnu.xpm: New image.
6442         * doc/Makefile (DOCS): Add homepage.ps.
6443         Add rules for converting xpm->png and xpm->eps.
6444         Use `gnu.{xpm,eps}' as image names.
6445         * doc/homepage.ms: Updated.
6447 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6449         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6450         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6451         Remove calls to `B1' and `B2'
6452         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6453         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6454         auxiliary variables for MARGIN-PNG-IMAGE.
6455         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6456         auxiliary macros for MARGIN-PNG-IMAGE.
6457         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6458         the margin.
6459         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6460         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6461         (DROPCAP): New macro to produce dropcap characters.
6462         (www-do-image): Renamed back to...
6463         (HTML-DO-IMAGE): This.
6464         Updated all callers.
6466         * doc/Makefile (gnubw.eps): Updated.
6467         * doc/homepage.ms: Updated.
6469 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6471         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6472         Added `linethick' to table in section `Style Variables'.
6474 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6476         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6478 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6480         Adding options -C (compatibility mode) and -c (grotty's old output
6481         scheme) to nroff.
6483         * src/roff/nroff/nroff.sh: Implement it.
6484         Remove `-Wall'.
6485         * NEWS, src/roff/nroff/nroff.man: Updated.
6487         * PROBLEMS: Document bison 1.32 bug.
6489         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6491         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6492         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6493         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6494         * src/roff/troff/env.h: Add prototype for `title'.
6496         Adding EBCDIC support to grotty.
6498         * src/devices/grotty/tty.cc (CSI): New macro.
6499         (SGR_*, tty_printer::put_color): Use it.
6501 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6503         Implementing color support in grotty.  The new switch -c activates
6504         the old drawing scheme, disabling color at the same time.  The new
6505         switch `-i' selects italic instead of underlining (SGR only).
6507         * src/devices/grotty/tty.cc (putstring): New define instead of
6508         `fputs'.  Updated all callers.
6509         (old_drawing_scheme): New global variable.
6510         (COLOR_CHANGE): New enum value.
6511         (SGR_*): New defines containing color handling escape sequences.
6512         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6513         (glyph): New members `back_color_idx' and `fore_color_idx'.
6514         (glyph::order): Add COLOR_CHANGE.
6515         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6516         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6517         New methods `make_underline', `make_bold', `color_to_idx',
6518         `change_color', `put_color'.
6519         (cu_flag): Moved into `tty_printer' class.
6520         (tty_printer::tty_printer): Initialize colors.
6521         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6522         tty_printer::draw, tty_printer::end_page): Handle colors also.
6523         (main): Add options `-c' and `-i'.
6524         (usage): Updated.
6525         * NEWS, src/devices/grotty/grotty.man: Updated.
6527         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6528         * src/libs/libgroff/errarg.c: Implement it.
6530         * src/include/printer.h (printer): Add `change_color' method
6531         (currently used by grotty only).
6532         * src/libs/libdriver/printer.cc: Implement it.
6533         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6534         call to `pr->change_color'.
6536         * src/roff/troff/node.cc (troff_output_file::fill_color,
6537         troff_output_file::glyph_color): Call `do_motion'.
6539         * tmac/tty.tmac: Add color definitions.
6541         * src/roff/groff/groff.man: Minor fixes.
6543 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6545         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6546         it.  This is a preparation for future changes.
6548 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6550         * src/roff/troff/input.cc (process_input_stack): Fix the case
6551         where leading spaces are followed by \f or \s; previously, an
6552         incorrect space width has been used.
6554         * doc/roff.man (quoted_char): Fix argument.
6555         (comment): Define string.
6557 2002-02-04  Larry Kollar  <kollar@alltel.net>
6559         * doc/groff.texinfo: More fixes.
6561 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6563         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6564         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6565         `restore_compatibility' before `output_string' -- the LINE_STRING
6566         register now already contains proper switches from and to
6567         compatibility mode.
6569         * man/groff_char.man: Add Euro symbol.
6570         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6571         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6572         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6573         Other minor fixes.
6575         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6576         texinfo->pdf.
6577         (.texinfo.html): Add support for texinfo->html.
6579 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6581         Added three new requests `ds1', `as1', and `ami'.  The former two
6582         are equivalent to `ds' and `as' with the difference that
6583         compatibility mode is saved on entry, switched off during string
6584         expansion, and restored on exit.  The latter is the pendant to `dei'
6585         for `am'.
6587         (do_define_string): Use `define_mode' and `calling mode'.
6588         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6589         end of string, respectively.
6590         (define_string, append_string): Use `calling_mode'.
6591         (define_nocomp_string, append_nocomp_string,
6592         define_string_indirect): New functions.
6593         (init_input_requests): Updated.
6594         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6596         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6597         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6598         mm macro package accesses this string register directly.
6599         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6601         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6602         compatibility mode.
6604 2002-02-02  Larry Kollar  <kollar@alltel.net>
6606         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6608 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6610         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6612 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6614         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6615         * man/groff_out.man: Revised and updated.
6617 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6619         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6620         out the unused `{' and `}' commands.  Undefined by default.
6621         (IntArray): Make `data' private.
6622         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6623         new methods instead.
6624         (skip_line_D, skip_to_end_of_line): New functions.
6625         (get_D_fixed_args): Use `skip_line_D'.
6626         Changed to handle dummy odd arguments by ...
6627         (get_D_fixed_args_odd_dummy): This new function.
6628         (get_D_variable_args): Split some code into ...
6629         (get_possibly_integer_args): This new function.
6630         (send_draw): Use more `const'.
6631         (delete_current_env): New function.
6632         (position_to_end_of_args): Use `size_t'.
6633         Updated.
6634         (send_draw): Updated.
6635         (parse_D_command): Handle `c', `C', and `t' better.
6636         Updated.
6637         (do_file): Updated.
6639 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6641         * NEWS: Revised.
6642         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6643         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6644         proper HTML output -- see the comment in the file for more
6645         information.
6646         Updated all calls.
6648 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6650         Fixes to make color changes of 2002-01-21 work with grohtml.
6652         * src/devices/grohtml/post-html.cc (style): Updated.
6653         (html_printer): Remove unused methods.
6654         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6655         html_printer::special): Updated.
6656         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6657         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6658         Added some debugging code.
6659         (html_text::start_tag): Updated.
6660         (html_text::do_push): New method.
6661         (html_text::push_para): Call it.
6662         Add method for handling color.
6663         (html_text::do_color): Updated.
6664         (html_text::shutdown): Handle color.
6665         * src/devices/grohtml/html-text.h (tag_definition): New member
6666         `col'.
6667         Updated.
6669 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6671         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6673 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6675         Add two switches -a and -g to control the antialiasing bits for
6676         text and graphics, respectively.
6678         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6679         `-g'.
6680         * src/devices/grohtml/grohtml.man: Document them.
6681         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6682         New macros.
6683         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6684         (setupAntiAlias): New function.
6685         (createAllPages): Updated.
6686         (scanArguments): Handle `-a' and `-g'.
6687         (main): Call `setupAntiAlias'.
6688         * NEWS: Updated.
6690 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6692         * doc/groff.texinfo (Def*): Call index function after deffn.
6694         * tmac/html.tmac: Call `nroff' request.
6696 2002-01-26  Larry Kollar  <kollar@alltel.net>
6698         * tmac/groff_ms.man: Add some omissions.
6700 2002-01-25  Larry Kollar  <kollar@alltel.net>
6702         * tmac/groff_ms.man: Typographical improvements.
6704 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6706         * doc/groff.texinfo: Updated version and copyright.
6707         * src/devices/grops/grops.man: Updated.
6709         * tmac/groff_tmac.man: Fix `ig' macro.
6711         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6712         nroff mode.
6713         Use `.ne' unconditionally everywhere.
6714         (TS): Only insert some vertical space.  Doing a page break is no
6715         longer necessary due to the redefinition of the `ne' request.
6717         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6718         warning for unknown subcommands but parse and pass them to the
6719         device driver.
6721 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6723         * tmac/groff_www.man, NEWS: Fix typos.
6725 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6727         Complete revision of color support:
6729           Adapt programs to the new libdriver/input.cc.
6731           Color spaces are no longer converted to RGB but transferred as-is
6732           in the troff intermediate output format.
6734           Handle default color gracefully.  troff now supports a `default'
6735           color (which can't be changed).
6737           grops will now use the proper color space functions if available.
6739           Update pic.
6741         Note that currently grohtml doesn't handle colors properly.  This
6742         has to be fixed.
6744         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6745         (ui_to_a): New function.
6746         * src/include/lib.h: Updated.
6748         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6749         (color): Simplified; removed all `double' members and methods.
6750         A new array `components' now holds the color parameters.
6751         (color::is_default, color::get_components): New methods.
6752         (color::operator==, color:operator!=): New.
6753         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6754         to make access to the `components' array more comprehensible.
6755         * src/libs/libgroff/color.cc: Implement new color support.
6756         (atoh): Small fixes.
6757         (color::read_encoding): Simplified for new troff intermediate color
6758         output format.
6759         (default_color): New global variable.
6761         * src/roff/troff/input.cc (default_symbol): New global variable.
6762         (lookup_color): Use it.
6763         (default_black): Removed.
6764         (do_glyph_color, do_fill_color): Simplified.
6765         (define_color): Handle default color.
6766         Improve warnings.
6767         (do_if_request): Handle default color.
6768         * src/roff/troff/env.cc (environment::environment): Initialize
6769         colors with `default_color'.
6770         * src/roff/troff/node.cc (troff_output_file::put): Add method
6771         for `unsigned int'.
6772         (troff_output_file::hex): Removed.
6773         (troff_output_file::fill_color, troff_output_file::glyph_color):
6774         Updated to include/color.h and libdriver/input.cc.
6776         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6777         fill color properly (identically to the outline color).  \D'f...'
6778         doesn't work any more.
6779         All function calls to it updated.
6781         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6782         Updated.
6783         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6784         Updated.
6786         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6787         (ps_printer::sbuf_color): Make a real member instead of pointer.
6788         (ps_printer::fill_color, ps_printer::output_color): Removed.
6789         (ps_printer::ps_printer): Updated.
6790         (ps_printer::set_char): Ditto.
6791         (ps_printer::set_color): Use various color schemes.
6792         Use `put_color' method.
6793         (ps_printer::flush_sbuf): Don't set color.
6794         (ps_printer::fill_path): Take `environment' as parameter.
6795         Simplify color handling.
6796         (ps_printer::set_line_thickness): Renamed to ...
6797         (ps_printer::set_line_thickness_and_color): This (and updated).
6798         (ps_printer::set_color): Change second parameter from `complete'
6799         to `fill' which better describes what it does.
6800         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6801         and text in the right order.
6802         Updated.
6803         Remove branches for `f' and `F'; this is handled by
6804         libdriver/input.cc.
6805         * src/devices/grops/ps.h: Updated.
6806         * font/devps/prologue (FL): Redefined.
6807         ({F,C}r,k,g: New color functions (with and without filling).
6809         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6810         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6811         doc/groff.texinfo, NEWS: Updated.
6813 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6815         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6816         in this file for what has been changed.
6818 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6820         * test-groff: Fix GROFF_FONT_PATH.
6821         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6822         is read before .TH or .Dd is parsed.
6824 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6826         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6827         quadrant boundaries.
6829 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6831         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6832         applied last patch.
6834 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6836         * tmac/doc.common: Initialize %I register for the %I macro to
6837         avoid (harmless) warning.
6838         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6839         when in the SYNOPSIS section.
6841 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6843         * src/preproc/pic/lex.cc (get_token): Fix typo.
6845 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6847         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6849 2002-01-17  Larry Kollar  <kollar@alltel.net>
6851         * tmac/groff_ms.man: Completely rewritten.
6853 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6855         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6857 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6859         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6860         fill colors.
6861         (ps_printer::draw): Ditto.
6863 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6865         * tmac/groff_mdoc.man: Minor fixes.
6867 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6869         * man/groff_out.man: Some fixes.
6871 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6873         * doc/pic.ms: Fix typos.
6875 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6877         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6879 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6881         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6882         symbols.
6883         * NEWS: Updated.
6885 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6887         * man/groff_out.man: Revised.
6888         * man/roff.man: Minor fixes.
6889         * src/roff/troff/troff.man: Some reordering.
6891 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6893         * tmac/an-old.tmac: Add dummy macros for equation support.
6895 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6897         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6899         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6900         man pages.
6901         * tmac/groff_man.man: Small improvements.
6903 2002-01-07  Bernd Warken  <bwarken@mayn.de>
6905         * man/groff_diff.man: Revised.
6907 2002-01-06  Werner LEMBERG  <wl@gnu.org>
6909         * tmac/www.tmac: Remove extraneous backslash.
6911 2002-01-06  Bernd Warken  <bwarken@mayn.de>
6913         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6915 2002-01-05  Werner LEMBERG  <wl@gnu.org>
6917         Integrated groffer, contributed by Bernd Warken.
6919         * contrib/groffer/*: New.       
6920         * Makefile.in, NEWS: Updated.
6922 2002-01-04  Werner LEMBERG  <wl@gnu.org>
6924         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6925         registers defined in macro packages.
6926         Revising the ms part.
6928 2002-01-04  Larry Kollar  <kollar@alltel.net>
6930         * doc/groff.texinfo: Add documentation for ms macros.
6932 2002-01-02  Werner LEMBERG  <wl@gnu.org>
6934         First step in adding PS support for the Euro symbol.  `eu' is the
6935         official Euro logo, `Eu' is a font-specific glyph variant.
6937         * font/devps/text.enc: Add `Euro' at position 9.
6938         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6939         * font/devps/symbolmap: Regenerated.
6941         * NEWS: Updated.
6943 2002-01-02  Bernd Warken  <bwarken@mayn.de>
6945         * man/roff.man: Revised.
6947 2002-01-01  Bernd Warken  <bwarken@mayn.de>
6949         * src/roff/groff/groff.man: Completely rewritten.
6951 2001-12-31  Werner LEMBERG  <wl@gnu.org>
6953         * doc/Makefile: Updated.
6955 2001-12-30  Werner LEMBERG  <wl@gnu.org>
6957         * tmac/www.tmac: Make all names of internal macros/registers/strings
6958         lowercase, and prepend `www-'.
6959         Other minor changes.
6960         * src/roff/troff/troff.man: Add preprocessor string at BOF.
6962 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
6964         Implement option `-b' in grohtml to set the HTML background colour.
6966         * src/devices/grohtml/post-html.cc (default_background): New global
6967         variable.
6968         (html_printer::html_printer): Initialize `background' to
6969         `default_background'.
6970         (main): Implement option `-b'.
6971         (usage): Updated.
6972         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6973         of `-b' option.
6974         * src/devices/grohtml/grohtml.man: Updated.
6975         * doc/Makefile (.ms.html): Use `-b'.
6976         * tmac/html.tmac: Don't set background color.
6978         Add new grohtml tag `.html-tl'.
6980         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6981         member variable.
6982         (title_desc::title_desc): Updated.
6983         (html_printer::troff_tag): Handle `.html-tl'.
6984         (html_printer::write_title): Use `with_h1'.
6985         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6986         (HTML-TL): New macro.
6988         Add support for unordered lists in HTML.
6990         * tmac/www.tmac (www-level): New auxiliary register.
6991         (www-level1, www-level2, www-level3): New auxiliary strings.
6992         (www-push-level, www-pop-level): New auxiliary macros
6993         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6995         Miscellaneous.
6997         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6998         (DEFAULT_VERTICAL_OFFSET): Removed.
6999         (IMAGE_BOARDER_PIXELS): Set to 0.
7000         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7001         (vertical_offset): Initialize with 0.
7002         (gsPaper): New global variable.
7003         (get_resolution): Scan for and return unsigned int.
7004         (get_papersize): New function to get paper length from devps/DESC.
7005         (determine_vertical_offset): New function.
7006         (createAllPages): Produce gray-level images and use proper page
7007         length.
7008         (createImage): Use `-quiet' option of pnmcrop.
7009         (addZ): Fix passing of `-Z'.
7010         (scanArguments): Fix handling of `-o'.
7011         (main): Call `determine_vertical_offset'.
7012         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7013         code for `l'.
7015         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7016         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7017         glyph descenders properly.
7019         * doc/homepage.ms: Include `gnubw.eps'.
7020         * doc/Makefile (gnubw.eps): New rule.
7021         (homepage.html): Depend on `gnubw.eps'.
7023 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7025         * src/roff/troff/input.cc (default_black): Fix return value.
7027 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7029         * tmac/doc-common (Dt): Change output of architecture strings.
7030         Do some syntax cleanup.
7031         * tmac/groff_mdoc.man: Updated.
7033 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7035         Adding an `itc' request (input line trap accepting \c).
7037         * src/roff/troff/env.h (environment): New member
7038         `continued_input_trap'.
7039         Make `do_input_trap' a friend function instead of `input_trap'.
7040         * src/roff/troff/env.cc (environment::environment,
7041         environment::copy): Updated.
7042         (environment::newline): Implement it.
7043         (do_input_trap): New function.
7044         (input_trap): Call `do_input_trap'.
7045         (input_trap_continued): New function.
7046         (init_env_requests): Updated.
7047         * src/roff/troff/TODO: Updated.
7049         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7050         `.it'.
7052         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7054 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7056         * tmac/doc-common, tmac/doc-syms: Small updates.
7058 2001-12-22  Colin Watson  <cjwatson@debian.org>
7060         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7062 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7064         * MANIFEST: New file.
7066 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7068         * src/preproc/grn/grn.man: Updated.
7070 2001-12-22  Solar Designer  <solar@openwall.com>
7072         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7073         (DBRead): Use it.
7075 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7077         Implement a fallback character request `.fchar'.
7079         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7080         (is_fallback): New inline function.
7081         * src/roff/troff/input.cc (do_define_character): New function.
7082         (define_character): Call `do_define_character'.
7083         (define_fallback_character): New function.
7084         (init_input_requests): Add `fchar'.
7085         (charinfo::charinfo): Updated.
7086         (charinfo::set_macro): New argument to set `fallback' flag.
7087         * src/roff/troff/node.cc (make_glyph_node, make_node,
7088         node::add_char): Check `fallback' flag.
7089         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7091 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7093         * groff.texinfo: Document exact search algorithm for glyphs.
7095 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7097         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7098         the left side of $(MANPAGES) rule to make it always non-empty.
7100 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7102         * src/roff/troff/input.cc (default_black): Define default color
7103         `black' if not yet defined.
7105 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7107         Implement new string-valued register `.fn' to return the current
7108         real (internal) font name.
7110         * env.cc (environment::get_font_name_string): New function.
7111         (init_env_requests): Add `.fn' register.
7112         * env.h (environment): Updated.
7113         * node.cc (font_info): Make `get_font_name' a friend.
7114         (get_font_name): New function.
7115         * node.h: Updated.
7117         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7119 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7121         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7123 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7125         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7127 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7129         * man/groff_diff.man: Adding documentation for \O.
7131 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7133         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7134         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7136 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7138         * man/roff.man: Revised.
7139         * src/roff/groff/groff.man: Replace man page references with a
7140         pointer to roff.man.
7142 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7144         * man/roff.man: Completely rewritten.
7146 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7148         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7150 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7152         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7153         longer used.
7154         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7155         order of initializers.
7156         * NEWS: Updated.
7158 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7160         * doc/groff.texinfo: Fix documentation of \O.
7162         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7163         html_text::do_table, html_text::do_emittext, html_text::do_para):
7164         Use `const' for first argument.
7165         (html_text::do_table): Use cast.
7166         * src/devices/grohtml/html-text.h: Updated.
7167         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7168         method for `const string &s'.
7169         * src/devices/grohtml/html.h: Updated.
7170         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7171         (ANCHOR_TEMPLATE): Modified.
7172         (manufacture_headings): New global variable to handle `-h' option.
7173         (is_subsection): Removed.
7174         (char_buffer::add_string): Add `const' to first argument.
7175         Protect against invalid string argument.
7176         Add method for `const string &s'.
7177         (text_glob): Completely redesigned.
7178         (page): Use `const' for strings and remove string length variable.
7179         (page::add_html): Removed.
7180         (page::add_end_encode): New member function.
7181         (to_unicode): Moved upwards.
7182         (title_desc, header_desc): Updated.
7183         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7184         definition.
7185         (html_printer::is_bold, html_printer::make_bold): New member
7186         functions.
7187         (html_printer::end_of_line): Updated.
7188         (generate_img_src, html_printer::do_auto_image,
7189         html_printer::do_title, html_printer::write_header,
7190         html_printer::determine_header_level, html_printer::do_heading,
7191         html_printer::do_linelength, html_printer::do_pageoffset,
7192         html_printer::do_indentation, html_printer::do_tempindent,
7193         html_printer::do_indentedparagraph, html_printer::do_break,
7194         html_printer::flush_sbuf, get_html_translation,
7195         html_printer::begin_page, html_printer::special): Rewritten to get
7196         rid of static string length limit.
7197         (html_printer::troff_tag): Added `.no-auto-rule'.
7198         (html_printer::flush_globs): Small fix.
7199         (html_printer::determine_space): Don't compute `space_width'.
7200         (html_printer::translate_to_html): Renamed to ...
7201         (html_printer::emit_html): This (with updates).
7202         (html_printer::write_header): Implement `-h' option.
7203         (html_printer::draw): Remove commented-out code.  Handle `F'
7204         command.
7205         (html_printer::add_char_to_sbuf): Removed.
7206         (html_printer::add_to_sbuf): Rewritten.
7207         (html_printer::sbuf_continuation): Fixed.
7208         (html_printer::seen_backwards_escape, reverse,
7209         html_printer::remove_last_char_from_sbuf): Removed.
7210         (char_translate_to_html, str_translate_to_html): Removed.
7211         (html_printer::overstrike): New function member.
7212         (html_printer::set_char): Use it.
7213         (html_printer::do_body): New function member.
7214         (html_printer::~html_printer): Use it.
7215         (main): Handle `-h' option.
7216         (usage): Updated.
7217         * src/devices/grohtml/grohtml.man: Document -h switch.
7219         * src/preproc/html/pre-html.cc: Include searchpath.h
7220         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7221         (get_resolution): New function.
7222         (checkImageDir): Use `0777' permissions in mkdir()
7223         (write_start_image): Rewritten to use `\O[5...]'.
7224         (createImage, generateImages): Updated.
7225         (main): Handle `F' and `h' options.
7226         Use `get_resolution'.
7228         * src/roff/troff/input.cc (begin, end, image): Removed.
7229         (do_suppress): Take parameter.
7230         Handle modified syntax of `\O'.
7231         (token::next): Updated.
7232         (init_markup_requests): Removed.
7233         (main): Updated.
7235         * src/roff/troff/div.h: Add declaration for begin_page().
7237         * tmac/color-html.tmac: Removed.  Contents moved to...
7238         * tmac/html.tmac: Here.  Set background color.
7239         * tmac/color.tmac: Removed.  Contents moved to...
7240         * tmac/ps.tmac: Here.
7241         * tmac/www.tmac: Remove the title command when generating images
7242         for html.
7243         (NO_AUTO_RULE): New macro.
7244         (HTML_DO_IMAGE): Use revised `\O' escapes.
7245         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7247 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7249         * tmac/groff_mdoc.man: Fix typo.
7251 2001-12-01  Colin Watson  <cjwatson@debian.org>
7253         * man/roff.man: Fix typo.
7255 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7257         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7258         stdlib.h.
7260         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7261         more than one argument to \D'f ...'.
7263         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7265 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7267         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7268         loaded only once.
7270         * tmac/groff_man.man: Minor cosmetic fix.
7272 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7274         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7275         tmac/groff_www.man: s/mwww/www/.
7277 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7279         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7280         * configure: Regenerated.
7281         * win32-diffs: Updated.
7283         * tmac/groff_mwww.tmac: Renamed to ...
7284         * tmac/groff_www.tmac: This.
7285         * tmac/mwww.tmac: Removed.
7286         * NEWS, tmac/Makefile.sub: Updated.
7288 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7290         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7291         Fix explanation of `\D' and `rt'.
7293 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7295         * tmac/an-old.tmac (an-header): Set header length equal to page
7296         width.
7297         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7298         minor fixes.
7299         * NEWS: Small fix.
7301 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7303         * NEWS, man/Makefile.sub: Updated.
7305 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7307         * man/ditroff.man: New file.
7309 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7311         * man/groff_differences.man: Renamed to ...
7312         * man/groff_diff.man: This.  Updated.
7313         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7315         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7316         * src/preproc/html/pushback.cc: This.  Updated.
7317         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7318         * src/preproc/html/pushback.h: This.
7319         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7320         Updated.
7322         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7323         * src/libs/libgroff/htmlhint.cc: This.
7324         * src/libs/libgroff/Makefile.sub: Updated.
7326         * tmac/an-old.tmac (an-end): Fix page length.
7328 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7330         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7331         * man/Makefile.sub: Include groff_differences.man.
7332         * VERSION: Set to 1.18.
7333         * REVISION: Set to 0.
7335 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7337         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7338         the second dot (or ending macro name) to end a macro.
7339         * doc/groff.texinfo: Doc fix.
7341 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7343         * tmac/doc-common (doc-header): Handle very long document titles
7344         better.
7346 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7348         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7350 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7352         * src/roff/troff/troff.man: Revised and split into troff.man and...
7353         * man/groff_differences.man: New file.
7354         * NEWS: Updated.
7356 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7358         * tmac/an-old.tmac (TS, TE): New macros for table support.
7360 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7362         * src/include/lib.h: Provide a fix for emx to not include
7363         groff-getopt.h.
7365 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7367         * src/roff/troff/input.cc (substring_macro): Fix computation of
7368         boundary values.
7370 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7372         Undo change from 2001-08-28.
7374         * src/roff/troff/input.cc (have_input): New global variable.
7375         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7376         in compatibility mode.
7377         (process_input_stack): Use it.
7379 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7381         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7382         being handled as end-of-sentence characters,
7384 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7386         * src/roff/troff/input.cc (file_iterator): New members
7387         `suppress_newline_flag' and `seen_escape'.
7388         (file_iterator::next_file): Updated.
7389         (file_iterator::fill): Use it.
7390         (string_iterator): New member `suppress_newline_flag'.
7391         (string_iterator::fill): Set it.
7392         (get_color_element): Use MAX_COLOR_VAL.
7393         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7394         (no_fill): Don't set `env->ignore_next_eol'.
7395         (environment::newline): Handle `eol' tag properly.
7396         Emit `eol.ce'.
7397         (environment::add_html_tag): Set `env->ignore_next_eol'.
7398         Don't handle `.ce'.
7399         * src/roff/troff/env.h (environment): Updated.
7401         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7402         member function.
7403         (html_printer::outstanding_eol): New member function.
7404         (html_printer::do_title): Use new functions.
7405         (html_printer::troff_tag): Test `id_eol_ce'.
7407 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7409         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7410         files work with -C also.
7412 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7414         * doc/pic.ms: Minor fix.
7415         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7416         as a valid command line switch.
7417         * src/devices/grohtml/post-html.cc (main): Ditto.
7418         (usage): Updated.
7419         * src/devices/grohtml/grohtml.man: Updated.
7420         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7422 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7424         Implementing color support in troff, pic, grops, and grohtml.  These
7425         changes are based on a major patch provided by Gaius Mulley
7426         <gaius@glam.ac.uk>.
7428         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7429         definitions with both hex values and fractions.
7431         New escapes: \m and \M for drawing and background color,
7432         respectively.  This corresponds to the troff output commands `m'
7433         and `DF'.
7435         groff and troff accept command line switch `-c' to disable color
7436         output (which is automatically disabled in compatibility mode).
7438         New scaling indicator `f' for fractions (1f = 65536u).
7440         New conditional operator `m' to test for defined colors with `if'
7441         and `ie'.
7443         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7444         (or `outlined'), and `shaded' added to pic.
7446         * src/include/color.h: New file.
7447         * src/include/driver.h: Include it.
7448         * src/include/printer.h: Include color.h.
7449         (environment): New members `col' and `fill'.
7450         (printer): Remove `adjust_arc_center' member function.
7451         * src/include/Makefile.sub: Updated.
7453         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7454         `env.fill'.
7455         Handle `m' and `DF' troff commands.
7456         * src/libs/libgroff/color.cc: New file.
7457         * src/libs/libgroff/Makefile.sub: Updated.
7459         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7460         (stop): Removed.
7461         (createImage): Fix computation of `y2'.
7462         Use `pnmcrop' also.
7463         (buffer::write_file_html): Remove calls to `stop'.
7465         * src/preproc/pic/common.h (common_output): New abstract function
7466         members `set_color', `reset_color', `get_last_filled', and
7467         `get_outline_color'.
7468         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7469         (object_spec): Add members `shaded' and `outlined'.
7470         * src/preproc/pic/output.h (output): `command' is now abstract.
7471         New function members `set_color', `reset_color', `get_last_filled',
7472         and `get_outline_color'.
7473         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7474         `outline[d]', and `shaded'.
7475         * src/preproc/pic/object.cc (output::command): Removed.
7476         (output::set_location): Moved to output.h.
7477         (graphic_object): Add protected members `outline_color' and
7478         `color_fill'.
7479         Add member functions `set_outline_color', `get_outline_color', and
7480         `set_fill_color'.
7481         (closed_object): Add member function `set_fill_color'.
7482         Add member `color_fill'.
7483         (graphic_object::print_text): Use `out->set_color' and
7484         `out->reset_color'.
7485         (box_object::print, ellipse_object::print, circle_object::print,
7486         line_object::print, spline_object::print, arc_object::print): Ditto.
7487         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7488         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7489         `SHADED', making them `%left'.
7490         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7491         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7492         `set_color', `reset_color', `get_last_filled', and
7493         `get_outline_color'.
7494         * src/preproc/pic/troff.cc (simple_output): New abstract function
7495         members `set_color', `reset_color', and `get_last_filled'.
7496         (simple_output::polygon, simple_output::circle,
7497         simple_output::ellipse): Use `get_last_filled'.
7498         (troff_output): New members `last_filled' and `last_outlined'.
7499         New function members `set_color', `reset_color', `get_last_filled',
7500         and `get_outline_color'.
7501         (troff_output::finish_picture): Use `reset_color'.
7502         (troff_output::set_fill): Test `last_filled'.
7503         * src/preproc/pic/pic.man: Updated.
7505         * src/roff/groff/groff.cc (main): Implement `-c' option.
7506         (synopsis, help): Updated.
7507         src/roff/groff/groff.man: Updated.
7509         * src/roff/troff/troff.h: Include color.h.
7510         (warning_type): Add WARN_COLOR.
7511         * src/roff/troff/env.h (environment): New members
7512         `{cur,prev}_{glyph,fill}_color'.
7513         New member functions `get_{prev_,}{glyph,fill}_color'.
7514         * src/roff/troff/env.cc: Initialize and implement them.
7515         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7516         Replace `NULL' with `0' everywhere for consistency.
7517         (lookup_color, default_black, do_glyph_color, do_fill_color,
7518         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7519         define_color): New functions.
7520         (token::next): Implement \M and \m escapes.
7521         (do_if_request): Implement `m' operator.
7522         (usage): Updated.
7523         (main): Implement `-c' option.
7524         (init_markup_requests): Add `defcolor' request.
7525         (warning_table): Add `color' warning.
7526         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7527         classes.
7528         * src/roff/troff/node.cc (troff_output_file): New members
7529         `current_{page,glyph}color'.  New member functions `put_hex',
7530         `glyph_color', and `fill_color'.
7531         (glyph_color_node::*, fill_color_node::*): Implement it.
7532         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7533         (parse_term): Add support for `f'.
7534         * src/roff/troff/troff.man: Updated.
7536         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7537         entry for `F'.
7538         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7539         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7541         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7542         (tag_definition): Use `void *' for arg1.
7543         (html_text): New member functions `do_color' and `done_color'.
7544         Use `void *' for second parameter of `push_para' member function.
7545         New `push_para' member function with a single parameter.
7546         Use `char *' for parameter of `issue_table_begin' member funtion.
7547         New `issue_color_begin' member function.
7548         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7549         COLOR_TAG.
7550         (html_text::issue_color_begin): New function.
7551         (html_text::issue_table_begin): Use `char *' for parameter.
7552         (html_text::start_tag, html_text::shutdown,
7553         html_text::check_emit_text): Updated.
7554         (html_text::push_para): Use `void *' for second parameter.
7555         Add same function with only one parameter.
7556         (html_text::do_*): Updated.
7557         (html_text::do_color, html_text::done_color): New functions.
7558         * src/devices/grohtml/post-html.cc (style): New member `col'.
7559         Mew member `style' with 6 parameters.
7560         (style::style, style::operator==): Updated.
7561         (html_printer::do_font): Use it.
7562         (html_printer::draw): Add dummy entry for `F'.
7563         (html_printer::set_char): Updated.
7564         * src/devices/grohtml/grohtml.man: Updated.
7566         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7567         trailing zeroes removed.
7568         (ps_printer): New members `sbuf_color', `fill_color', and
7569         `output_color'.
7570         Removed member `fill'.
7571         New member function `set_color'.
7572         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7573         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7574         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7576         * tmac/color-html.tmac, tmac/color.tmac: New files.
7577         * tmac/troffrc: Include them.
7578         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7579         * tmac/Makefile.sub: Updated.
7581         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7582         man/groff.man: Updated.
7583         * font/devps/prologue.ps: Define FC and CO functions.
7585 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7587         Fix incorrect cropping of images and incorrect handling of special
7588         characters.  Fix handling of file names in \O.
7590         * src/include/geometry.h: New file.
7591         * src/libs/libgroff/geometry.cc: New file.
7592         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7593         to `geometry.cc'.
7594         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7595         initial spaces.
7596         (do_suppress): Updated.
7597         * src/roff/troff/node.cc: Include geometry.h.
7598         (troff_output_file::flush_tbuf): Fixed parameters to
7599         `check_output_limits'.
7600         (troff_output_file::check_charinfo): Ditto.
7601         (troff_output_file::determine_line_limits): Add support for `Da'
7602         and `Dl' commands.
7604         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7605         Add new parameter `is_special' to decode special characters from
7606         escape sequences.
7607         (html_printer::do_title, html_printer::do_heading,
7608         html_printer::do_indentedparagraph,
7609         html_printer::translate_to_html, html_printer::special): Updated.
7611 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7613         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7614         Fix entry for config.h.
7615         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7616         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7617         * src/preproc/eqn/eqn.man: Document -d command line option.
7619 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7621         * man/groff.man: Use
7623           .ev xxx
7624           .na
7625           .nh
7626           <table>
7627           .ev
7629         instead of the old code (`.ad .hy' after the table) to suppress
7630         incorrect hyphenation for grohtml output.
7632 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7634         * man/groff_font.man, man/groff_out.man: Minor fixes.
7636 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7638         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7639         Arnold Robbins <arnold@skeeve.com>).
7641 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7643         * configure: Regenerated with autoconf 2.52.
7645         * doc/groff.texinfo: Complete revision of indices.
7647 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7649         * doc/Makefile (clean): Updated to delete all indices.
7651 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7653         * src/roff/troff/troff.man: Remove superfluous line.
7655         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7656         given on the command line (or rather, if only the default warnings
7657         are set).
7659 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7661         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7662         use .ne for TTY devices.
7664 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7666         * src/roff/troff/token.h, src/roff/troff/input.cc:
7667         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7669 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7671         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7672         * src/roff/troff/input.cc (token::next): Return
7673         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7674         compatibility mode.
7675         (token::description): Updated.
7676         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7677         (token::add_to_node_list, token::process): Ignore
7678         TOKEN_TRANSPARENT_ESCAPE.
7680 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7682         * tmac/an-old.tmac: Fix `S' string.
7684 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7686         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7688 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7690         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7691         backslashes).
7692         Many other minor fixes.
7694         * configure.ac: Add message at end to inform how to compile
7695         xditview.
7696         * configure: Regenerated.
7698 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7700         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7701         Updated to latest version of libc.
7703 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7705         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7706         Autoconf 2.50 and newer can handle this.
7707         * configure: Regenerated.
7709 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7711         * doc/pic.ms: Fix typo.
7712         * src/preproc/tbl/tbl.man: Document case of global options.
7714 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7716         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7717         handling of `CR' font.
7719 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7721         Use a config.h file.
7723         * src/include/lib.h: Include config.h.
7724         * All C files: Ditto (if necessary).
7725         * All C++ source and header files: Include lib.h first (if
7726         necessary).
7728         * src/include/config.hin: New file (autogenerated by autoheader).
7729         * stamp-h.in: New file.
7730         * configure.ac: Updated.
7731         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7732         (GROFF_ARRAY_DELETE): Simplified.
7733         * Makefile.sub (DISTCLEANFILES): Updated.
7734         Added targets for remaking config.status, config.hin, config.h,
7735         stamp-h.in, and stamp-h.
7736         * configure: Regenerated.
7738 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7740         * NEWS: Updated.
7742 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7744         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7745         (do_sprintf): Use snprintf().
7747 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7749         * src/libs/snprintf/*: Added an snprintf module written by Mark
7750         Martinec.
7751         * src/libs/libgroff/Makefile.sub: Updated.
7752         * configure.ac: Add test for snprintf().
7753         * Makefile.in: Updated.
7754         * configure: Regenerated.
7756         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7757         uses snprintf().
7759 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7761         * tmac/doc.tmac (Ex): New implementation.
7762         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7764 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7766         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7767         argument.
7768         * tmac/groff_tmac.man: Updated.
7770 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7772         * src/preproc/tbl/tbl.man: Minor documentation update.
7774 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7776         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7777         * configure.ac: Add declaration test for gettimeofday().
7778         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7779         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7780         * configure: Regenerated.
7782 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7784         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7785         * configure.ac: Add declaration test for strcasecmp().
7786         * Makefile.in: Updated.
7787         * configure: Regenerated.
7788         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7789         this is necessary because groff's mkstemp.cc is C++.
7790         Add declaration conditionally for strcasecmp().
7792 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7794         Integrated pic2graph, contributed by Eric S. Raymond.
7796         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7797         files.
7798         * Makefile.in, NEWS: Updated.
7800         * src/preproc/tbl/tbl.man: Revised.
7802 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7804         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7806 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7808         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7809         requests.
7811 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7813         * Makefile.sub (configure): Depend on configure.ac, not
7814         configure.in.
7815         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7817 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7819         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7820         fixes.
7822 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7824         * src/roff/troff/troff.man: Improve documentation of -E option.
7826 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7828         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7829         Simplified.
7831 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7833         * src/preproc/refer/refer.cc: Undo last change.
7834         * src/devices/grohtml/post-html.cc: Ditto.
7836 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7838         * src/preproc/refer/refer.cc: Include `lib.h'.
7839         * src/devices/grohtml/post-html.cc: Ditto.
7841 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7843         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7844         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7845         * Makefile.in: Comment updated.
7846         * configure: Regenerated.
7848 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7850         * src/preproc/pic/pic.cc: Removed.
7851         * src/preproc/pic/pic_tab.h: Removed.
7852         * src/preproc/refer/label.cc: Removed.
7854         * doc/Makefile (.ms.html): Don't use a file name extension in
7855         argument to grohtml's -I option.
7856         * Makefile.in (dist): Remove CVS directories.
7857         Call `distfiles' target.
7859         * src/devices/grohtml/grohtml.man: Add information about valid
7860         versions of pnmtopng.
7861         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7862         name instead of number.
7864 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7866         * doc/groff.texinfo: Minor fixes.
7868 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7870         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7871         (clean): Updated.
7873 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7875         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7876         * src/libs/libgroff/mkstemp.cc: New file.
7877         * src/libs/libgroff/mksdir.cc: New file.
7878         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7879         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7880         * src/libs/libgroff/Makefile.sub: Updated.
7881         * src/include/lib.h: Add mksdir() prototype.
7882         * src/include/posix.h: Define S_IXUSR if not yet defined.
7884         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7885         (createAllPages): Use mksdir() instead of current code.
7886         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7887         (main): [!HAVE_MKSTEMP]: Removed.
7889         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7890         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7891         macros.
7892         * configure.ac: Add tests for stdint.h, sys/time.h, and
7893         gettimeofday().
7894         Call new GROFF_xxx macros.
7895         * configure: Regenerated.
7896         * Makefile.in: Comments updated.
7898 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7900         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7901         instead of current code.
7902         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7903         * src/roff/groff/groff.cc (possible_command::insert_args): New
7904         function.
7905         (main): Use it for predriver handling instead of insert_arg().
7907 2001-07-19  Werner LEMBERG  <wl@gnu.org>
7909         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7910         groff also.
7912         * src/include/posix.h: Define S_IWUSR if not yet defined.
7914 2001-07-18  Werner LEMBERG  <wl@gnu.org>
7916         * NEWS: Updated.
7918 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
7920         * tmac/groff_mdoc.man: Document new -width and -column syntax.
7921         Some other minor fixes.
7922         * tmac/an-old.tmac: Add `AT' and `UC' macros.
7924 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
7926         Replace call to `troff' with `groff -Z' to make it aware of
7927         GROFF_BIN_PATH.
7929         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7930         (troff_command, command_prefix): Removed.
7931         (alterDeviceTo): Use groff.
7932         (addZ): New function.
7933         (char_buffer::do_html): Use it.
7934         (scanArguments): Use TROFF_COMMAND.
7935         (findPrefix): Removed.
7936         (main): Updated.
7937         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7939 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
7941         * doc/pic.ms: Documentation fixes.
7943 2001-07-17  Werner LEMBERG  <wl@gnu.org>
7945         Replace atexit() with global destructor.
7947         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7948         (xtmpfile_list_init): New global structure to deallocate
7949         xtmpfile_list on exit.  Its destructor inherits most code from
7950         remove_tmp_files().
7951         (remove_tmp_files): Deleted.
7952         (add_tmp_file): Simplified.
7954 2001-07-16  Werner LEMBERG  <wl@gnu.org>
7956         Replace strdup() with strsave().
7958         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7959         (set_papersize): Use strsave() and a_delete.
7960         (main): Use strsave().
7961         * src/preproc/html/pre-html.cc (make_message, createAllPages,
7962         removeAllPages): Use strsave() and a_delete.
7964         * configure.ac: Remove test for strdup.
7965         * Makefile.in: Comment updated.
7966         * configure: Regenerated.
7968 2001-07-15  Werner LEMBERG  <wl@gnu.org>
7970         * win32-diffs: Updated.
7972 2001-07-14  Werner LEMBERG  <wl@gnu.org>
7974         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7975         removing the old one.
7976         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7978 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7980         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7982 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7984         Merge -xwidth into -width.  Add -xwidth functionality to -column
7985         also.
7987         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7988         avoid warning.
7989         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7990         string immediately following a leading dot starts with a valid mdoc
7991         argument.
7992         Add similar code to the -column branch.
7993         (doc-Bl-usage): Updated.
7994         * groff_mdoc.man: s/-xwidth/-width/.
7996 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7998         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7999         running into centered or non-formatted text.
8001 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8003         Introduce short and long prefixes to have the selection at run-time
8004         whether there is a 8+3 limit for names of temporary files.
8006         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8007         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8008         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8009         variables.
8010         (temp_init): New global structure to initialize above three
8011         variables.
8012         (xtmptemplate): Use two parameters for long and short prefix.
8013         Simplify code use above three variables.
8014         (xtmpfile): Use long and short prefixes as parameters.
8015         * src/include/lib.h: Updated.
8017         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8018         with ...
8019         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8020         (createAllPages, makeTempFiles): Updated.
8022 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8024         * REVISION: Increased to 3.
8026 Version 1.17.2 released
8027 =======================
8029 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8031         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8032         to size_t.
8034 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8036         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8037         Fix synopsis.
8038         * tmac/groff_mdoc.man: Fix synopsis.
8040 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8042         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8043         Restore `doc-Pa-font'.
8045 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8047         * src/utils/indxbib/dirnamemax.c: Moved to ...
8048         * src/libs/libgroff/maxfilename.cc: Here.
8049         s/dir_name_max/file_name_max/.
8050         Add copyright.
8051         * src/include/lib.h: Add file_name_max.
8052         * src/utils/indxbib/indxbib.cc: Updated.
8053         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8054         Updated.
8056         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8057         as empty.
8058         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8060         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8061         REGION_TEMPLATE): New macros.
8062         (createAllPages, makeTempFiles): Use them.
8063         Include `nonposix.h'.
8064         (html_system): New function.
8065         (createAllPages, createImage): Use it.
8066         Use EXE_EXT.
8068         * tmac/www.tmac: Fix typos.
8070 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8072         * tmac/www.tmac: Disable hyphenation in normal text only if output
8073         device is html.
8074         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8075         * tmac/groff_mwww.man, NEWS: Updated.
8077 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8079         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8080         image location.
8082 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8084         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8085         doc-display-ps-stack): Implement font and font size stack for
8086         displays.
8088 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8090         * REVISION: Increased to 2.
8091         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8093         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8094         beginning of a line.
8095         * src/groff/grog/grog.sh: Ditto.
8097 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8099         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8100         make it portable.
8102 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8104         Fix problems with preprocessor string for `man' program.
8106         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8107         Updated/added copyright.
8108         Moved Emacs's local variable to identify nroff mode to the end of
8109         the file; add local variable if missing.
8111 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8113         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8114         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8115         * configure: Regenerated.
8117 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8119         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8120         * configure: Regenerated.
8122 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8124         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8125         but www.tmac.
8126         * doc/pic.ms: Fix typos.
8128 Version 1.17.1 released
8129 =======================
8131 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8133         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8134         * configure: Updated.
8136 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8138         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8139         image names.
8140         * src/roff/troff/dic.cc (blank_line): Add html tag.
8142 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8144         * src/roff/troff/input.cc (do_suppress): Fix typo.
8146 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8148         Added two new options (-D and -I) to specify image names and a
8149         subdirectory to place the images in.
8151         Change syntax from \\Ox to \\O[x].
8153         * src/devices/grohtml/post-html.cc (main): Add options.
8154         (usage): Updated.
8155         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8156         Use `NULL' instead of `0' for null string pointers.
8157         (MAX_RETRIES): New macro.
8158         (lengthOfintToStr, intToStr, make_message): New functions.
8159         (makeFileName): Make function static.
8160         Implement -D and -I options.
8161         (checkImageDir): New function.
8162         (write_end_image, write_start_image): Use new syntax of \O.
8163         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8164         make_message().
8165         (createImage): Use make_message().
8166         (addps4html): Add guard for malloc().
8167         (usage, scanArguments): Updated.
8168         (makeTempFiles): Use mkstemp().
8169         (removeTempFiles): Use unlink().
8170         (findPrefix): Add guard for malloc().
8171         (main): Updated.
8172         * src/roff/troff/input.cc (get_delim_file_name): New function to
8173         parse \O.
8174         (do_suppress): Updated to parse new syntax.
8175         * src/devices/grohtml/grohtml.man: Updated.
8176         * tmac/www.tmac: Updated to new syntax.
8178         * NEWS: Updated.
8180 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8182         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8184         * src/devices/grohtml/grohtml.man: Minor improvements.
8186 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8188         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8190 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8192         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8193         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8194         the former.
8195         * src/preproc/grn/grn.man: Add proper '\" string.
8197 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8199         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8201 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8203         Updated to autoconf 2.50.
8205         * configure.in: Renamed to...
8206         * configure.ac: This.
8207         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8208         (GROFF_OS390): Updated.
8209         * configure: Regenerated.
8211 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8213         * src/roff/troff/env.c, src/roff/troff/env.h,
8214         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8215         from 2000-12-21.
8217 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8219         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8221 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8223         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8224         less than or equal zero; set it to 1 then.
8225         * src/roff/troff/node.h (node::node): Initialize `last'.
8227 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8229         * tmac/an-old.tmac: Make predefined strings work in compatibility
8230         mode.
8231         Add troff version guard.
8232         * tmac/doc.tmac: Simplify version guard.
8234 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8236         The .ns and .rs requests are now honoured not only in the top-level
8237         but in all diversions (similar to UNIX troff).
8239         This change is based on a patch from Tadziu Hoffmann
8240         <hoffmann@usm.uni-muenchen.de>.
8242         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8243         (top_level_diversion): Remove `no_space_mode' member.
8244         * src/roff/troff/div.cc (diversion::diversion,
8245         top_level_diversion::top_level_diversion): Updated.
8246         (macro_diversion::output): Reset `no_space_mode'.
8247         (no_space, restore_spacing): Use `curdiv' unconditionally.
8248         (space_request, blank_line): Check `curdiv->no_space_mode'.
8249         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8250         `curdiv' unconditionally.
8251         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8252         Updated.
8254 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8256         Added two new requests `de1' and `am1' which are similar to `de' and
8257         `am' with the difference that compatibility mode is saved on entry,
8258         switched off during macro execution, and restored on exit.
8260         * src/roff/troff/input.h: Added two new special characters
8261         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8262         * src/roff/troff/input.cc (input_iterator): Added two member
8263         functions `save_compatible_flag' and `get_compatible_flag'.
8264         (input_stack): Ditto.
8265         (string_iterator): Ditto.  Also add private member
8266         `saved_compatible_flag'.
8267         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8268         (calling_mode): New enumeration.
8269         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8270         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8271         (define_macro, define_indirect_macro, append_macro, ignore): Use
8272         `calling_mode'.
8273         (define_nocomp_macro, append_nocomp_macro): New functions.
8274         (init_input_requests): Updated.
8275         (do_request): Rename local variable `saved_compatible_flag' to
8276         `old_compatible_flag'.
8277         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8279         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8280         public and trap-invoked macros.  As a consequence, the man macros
8281         work in compatibility mode also.
8283 2001-05-06  Solar Designer  <solar@openwall.com>
8285         * Makefile.in: Use $(mandir).
8287 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8289         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8291 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8293         Added `.ns' number register: Returns 1 in no-space mode (if in
8294         top-level diversion), 0 otherwise.
8296         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8297         (init_div_requests): Updated.
8298         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8299         Document it.
8301 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8303         * src/roff/nroff/nroff.man: Improved documentation (especially
8304         locales).
8306 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8308         Added `brp' request: This is \p as a request.
8310         * src/roff/troff/env.cc (environment::do_break): Add parameter
8311         `spread'.
8312         (do_break_request): New function (was `break_request').
8313         (break_request): Calls `do_break_request'.
8314         (break_spread_request): New; calls `do_break_request'.
8315         (init_env_requests): Updated.
8316         * src/roff/troff/env.h: Updated.
8317         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8319         * REVISION: Increased to 1.
8320         * win32-diffs: Updated.
8322 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8324         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8325         * tmac/troffrc-end: Make it really work in compatibility mode.
8327 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8329         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8330         stdlib.h.
8332 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8334         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8335         latest versions from glibc CVS archive.
8337         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8338         <c.zeelenberg@hccnet.nl>.
8340 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8342         * configure.in: Move check for mkstemp() to...
8343         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8344         * configure: Regenerated.
8346         * src/include/groff-getopt.h: Don't use variable names in
8347         declarations.
8349         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8350         * src/devices/grohtml/Makefile.sub,
8351         src/devices/grohtml/post-html.cc: Updated.
8353 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8355         * configure.in: Add special check for mkstemp().
8356         * src/libs/libgroff/tmpfile.cc: Use it.
8357         * src/utils/indxbib/indxbib.cc: Ditto.
8358         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8359         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8360         `const'.
8362 2001-04-20  Bruce Lilly  <blilly@erols.com>
8364         `Version_string' as C++ object was not visible to linker from C
8365         object files.
8366         Add `const' to `Version_string'.
8368         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8369         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8370         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8371         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8372         (scanArguments), src/preproc/refer/refer.cc (main),
8373         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8374         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8375         (main), src/devices/grohtml/post-html.cc (main),
8376         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8377         (main), src/utils/hpftodit/hpftodit.cc (main),
8378         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8379         (main), src/utils/lkbib/lkbib.cc (main),
8380         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8382         * src/roff/groff/pipeline.c: Add _UWIN.
8383         * src/include/nonposix.h: Ditto.
8385 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8387         * src/include/lib.h: Use HAVE_STRERROR.
8388         * src/roff/groff/pipeline.c: Ditto.
8389         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8390         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8391         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8392         * win32-diffs: Updated.
8393         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8395 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8397         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8398         instead of hardwired `"troff"'.
8399         (char_buffer::read_file): Remove unused variables.
8400         (char_buffer::write_file_troff): Ditto.
8401         (char_buffer::write_file_html): Ditto.
8402         (generateImages): Ditto.
8403         (abs): Removed.
8404         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8406         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8408         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8409         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8410         index_search_item::search1): Ditto.
8411         * src/roff/troff/node.h (width_list): Reorder members.
8412         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8413         (lookup_warning): Ditto.
8414         (prepend_string): Commented out.
8415         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8416         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8417         * src/preproc/tbl/main.cc (process_format): Ditto.
8418         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8419         compiler warnings.
8420         * src/preproc/pic/pic.cc: Updated.
8421         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8422         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8423         * src/preproc/refer/command.cc (execute_command): Ditto.
8424         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8425         * src/preproc/refer/token.cc (lookup_token): Ditto.
8426         * src/preproc/soelim/soelim.cc: Ditto.
8427         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8428         (isHexDigit): Commented out.
8429         (pushBackBuffer::isString): Remove unused variable.
8430         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8431         warning.
8432         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8433         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8434         Ditto.
8435         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8436         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8437         lookup_paper_size): Ditto.
8438         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8439         (text_glob, element_list): Reorder members.
8440         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8441         compiler warning.
8442         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8443         return value to `void'.
8444         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8445         of initializers.
8446         * src/devices/grohtml/html.h (simple_output::check_newline,
8447         simple_output::space_or_newline, simple_output::enable_newlines):
8448         Add return value.
8449         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8450         compiler warnings.
8451         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8452         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8453         output_ligatures, output_charset, read_map): Ditto.
8454         * src/utils/lookbib/lookbib.cc (main): Ditto.
8455         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8456         (do_file): Fix typo (`=' -> `==').
8457         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8458         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8460 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8462         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8463         Fix usage of GROFF_BIN_PATH.
8464         * src/roff/nroff/nroff.man: Updated.
8466 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8468         * NEWS: Fixing typos.
8469         Updated.
8471 Version 1.17 released
8472 =====================
8474 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8476         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8477         directory, not in $(srcdir).
8479 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8481         * doc/groff.texinfo: More info on conditionals.
8483 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8485         * doc/groff.texinfo: Added some info about groff internals.
8487         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8488         about missing special character only if the name is non-null.
8490 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8492         Removing the grohtml-old device driver which is now obsolete.
8494         * src/devices/grohtml-old/*: Removed.
8495         * font/devhtml-old/*: Removed.
8496         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8497         Remove comments.
8498         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8499         * test-groff (PATH): Updated.
8500         * tmac/Makefile.sub (NORMALFILES): Updated.
8501         * tmac/an-old.tmac: Remove special code for html-old device.
8502         Replace `html-or-html-old' register with `an-html'.
8503         * tmac/eqnrc: Updated.
8504         * tmac/html-old.tmac: Removed.
8505         * tmac/troffrc, tmac/troffrc-end: Updated.
8506         * tmac/www.tmac: Remove special code for html-old device.
8507         Replace `html-or-html-old' register with `www-html'.
8509         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8510         src/libs/libgroff/htmlindicate.cc (graphic_end),
8511         include/htmlindicate.h, src/preproc/grn/*.cc,
8512         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8513         single argument for consistency with rest of source code.
8515         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8517 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8519         * src/roff/troff/troff.man: Fixing typos.
8521 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8523         * doc/pic.ms: Fixing many font switches.
8524         * doc/groff.texinfo: Fixes, additions.
8525         * MORE.STUFF: Updated.
8527 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8529         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8530         simple anchor.
8531         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8532         cropping of images.
8533         (removeTempFiles): New function to tidy up temporary files.
8534         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8535         Many fixes to do with the new inline suppress node and image regions
8536         are much tighter.
8537         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8538         (generate_img_src): New function.
8539         (html_printer::do_auto_image): Utilizes it.
8540         (do_heading, do_title): Include inline images within their contents.
8541         (html_printer::begin_page): Tidied up comments that are issued to
8542         the html output file.
8543         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8544         than courier.
8545         (text_glob::is_br): New method used by do_heading.
8546         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8547         equivalent diversion.
8548         * src/include/html-strings.h: Altered image tags to reflect the
8549         inline image node.
8550         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8551         parameter.
8552         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8553         it is already inside a pic image.  Only emit tags if the argument
8554         `-Tps:html' is present.
8555         * src/preproc/tbl/main.cc: Changes to reflect additional
8556         `html_end_suppress' parameter.
8557         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8558         emitted since the last eol tag was written.
8559         * src/roff/troff/env.h: New boolean `emitted_node'.
8560         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8561         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8562         * src/roff/troff/node.cc (check_charinfo): New method. 
8563         (troff_output_file::determine_line_limits): Alterations to limit
8564         checking.
8565         * tmac/www.tmac: Changes to reflect new suppress nodes.
8566           
8567 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8569         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8570         Escape the html_glyph in the buffer.
8571         (str_translate_to_html): Output the unescaped escaped_char.
8572         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8573         `frame=void', not `frame=none'.  Add `border=0'.
8575 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8577         * PROBLEMS: Add some words on how to avoid wrapper macros.
8579 2001-04-11  Blake McBride  <blake@florida-software.com>
8581         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8583 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8585         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8586         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8587         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8588         * Makefile.sub (DISTCLEANFILES): Here.
8590         * libs/libgroff/new.cc: Include `nonposix.h'.
8591         * win32-diffs: Updated.
8593 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8595         Added skeleton macro for defunct macros.
8597         Updated documentation.
8599         When inside displays, an empty input line warning should be
8600         suppressed.  If another macro call is put inside a display,
8601         all subsequent empty lines found in that display caused a
8602         warning to be emitted.
8604         * tmac/doc.tmac (doc-defunct-macro): New macro.
8605         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8606         (doc-restore-global-vars): Fixed typo.
8607         (doc-empty-line): Check the `doc-display-depth' register to
8608         determine whether we are inside display or not.
8610         * tmac/doc-common: Removed `Or' and `Sf' registers.
8611         Moved obsolete `Ds' macro to doc.tmac.
8613         * tmac/groff_mdoc.man: Bump document date.
8614         Document `.Vt' under ``Variable Types''.
8615         Removed documentation for obsolete `.Or' macro.
8617 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8619         * NEWS: Updated.
8620         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8622 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8624         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8625         (usage): Add stream argument. Don't exit.
8626         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8627         Write --version output to stdout, not stderr.
8628         (usage): Add stream argument. Don't exit.
8629         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8630         (usage): Add stream argument. Don't exit.
8631         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8632         constants.
8633         (usage): Add stream argument. Don't exit.
8634         (main): Write --help output to stdout, not stderr.
8635         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8636         (usage): Add stream argument. Don't exit.
8637         * src/devices/grops/ps.cc (main): Accept --help and --version.
8638         (usage): Add stream argument. Don't exit.
8639         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8640         (usage): Add stream argument. Don't exit.
8641         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8642         (main): Accept --help and --version.
8643         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8644         (main): Accept --help and --version.
8645         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8646         (scanArguments): Accept --help and --version.
8647         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8648         (main): Accept --help and --version.
8649         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8650         (usage): Add stream argument. Don't exit.
8651         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8652         exit.
8653         (main): Accept --help and --version.
8654         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8655         (main): Accept --help and --version.
8656         * src/roff/groff/groff.cc (main): Accept --help and --version.
8657         (synopsis): Add stream argument.
8658         (help): Write --help output to stdout, not stderr.
8659         (usage): Add stream argument. Don't exit.
8660         * src/roff/grog/grog.pl: Accept --help and --version.
8661         (help): New sub.
8662         * src/roff/grog/grog.sh: Accept --help and --version.
8663         * src/roff/nroff/nroff.sh: Accept --help and --version.
8664         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8665         (usage): Add stream argument. Don't exit.
8666         (main): Accept --help and --version.
8667         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8668         (usage): New function with stream argument, doesn't exit.
8669         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8670         (usage): New function with stream argument, doesn't exit.
8671         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8672         (usage): Add stream argument. Don't exit.
8673         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8674         (main): Accept --help and --version.
8675         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8676         exit.
8677         (main): Accept --help and --version.
8678         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8679         (main): Accept --help and --version.
8680         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8681         (usage): Add stream argument. Don't exit.
8683 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8685         Fix indentation in SYNOPSIS.
8687         Updated to include changes of latest BSD mdoc version (basically,
8688         the only change is that `.Fn' and `.Fc' put a final semicolon after
8689         a function declaration in the SYNOPSIS section).
8691         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8692         (doc-in-synopsis-section): New variable.  Updated all related
8693         functions.
8694         (doc-indent-synopsis-active): New register.
8695         (Nd, Fn, Fo): Use it.
8696         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8697         `.Cd' with long argument line produces indented wrapped lines. 
8698         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8699         undesirable line break to be output.
8700         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8701         `.rs'.
8702         (Fn, Fc): Add final `;' to output.
8703         (doc-save-global-vars, doc-restore-global-vars): Updated.
8704         * tmac/doc-common: Remove `Ex' register.
8705         Updated.
8706         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8707         copyright.
8709 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8711         * tmac/doc.tmac (Cd): Simplify code.
8712         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8714 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8716         Implement continuous underlining for nroff mode.  To do that, a new
8717         request in the ditroff language has been added: `x u N' (N is 0
8718         or 1).
8720         \X and \Y are now transparent to end-of-sentence recognition.
8722         * src/include/printer.h (printer): Add `type' parameter to `special'
8723         method.
8724         * src/libs/libdriver/printer.cc (printer::special): Updated.
8725         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8727         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8728         specials of type `p'.
8729         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8730         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8731         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8732         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8733         (glyph::order): New method.
8734         (tty_printer::add_char): Use it.
8735         (tty_printer::special): New method.
8736         (tty_printer::end_page): Implement it.
8738         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8739         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8740         to set `no_init_string'.
8741         (special_node::tprint_start): Use it.
8742         (special_node::same, special_node::copy): Updated.
8743         (special_node::ends_sentence): New method.
8744         (troff_output_file::start_special): Add parameter to include
8745         inititialization of special conditionally.
8747         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8748         * src/roff/troff/env.cc (do_underline_special): New function.
8749         (environment::set_font): Use it.
8750         (do_underline): Use it.  This was `underline()'.
8751         (underline): Call `do_underline()'.
8752         (continuous_underline): New function which calls `do_underline()'.
8753         (environment::newline): Use `do_underline_special()'.
8754         (init_env_requests): Updated.
8756         * NEWS, man/troff_out.man: Updated.
8758 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8760         * font/devutf8/R.proto: Fix code of 'shc'.
8762 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8764         Many fixes.  Diag lists can now be nested also; additionally,
8765         `-compact' and `-offset' are supported.
8767         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8768         (doc-list-have-indent-stackXXX): A new register stack.
8769         (doc-have-diag-list): Removed.
8770         (Bl): Use `doc-list-have-indent-stackXXX'.
8771         (El): Updated.
8772         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8773         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8774         (doc-set-vertical-and-indent): Ditto.
8775         (doc-next-list-depth): Removed.
8776         (doc-increment-list-stack): Updated.
8777         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8778         `doc-next-list-depth'.
8779         (doc-end-list, doc-end-column-list): Don't use
8780         `doc-increment-list-stack'.
8781         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8782         (doc-save-global-vars, doc-restore-global-vars): Updated.
8783         * tmac/doc-common: Updated.
8784         * tmac/groff_mdoc.man: Updated.
8785         * NEWS: Fix typo.
8787 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8789         * src/devices/grotty/grotty.man: Fix grammatical error.
8791 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8793         Remove .Ld from mdoc package; replace it with special handling of
8794         `...'.
8796         * tmac/doc-common: Remove `Ld' register.
8797         Uncomment `doc-volume-ds-*' strings.
8798         Remove `doc-operating-system-default'.
8799         (Os): Updated.
8800         * tmac/doc-syms (Ld): Removed.
8801         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8802         `...' specially.
8803         * NEWS: Updated.
8805         * tmac/groff_mdoc.man: Many fixes and updates.
8807 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8809         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8810         Bond <tkb@tkb.mpl.com>.
8811         * tmac/www.tmac: Save compatibility mode.
8813 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8815         * tmac/groff_mdoc.man: Many fixes.
8817 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8819         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8820         isn't recognized.
8822 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8824         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8825         diversion.  This fixes overlong tags.
8827 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8829         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8830         * tmac/doc-syms: Fix error messages.
8831         * tmac/an-old.tmac: Remove incorrect double backslashes.
8833 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8835         * tmac/Makefile.sub: Strip mdoc.local also
8836         * tmac/strip.sed: Fixed.
8838 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8840         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8841         selecting the font size.
8842         * tmac/groff_mdoc.man, NEWS: Document it.
8844 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8846         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8847         to `sv' request.
8848         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8849         argument to restore previous font family.
8850         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8852         * doc/groff.texinfo: More fixes and additions (mainly for font
8853         manipulating commands).
8855         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8856         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8857         * tmac/Makefile.sub, NEWS: Updated.
8859 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8861         Replaced mdoc implementation.  The new version is `state of the
8862         art', using almost all new features of groff 1.17 -- it won't run
8863         with older versions.
8865         * tmac/doc.tmac: Completely rewritten.
8866         * tmac/doc-common: Ditto.
8867         * tmac/doc-nroff: Ditto.
8868         * tmac/doc-ditroff: Ditto.
8869         * tmac/doc-syms: Ditto.
8870         * tmac/mdoc.local: New file.
8871         * tmac/groff_mdoc.samples.man: Replaced with ...
8872         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8873         * tmac/strip.sed: Updated.
8874         * tmac/Makefile.sub: Updated.
8875         * INSTALL: Updated.
8877         * tmac/groff_man.man: Add `man.local' to the FILES section.
8879 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8881         * doc/groff.texinfo: Added many @noindent.
8882         Replaced @end_Example -> @endExample.
8883         Added info whether registers are r/o.
8884         Many other additions and fixes.
8886 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8888         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8889         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8890         Improved @Def* macros: Now the exact syntax of request, register,
8891         and escapes is shown.
8892         Added macros for parentheses and brackets to be used in @Def*.
8893         Many fixes and improvements of the documentation.
8895 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8897         * doc/groff.texinfo: Added new index: `st' (for strings).
8898         Added macros @Defstr(x).
8899         Added macro @Example (adding @group).
8900         Other minor improvements.
8902 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8904         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8905         `rq' for requests.  `fn' is no longer used.
8906         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8907         Removed @Deffn(x).
8909         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8910         number with name of man page.
8912 2001-03-19  Larry Kollar  <kollar@alltel.net>
8914         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
8915         consistency.
8917 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8919         * man/groff_font.man: Document `prepro', `postpro', and `print'.
8920         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8921         * src/devices/grohtml/grohtml.man: Fixing typos.
8923 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
8925         * tmac/s.tmac (@IP): Pass `.ip' html tag.
8926         * tmac/groff_mwww.man: Remove .LINE macro
8927         * tmac/www.tmac (LINE): Add `.ti'.
8929         * src/devices/grohtml/post-html.cc (html_printer): New member
8930         `indent'.
8931         (html_printer::emit_raw): Use it.
8932         (html_printer::do_linelength): Ditto.
8933         (html_printer::do_pageoffset): Ditto.
8934         (html_printer::do_indentation): Ditto.
8935         (html_printer::do_tempindent): Ditto.
8936         (html_printer::do_break): Ditto.
8937         (html_printer::begin_page): Ditto.
8938         (html_printer::do_indentedparagraph): New function.
8939         (html_printer::troff_tag): Handle `.ip'.
8940         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8941         Add `<td width=...>' handling.
8942         (html_text::do_table): Add parameter.
8943         (html_text::do_indent): Updated.
8944         * src/devices/groohtml/html-text.h: Updated.
8946 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
8948         Introduced simple html tables to implement indentation.
8950         * src/devices/grohtml/html.h (word, word_list): New structures.
8951         (simple_output): Use it.
8952         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8953         (html_printer): Improve indentation handling.
8954         (html_printer::emit_raw): Set `in_table' element.  Handle
8955         indentation if set.
8956         (html_printer::write_header): Move conditional downwards.
8957         Don't allow whitespace in tags.
8958         (html_printer::do_linelength): Handle line length and indentation
8959         conditionally.
8960         (html_printer::do_pageoffset): Handle indentation conditionally.
8961         (html_printer::do_indentation): Ditto.
8962         (html_printer::do_tempindent): New function member.
8963         (html_printer::do_fill): Take care of indentation.
8964         (html_printer::do_flush): Finish table.
8965         (html_printer::do_links): Ditto.
8966         (html_printer::do_break): New function for handling `.br' and `.ti'.
8967         (html_printer::troff_tag): Use it.
8968         Handle `.ti'.
8969         (html_printer::flush_globs): Fix.
8970         (html_printer::flush_page): Finish table.
8971         (html_printer::html_printer): Fix error message.  Set up
8972         `linelength'.
8973         (html_printer::add_to_sbuf): Remove special handling of character
8974         code 255.
8975         (to_unicode): Remove `stop()'.
8976         (html_printer::write_title): Cleanup.
8977         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
8978         (html_printer::~html_printer): Flush text and end the line.
8979         Use `put_string()'.
8980         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8981         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8982         emission of tags.
8983         (html_text::start_tag): Disable newlines.
8984         (html_text::table_is_void): New function.
8985         (html_text::issue_table_begin): Ditto.
8986         (html_text::issue_table_end): Ditto.
8987         (html_text::push_para): Better table handling.
8988         (html_text::do_indent): New function.
8989         (html_text::do_table): Ditto.
8990         (html_text::done_table): Ditto.
8991         (html_text::do_tt): Handle PRE_TAG.
8992         (html_text::is_in_table): New function.
8993         (html_text::check_emit_text): Handle tables.
8994         (html_text::do_emittext): Use `nl()'.
8995         (html_text::do_para): Handle table.
8996         (html_text::remove_def): New function.
8997         * src/devices/grohtml/output.cc (word, word_list): Implement
8998         methods.
8999         (simple_output::end_line): Flush last word.
9000         (simple_output::simple_comment): Ditto.
9001         (simple_output::begin_comment): Recoded.
9002         (simple_output::end_comment): Ditto.
9003         (simple_output::comment_arg): Removed.
9004         (simple_output::check_newline): Improve test and flush last word.
9005         (simple_output::space_or_newline): Improved.
9006         (simple_output::write_newline): Replaced with...
9007         (simple_output::nl): This.
9008         (simple_output::put_raw_char): Flush last word.
9009         (simple_output::check_space): Removed.
9010         (simple_output::put_translated_string): Ditto.
9011         (simple_output::put_string): Simplified.
9012         (simple_output::put_number): Updated.
9013         (simple_output::put_float): Ditto.
9014         (simple_output::put_symbol): Removed.
9015         (simple_output::enable_newlines): Add `check_newline()'.
9016         (simple_output::flush_last_word): New function.
9018         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9019         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9021         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9022         * tmac/an-old.tmac (TP): Ditto.
9024 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9026         * mdate.sh: Make it POSIX compliant.
9028 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9030         Added the `return' request to end a macro immediately.  It simply
9031         pops iterators from the input stack until a macro iterator is found.
9033         * src/roff/troff/input.cc (input_iterator::is_macro,
9034         macro_iterator::is_macro): New member.
9035         (input_return_boundary): New class to signal an immediate return
9036         to while_request().
9037         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9038         New functions.
9039         (input_stack::clear): Use it.
9040         (input_stack::pop_macro): New function.
9041         (while_request): Use `is_return_boundary()'.
9042         (return_macro_request): New function.
9043         (init_input_requests): Use it.
9045         * src/roff/troff/TODO: Updated.
9046         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9048 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9050         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9051         cleanup.
9053 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9055         Make `\B' more rigid.
9057         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9058         parameter.
9059         (get_number_rigidly): New function.
9060         * src/roff/troff/input.cc (do_expr_test): Use it.
9061         * src/roff/troff/token.h: Updated.
9063         * src/roff/troff/request.h: Fix typo (init_html_request ->
9064         init_markup_request).
9066 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9068         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9069         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9070         are now `.begin', `.end', `.image'.
9072         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9073         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9074         Use add_char_to_sbuf().
9075         (to_unicode): New function.
9076         (char_translate_to_html): Changing type of `ch' parameter.
9077         Use `to_unicode()'.
9078         (html_printer::~html_printer): Comment out doctype string.
9079         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9080         instead of `.html-end'.
9081         (write_start_image): Use `.begin' and `.image' instead of
9082         `.html-begin' and `.html-image'.
9083         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9084         (html_begin): Renamed to ...
9085         (begin): This.
9086         (html_end): Renamed to ...
9087         (end): This.
9088         (html_image): Renamed to ...
9089         (image): This.
9090         (init_html_requests): Renamed to ...
9091         (init_markup_requests): This.
9092         * tmac/www.tmac: Updated.
9094 2001-02-28  Bram  <bram@avontuur.org>
9096         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9097         constructor.
9099 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9101         * doc/meref.me: Fixing some typos.
9103 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9105         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9106         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9107         * src/roff/troff/node.h: Updated.
9109 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9111         * tmac/groff_tmac.man: Fix typo.
9113 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9115         Fixing a bug which prevented proper end-of-sentence recognition
9116         between an `unformatted' box and the following text.  As a
9117         consequence, vertical line distances are no longer preserved in
9118         boxes after a call to `.unformat' -- because boxes aren't
9119         line-oriented (contrary to diversions), this doesn't make sense
9120         anyway.
9122         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9123         value.
9124         (vertical_size_node::set_unformat_flag): New method.
9125         * src/roff/troff/node.hh: Updated.
9126         * src/roff/troff/input.cc (word_space_node::reread,
9127         hmotion_node::reread): Reset `unformat' flag after usage.
9128         (unformat_macro): Append only if `set_unformat_flag()' returns
9129         non-zero.
9130         * src/roff/troff/troff.man: Updated.
9132 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9134         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9135         documentation of `asciify' and `unformat' requests.
9137 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9139         Redesigned the `unformat' request.  It is no longer connected with
9140         `asciify' but rather uses new `reread()' methods if the `unformat'
9141         flag is set.  Additionally, the handling of space characters after
9142         unformatting has been fixed so that they retain their width.
9144         * src/roff/troff/node.h (width_list): New structure to store
9145         original widths of spaces.
9146         (node): Added `unformat' member.
9147         Replaced `num_spaces' variable with `orig_width' list.
9148         * src/roff/troff/node.cc (*node::asciify,
9149         asciify_reverse_node_list): Removed `unformat_only' flag and related
9150         code.
9151         (word_space_node::asciify, word_space_node::word_space_node): Use
9152         `orig_width'.
9153         (word_space_node::~word_space_node): New destructor.
9154         (word_space_node::copy): Updated to handle `orig_width'.
9155         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9156         (*node::merge_space): Update `orig_width' list if necessary.
9157         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9158         * src/roff/troff/enc.cc (environment::space_newline): Use
9159         `width_list'.
9160         (environment::space): Added method to handle space width and
9161         sentence space width as parameters.  Use `width_list'.
9162         (environment::make_tab_node): Updated.
9163         * src/roff/troff/env.h: Updated.
9164         * src/roff/troff/input.cc (word_space_node::reread,
9165         unbreakable_space_node::reread, hmotion_node::reread): New methods
9166         to handle nodes specially if `unformat' flag is set.
9167         (do_asciify_macro): Renamed back to ...
9168         (asciify_macro): This.
9169         (unformat_macro): New implementation to simply set the `unformat'
9170         flag.
9172         * MORE.STUFF: Added more info about deroff.
9174 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9176         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9177         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9178         and `add_self()' methods to avoid hyphenation.  For example, the
9179         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9180         soft hyphen after `foo'.  Now the hyphen list is correctly
9181         `foo<ignore><ignore>bar'.
9183 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9185         * tmac/groff_tmac.man: Fix `BIR' macro.
9187 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9189         A new escape sequence `\:', inserting a zero-width break point.
9191         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9192         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9193         Implement it.
9194         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9195         method.
9196         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9197         and `asciify()' methods.
9198         * src/roff/troff/node.cc (space_node::space_node): Updated.
9199         (space_node::asciify): Handle `was_escape_colon'.
9200         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9202         Handle `\~' similar to other comparable requests.
9204         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9205         label.
9206         (token::next): Move creation of an unbreakable_space_node to...
9207         (token::add_to_node_list): Here.
9209         Fix a bug which sometimes prevented hyphenation of words connected
9210         with `\~' or `\ ' (and other escape sequences handled as
9211         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9212         (after a call to the `unformat' request).
9214         * src/roff/troff/env.h (environment::possibly_break_line,
9215         environment::hyphenate_line): Introducing `start_here' parameter.
9216         * src/roff/troff/env.cc (environment::space_newline,
9217         environment::space): Use it.
9218         (environment::possibly_break_line, environment::hyphenate_line):
9219         Implement it.
9220         * src/roff/troff/input.cc (process_input_stack): Use it.
9221         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9222         space_char_hmotion_node, overstrike_node): Add
9223         `get_hyphenation_type()' method.
9224         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9225         if `unformat_only' is active.
9227 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9229         Implemented new read-only number register `.linetabs' which
9230         returns 1 if in line-tabs mode, 0 otherwise.
9232         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9233         * src/roff/troff/env.cc (get_line_tabs): New function.
9234         (init_env_requests): Use it.
9235         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9237         * VERSION, REVISION: Changing to 1.17.0.
9239 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9241         Fixed a bug which prevented hyphenation of words which are finished
9242         with `\)'.
9244         * src/roff/troff/token.h (token): Add enum type
9245         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9246         * src/roff/troff/input.cc (token::next, token::description,
9247         get_line_arg, token::add_to_node_list, token::process): Use it.
9249 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9251         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9252         * src/roff/troff/div.cc (do_divert): Use it.
9254         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9256 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9258         Adding the `linetabs' request.  If set, tab distances are not
9259         computed relative to the input line but relative to the output line.
9261         * src/roff/troff/env.h (environment): New member `line_tabs'.
9262         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9263         (environment::environment, environment::copy): Updated.
9264         (environment::distance_to_next_tab): Use `line_tabs'.
9265         (init_env_requests): Register request.
9266         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9267         fixes.
9269 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9271         Introducing a new read-only register `.int' which is set to a
9272         positive value if the last output line is interrupted (i.e., if it
9273         contains `\c').
9275         * src/roff/troff/env.cc (init_env_requests): Add it.
9276         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9278 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9280         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9281         * src/preproc/html/pre-html.cc (findPrefix): New function which
9282         generates the troff executable name via the system prefix.
9283         * src/preproc/eqn/main.cc: Modified warning message.
9285 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9287         troff's `box' and `boxa' requests didn't preserve temporary
9288         indentation.
9290         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9291         `saved_target_text_length' members.
9292         * src/roff/troff/div.cc (do_divert): Use them.
9294         Tabs (but not yet leaders and fields) are now handled correctly by
9295         `asciify' request.
9297         * node.h (hmotion_node): Add field `was_tab'.
9298         * env.cc (environment::make_tab_node): Set it.
9299         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9301         Added new request `unformat' which will, contrary to `asciify',
9302         preserve font information after unformatting (i.e., only nodes
9303         dealing with horizontal space are converted back to input
9304         characters).
9306         * input.cc (asciify_macro): Renamed to ...
9307         (do_asciify_macro): this, having a new parameter `unformat_only'.
9308         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9309         (init_input_requests): Added `unformat'.
9310         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9311         parameter to control asciification process.
9312         * node.h (*_node::asciify): Ditto.
9313         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9315 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9317         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9319 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9321         * tmac/ps.tmac: Remove call of psold.tmac.
9322         * tmac/psold.tmac: Comment updated.
9323         * tmac/psnew.tmac: Removed since no longer needed.
9324         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9326         * font/devutf8/R.proto: Adding `shc' glyph.
9327         * font/devutf8/NOTES: Updated.
9329         * test-groff: Updated.
9331 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9333         First cut of the new html device driver.  Changes to pre-html and
9334         the new grohtml are too numerous to be documented here.
9336         Stuff related to `html' has been renamed to `html-old' and `html2'
9337         stuff has been renamed to `html' (including directories).  The new
9338         html device driver is therefore invoked as `-Thtml'.
9340         Added new `\O' escape to suppress output (needed by html driver).
9342         Added functions and code to pass info about input-level commands
9343         (`.in', `.fl', etc.) to html driver.
9345         Three new functions (.html-begin, .html-end, and .html-image) for
9346         better html handling: `html-begin' will execute the remaining line
9347         if at the outermost nesting level, increasing an internal counter.
9348         `html-end' does the same but decreases the internal counter.
9349         `html_image' puts its arguments into a special node (suppress_node)
9350         to define an image region.
9352         The `output' request has been removed.
9354         * tmac/html-tags.tmac: Removed.
9355         * tmac/arkup.tmac: Updated and renamed to ...
9356         * tmac/www.tmac: New file.
9357         * tmac/markup.tmac Updated and renamed to ...
9358         * tmac/mwww.tmac: New file.
9359         * tmac/Makefile.sub: Updated.
9360         * tmac/an-old.tmac: Updated.
9361         * tmac/eqnrc: Updated.
9362         * tmac/groff_man.man
9363         * tmac/groff_markup.man: Updated and renamed to ...
9364         * tmac/groff_mwww.man: New file.
9365         * tmac/groff_tmac.man: Updated.
9366         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9367         * tmac/html.tmac: Updated and renamed from html2.tmac.
9368         * tmac/pspic.tmac: Updated html support.
9369         * tmac/s.tmac: Added html output support.
9370         * tmac/troffrc, tmac/troffrc-end: Updated.
9372         * Makefile.in, doc/Makefile: Updated.
9373         * doc/groff.texinfo: Added info about new `\O' escape.
9374         * doc/homepage.ms: Use `MAILTO' macro.
9376         * font/devhtml/DESC.proto: Add `C' font.
9377         * font/devhtml/Makefile.sub: Updated.
9378         * font/devhtml/R.proto: Minor fixes.
9379         * font/devhtml-old/Makefile.sub: Updated.
9381         * src/devices/grohtml-old/Makefile.sub: Updated.
9383         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9384         method.
9385         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9386         graphic_start): Add `inline' parameter.  Update.
9387         (html_end_suppress, graphic_end): Update.
9389         * src/include/html-strings.h: New file.
9390         * src/include/htmlindicate.h: Comments updated.
9391         * src/include/printer.h: Updated.
9393         * src/preproc/eqn/main.cc (do_file, main): Updated.
9394         * src/preproc/pic/troff.cc (troff_output::start_picture,
9395         troff_output::finish_picture): Updated.
9396         * src/preproc/tbl/main.cc (process_input_file): Updated.
9398         * src/roff/groff/groff.cc (main): Updated.
9399         Pass device arguments to predrivers also.
9400         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9401         * src/roff/troff/env.h (environment): Updated.
9402         New elements `need_eol' and `ignore_next_eol' (for html output).
9403         * src/roff/troff/env.cc (environment::environment): Add initializers
9404         for `need_eol' and `ignore_next_eol'.
9405         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9406         functions.
9407         (point_size, fill, no_fill, center, right_justify, line_length,
9408         indent, temporary_indent, break_request, handle_tab): Use
9409         `add_html_tag()'.
9410         (set_tabs): Use `add_html_tag_tabs()'.
9411         (environment::add_html_tag): Updated.
9412         (environment::do_break): Updated.
9413         * src/roff/troff/div.cc (space_request, flush_output): Use
9414         `environment::add_html_tag()'.
9415         * src/roff/troff/input.cc: Updated.
9416         New variable `html_level' to indicate nested `html-begin' requests.
9417         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9418         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9419         `force_tprint()' method.
9420         (token::next): Handle `\O'.
9421         (do_suppress): Implement it.
9422         (html_begin, html_end, html_image): New functions.
9423         (init_output_requests): Renamed to ...
9424         (init_html_requests): this.
9425         (main): Use it.
9426         (macro::append_str, macro::append_unsigned, macro::append_int): New
9427         methods.
9428         New variable `output_low_mark_miny' to limit minimal value of y.
9429         (reset_output_registers): Use it.
9430         (output_request): Removed.
9431         (get_output_registers): New function.
9432         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9433         (*_node): Added `force_tprint()' if necessary.
9434         (special_node): New elements `tf' and `get_tfont()'.
9435         (suppress_node): New class.
9436         * src/roff/troff/node.cc:
9437         New global variables `image_no' and `suppress_start_page'.
9438         (real_output_file): New method `is_on()'.
9439         (troff_output_file): New method `start_special(tfont)'.
9440         (troff_output_file::really_print_line): Use `tprint' conditionally.
9441         (real_output_file::print_line): Updated.
9442         (real_output_file::on): Updated.
9443         (*_node): Added `force_tprint()'.
9444         (special_node::special_node): Initializer updated.
9445         (special_node::same, special_node::copy, special_node::tprint_start):
9446         Updated.
9447         (get_reg_int, get_reg_str): New functions.
9448         (suppress_node::*): New methods.
9449         New global variables last_position, last_image_filename;
9450         (min): New inline function.
9451         * src/roff/troff/reg.h, src/roff/troff/request.h,
9452         src/roff/troff/troff.h: Updated.
9454 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9456         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9457         documentation of `asciify' request.
9459 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9461         * src/roff/troff/input.cc: Move definition of special characters
9462         like `ESCAPE_TILDE' to ...
9463         * src/roff/troff/input.h: New file.
9464         * src/roff/troff/Makefile.sub (HDRS): Add it.
9466         Extending the .asciify request to `unformat' space characters also.
9468         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9469         to count input space characters.
9470         Update constructors to take care of it.
9471         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9472         `ESCAPE_SPACE' instead of normal space.
9473         (word_space_node::asciify): New method.
9474         (unbreakable_space_node::asciify): New method.
9475         (word_space_node::merge_space): New method.
9476         * src/roff/troff/env.cc (environment::space_newline,
9477         environment::space): Add code to initialize `num_spaces' (using the
9478         constructor of `word_space_node').
9479         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9480         Document it.
9482 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9484         * man/groff_char.man: Use table header traps only conditionally.
9486 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9488         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9490 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9492         Introducing the `box' and `boxa' requests which are similar to
9493         `di' resp. `da' but omitting a partially filled line (which is
9494         restored after ending the diversion).
9496         * src/roff/troff/div.h (diversion): Add elements to save partially
9497         filled line.
9498         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9499         partially filled line.
9500         (divert, divert_append): Updated.
9501         (box, box_append): New functions.
9502         (init_div_requests): Use them.
9503         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9504         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9506         * doc/groff.texinfo: Fix documentation of `lf' request.
9508 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9510         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9512 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9514         Ignore `ss' request if in compatibility mode.
9516         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9517         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9518         * src/roff/troff/env.cc (space_size): Use it.
9520         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9521         `ss' request in nroff mode.
9523         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9524         changes.
9526 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9528         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9530 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9532         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9533         * src/preproc/eqn/neqn.man: Small fixes and additions.
9535 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9537         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9538         Fixing typo.
9540         * src/preproc/eqn/neqn.man: New file.
9542         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9543         negative' warning.
9545         * tmac/e.tmac: Add `T&' macro.
9546         Fix `indent cannot be negative' warning.
9547         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9549 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9551         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9553 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9555         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9556         `alloca' symbol .
9558         * MORE.STUFF: Added info about deroff for djgpp.
9560         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9561         documentation of -rcR switch.
9563 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9565         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9566         if -rcR=1 (which is now the default in nroff mode), a single, very
9567         long page is created instead of multiple pages: All `ne' and `wh'
9568         requests are put into conditionals; a new macro `an-end' is added to
9569         be called with `em'.
9571         Some other minor cleanups.
9573         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9575 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9577         Fixing a bug which prevented hyphenation in words followed
9578         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9580         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9581         Adding possibly_break_line().
9582         * src/roff/troff/env.h (environment): Make possibly_break_line()
9583         public.
9585         Make `\~' usable in .tr request.
9587         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9588         (token): Add stretchable_space().
9589         * src/roff/troff/input.cc (token::next, token::delimiter,
9590         token::description, process_input_stack, do_translate,
9591         add_to_node_list, token::process): Use it.
9592         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9593         for adjusting the space.
9594         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9595         for stretchable space.
9596         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9597         (make_node): Add code for stretchable space.
9598         * src/roff/troff/env.cc (environment::add_char): Use it.
9599         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9600         (get_copy, token::next, transparent_translate, asciify): Use it.
9602         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9603         doc/groff.texinfo: Updated.
9604         * man/groff.man: Small reorderings.
9606 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9608         * NEWS: Fixes.
9609         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9610         option.
9611         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9612         `safer_macro_path' to -M option.
9613         * src/roff/troff/troff.man: Fixes.
9615 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9617         Use safer path (except for config files) if -U isn't specified.  Add
9618         a special macro path (without home and current directory) for config
9619         files.  Add home directory to unsafe path for consistency.  Don't
9620         include the home directory in the font path.
9622         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9623         `macro_path'.
9624         * src/include/macropath.h: Add `config_macrp_path'.
9625         * src/libs/libgroff/fontfile.cc: Fix font path.
9626         * src/roff/troff/input.cc (process_startup_file): Use
9627         `config_macro_path'.
9628         (main): Select unsafe path if -U is given.
9630         * src/preproc/eqn/main.cc (main): Fixing search path for
9631         configuration file.
9632         * src/preproc/eqn/eqn.man: Updated.
9634         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9635         Updated.
9637         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9638         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9639         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9640         src/devices/grotty/grotty.man: Updated.
9642         * Makefile.in: Fix comments.
9644 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9646         * tmac/safer.tmac: Empty file added (again) for compatibility
9647         reasons.
9648         * tmac/Makefile.sub: Updated.
9650 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9652         * src/devices/grodvi/dvi.cc (main),
9653         src/devices/grohtml2/post-html.cc (main),
9654         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9655         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9656         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9657         (main), src/preproc/html2/pre-html.cc (main),
9658         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9659         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9660         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9661         (main), src/utils/hpftodit/hpftodit.cc (main),
9662         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9663         (main), src/utils/lookbib/lookbib.cc (main),
9664         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9665         (main): Use stdout for -v.
9666         * src/roff/groff/groff.cc (run_commands),
9667         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9668         to make direct printing to stdout possible.
9669         * src/roff/groff/pipeline.h: Updated.
9671         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9672         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9673         * src/utils/afmtodit/afmtodit.man: Updated.
9675         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9676         (version): New function.
9677         (usage): Updated.
9678         * src/utils/addftinfo/addftinfo.man: Updated.
9680         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9681         Fixing copyright dates.
9683         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9684         replacing it.
9686         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9687         version_string.
9689         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9691 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9693         In all programs, make -v return immediately with exit status 0 to
9694         be compliant with the GNU standard.
9696         * src/devices/grodvi/dvi.cc (main),
9697         src/devices/grohtml2/post-html.cc (main),
9698         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9699         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9700         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9701         (main), src/preproc/html2/pre-html.cc (main),
9702         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9703         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9704         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9705         (main): Implement it.
9706         * NEWS: Updated.
9708         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9709         and postprocessors to the -v option.
9711         * src/roff/grog/grog.pl: Implement -v.
9712         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9713         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9715         * src/roff/nroff/nroff.sh: Implement -v.
9716         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9717         * src/roff/nroff/nroff.man: Updated.
9718         
9719         * src/preproc/eqn/main.cc (main): Fix comment typo.
9721         * MORE.STUFF: Added info about djgpp port of grap.
9723 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9725         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9726         mode (or rather, implemented non-compatibility mode).
9727         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9729         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9730         replacing it -- we don't find gxditview otherwise.
9731         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9733         * src/preproc/pic/depend: Removed.  Unnecessary.
9735         Implemented dummy keyword `solid' in pic for compatibility with
9736         AT&T pic.
9738         * lex.cc (lookup_keyword): Added `solid'.
9739         * pic.y: Added SOLID with dummy rule.
9740         * pic.cc, pic_tab.h: Regenerated.
9741         * doc/pic.ms: Updated.
9743 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9745         For security reasons, don't use the current directory but the home
9746         directory while searching and scanning troffrc and troffrc-end.
9747         Similarly, replace the current directory with the home directory
9748         in the font path.
9750         * Makefile.in (fontpath, tmacpath): Remove current directory.
9752         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9753         two parameters `add_home' and `add_current'.
9754         (search_path::~search_path, search_path::command_line_dir,
9755         search_path::open_file): Remove tests for `dirs' being zero.
9756         * src/include/searchpath.h: Adjust.
9757         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9758         `safer_macro_path'.
9759         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9761         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9762         * src/roff/troff/input.cc: Use `mac_path', initialized with
9763         `macro_path'.
9764         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9765         * src/roff/troff/env.cc: Use `mac_path'.
9767         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9769         * NEWS, man/roff.man, src/roff/troff/troff.man,
9770         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9771         Updated.
9773 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9775         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9777         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9778         * configure.in: Fix typo in comment.
9779         * configure: Regenerated.
9781         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9782         copyright dates.
9784 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9786         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9788         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9789         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9790         $(systemtmacdir).
9791         Use @libdir@.
9792         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9793         * tmac/Makefile.sub (install_data): Create
9794         $(systemtmacdir) and $(localtmacdir).
9795         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9796         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9797         NEWS, doc/groff.texinfo: Updated and minor fixes.
9799         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9800         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9801         $(systemtmacdir) since the wrapper files are platform-dependent.
9803 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9805         * doc/groff.texinfo: Fix typo.
9807 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9809         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9810           tmac.doc.old -> doc-old.tmac
9811           tmac.an.old  -> an-old.tmac
9813         * tmac/tmac.*: Moved to ...
9814         * tmac/*.tmac: this.
9815         * tmac/man.local: Fix comment.
9816         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9817         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9818         Added some `FILES' sections.  More use of @...@ directives.  Other
9819         minor updates.
9820         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9821         * doc/homepage.ms, doc/groff.texinfo: Updated.
9822         * man/groff.man, man/roff.man: Updated.
9823         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9824         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9825         src/devices/grotty/grotty.man: Updated.
9826         * src/preproc/pic/pic.man: Updated.
9827         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9828         instead of -mdoc.old.
9829         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9830         * src/roff/nroff/nroff.man: Updated.
9831         * NEWS: Updated.
9833         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9835         * tmac/mm.diff: Removed -- it has no use now since the mm package
9836         is part of groff.
9838         * tmac/*: Removed trailing spaces.
9840         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9841         the tmac subdirectory also).
9843         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9844         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9845         stuff since it is no longer needed.
9847         * README, PROBLEMS: Updated.
9849 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9851         Invert current behaviour: Search first FOOBAR.tmac, then
9852         tmac.FOOBAR.
9854         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9855         (open_mac_file, macro_source): Implement it.
9856         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9857         doc/groff.texinfo, NEWS: Document it.
9859         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9860         Small documentation improvements.
9862         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9863         subdirectory also).
9865         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9867 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9869         Add local tmac directory (groff/site-tmac).
9871         * Makefile.in: Add $(localtmacdir).
9872         (uninstall_dirs): Add $(localtmacdir).
9873         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9874         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9875         in $(localtmacdir).  Create $(localtmacdir).
9876         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9877         Updated and minor fixes.
9879         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9881         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9883 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9885         Move hyphen.us to tmac directory.
9887         * src/roff/troff/hyphen.us: Removed.
9888         * src/tmac/hyphen.us: Added.
9889         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9891         Change installation structure for data files from .../groff/... to
9892         .../groff/<version><revision>/... to be conform with other GNU
9893         programs.
9895         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9896         doc/Makefile: Implement it.
9897         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9898         * configure: Updated.
9899         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9900         * NEWS: Document it.
9901         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9902         @MACRODIR@ instead of hard-coded directories.
9904 2000-10-22  Werner LEMBERG  <wl@gnu.org>
9906         Implement $GROFF_BIN_PATH environment variable (which defaults to
9907         $bindir) used for child programs of groff and similar wrappers.
9909         * gendefs.sh: Improve documentation.
9910         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9911         src/preproc/eqn/Makefile.sub (neqn),
9912         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9913         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9914         $GROFF_BIN_PATH.
9915         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9916         $GROFF_PATH__ (the latter for communication with troff).
9917         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9918         set.
9919         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9920         doc/groff.texinfo: Document it.
9922         * doc/groff.texinfo: Improve documentation of troff's -a option.
9924 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
9926         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9927         non-intrusive eol marker.
9928         (troff_output_file::determine_line_limits): New function.
9929         (troff_output_file::draw): Use it.
9930         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9931         output_pending_lines() instead of output_line().
9932         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9933         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9934         createImage): Small fixes.
9935         
9936 2000-10-14  Werner LEMBERG  <wl@gnu.org>
9938         Replace tmac.safer with a real secure solution.
9940         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9941         system_request, pipe_output): Disable requests if in safer mode.
9942         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9943         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9944         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9945         doc/groff.texinfo, src/roff/groff/groff.man,
9946         src/roff/troff/troff.man, arch/djgpp/README: Updated.
9948         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9949         (resource_manager::output_prolog): Replace setenv() with putenv().
9951 2000-10-09  Werner LEMBERG  <wl@gnu.org>
9953         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9954         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9955         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9956         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9957         compilation errors with some compilers.  It seems that this code
9958         is no longer necessary -- if yes, it is easy to add some #ifdef's
9959         for that particular old-fashioned compiler.
9961         * MORE.STUFF: Added info about Meta-tbl.
9963         * doc/groff.texinfo: Added more info about `.if "..."..."'.
9965 2000-10-07  Werner LEMBERG  <wl@gnu.org>
9967         Adding a new escape sequence \B'...': If the string between
9968         the delimiters is a valid numeric expression, return the character
9969         `1', and `0' otherwise.  This is an analogon to \A.
9971         * src/roff/troff/input.cc (do_expr_test): Implement it.
9972         (token::next): Use it.
9973         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9975         * tmac/tmac.trace: Made independent from escape character.
9977 2000-10-06  Werner LEMBERG  <wl@gnu.org>
9979         Adding a new request .dei: define indirect.  The first and second
9980         parameter of .dei are taken from string registers instead directly;
9981         this very special request is needed to make tmac.trace independent
9982         from the escape character (which might even be disabled).
9984         * src/roff/troff/input.cc (do_define_macro): Implement it.
9985         (define_macro_indirect): New function.
9986         (init_input_requests): Use it.
9988         Adding two requests .ecs and .ecr: Save and restore the escape
9989         character.  These two requests are needed to make tmac.trace
9990         independent from the escape character (which might even be
9991         disabled).
9993         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9994         Implement it.
9995         (init_input_requests): Use it.
9997         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9999 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10001         Adding a new option -P and new environment variable GROPS_PROLOGUE
10002         to grops, selecting a different prologue file (minor modifications
10003         by WL).
10005         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10006         src/devices/grops/ps.cc (main): Implement it.
10007         * src/devices/grops/grops.man, NEWS: Document it.
10009 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10011         * INSTALL: Add info about selecting paper format.
10013 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10015         * src/roff/troff/input.cc (main): Fixing compiler warning.
10016         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10017         strings.h from the former to the latter.
10018         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10019         stuff from the former to the latter.
10021 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10023         Implementing two new requests .tm1 and .tmc: The former is similar
10024         to .tm but can output leading spaces; its syntax is similar to
10025         defining a string, i.e., a `"' can be used to mark the beginning of
10026         the string to be written to stderr: `.tm1 " test'.  The latter is
10027         similar to .tm1 but doesn't write out a final newline character.
10029         * src/roff/troff/input.cc (terminal1, terminal_continue,
10030         do_terminal): New functions.
10031         (init_input_requests): Use them.
10032         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10034 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10036         * tmac/groff_mdoc.samples.man: Small fixes.
10038 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10040         * tmac/groff_mdoc.man: Fixing typo.
10042 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10044         Implementing a .nop request which does nothing.
10046         * src/roff/troff/input.cc (nop_request): New function.
10047         (init_input_requests): Use it.
10048         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10050 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10052         * doc/groff.texinfo: Added some comments.
10054 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10056         * src/roff/troff/TODO: Updated.
10058 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10060         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10062 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10064         * font/devps/generate/Makefile (SHELL): Define explicitly to
10065         "/bin/sh", for non-Unix platforms.
10066         (extraclean): Use a more portable "" quoting instead of a
10067         backslash (which doesn't work on DOS/Windows).
10068         
10069         * font/devlj4/generate/Makefile (extraclean): Ditto.
10071         * font/devdvi/generate/Makefile (extraclean): Ditto.
10073 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10075         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10076         src/roff/troff/troff.man: Document Eli's latest changes.
10078 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10080         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10081         macro file names of the form NAME.tmac as well as tmac.NAME.
10083 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10085         * src/include/posix.h: Remove definition of FILENAME_MAX.
10087         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10088         `sys_fatal' and `stop' function().
10090         * test-groff: Updated.
10092 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10094         Added the new troff command .output <arg> to suppress output (while
10095         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10096         registers (for passing the output dimensions to the output device).
10098         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10099         parameter.
10100         * src/roff/troff/node.h, src/roff/troff/node.cc
10101         (troff_output_file::really_print_line,
10102         ascii_output_file::really_print_line,
10103         supress_output_file::really_print_line): Use `width' parameter.
10104         (troff_output_file::really_on, troff_output_file::really_off,
10105         output_file::on, output_file::off, real_output_file::on,
10106         real_output_file::off, real_output_file::really_on,
10107         real_output_file::really_off): New functions.
10108         (real_output_file:public output_file): New variable `output_on'.
10109         (real_output_file::begin_page, real_output_file::copy_file,
10110         real_output_file::transparent_char, real_output_file::print_line):
10111         Use it.
10112         (real_output_file::print_line): Use check_output_limits.
10113         * src/roff/troff/reg.h, src/roff/troff/request.h,
10114         src/roff/troff/input.cc (assign_registers): New function to remove
10115         two `goto's.
10116         (do_ps_file): Use it.
10117         (check_output_limits, reset_output_registers, output_request,
10118         init_output_requests): New functions.
10119         (init_input_requests): Updated.
10121         Added new grohtml2 device and html2 preprocessor (coding
10122         not yet finished) which will eventually replace grohtml.
10124         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10125         Updated.
10126         * src/include/htmlindicate.h, src/include/htmlindicate
10127         (html_begin_suppress, html_end_suppress): New functions.
10128         * src/preproc/tbl/main.cc: Use it.
10129         * src/roff/groff/groff.cc: Add support for html2 device (which will
10130         automatically invoke the html2 preprocessor).
10131         * src/roff/troff/input.cc (is_html2): New variable.
10132         * src/roff/troff/troff.h, src/roff/troff/env.h,
10133         src/roff/troff/env.cc (environment::add_html_tag): New function
10134         (uses `is_html2').
10135         (environment::do_break): Use it.
10136         * font/devhtml2/*: New files.
10137         * src/devices/grohtml2: New device.
10138         * src/preproc/html2: New preprocessor.
10139         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10141 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10143         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10145 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10147         * src/include/lib.h: Provide a fix for IRIX to not include
10148         groff-getopt.h.
10150 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10152         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10153         since some non-GNU sed programs can't handle null regexps.
10154         * configure, src/preproc/eqn/Makefile.sub,
10155         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10157         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10158         bug (string.h and strings.h are both needed according to latest
10159         POSIX standard).
10161         * MORE.STUFF: Added info about unroff and troffcvt.
10163 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10165         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10166         used before -ms.
10168         * tmac/tmac.man.old: Remove unused number register.
10170         * tmac.doc: Minor documentation fix.
10172 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10174         * src/roff/groff/pipeline.c (is_system_shell):
10175         Fix typo: "monocased_shell" no longer exists.
10177 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10179         Remove FILENAME_MAX limits.
10181         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10182         that the argument length is less than FILENAME_MAX.
10183         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10184         Use struct hack to allocate and free file name.
10185         (struct xtmpfile_list): fname is now part of the structure,
10186         not a pointer to another string.
10188 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10190         * src/include/posix.h: Add a default value for FILENAME_MAX.
10192 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10194         Add support for new BSD-style man pages (with ".Dd" instead of
10195         ".TH"), so that "groff -man" understands both styles, even
10196         when running "groff -man" on a host whose system man page
10197         macros don't support ".Dd".
10199         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10200         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10201         in case the system man macros don't define Dd or TH.
10203         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10204         * tmac/tmac.an: New one-line file.
10205         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10207 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10209         * src/roff/troff/troff.man: Fixing typos.
10211 Version 1.16.1 released
10212 =======================
10214 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10216         Preparing release 1.16.1.
10218         * REVISION: Revision number set to 1.
10219         * MORE.STUFF: Added info about port to DOS.
10220         * NEWS, win32-diffs: Updated.
10222         * src/include/nonposix.h: Remove first line -- this file is used
10223         in C also.
10225         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10226         link to it.
10228 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10230         * doc/texinfo.tex: Update to latest version.
10232 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10234         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10235         commands that fail.  Don't assume that "export a=b" is valid shell
10236         syntax.  This is needed for Solaris 2.5.1.
10238         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10239         comment about missing Solaris headers.
10241         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10243 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10245         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10246         SET_BINARY().
10248         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10250         * win32-diffs: Updated.
10251         * README.WIN32: Added CRs to make all Windows editors happy.
10253         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10254         src/roff/groff/pipeline.c).
10256 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10258         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10259         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10261 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10263         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10264         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10265         are binary files.
10266         (main): Support non-Posix systems with several different styles of
10267         slash characters in file names.
10269         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10270         (main) [SET_BINARY]: Switch stdin into binary mode.
10272         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10273         (main): Support file names with several possible slash-type
10274         characters, as given by DIR_SEPS[] in nonposix.h.
10275         (main) [__MSDOS__]: If renaming the temporary index file fails
10276         because it has more than one dot in its trunk, replace the dot
10277         with an underscore and try again.
10278         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10279         Newline.
10280         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10282         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10283         (File::File): Open the input file in binary mode.  Strip CR
10284         characters from each CR-LF pair.
10285         (xbasename): Support file names with several possible slash-type
10286         characters, as given by DIR_SEPS[] in nonposix.h.
10288         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10290         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10291         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10292         [!_POSIX_VERSION]: Define for traditional Unix systems.
10293         (real_output_file::real_output_file): Remove the MSVC-specific
10294         call to popen, use instead POPEN_WT, appropriately defined on
10295         nonposix.h.  #include nonposix.h.
10296         (real_output_file::~real_output_file): Remove the MSVC-specific
10297         call to pclose, a suitable macro is now defined on nonposix.h.
10298         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10299         and WEXITSTATUS instead of assuming traditional Unix
10300         interpretation of the status returned by pclose.
10302         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10303         call to popen, use POPEN_RT instead (appropriately defined on
10304         nonposix.h).  #include nonposix.h.
10305         (ps_bbox_request): Open the PostScript file in binary mode.
10306         Close the file after processing it.
10307         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10308         nonposix.h.
10310         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10311         A version of run_pipeline that doesn't use `fork'.
10312         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10313         (system_shell_name, system_shell_dash_c)
10314         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10315         the ugliness of testing DOS/Windows file names for equality, and
10316         support both stock shells and ports of Unix shells.
10318         * src/roff/groff/groff.cc: #include nonposix.h.
10319         (BSHELL): Definition moved to nonposix.h.
10320         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10321         instead of a literal "-c".
10322         (xbasename): Support file names with several possible slash-type
10323         characters, as given by DIR_SEPS[] in nonposix.h.
10324         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10325         of literal strings.
10327         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10328         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10330         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10331         pic_tab.h.
10333         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10335         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10336         eqn_tab.h.
10338         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10340         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10341         P_tmpdir is defined, use it instead of the literal "/tmp".
10342         (remove_tmp_files, add_tmp_file): New functions.
10343         (xtmpfile): Record temporary files and register an atexit function
10344         to delete them explicitly, instead of relying on the OS to do
10345         that, which doesn't work on non-Unix systems.
10347         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10348         (search_path::search_path): Use PATH_SEP instead of a literal
10349         colon.
10350         (search_path::command_line_dir): Ditto.
10351         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10352         to support non-Posix systems.
10354         * src/libs/libbib/search.cc: #include nonposix.h.
10355         (search_list::add_file): Open the file in binary mode.
10357         * src/libs/libbib/linear.cc: #include nonposix.h.
10358         (file_buffer::load): Remove \r characters preceding \n from the
10359         loaded buffer.
10361         * src/libs/libbib/index.cc: #include nonposix.h.
10362         (make_index_search_item): Open index_filename in O_BINARY mode.
10363         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10364         characters before \n characters.
10365         (index_search_item::check_files): Open files in binary mode.
10366         (index_search_item::munge_filename): Support DOS-style file names
10367         with backslashes and drive letters, use IS_ABSOLUTE.
10369         * src/devices/grops/ps.cc: #include nonposix.h.
10370         (main) [SET_BINARY]: Switch stdout to binary mode.
10372         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10373         (main) [SET_BINARY]: Switch stdout to binary mode.
10375         * src/devices/grolbp/lbp.cc: #include nonposix.h
10376         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10378         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10379         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10380         nonposix.h).
10381         (main) [SET_BINARY]: Switch stdout to binary mode.
10382         [_MSC_VER]: Remove an explicit call to _setmode.
10384         * src/include/nonposix.h: New file.
10386         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10387         operation when building with DJGPP.
10388         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10389         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10390         ENVSETUP.
10392         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10393         MS-DOS.
10394         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10395         etc. can include a semi-colon on DOS/Windows.
10396         (depend.temp): Use depend1.temp instead of depend.temp1, to
10397         prevent files from overerwiting each other on 8+3 filesystems.
10399         * gendef.sh (t): Change definition to work with DOS/Windows.
10401         doc/groff.texinfo: Apart of some typo corrections, I also changed
10402         some index entris, to make them more non-ambiguous, and also put
10403         @ignore around some parts that are not yet written, to allow the
10404         Info output be readable.
10406 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10408         Replaced specific checks for function declarations with a generic
10409         routine taken from GNU bfd.
10411         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10412         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10413         * configure.in: Use it.
10414         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10415         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10416         src/roff/groff/groff.cc: Use it.
10417         * Makefile.in, configure: Updated.
10419 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10421         * src/devides/grolbp/lbp.h: Removed unused variables.
10423 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10425         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10426         strncasecmp().
10428 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10430         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10431         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10432         * configure.in: Use it.
10433         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10434         * configure, Makefile.in: Updated.
10436         * configure.in: Add test for strncasecmp().
10437         * src/include/lib.h: Use it.
10439 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10441         * src/preproc/grn/Makefile.sub: Add MLIB.
10443 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10445         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10447 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10449         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10451         * PROBLEMS: Small update.
10453         * src/devices/grolbp/lbp.cc: Various small fixes.
10455 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10457         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10459         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10461 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10463         * man/roff.man: Removed unused macro.
10465 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10467         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10468         This is needed e.g. if you do
10469         `make distclean; ./configure; make dist'.
10471 Version 1.16 released
10472 =====================
10474 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10476         Adding font CWI (constant width italic) to devdvi.
10478         * font/devdvi/CWI: New file.
10479         * font/devdvi/generate/Makefile: Add generating rule.
10480         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10481         tmac/tmac.dvi: Use it.
10482         * NEWS: Announce it.
10484         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10485         * font/devlj4/generate/Makefile: Cosmetic changes only.
10487         * man/groff.man: Removed most of the redundant description of
10488         special characters (which is in groff_char.man).  Added font
10489         translation CB->CR for devdvi.  Other minor fixes.
10491         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10492         (registered) symbols.
10494 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10496         * doc/Makefile: Added rule for creating info files.
10498         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10499         AMS font metrics.
10500         * font/devdvi/generate/Makefile: Fixed dependencies.
10502         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10503         NewCentury Schoolbook!
10504         * font/devps/generate/afmname: Will now run with GNU awk.
10505         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10506         * font/devps/generate/Makefile: Cosmetic changes only.
10508 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10510         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10511         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10512         `.SS' now produces a heading with a smaller size than `.SH'. 
10513         Completely formatted.
10514         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10516         * man/groff.man: Improved table appearance.  Use of `eo' request
10517         to reduce number of doubled backslashes in macro definitions.
10518         Replacing `\e' with `\(rs'.  Other minor fixes.
10520         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10521         to have correct line number.
10523         * INSTALL: Small improvement.
10525 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10527         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10528         WL).
10530 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10532         * man/groff.man: Complete update (with a lot of corrections by WL).
10534 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10536         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10538         * font/*/*: Implement it.
10539         * man/groff_char.man, NEWS: Document it.
10541         * src/include/unix.h: Removed.  It isn't used.
10543         * doc/groff.texinfo: Slight improvements.
10545 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10547         * README, win32-diffs: Small fixes and improvements.
10549 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10551         * FDL: New file (the Free Documentation License version 1.1).
10553         * doc/groff.texinfo: Added many start-up values for gtroff.
10554         Some structural improvements of the source code.
10556 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10558         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10559         * src/roff/troff/troff.man: Added info about troffrc-end.
10561 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10563         * Makefile.in (EXTRADIRS): Fix typos.
10564         (dist): Handle deletion of old .tar.gz file correctly.
10565         (DISTDIRS): Include all tty output devices.
10567         * doc/groff.texinfo: Adding more cross references; countless other
10568         fixes.
10570 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10572         * MORE.STUFF: Added Robert Marks's utilities.
10574 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10576         Added win32 port contributed by Blake McBride
10577         <blake@florida-software.com>.
10579         * README.WIN32, win32-diffs: New files.
10580         * NEWS: Updated.
10582         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10583         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10584         (change): Removed unused variables.
10586         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10587         (savebounds): Changed return value from `int' to `void'.
10588         * src/preproc/grn/hdb.cc: Ditto.
10590         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10591         final backslash in comment to avoid compiler warning.
10593         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10595         * doc/groff.texinfo: More fixes.
10597 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10599         * tmac/tmac.doc: Documentation fix.
10601 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10603         * doc/groff.texinfo: Reading the source code shows up a lot of
10604         omissions and incorrect data...  More conversion to @Deffn macros.
10606 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10608         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10609         dependency.
10611         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10613 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10615         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10616         improvements.
10618         * doc/groff.texinfo: Extended history section.  More conversion to
10619         @Deffn macros.  More .tr documentation.
10621 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10623         * doc/groff.texinfo: Completed tab section.  Added info about
10624         fields.
10626 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10628         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10630 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10632         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10633         LaTeX 2e).
10634         * NEWS: Document it.
10636         * man/troff.man: Minor optical improvements.
10638 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10640         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10642         * font/*/*: Implement it.
10643         * man/groff_char.man, NEWS: Document it.
10645 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10647         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10648         expansion.
10649         * NEWS: Document the three new man pages.
10651         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10652         * configure: Updated.
10654         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10656 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10658         Added grap support to grog.
10660         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10661         * src/roff/grog/grog.man: Document it.
10663         * doc/groff.texinfo, NEWS: Add info about grap support.
10665         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10666         (with slight fixes by me).
10668         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10669         * tmac/Makefile.sub: Add groff_tmac.man.
10670         * man/roff.man: New file giving overview of roff system.
10671         * man/troff.man: A short reference of troff.
10672         * man/Makefile.sub: Add roff.man and troff.man.
10674 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10676         Added grap support to groff.
10678         * src/roff/groff/groff.cc: Implement it.
10679         * src/roff/groff/groff.man: Document it.
10681         * src/devices/grotty/grotty.man: Add cp1047 device.
10682         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10683         Ditto.
10684         * src/roff/groff/groff.man: Ditto.
10685         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10686         * doc/groff.texinfo: Ditto.
10688         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10689         for cp1047.
10691 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10693         * man/groff_char.man: Add `pc' glyph.
10694         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10695         * tmac/tmac.tty: Add `pc' glyph.
10696         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10697         we use cp1047 output device.
10699         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10700         there are still hardcoded latin1->unicode values in utf8's font
10701         definition files.
10702         * configure: Updated.
10703         * NEWS: Minor clarification.  Updated.
10705         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10706         Unix.
10708 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10710         Adding EBCDIC code page 1047.
10712         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10713         font/devcp1047/DESC.proto: New files.
10715         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10716         either ascii/latin1 or cp1047.
10717         * Makefile.in: Use it.
10718         * configure: Updated.
10720         Replacing and/or adding `md' (mathdot) glyph with `pc'
10721         (periodcentered) in all text fonts.
10723         * font/*/*: Change it.
10725 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10727         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10729         * configure.in: Add check for strings.h.
10730         * src/include/driver.h: Use HAVE_STRINGS_H.
10731         * src/devices/grolbp/lpb.cc: Remove string.h.
10733         * src/include/groff-getopt.h: New file.  It will be used instead of
10734         getopt.h (to be included in lib.h) to avoid endless problems with
10735         picky C++ compilers.
10736         * src/include/lib.h: Use groff-getopt.h.
10737         * src/include/Makefile.sub: Updated.
10739         * configure: Updated.
10740         * Makefile.in: Updated.
10742         * NEWS: Mention EBCDIC support.
10744 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10746         * TODO: Some additions.
10748 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10750         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10751         of mso request.
10753 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10755         * src/roff/troff/troff.man: Minor fixes.
10757 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10759         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10760         `.T' string register and the incompatible definition of the `.T'
10761         number register (compared to Unix troff).
10763         * man/groff_char.man: Add some missing characters.
10764         * font/devutf8/NOTES: Update.
10766 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10768         * src/include/htmlindicate.h, src/include/lib.h,
10769         src/include/posix.h: Fix copyright.
10771         * src/include/Makefile.sub: Update.
10773 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10775         * src/roff/troff/input.cc (input_char_description): Removing
10776         superfluous space char.
10778         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10780         * doc/groff.texinfo: Document EBCDIC.
10782 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10784         Introducing `shc' as the glyph name for the soft hyphen character.
10786         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10787         font/devlatin1/R.proto: Use it.
10789         * NEWS: Updated.
10791 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10793         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10794         dependency on ASCII order.
10796 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10798         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10799         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10801         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10802         to increase portability.
10804 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10806         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10807         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10808         the generic `\n' if under OS/390 Unix.
10810         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10812         * configure: Regenerated.
10814 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10816         * doc/groff.texinfo: More conversions to @Deffn.
10818 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10820         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10821         with `:'.
10823         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10825 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10827         * doc/groff.texinfo: More conversions to @Deffn.
10829 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10831         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10832         Updated to latest version (glibc 2.1.3).
10834 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10836         * doc/Makefile (clean): Include more index files.
10837         Add rule texinfo->dvi.
10839 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10841         * doc/groff.texinfo: Added new index `op' for operators.  More
10842         info on end of sentence characters.  More use of @Deffn.
10844 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10846         * */*.man: Adding a note that a whitespace can be inserted between
10847         a command line option and its parameter -- we are using GNU getopt.
10849         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10851 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10853         Correct anachronism of calling the man macro file with `-man'
10854         instead of `-m man' etc.
10856         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10857         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10858         load tmac.<package>.
10860         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10862         * NEWS: Updated.
10864         * doc/groff.texinfo: Updated.
10866         * tmac/groff_man.man: Copyright added.
10868 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10870         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10871         typeset the request resp. escape name with a tt font -- due to a
10872         bug in texinfo.tex it is necessary to use the `-e' switch with
10873         texi2dvi.
10875         Improving info about usage of groff units.
10877         Other minor fixes.
10879 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10881         * doc/groff.texinfo: Added section about man macro package
10882         (I've basically taken groff_man.man).  Introducing new indices `ma'
10883         for macros/strings and `gl' for glyph names.  Other minor fixes.
10885         * tmac/groff_man.man: Fixed some typos.
10887 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10889         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10890         Other minor fixes.
10892         * doc/texinfo.tex: New file.
10894 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10896         * doc/groff.texinfo: Improved section on number registers.  Other
10897         minor updates.
10899 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10901         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10902         synopsis.
10904         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10905         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10906         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10907         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10909         * src/preproc/grn/grn.man: Better synopsis; added copyright.
10911         * src/roff/grog/grog.man: Updated copyright date.
10913 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
10915         * configure.in: Added test for strdup.
10917         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10918         is available.
10920         Replaced dynamic allocation of arrays `[...]' with `new' operator.
10922         Other minor fixes.
10924 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
10926         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10928 2000-03-11  Werner LEMBERG  <wl@gnu.org>
10930         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10931         compilers silent.
10932         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10933         * src/include/lib.h: Remove some spaces.
10935 2000-03-10  Werner LEMBERG  <wl@gnu.org>
10937         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10938         initializers from arguments (some compilers don't like this).
10940 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
10942         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10943         used by pic and eqn to tell grohtml where the graphic regions start
10944         and end.
10945         * src/libs/libgroff/Makefile.sub: Use it.
10946         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10947         graphic_start() and graphic_end() from htmlindicate.cc.
10949 2000-03-09  Werner LEMBERG  <wl@gnu.org>
10951         * tmac/tmac.safer: Will now work correctly in compatibility mode.
10952         * tmac/groff_man.man: More fixes.
10954 2000-03-08  Werner LEMBERG  <wl@gnu.org>
10956         * doc/Makefile: Added texput.log to the `clean' target.
10957         * doc/groff.texinfo: Added info about delimiters for escapes.
10959 2000-03-08  Bernd Warken  <bwarken@mayn.de>
10961         * src/preproc/pic/pic.man: Add info on conversion of pic images to
10962         other graphic formats.
10964 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
10966         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10967         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10968         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10969         files.
10971 2000-03-07  Werner LEMBERG  <wl@gnu.org>
10973         * doc/groff.texinfo: Spelling fixes.
10975 2000-03-06  Werner LEMBERG  <wl@gnu.org>
10977         * tmac/groff_man.man: Completely revised to cover everything in
10978         tmac.an.
10980         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10981         Other minor fixings.
10982         * src/roff/troff/env.cc (environment_copy): Improve error message and
10983         fix itoa->i_to_a.
10984         * src/roff/troff/TODO: Updated.
10986         * doc/Makefile: Bug fixes -- this is still provisional, though...
10988         * tmac/eqnrc: Small fixes.
10990 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10992         Adding a request `evc' to copy environments.
10994         * src/roff/troff/env.cc (environment::copy, environment_copy):
10995         Implement it.
10996         * src/roff/troff/env.h: Add prototype.
10998 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11000         Adding strsep() -- Solaris 8 doesn't have it.
11002         * configure.in: Test it.
11003         * src/devices/grolbp/lbp.cc: Add code.
11005 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11007         * src/roff/troff/div.cc (macro_diversion::output,
11008         top_level_diversion::output): Fixing an incompatibility with
11009         original troff: \x'0' updates the .a register also.  Thanks to
11010         <Andries.Brouwer@cwi.nl> for pointing this out.
11011         * doc/groff.texinfo: Document it.
11013         * Makefile.in: Create Makefile.dep if necessary before calling the
11014         submake process to avoid warning about nonexistent file.
11016         * NEWS, PROJECTS: Updated.
11018 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11020         * tmac/troffrc: Add tmac.lbp.
11022 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11024         * tmac/tmac.lbp: New file.
11025         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11026         command.
11028 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11030         * Makefile.in: Fixing $(subdir).
11032         * README, NEWS: Small fixes.
11034         * test-groff: Adding path to grolbp.
11036         * configure.in: The (new) file src/xditview/Imakefile.in will be
11037         also configured -- it is now possible to build gxditview in a
11038         directory different from $srcdir.
11040 2000-03-02  Blake McBride  <blake@florida-software.com>
11042         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11044         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11046 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11048         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11049         files.
11051 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11053         Adding GNU getopt to the groff distribution.
11055         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11056         New files.
11057         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11058         * aclocal.a4: Remove GROFF_GETOPT function.
11059         * configure.in, Makefile.in, PROBLEMS: Update.
11060         * src/include/lib.h: Replace getopt tests with getopt.h.
11061         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11063         * doc/groff.texinfo: Further checking/updating.  Adding more index
11064         entries.
11066         * man/groff_out.man: Fix nroff mode activation (for emacs).
11067         * man/groff_font.man: Add missing ligature.
11069 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11071         * doc/groff.texinfo: Further checking/updating.  Adding more index
11072         entries.
11074         * src/devices/grolbp/grolbp.man: Added a comment line at the
11075         beginning of the file (similar to shell scripts) which indicates
11076         that `tbl' should be used as a preprocessor.
11078 2000-02-27  Blake McBride  <blake@florida-software.com>
11080         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11081         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11083         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11084         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11085         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11086         src/include/lib.h, src/libs/libgroff/errarg.cc,
11087         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11088         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11089         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11090         src/roff/troff/div.cc, src/roff/troff/env.cc,
11091         src/roff/troff/input.cc, src/roff/troff/node.cc,
11092         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11093         if_to_a() to avoid name clashes.
11094         * src/include/posix.h: Don't use unistd.h.
11095         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11096         clause for integrating non-Unix xtmpfile() code.
11097         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11098         structure; use "rt" for popen() in pipe_source(); add getpid()
11099         dummy function.
11100         * src/roff/troff/node.cc: Use special versions of popen() in
11101         real_output_file() and pclose() in ~real_output_file().
11103 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11105         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11106         LBP-8 series laser printers).  This code has been contributed by
11107         Francisco Andrés Verdú <pandres@dragonet.es>.
11109         * src/devices/grolbp/*: The grolbp output device.
11110         * font/devlpb/*: The font description files.
11111         * Makefile.in: Add grolpb and devlbp subdirectories.
11113         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11114         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11115         typographic fixes.
11117         * doc/groff.texinfo: Further checking/updating.  Adding more index
11118         entries.
11120         * NEWS: Updated.
11122         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11124         * man/groff_font.man: Adding info about obsolete DESC keywords.
11125         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11126         keywords.
11128 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11130         * src/preproc/grn/grn.man: Added info about the gremlin file format
11131         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11133 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11135         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11136         friends to be non-integer.
11138         * src/preproc/grn/grn.man: Document it.
11140         * doc/groff.texinfo: Further checking/updating.  Adding more index
11141         entries.
11143 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11145         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11146         line thicknesses to be integer multiples of this value.
11148         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11149         corresponding code doesn't work (yet).
11151         * doc/groff.texinfo: Further checking/updating.  Adding more index
11152         entries.
11154 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11156         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11157         specify line thickness instead of base units.  The new default
11158         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11159         thick lines respectively.
11161         Removed unused variable `prevval'.
11163         * src/preproc/grn/grn.man: Updated.
11165 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11167         * src/preproc/grn/main.cc: Slight formatting.
11169         * src/roff/groff/groff.man: Formatting fix.
11170         * src/preproc/grn/grn.man: Ditto.
11172         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11174         * doc/groff.texinfo: Further checking/updating.
11176 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11178         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11180         * test-groff: Added grn subdir to path.
11182         * doc/groff.texinfo: Some restructing and other small improvements.
11184         * src/roff/groff/groff.cc (help): Fixed info string.
11186 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11188         * doc/meref.me: Fix description of .GS request.
11190         * src/roff/troff/troff.man: Fixing typo.
11192         Adding the `grn' preprocessor for gremlin graphic files.
11194         * src/preproc/grn/*: This is the Berkeley distribution written by
11195         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11196         Senderowicz and Werner Lemberg.
11198         * doc/grnexampl.{me,g}: A sample for grn.
11200         * Makefile.in: Added subdirectory entry for grn.
11202         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11203         called with the switch `-g'.
11205         * src/roff/groff/groff.man: Updated.
11207         * src/roff/grog/grog.{man,pl,sh}: Updated.
11209         * NEWS: Updated.
11211 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11213         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11214         parametrically polymorphic.
11216         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11217         and the alterations to xtmpfile.
11218         xtmpfile can be requested to return the filename created
11219         and asked not to unlink the temp file.  The default behaviour
11220         if parameters are absent is exactly the same as before.
11222 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11224         A new request `length' is available which returns the length of a
11225         string in a number register:
11227         * src/roff/troff/input.cc (length_macro): Implement it.
11228         * src/roff/troff/input.cc (init_input_requests): Register it.
11230 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11232         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11233         of the `substring' request.
11235         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11236         request.
11238         * src/roff/troff/TODO, NEWS: Updated.
11240 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11242         * src/roff/groff/groff.man: Added an example.
11244 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11246         I've considerably modified the directory structure of the
11247         distribution to get a more vertical layout.  For example, the number
11248         of top level directories has been reduced from 42 to 6.
11250         As a consequence, many changes, especially to the makefiles, were
11251         necessary:
11253         * The makefile variables `top_builddir' and `top_srcdir' have been
11254         introduced.  Virtually all relative paths have been replaced with
11255         absolute ones using these two variables.
11257         * Dependencies (in the files `Makefile.dep') are no longer part of
11258         the distribution.  Instead, they are created during a `make install'
11259         in the build directory.
11261         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11262         make `top_srcdir' and `top_builddir' absolute.
11264         Some other changes:
11266         * Man pages now depend on the files `VERSION' and `REVISION'.
11268         * The added shell script `mkinstalldirs' will replace `mkdir' in
11269         almost all cases.
11271         * VERSION: Version number increased to 1.16.
11273 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11275         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11277         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11278         (after an update of the mm stuff).
11280         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11282 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11284         The .psbb request will now also accept Mac PS images (i.e. using LF
11285         as the EOL character).
11287         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11288         (with slight modifications).
11289         * troff/input.cc (do_ps_file): Use it.
11291         * test-groff: Add grohtml and grolj4 output devices to PATH.
11293 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11295         * NEWS, MORE.STUFF: Updated.
11297 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11299         Add the `srand' command to pic.
11301         * pic/lex.cc, pic/pic.y: Implement it.
11302         * pic/pic.man: Document it.
11303         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11305 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11307         Add a new request `.psbb'.  This does exactly what the external
11308         program psbb did.  It scans a PostScript image file for a
11309         %%BoundingBox comment and extracts the bounding box values (in
11310         PostScript units) which are then stored in the four new (read-only)
11311         number registers `llx', `lly', `urx', and `ury'.
11313         This will allow the usage of the .PSPIC macro without worrying
11314         about unsafe behaviour of groff, i.e., it will work without the
11315         `-U' switch of groff.
11317         * troff/input.cc: Implement it.
11318         * tmac/tmac.pspic: Use it.
11319         * troff/troff.man, grops/grops.man, NEWS: Document it.
11320         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11322         This is bloody C code simply adapted from psbb.c!  Any improvements
11323         welcome.
11325 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11327         * man/groff_font.man: Minor clarifications.
11329         * NEWS: Updated.
11331 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11333         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11335 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11337         * man/groff_font.man: Brought up to date regarding tcommand
11338         extensions.
11339         * libgroff/font.cc: Handle everything after `--' as a comment
11340         in the font files.
11341         * devps/*: Added comment delimiter inside devps font files.
11343 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11345         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11346         \fC...\fP (which now works as expected).
11348         * troff/troff.man: Fix typo.
11350 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11352         Completed the pass_filenames implementation in troff.
11354         * libdriver/input.cc: Will read the new `F' tcommand.
11355         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11356         * troff/input.cc: Use it.
11358 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11360         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11361         font will now be updated even if an invalid font is selected.
11363 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11365         * doc/homepage.ms: Updated for new tmac.arkup.
11367         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11369         * tmac/tmac.arkup: Cleanup.
11371         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11373         Removed obsolete .LINK macro completely.
11375         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11376         will be immediately appended to the second argument (to be used with
11377         punctuation, for example).
11379         Disabled .CDFTP macro temporarily for security reasons.
11381         * tmac/groff_markup.man: Complete revision for latest changes in
11382         tmac.arkup -- note that it does not yet format correctly with
11383         grohtml :-(
11385 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11387         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11388         * devutf8/R.proto: Add mappings for wp, lh, rh.
11389         * devutf8/NOTES: Updated.
11391 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11393         * doc/groff.texinfo: Updated version/copyright info.
11395 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11397         Added support for two new directives in device descriptions:
11398         `pass_filenames' (to pass the input file name to the output device)
11399         and `use_charnames_in_special' (to support e.g. accented characters
11400         in the `X' request).
11402         * include/font.h, troff/charinfo.h: Declare it.
11404         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11406         * devhtml/DESC: Use it.
11408         * troff/input.cc: New function encoded_char.
11410         * troff/token.h: Add test for `specialness'.
11412 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11414         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11415         mistake from the list of files to be installed.
11417 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11419         * README: Added info how to apply patches.
11421 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11423         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11425 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11427         * troff/input.cc: Add support for troffrc-end.
11429         * tbl/main.cc: Altered to issue table-start and table-end special
11430         characters if using the html device.
11432         * devhtml/*: Modified font files to incorporate html encoding of
11433         characters.
11435         * tmac/groff_markup.man: New file documenting tmac.arkup.
11437         * tmac/troffrc-end: New file.  This is invoked after all user
11438         specified macros.  Currently used by the html device to include
11439         tmac.html.  Thus no need for users to specify -mhtml anymore.
11441         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11442         (MAN7): Add groff_markup.man.
11444         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11446         * tmac/troffrc: tmac.arkup will now be called for the html device.
11448         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11449         extra device specific information about fonts.
11451         * doc/homepage.ms: New file.  It is an example how an HTML home page
11452         could look like with grohtml.
11454         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11456 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11458         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11459         of Im, Re.
11461         * devutf8/NOTES: Updated.
11463 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11465         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11466         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11467         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11468         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11469         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11470         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11471         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11472         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11473         warnings.
11475         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11477 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11479         grolj4: Paper size will be searched case-insensitively.
11481         * include/lib.h: Add check for strcasecmp().
11482         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11483         * configure.in: Check for strcasecmp().
11485 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11487         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11488         `REVISION'.
11490 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11492         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11493         revision scheme.
11495         Add a new read-only register, `.Y', which contains the groff
11496         revision.
11498         * troff/input.cc (init_input_requests): Define it.
11499         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11500         * doc/groff.texinfo, troff/troff.man: Document it.
11502         * libgroff/Makefile.sub (version.cc): Add definition of
11503         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11504         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11505         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11506         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11507         troff/input.cc, pfbtops/pfbtops.c: Use it.
11509 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11511         Add a revision scheme to the groff package.
11513         * REVISION: New file.
11514         * libgroff/Makefile.sub (version.cc): Use it to define
11515         `revision_string[]'.
11516         * grops/psrm.cc: Use revision_string (converted to an unsigned
11517         integer) in constructor of resource_manager.
11519 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11521         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11522         files.
11523         * Makefile.in (DEVDIRS): Add devutf8.
11524         * grotty/tty.cc: Include device.h.
11525         (glyph): Change type of `code' to `unsigned int'.
11526         (tty_printer): New field is_utf8.  Constructor takes device argument.
11527         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11528         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11529         (tty_printer::put_char): New function.
11530         (tty_printer::end_page): Use put_char() instead of ::putchar().
11531         (make_printer): Pass device to tty_printer constructor.
11532         * nroff.sh: Determine default device by calling 'locale'.  As a
11533         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11534         Recognize UTF-8 locales.
11535         * tmac/eqnrc: Recognize utf8 like latin1.
11536         * tmac/troffrc: Device utf8 needs tmac.tty.
11538 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11540         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11542 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11544         Add a new predefined writeable number register, `year',
11545         which contains the current year.
11547         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11548         * tmac/tmac.s: Use it.
11549         * troff/input.cc (init_registers): Initialize it.
11551 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11553         * PROBLEMS: Fixed typo.
11555 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11557         * PROBLEMS: Add Y2k advice for the yr number register.
11559 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11561         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11563 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11565         * tmac/tmac.arkup: Slight modification of macros to provide better
11566         appearance for non-HTML formats.
11568 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11570         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11571         does not automatically translate to malloc(n) on all OSes
11572         (e.g., SunOS) so do it explicitly.  Also, check the returned
11573         value.
11575 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11577         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11579         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11580         expects this variable
11582 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11584         * doc/Makefile: Added instructions to create HTML and text
11585         versions of some files.
11587 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11589         * Updated INSTALL.gen.
11591         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11592         better resp. correctly with non-HTML devices.
11594 Version 1.15 released
11595 =====================
11597 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11599         * NEWS, VERSION: Changed to 1.15
11601 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11603         * nroff/nroff.man: -S is safer, not safe.
11605         * groff/groff.cc (main): Use `safer', not `safe', in variable
11606         names.  This does not change the behavior.
11608         * troff/input.cc (main): Likewise.
11610         * nroff/nroff.sh: Likewise.
11612         * troff/input.cc (prepend_string): New function.
11613         (main): Prepend -msafer, so that we check macro libraries for
11614         safety.
11616         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11618 Version 1.14 released
11619 =====================
11621 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11623         * NEWS, VERSION: Changed to 1.14.
11625 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11627         * refer/refer.cc: Fixing the last fix.
11629 Version 1.13 released
11630 =====================
11632 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11634         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11635         number disappear.
11637         * NEWS: Updated.
11639         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11641         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11642         document conventions, the version number must be a real.
11644 Version 1.12.1 released
11645 =======================
11647 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11649         * VERSION: Changed to 1.12.1.
11651 1999-12-22  Alan Rooks  <arooks@istar.ca>
11653         * refer/refer.cc (do_file): Slight modification to satisfy the
11654         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11655         UnixWare 7.1.
11657 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11659         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11660         notices.
11662         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11663         list of unsafe requests.
11665         * pic/pic.man: Fixed a typo.
11667         * man/groff_out.man: Fixed a typo.
11669 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11671         * Makefile.in: Doc fixes.
11673 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11675         * groff/groff.cc: Missing `U' option added to getopt().
11677         * troff/troff.man: Missing `U' option added to synopsis.
11679 Version 1.12 released
11680 =====================
11682 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11684         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11685         to the synopsis.
11687         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11688         with the more appropriate terms `safer' and `unsafe'.
11690         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11691         sys_nerr and sys_errlist[].
11693         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11695         * pic/pic.y, pic/pic.cc: Added check for fmod().
11697 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11699         * VERSION: Changed to 1.12.
11701         Here some patches from various sources; most of them taken from
11702         the Debian distribution.
11704         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11705         tmac/Makefile.sub: New files copied directly from the NetBSD
11706         distribution.  Probably, some additional adaptation later on is
11707         necessary...
11709         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11710         of unsafe requests.
11712         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11713         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11714         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11715         (`-S') is now the default.
11717         * README, NEWS: Updated.
11719 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11721         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11723         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11725 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11727         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11728         grief than relief today.  Additionally, it is against the GNU
11729         coding standards.
11731         * configure: Recreated.
11733 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11735         * configure.in: Added GROFF_LIBM.
11737         * configure: Recreated.
11739         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11740         necessary.
11742         * Makefile.in: Added definition of $(LIBM).
11744         * Makefile.comm (LIBM): Removed.
11746         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11748 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11750         * doc/Makefile: Added rule for generation pic.html.
11752         (clean): Files produced by grohtml will be removed also.
11754         * doc/pic.ms: Small fix.
11756         * tmac/tmac.html: Fixed suppression of headers.
11758 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11760         * tmac/tmac.html: Fixing horizontal arrows.
11762         Turning off hyphenation.
11764         * tmac/tmac.an: Improved support for grohtml; better indentation,
11765         no footers/headers.
11767 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11769         * tmac/tmac.arkup: Added CDFTP macro
11771         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11772         macros.
11774         * tmac/troffrc: Some additions for HTML stuff.
11776 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11778         * tmac/tmac.html: Small changes.
11780 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11782         * doc/groff.texinfo: Minor fixes.
11784 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11786         * devhtml/TR: Changed spacewidth to 3.
11788         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11790         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11792         * tmac/tmac.arkup: New file.
11794         * grohtml/ChangeLog: New file.
11796 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11798         * doc/groff.texinfo (Common Features): Added Copying chapter.
11799         Changed format to @smallbook.
11801 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11803         * NEWS: Added info about groff.texinfo.
11805         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11806         warning messages.
11808 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11810         * groff/groff.man: More updates.
11812 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11814         * doc/groff.texinfo: New file.  This manual is still very
11815         rudimentary.  It has been originally contributed by Trent
11816         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11817         additions by me.
11819         * INSTALL: Added information about the `doc' subdir
11821         * troff/troff.man: Minor fixes.
11823         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11824         reordered options.
11826         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11828         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11829         also, otherwise it is included itself in another call of `make
11830         dist'.
11832         * groff/groff.cc (synopsis): Removed superfluous space.
11834         * PROJECTS, PROBLEMS, NEWS: Updated.
11836         * VERSION: Updated to 1.12beta.
11838         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11840         * README: Updated: Included documentation about CVS repository,
11841         mailing lists, and daily snapshots.
11843         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11845 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11847         * tmac/tmac.an: If the tag didn't fit into the space that the
11848         macro `TP' specifies, the rest of the tag went into the space for
11849         the next line.
11851 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11853         * grolj4/lj4.cc: Added duplex printing (option `-d').
11855         * grolj4/grolj4.man: Document duplex printing.
11857 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11859         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11860         non-GNUish sed programs.
11862         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11863         definition.
11865         * configure.in (LIBS): Added `-lc'
11867         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11869         * pic/tex.cc (solid_arc): Casting M_PI to double.
11871         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11873         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11874         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11875         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11877         * groff/groff_man.man: New file.  This manual page was originally
11878         written for the Debian GNU/Linux system by Susan G. Kleinmann
11879         <sgk@debian.org>.
11881         * eqn/list.cc (list_box::compute_metrics,
11882         list_box::compute_sublist_width): Removed variable declaration to
11883         avoid shadowing warnings.
11885         * grops/psrm.cc (resource_manager::process_file): Ditto.
11887         * tfmtodit/tfmtodit.cc (main): Ditto.
11889         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11890         to avoid shadowing warnings.
11892         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11893         shadowing loop variable.
11895         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11897 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11899         New grohtml frontend to convert groff input to html.
11901         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11903         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11905         * tmac/eqnrc: Added html device.
11907         * tmac/tmac.html: New file.
11909         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11910         (troff_output::start_picture, troff_output::finish_picture),
11911         tbl/main.cc (process_input_file):
11912         Surrounded output with `graphics_start' and `graphics_end' so that
11913         the html driver can identify non-text portions.
11915         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11916         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11917         grotty/tty.ps (tty_printer::set_char): Additional parameter
11918         `name'.
11920         * include/printer.h: Class printer: New function
11921         set_char_and_width; new variables (is_char_named, is_named_set,
11922         named_command, named_char_s, named_char_n) to hold information
11923         about named characters -- needed by the html driver.
11925         * libdriver/printer.cc (printer::set_ascii_char,
11926         printer::set_special_char): Use set_char_and_width.
11928         * devhtml/*: New device files for html driver.
11930         * grohtml/*: New driver grohtml.
11932 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
11934         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11935         default strings.
11937 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
11939         * libgroff/string.cc (search): Small fix to test against NULL
11940         pointer.
11942 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
11944         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11945         \b'abc') were stacked in reverse order when processed in a
11946         diversion.
11948         * troff/node.h: Added `*last' to struct `node' to make the above
11949         fix work.
11951         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11952         The default scale for the 'f' and 't' graphics functions were 'm'
11953         rather than 'u' (i.e., no scaling).
11955 1999-09-11  Peter Miller  <peterm@jna.com.au>
11957         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11958         do_file), soelim/soelim.man: Added `-I file' option to soelim,
11959         defining include paths.
11961         * soelim/soelim.cc (include_path_append): New function.
11963 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
11965         * tbl/main.cc (process_options): Unix (at least Documenter's
11966         Workbench) tbl allows arbitrary non-alpha characters between
11967         options.
11969 1999-09-11  Paul Eggert  <eggert@twinsun.com>
11971         Y2k fixes.  Don't assume that the current year precedes 2000.
11973         * doc/meref.me: Add \n(y2, \n(y4.
11975         * tmac/doc-common (Yr): New number register.
11976         (Dd): Don't assume current year precedes 2000.
11978         * tmac/tmac.e (td): Likewise.
11979         (y2, y4): New number registers.
11981         * pic/pic.man: Update reference for pic paper to May, 1991
11982         version.
11984 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11986         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11987         Removed quotation marks which prevented correct expansion of
11988         $(tmac_wrap).
11990         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11992 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11994         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11995         `config.cache'.
11997         * Removed configure.old.
11999 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12001         * VERSION: Updated to 1.11.1
12003 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12005         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12007         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12008         added quotations around $(tmac_wrap) to avoid syntax error if
12009         variable is empty.
12011         * configure: Newly generated using autoconf 2.13.
12013         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12015 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12017         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12018         doc/Makefile. doc/pic.ms, groff/groff.man:
12019         Prepare for 1.11 release.  No code changes.
12020         Documentation for pic added (doc/pic.ms).
12022 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12024         * Version 1.10 released.
12026 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12028         * afmtodit/afmtodit.pl: Avoid comment on first line.
12030 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12032         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12033         * configure.in: Call it.
12035         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12036         (distfiles): Doesn't depend on config.log or config.cache.
12038 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12040         * grog/grog.sh: Use print "" rather than print in END rule.
12042 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12044         * tbl/main.cc (process_data): Don't give error for excess data
12045         entries that are comments.
12047 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12049         * tbl/main.cc (process_data): Fix case where new for-scope rules
12050         silently change meaning of code.
12052 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12054         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12055         of non-zero hyphenation codes.
12057 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12059         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12061 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12063         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12065 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12067         * tmac/tmac.andoc: Make it work in compatibility mode.
12069         * refer/token.h (token_info::is_range_sep): New function.
12070         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12071         * refer/ref.cc (reference::output): More sophisticated check for
12072         multiple pages.
12074         * devps/prologue.ps (MANUAL): New procedure.
12075         * grops/ps.cc (main): New -m option.
12076         (usage): Include -m.
12077         (ps_printer::~ps_printer): Implement -m.
12079         * aclocal.m4 (GROFF_G): New macro.
12080         * configure.in: Call it.
12081         * Makefile.in (g): Provided by configure.
12083         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12085         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12086         translations.
12088         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12089         (tmac_m, tmac_s): Deleted.
12090         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12091         tmac_s_prefix): New variables.
12092         (MDEFINES): Change accordingly.
12093         * Makefile.comm (.man.n): Use new TMAC_* variables.
12094         * configure.in (GROFF_TMAC): Call.
12095         * aclocal.m4 (GROFF_TMAC): Define.
12096         * tmac/Makefile.sub (stamp_wrap): New target.
12097         (install_data, uninstall_sub): Handle macro wrapping.
12099 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12101         * tbl/main.cc (main): Ignore -T option.
12103 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12105         * devlj4/generate/special.map: Add definition of \(nb.
12107         * tmac/tmac.dvi: Add definition of \(nb.
12109         * troff/dictionary.c (dictionary::dictionary): association::v gets
12110         initialized by association::association.
12112         * tmac/Makefile.sub: Avoid using temporary files when installing.
12114         * troff/env.cc (environment::set_font): Make bad font number a
12115         warning.
12117         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12119         * Makefile.in (datadir): Use share rather than lib.
12121         * groff/groff.cc (basename): Rename to xbasename.
12123 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12125         * Makefile (CCLIBS): Don't use.
12126         * Makefile.ccpg: Likewise.
12128         * acgroff.m4: Rename to...
12129         * aclocal.m4: Modify extensively for autoconf 2.
12130         * configure.in: Likewise.
12131         * Makefile.in: Likewise.
12133         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12134         defined.
12135         (xstrsignal): Check for definition of NSIG. Conditionalize
12136         on SYS_SIGLIST_DECLARED.  Make return type const.
12138 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12140         * troff/input.cc (interpolate_macro): Rephrase missing space
12141         warning.
12143 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12145         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12146         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12147         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12148         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12149         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12150         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12151         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12152         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12153         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12154         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12155         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12156         Fix 'for' scoping.
12158 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12160         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12161         string_iterator.
12162         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12163         file.
12164         (macro_iterator::macro_iterator): Add additional argument.
12166 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12168         * troff/div.cc (vertical_size::vertical_size): In place of integer
12169         specifying line spacing use cunits specifying post vertical
12170         space.
12171         (macro_diversion::output, top_level_diversion::output): Likewise.
12172         * troff/div.h: Change declarations accordingly.
12173         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12174         field.
12175         (pending_output_line::pending_output_line,
12176         pending_output_line::output, environment::output,
12177         environment::output_line, environment::output_title,
12178         environment::hyphenate_line):  In place of
12179         integer specifying line spacing use cunits specifying post vertical
12180         space.
12181         (environment::environment): Add post_vertical_spacing and
12182         prev_post_vertical_spacing arguments.
12183         (environment::get_post_vertical_spacing): New function.
12184         (environment::total_post_vertical_spacing): New function.
12185         (environment::post_vertical_spacing): New function.
12186         (init_env_requests): Initialize pvs request and .pvs register.
12187         * troff/env.h: Change declarations.
12189 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12191         * tmac/tmac.pspic: Immediately remove the temporary file.
12193 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12195         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12196         height is specified.
12198 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12200         * tbl/table.c (struct vertical rule, class table_entry): Use int
12201         not short for start_row and end_row.
12203 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12205         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12206         functions.
12207         (diverted_space_node::reread, process_input_stack): Call
12208         trapping_blank_line() rather than blank_line().
12209         (init_input_requests): Bind "blm" to blank_line_macro().
12211         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12213 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12215         * troff/env.cc (environment::possibly_break_line): Require that
12216         width total excluding width of final space node be greater than
12217         the target text length.
12219 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12221         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12223 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12225         * troff/node.cc (charinfo_node): New class.
12226         (glyph_node, composite_node): Derive from charinfo_node.  Change
12227         member functions accordingly.
12229 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12231         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12233 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12235         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12237         * devps/generate/textmap (notsubset): Add.
12239         * tmac/tmac.a4: New file.
12241 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12243         * pic/main.cc (had_parse_error): New variable.
12244         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12245         returns non-zero.
12246         (main): Return 1 if had_parse_error is true.
12248 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12250         * grolj4/lj4.cc (main): Avoid use of strtoul.
12252 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12254         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12255         iso_8859_1 or $LESSCHARSET is latin1.
12257 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12259         * hpftodit: New directory.
12260         * Makefile.in (CCPROGDIRS): Add hpftodit.
12261         * devlj4/generate: New directory.
12263 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12265         * configure.in: Don't use AC_VFORK.
12266         * groff/pipeline.c (run_pipeline): Use fork() always.
12268 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12270         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12272         * Makefile.in (CCPROGDIRS): Add grolj4.
12273         (DEVDIRS): Add devlj4.
12274         * grolj4, devlj4: New directories.
12275         * tmac/troffrc: Handle lj4.
12276         * tmac/tmac.lj4: New file.
12278 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12280         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12282 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12284         * troff/input.cc (do_if_request): At end of second string, switch
12285         environments before getting next token.
12287 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12289         * devps/psstrip.sed: Split rule that strips whitespace on either
12290         side of delimiters.
12292 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12294         * troff/node.h (font_family::make_definition): Add return value to
12295         declaration.  * troff/symbol.h (symbol::operator==,
12296         symbol::operator!=): Likewise.
12298 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12300         * groff/groff.cc (main, help, synopsis): Handle -S.
12301         (possible_command::insert_arg): New function.
12303         * tmac/tmac.safer: New file.
12304         * tmac/msafer.man: New file.
12305         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12307 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12309         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12310         * pic/pic.y (placeless_element): Avoid unsafe operations if
12311         `safer_flag' is set.
12312         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12314 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12316         * eqn/lex.cc (get_token): Put call to add_context() in block to
12317         work around Sun C++ 4.0 bug.
12319         * include/stringclass.h (operator +): Use ?: instead of `if' to
12320         work around Sun C++ 4.0 bug.
12322 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12324         * tbl/main.cc (process_format): Accept - as a synonym for the _
12325         key letter.
12327         * libbib/index.cc (minus_one): Don't declare as const.
12329 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12331         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12333 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12335         * troff/input.cc (write_macro_request): New function.
12336         (init_input_requests): Bind write_macro_request to writem.
12338 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12340         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12341         equation.
12343         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12345         * tmac/tmac.s (@TS): Renamed from TS.
12346         (TS): Call LP then TS again.
12347         (cov*ab-init): Alias @TS to TS.
12349         * tmac/tmac.s: Allow QP or RS to initialize.
12351         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12352         Move initializations of PS and LL here.
12353         (par@init): Don't initialize HY.  Avoid changing environment 0.
12354         (par*env-init): Don't all par@reset.
12356 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12358         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12360 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12362         * Makefile.in (MDEFINES): Add LDFLAGS.
12363         (LDFLAGS): Add definition line.
12365 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12367         * troff/input.cc (get_optional_char): Split off error check into...
12368         (check_missing_character): New function.
12369         * troff/token.h: Declare it.
12370         * troff/env.cc (margin_character): Don't call get_optional_char.
12371         Only call tok.next() after making the node.
12373         * include/lib.h (getopt): Make 2nd argument char *const *.
12375 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12377         * nroff/conftest.sh: Deleted.
12379 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12381         * pic/make-dos-dist: Deleted.
12383 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12385         * devps/psstrip.sed: Strip comments before stripping trailing
12386         white space.
12388 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12390         * Version 1.09 released.
12392 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12394         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12396 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12398         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12400 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12402         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12403         about returning without a value.
12405         * troff/charinfo.h (charinfo::get_special_translation): Cast
12406         TRANSLATE_NONE to int.
12408         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12409         test.  Fix test so that it works with n unsigned.
12411         * pic/pic.y (defaults_table): Fully bracket initializer.
12412         * pic/lex.cc (lookup_keyword): Likewise.
12413         * eqn/lex.cc (token_table, def_table): Likewise.
12414         * eqn/box.cc (param_table): Likewise.
12415         * troff/input.cc (warning_table): Likewise.
12416         * libgroff/font.cc (table): Likewise.
12417         * grops/ps.cc (ps_printer::special): Likewise.
12418         * grops/psrm.cc (resource_manager::process_file): Likewise.
12419         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12420         * refer/command.cc (command_table): Likewise.
12421         * addftinfo/addftinfo.cc (param_table): Likewise.
12423         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12424         about temp's being unused.
12425         (unused): New function.
12427         * groff/pipeline.cc: Declare c_fatal.
12429         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12430         uchar.
12432         * libbib/index.cc (index_search_item::load): Prevent compiler
12433         warnings about fd_closer's being unused.
12434         (unused): New function.
12436 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12438         * troff/input.cc (copy_mode_error): Make `prefix' static.
12439         Fix typo.
12441         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12442         defined.
12443         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12444         HAVE_CC_OSFCN_H and modify accordingly.
12446         * troff/input.cc (init_charset_table): radicalex overlaps
12447         horizontally.
12449         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12450         udodo!hans@relay.NL.net).
12451         * groff/configure.in: Call it.
12453         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12454         * groff/configure.in: Call it.
12455         * include/lib.h: Conditionalize declaration of pclose.
12457         * troff/div.cc (last_page_number): New global variable.
12458         (top_level_diversion::begin_page): Exit if we just printed the
12459         last page.
12460         * troff/div.h (last_page_number): Declare it.
12461         * troff/input.cc (parse_output_page_list): Set last_page_number.
12463         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12464         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12465         tmac/tmac.X: Likewise.
12466         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12467         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12469 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12471         * tmac/doc-ditroff (hK): Remove groff specific code which
12472         prevented page-breaks between separate manual entries.  If this is
12473         the first page, don't set the page number to 1.
12475         * acgroff.m4 (GROFF_POSIX): New macro.
12476         * configure.in: Use it.
12478         * troff/node.cc (class real_output_file,
12479         real_output_file::real_output_file,
12480         real_output_file::~real_output_file): Conditionalize use of
12481         popen/pclose on POPEN_MISSING.
12482         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12483         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12484         (pipe_source): Similarily.
12486         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12488         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12489         presence of declarations by trying to compile example with
12490         conflicting declarations.  (gcc only gives a warning for missing
12491         declarations.)
12493 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12495         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12496         (from Ulrich Lauther).
12498 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12500         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12502 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12504         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12505         pointers and ints have different sizes.
12507 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12509         * tmac/tmac.s (par*env-init): Call par@reset.
12511 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12513         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12514         tag.
12515         (par*push-tag-env, par*pop-tag-env): New macros.
12517 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12519         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12520         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12522         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12523         comment.  Include <time.h>.
12525 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12527         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12528         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12529         lines.
12531 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12533         * troff/input.cc (read_request): Only print a prompt if reading
12534         from the terminal.  Also clearerr on EOF if reading from the
12535         terminal.  Declare isatty.
12537 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12539         * refer/label.y: Rename map_t to map_func and extractor_t to
12540         extractor_func.
12542 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12544         * include/assert.h: Don't use volatile.
12545         * libgroff/assert.cc: Likewise.
12547 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12549         * troff/input.cc (abort_request): Look at character in tok before
12550         calling get_copy().
12552 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12554         * troff/troff.h (NO_RETURN): Deleted.
12555         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12556         * troff/input.cc (exit_troff): Likewise
12558         * Makefile.in: Remove `Making ...' messages since GNU make now
12559         gives these. 
12561         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12563 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12565         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12566         to constant 1 inch.
12568 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12570         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12572 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12574         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12575         MARK_REG if there was no left delimiter.
12577 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12579         * pic/troff.cc (troff_output::text): Set line thickness to
12580         relative before outputting text.
12582         * tmac/tmac.e (@k): Don't zero ?T.
12583         ((z): Likewise.
12585 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12587         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12589 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12591         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12592         Paul Eggert).
12594 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12596         * troff/input.cc (ignoring): New variable.
12597         (ignore): Set ignoring during call to do_define_macro.
12598         (do_define_macro): Clear ignoring before interpolating terminating
12599         macro.
12600         (copy_mode_error): New function.
12601         (get_char_for_escape_name, read_long_escape_name,
12602         interpolate_arg): Use copy_mode_error.
12603         (warning_table): Add WARN_IG.
12604         * troff/troff.h (WARN_IG): Declare.
12605         (WARN_TOTAL): Change accordingly.
12607         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12608         * groff/groff.cc (strsignal): Delete declaration.
12610 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12612         * troff/div.cc (page_offset): Use 'm' as default scaling.
12614 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12616         * nroff/nroff.sh: Ignore -u.
12618 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12620         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12622 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12624         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12625         drawing box.
12626         (B2): With -Tascii, leave additional vertical space before
12627         and after. Ensure that the left and right indent is restored to
12628         what it was even if the point size changes.  Don't call
12629         par@finish. Change the indent, line length and title length
12630         directly.  With -Tascii, make the width of the box 1n less.
12631         (B1): Remember 1n at the current point size.  Don't call
12632         par@reset.  Change the indent, line length and title length
12633         directly.  Ensure that the temporary indent is preserved.
12634         (par*box-mark-top): Turn off no spacing mode.
12636 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12638         * Makefile.in (dist): Use .gz suffix.
12640 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12642         * troff/input.cc (main): Add return 0.
12643         * pic/main.cc (main): Use return instead of exit.
12644         * tbl/main.cc (main): Likewise.
12645         * eqn/main.cc (main): Likewise.
12646         * grops/ps.cc (main): Likewise.
12647         * grotty/tty.cc (main): Likewise.
12648         * groff/groff.cc (main): Likewise.
12649         * grodvi/dvi.cc (main): Likewise.
12650         * refer/refer.cc (main): Likewise.
12651         * indxbib/indxbib.cc (main): Likewise.
12652         * lkbib/lkbib.cc (main): Likewise.
12653         * soelim/soelim.cc (main): Likewise.
12654         * addftinfo/addftinfo.cc (main): Likewise.
12655         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12656         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12658         * troff/token.h (process_input_stack): Don't declare as static.
12659         * troff/input.cc: Likewise.
12661         * troff/node.c (invalidate_fontno): Make it a static member of
12662         class font_family.  Change callers.
12663         * troff/node.c: Change declaration.
12665         * tbl/main.cc (struct input_entry_format): Add explicit public
12666         specifier.
12667         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12668         struct double_hline_stuff): Likewise.
12669         * tbl/table.h (struct entry_format): Likewise.
12670         * pic/object.h (struct saved_state): Likewise.
12672         * include/stringclass.h: Add forward declarations of friend
12673         functions that are later declared as inline.  Don't include inline
12674         specifier in friend declaration.
12676         * libgroff/lib.h: Declare popen and pclose.
12677         * acgroff.m4 (GROFF_POPEN): New macro.
12678         * configure.in: Call it.
12680         * include/lib.h (PI): New constant. Undef first if necessary.
12681         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12682         * grops/ps.cc (degrees, radians): Likewise.
12683         * libgroff/font.cc (font::get_skew): Likewise.
12685         * grops/ps.cc (is_ascii): New function.
12686         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12687         isprint.
12688         (ps_printer::define_encoding): Use csspace.
12689         * libgroff/strtol.c (ISASCII): New macro.
12690         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12691         Use ISASCII rather than isascii.
12692         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12693         * libgroff/cset.cc: Likewise.
12694         * libdriver/input.cc: Include cset.h.
12695         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12696         than isdigit().
12698         * refer/refer.cc (main): Use %ld rather than %d for longs.
12700         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12701         S_ISREG macro.
12703         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12705 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12707         * troff/input.cc (hyphenation_code): Skip white space between
12708         char/code pairs.
12710 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12712         * tbl/table.h (table::entry_list_tailp): New member.
12713         (table::table): Initialize it.
12714         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12715         behaviour.
12717 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12719         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12720         with negative horizontal positions. Remove casts of glyph::hpos to
12721         int.
12722         (USHRT_MAX): Delete definition.
12723         (SHRT_MAX, SHRT_MIN): New definitions.
12724         (glyph::hpos): Change type to short.
12725         (tty_printer::end_page): Output multiple backspaces if necessary.
12726          Remove casts of glyph::hpos to int.
12727         
12728 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12730         * tmac/tmac.s (@RT): New definition.
12732 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12734         * refer/refer.cc (do_file): Make sure current_filename is set when
12735         filename is "-".
12737         * pic/common.cc (common_output::dot_line): Handle zero length
12738         lines.
12740 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12742         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12743         (par@init): Initialize \n[HY].
12745 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12747         * troff/dictionary.cc (dictionary::remove): Continue when
12748         r < j < i.
12750 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12752         * Makefile.com (.y.cc): Avoid ending up with two versions of
12753         $(YTABH).
12755 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12757         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12758         (\(,C): Likewise.  Also fix typo.
12760 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12762         * lib.h: Delete extraneous semi-colon.
12764         * Add pso request: `so' from a pipe.
12765         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12766         (file_iterator::close): New function.
12767         (file_iterator::~file_iterator, file_iterator::next_file): Use
12768         file_iterator::close.
12769         (file_iterator::backtrace): Say `process' rather than `file' when
12770         the stream is popened.
12771         (pipe_source): New function.
12772         (init_input_requests): Bind ".pso" to pipe_source.
12774 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12776         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12778         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12779         digits in lower case.
12781 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12783         * Version 1.08 released.
12785         * Makefile.in (dist): Insert || true after ln -s commands that
12786         might fail.
12788         * mm: Update to mm 1.16.
12790         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12791         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12792         SH_SCRIPT_SED_CMD.
12793         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12794         MDEFINES.
12795         * nroff/Makefile.sub (nroff): New target.
12796         (install_data): Install nroff.
12797         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12798         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12800 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12802         * eqn/Makefile.sub (neqn): Add chmod +x.
12804         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12806 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12808         * troff/input.cc (string_iterator::string_iterator()): Initialize
12809         lineno and count.
12811 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12813         * troff/div.cc (macro_diversion::space,
12814         top_level_diversion::space): Don't set high_water_mark.
12815         (macro_diversion::output, top_level_diversion::output): Don't
12816         include post line space in high water mark.
12818 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12820         * eqn/eqn.y: Don't define YYDEBUG.
12821         * pic/pic.y: Likewise.
12823 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12825         * tmac/tmac.e ([3): Add space after comma following editors.
12826         Change double spaces to single spaces.
12827         ([4): Change double spaces to single spaces.
12829         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12830         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12831         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12832         after %!PS-Adobe- (for Newsprint).
12834         * troff/div.cc (top_level_diversion::begin_page): When
12835         before_first_page is 1, set page_number to 1.
12837 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12839         * eqn/box.cc (box::top_level): Protect equation with \&.
12841 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12843         * groff/groff.cc (possible_command::set_name): Delete old name.
12845         * groff/groff.cc (possible_command::~possible_command): Use
12846         a_delete.
12848         * troff/node.cc (troff_output_file::begun_page): New member.
12849         (troff_output_file::troff_output_file): Initialize it.
12850         (troff_output_file::really_begin_page): Only output V command if a
12851         page has been begun.
12853         * pic/pic.y (placeless_element): Delete argument to PRINT after
12854         use.
12856 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12858         * Make wrapman work.
12859         * troff/div.h (class top_level_diversion): Replace
12860         first_page_begun by before_first_page (with opposite sense).
12861         * Change first_page_begun to before_first_page inverting sense.
12862         * troff/div.cc (class nl_reg): New class.
12863         (init_div_requests): Use class nl_reg for \n(nl.
12864         (top_level_diversion::begin_page): Don't call
12865         output_file::begin_page if before_first_page is 2;
12866         reset before_first_page afterwards.  If have_next_page_number is
12867         false, then always increment page_number.
12868         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12869         Restore compatibility mode after loading, and then disable
12870         compatibility mode in TH.
12872 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12874         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12875         past last line.
12876         * troff/node.h (output_file::trailer): Declare.
12877         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12878         * troff/node.cc (output_file::trailer): New function.
12879         (troff_output_file::~troff_output_file): Move most code into...
12880         (troff_output_file::trailer): New function.
12881         (class troff_output_file): Delete page_length member. Declare
12882         trailer().
12883         (troff_output_file::really_begin_page): Use current page length
12884         for final V command.
12886         * tbl/main.cc (struct options): New decimal_point_char member.
12887         (options::options): Initialize this.
12888         (process_options): Implement decimalpoint option.
12889         (process_data): Pass decimal_point_char option to table::table.
12890         * tbl/table.h (class table): New decimal_point_char member.
12891         (table::table): Add additional argument.
12892         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12893         second argument specifying decimal point character.  Use this
12894         instead of '.'.
12895         (table::table): Initialize decimal_point_char.
12896         (table::add_entry): Change call to find_dot.
12898         * troff/input.cc (get_copy, token::next): Implement \V.
12899         (interpolate_environment_variable): New function.
12901 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12903         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12904         * pic/pic.y: Likewise.
12906         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12907         Add casts to int.
12908         * refer/ref.cc (reference::insert_field, reference::delete_field):
12909         Likewise.
12910         * troff/number.cc (parse_term): Likewise.
12912         * acgroff.m4 (GROFF_PROG_YACC): New macro.
12913         * configure.in: Use GROFF_PROG_YACC.
12915         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12916         and g++.
12917         * Makefile.in (OPTIMIZE): New define.
12918         (DEBUG): Empty by default.
12919         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12921         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12922         (GROFF_ARRAY_DELETE): Likewise.
12923         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12925         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12927         * devps/psstrip.sed: Use different delimiter on last line (so that
12928         it works with BSD 4.4 sed.)
12930 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
12932         * devps/psstrip.sed: Delete comments.
12934         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12935         optind, opterr, optarg.
12936         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12937         opterr, optarg.
12939 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
12941         * Makefile.in (check): Dummy target.
12943 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
12945         * Version 1.07 released.
12947         * Integrate mm 1.11.
12949         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12950         where start_col was meant.
12952 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
12954         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12956 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
12958         * troff/input.cc (token::next): Make \z\o'...' and similar things
12959         work.
12961         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12962         constants.
12963         (environment): Add margin_character_flags member.
12964         * env.cc (environment::environment(symbol),
12965         environment::environment(const environment *): Initialize
12966         margin_character_flags.
12967         (margin_character): Rewrite.
12968         (environment::output_line): Add a margin character if
12969         margin_character_flags is non-zero.  Turn off the
12970         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
12971         zero, use margin_character_node without copying and then set
12972         margin_character_node to 0.
12974         * devps/DESC.in: Change minimum size to 1000.
12976 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
12978         * troff/symbol.h (symbol::hash): Change return type to unsigned
12979         long.
12980         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12981         Add casts to int.
12983         * test-groff: Use -r rather than -x.
12985         * grops/psfig.diff: Include in distribution again.
12987 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12989         * Makefile.in (dist): Use gzip.
12991 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12993         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12994         unistd.h as well as in stdlib.h.
12995         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12996         defined; otherwise include <sys/types.h> and <unistd.h> if
12997         UNISTD_H_DECLARES_GETOPT is defined.
12999         * configure.in: use builtin(include, ... rather than include(...
13000         * configure: Regenerate with autoconf 1.3.
13002         * libdriver/print.cc (printer::adjust_arc_center): Use new
13003         algorithm suggested by Andy Fyfe.
13005         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13006         * include/printer.h: Declare this.
13007         * grops/ps.cc (ps_printer::draw): Use it.
13008         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13010 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13012         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13014 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13016         * eqn/main.cc (main): Handle "eqn -".
13018 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13020         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13022         * mm: Integrate version 1.08.
13024         * pic/troff.cc (troff_output::finish_picture): Set
13025         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13026         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13027         if it's not defined. Check whether the register is non-zero rather
13028         than whether it's not defined.
13029         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13031         * indxbib/indxbib.cc: Move all signal handling into...
13032         * indxbib/signal.c: New file.
13033         * configure.in: Call AC_RETSIGTYPE.
13035         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13036         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13037         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13039         * troff/input.cc (token::token, token::operator=): Work round SGI
13040         C++ bug.
13041         * pic/object.cc (position::position): Likewise.
13043 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13045         * pic/pic.h: Move declaration of hypot().
13047 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13049         * pic/pic.h: Declare hypot().
13051         * pic/pic.h: Define M_PI if necessary.
13053 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13055         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13056         `.ta T' feature.
13058         * devps/prologue.ps (RE): Handle the possibility that the old font
13059         doesn't have a FontName entry.
13061 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13063         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13064         (@C): Use @fam not fam.
13066 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13068         * lookbib/lookbib.cc (main): Change type of start to const char *.
13069         * lkbib/lkbib.cc (main): Likewise.
13071         * eqn/lex.cc (definition::definition): Don't use member
13072         initializer syntax for members of anonymous unions.
13074         * troff/input.cc (input_stack::backtrace): Change type of to const
13075         char *.
13077 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13079         * include/stringclass.h (class string): Declare inline friend
13080         functions as inline in class declaration.
13081         * troff/hvunits.h (class hunits, class vunits): Likewise.
13082         * include/refid.h (class reference_id): Likewise
13083         * troff/troff.h (points_to_units(units), scale(units, double)):
13084         Delete declarations.
13085         * libdriver/input.cc (get_char): Delete declaration.
13086         * include/lib.h: Change 2nd argument of getopt from const char **
13087         to char **.
13088         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13089         char **' before assigning to a `const char **'.
13090         * tbl/table.cc: Delete extra declarations of prints().
13092 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13094         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13095         char **' before assigning to a `const char **'.
13097         * libgroff/errarg.cc (errarg::errarg): Don't use member
13098         initializer syntax for members of anonymous unions.
13100 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13102         * mm: Integrate version 1.07.
13104 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13106         * troff/input.c (translate2): Rename to
13107         (translate_no_transparent).
13108         (init_input_requests): Rename tr2 to trnt.
13110 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13112         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13113         (charinfo::set_translation, charinfo::set_special_translation):
13114         Add second argument that specifies value for
13115         transparent_translate.
13116         (charinfo::get_translation, charinfo::get_special_translation):
13117         Add optional second argument that specifies whether translation is
13118         being used for transparent throughput.
13119         * troff/input.cc (charinfo::set_translation,
13120         charinfo::set_special_translation): Handle second argument.
13121         (charinfo::charinfo): Initialize transparent_translate.
13122         (translate): Split main part off into
13123         (do_translate): New function.  Pass argument saying whether
13124         translation applies to transparent throughput.
13125         (translate2): New request.
13126         (init_input_requests): Bind translate2 to `tr2'.
13128 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13130         * tbl/table.h (class table): Add `nokeep' flag.
13131         * tbl/main.cc (process_options): Handle `nokeep' option.
13132         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13133         table::do_bottom): Don't output keep/release macro definitions or
13134         calls when `nokeep' option has been specified.
13136 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13138         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13140 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13142         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13143         block_entry::divert, alphabetic_block_entry::divert): Add extra
13144         argument giving column separation.
13145         (table::compute_widths): Pass column separation to
13146         table_entry::divert().
13147         (block_entry::do_divert): If an entry spans multiple columns and a
13148         minimumum width has been specified for each column, then set the
13149         line length to the sum of the widths (plus possibly the column
13150         separations).
13152         * troff/input.cc (set_escape_char): Don't set the escape_char
13153         until after calling has_arg().
13155 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13157         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13158         case.
13160         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13161         in case where r > nrows - 1.
13163         * tbl/table.cc (BODY_HEIGHT): Deleted.
13164         (LINE_SEP): New definition.
13165         (table::print_single_hline, table::print_double_hline,
13166         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13167         table::do_row, table::do_top): Use LINE_SEP space before a line
13168         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13170         * tbl/table.cc (text_entry::print_contents): New function.
13171         (text_string_name, right_text_string_name): Deleted.
13172         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13173         (simple_text_entry::do_width, numeric_text_entry::do_width,
13174         alphabetic_text_entry::do_width): Don't store the contents of the
13175         entry in a string.
13176         (left_text_entry::simple_print, right_text_entry::simple_print,
13177         center_text_entry::simple_print,
13178         alphabetic_text_entry::simple_print,
13179         numeric_text_entry::simple_print): Print the entry directly
13180         instead of using the stored string.
13182 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13184         * devps/Makefile: Strip PostScript files.
13185         * devps/prologue: Rename to...
13186         * devps/prologue.ps.
13187         * devps/psstrip.sed: New file.
13188         * devps/download: Use .pfa rather than .ps for installed versions
13189         of fonts.
13191 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13193         * troff/env.cc (input_trap): Give a warning if the argument is out
13194         of range.
13196         * troff/env.cc (adjust): Treat negative argument as missing. Round
13197         argument > 5 down to 5.
13199         * troff/env.cc (center, right_justify): Make negative argument zero.
13201         * troff/div.cc (page_offset, vertical_position_traps): Treat
13202         invalid argument as missing.
13203         * troff/env.cc (line_spacing, line_length, title_length, indent,
13204         underline, hyphen_line_max_request, control_char,
13205         no_break_control_char, widow_control_request, adjust, input_trap,
13206         point_size): Likewise.
13207         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13208         constant_space): Likewise.
13209         * troff/input.cc (compatible, shift, warn_request,
13210         set_escape_char): Likewise.
13212         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13213         * tbl/table.cc (table::table): Likewise.
13215         * Makefile.dev (install_dev): depends on $(DEVFILES).
13217 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13219         * devX75, devX75-12, devX100, devX100-12: New directories.
13220         * Makefile.in: Add these to DEVDIRS.
13222         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13223         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13224         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13225         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13226         targets.
13227         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13228         (uninstall): New target.
13229         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13230         uninstall_prog, uninstall_dev): New targets.
13232         * troff/div.cc (return_request): Treat an invalid argument as
13233         missing.
13235 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13237         * tmac/tmac.e ((f): Set up the environment even when there's a
13238         current diversion.  Transperently throughput a call to @N.
13239         (@N): New macro.
13241 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13243         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13244         up to vertical resolution.
13246         * tbl/table.cc (table::do_row): Change row number after printing
13247         stuff list.
13249         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13251 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13253         * Rename CHANGES to NEWS.
13255 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13257         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13259 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13261         * man.ultrix: Removed.
13263 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13265         * Makefile.comm (extraclean): Delete files whose names begin with
13266         `='.
13268         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13269         aligned text.
13271 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13273         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13274         * troff/div.cc (page_length, need_space, space_request): Treat
13275         invalid optional argument as missing.
13276         * troff/env.cc (number_lines): If the first argument is present
13277         but not a number, turn on line numbering, don't change the next
13278         line number and parse the remaining arguments.
13280         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13282 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13284         * eqn/box.h: Change declaration accordingly.
13285         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13286         the specified size was bad but don't give an error.  Check for
13287         overflow.
13288         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13289         * eqn/lex (do_size): Likewise.
13291 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13293         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13294         compatible headers.
13296 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13298         * tbl/table.cc (table::init_output): Improve error message when
13299         table won't fit on one page.
13301 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13303         * pic/troff.cc (troff_output::start_picture): Generate line
13304         containing a horizontal motion equal to the width of the picture.
13306         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13307         using GROFF_COMMAND_PREFIX environment variable.
13309 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13311         * mdate.sh: Use $NF rather than $(NF).
13313 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13315         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13317         * eqn/main.cc (main): Output code to check that geqn was given the
13318         correct -T option.
13320 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13322         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13323         `ln -s ../Makefile .; make; rm -f Makefile'.
13325         * troff/hyphen: Rename to...
13326         * troff/hyphen.us:
13327         * troff/input.cc (main): Delete -H option. Don't call
13328         read_hyphen_file().
13329         * troff/env.cc: Include searchpath.h and macropath.h.
13330         (exception_dictionary): Deleted.
13331         (ht): Deleted.
13332         (read_hyphen_file): Deleted.
13333         (hyphenation_language): New struct.
13334         (class trie, class hyphen_trie): Move declarations up.
13335         (trie_node::~trie_node): Deleted.
13336         (trie::delete_trie_node): New function.
13337         (trie::do_delete): New pure virtual function.
13338         (hyphen_trie::do_delete): New function.
13339         (trie::~trie): New function.
13340         (hyphen_trie::~hyphen_trie): New function.
13341         (trie::clear): No need to chcek that tp is not 0.
13342         (current_language, language_dictionary): New variables.
13343         (hyphen_word): Give an error if no current language.  Use
13344         exceptions dictionary in current language.
13345         (hyphen_trie::read_patterns_file): Find file using macro_path.
13346         Allow comments (starting with %) in patterns file.  Don't make it
13347         a fatal error if the file can't be found.
13348         (hyphenate): Return if no current language.  Get the exceptions
13349         dictionary and the hyphenation patterns from the current language.
13350         (set_hyphenation_language): New variable.
13351         (hyphenation_patterns_file): New function.
13352         (hyphenation_language_reg): New class.
13353         (hyphenation_language_reg::get_string): New function.
13354         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13355         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13356         register.
13357         * groff/groff.cc (main, help, synopsis): Delete -H option.
13358         * include/Makefile.sub: Don't define HYPHENFILE.
13359         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13360         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13361         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13362         hyphenation patterns.
13364 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13366         * eqn/neqn.sh: New file.
13367         * eqn/Makefile.sub: Handle neqn.sh.
13369         * eqn/eqn.h: Declare `nroff' variable.
13370         * eqn/box.cc (param_table): Add `nroff' param.
13371         (nroff): Define it.
13372         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13373         variable.
13374         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13376         * troff/troff.h (WARN_FONT): New warning.
13377         (WARN_TOTAL): Change accordingly.
13378         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13379         (warning_table): Add WARN_FONT.
13380         * troff/node.cc (mount_font_no_translate): Pass argument to
13381         font::load_font.  If this is non-zero, give a warning.
13382         Don't give an error message when accessing a font that has already
13383         been found to be invalid.
13384         * include/font.h (font::load, font::load_font): Add additional
13385         optional argument which suppresses error message if the font is
13386         not found.
13387         * libgroff/font.cc (font::load_font): Handle additional argument.
13388         (font::load): Add additional argument. If this is non-null, set it
13389         to 1 and don't give error message.
13391         * include/printer.h (printer::end_page): Add argument giving
13392         length of page.
13393         * libdriver/input.cc (do_file): Pass this.
13394         * grops/ps.cc (ps_printer::end_page): Add argument.
13395         * grodvi/dvi.cc (dvi_printer::end_page,
13396         draw_dvi_printer::end_page): Add argument.
13397         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13398         columns_per_page members. New member nlines.
13399         (DEFAULT_LINES_PER_PAGE): Deleted.
13400         (tty_printer::tty_printer): Don't compute lines_per_page from
13401         font::paperlength. Don't compute columns_per_page from
13402         font::paperwidth.
13403         (tty_printer::add_char): Don't check horizontal position against
13404         columns_per_page. Grow glyphs vector if neccessary.
13405         (tty_printer::end_page): Add argument giving page_length in units.
13406         Discard lines past end of page.
13408 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13410         * tmac/tmac.tty-char: Fix definition of \(/l.
13412         * tmac/tmac.X: Define \(en.
13414 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13416         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13417         lpq, then use lp rather than lpr.
13419         * tmac/tmac.s (par@reset): Don't call `ad'.
13420         (par*env-init): Call `ad'.
13422 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13424         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13425         date.
13427         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13428         * indxbib/indxbib.cc: Likewise.
13430 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13432         * libgroff/putenv.c: New file.
13433         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13434         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13435         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13436         stdlib.h with AC_HAVE_HEADERS.
13438 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13440         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13441         does not exist.
13443 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13445         * eqn/box.cc (gsize): Make it an int.
13446         (set_gsize): Parse argument handling increment or decrement.
13447         (box::top_level): Convert gsize to a string.
13449         * troff/input.cc (exit_troff): Make buf unsigned char [].
13450         Call to make_temp_iterator casts buf to char*.
13452         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13454         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13455         * Makefile.cpg (depend.temp): Likewise.
13457         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13459         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13461 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13463         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13465 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13467         * Version 1.06 released.
13469         * Integrate mm 1.04.
13471 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13473         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13475 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13477         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13478         ligatures command.
13479         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13480         afmtodit. Regenerate.
13482         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13483         @f back past the current position.
13485         * tmac/tmac.e: Change calls to @R so that comments are not part of
13486         arguments.
13488 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13490         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13492         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13493         check that we can link a call to a function declared in <stdio.h>.
13494         (GROFF_UNISTD_H): New macro.
13495         * configure.in: Call it.
13496         * Makefile.in: Document it.
13497         * include/posix.h: New file.
13498         * troff/troff.h: Don't include <osfcn.h>
13499         * troff/input.cc: Include posix.h.
13500         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13501         osfcn.h.
13502         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13503         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13504         <fcntl.h>.
13505         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13506         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13507         * libbib/search.cc (O_RDONLY): Delete definition.
13508         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13509         Don't include <osfcn.h>.
13511         * acgroff.m4 (GROFF_TIME_T): New macro.
13512         * configure.in: Call it.
13513         * Makefile.in: Document it.
13515         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13516         * configure.in: Call it.
13517         * Makefile.in: Document -DTRADITIONAL_CPP.
13518         * include/ptable.h: Don't include generic.h.
13519         (name2): Define it.
13521         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13522         Afterwards remove [T1 and [T2.
13523         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13524         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13525         (ref*add-T2): Renamed from ref*add-T.
13526         (ref*add-T1): New macro.
13528 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13530         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13532         * libbib/index.cc: Include <fcntl.h>.
13533         (O_RDONLY): Define if necessary.
13534         (make_index_search_item, index_search_item_iterator::get_tag,
13535         index_search_item::check_files): Use O_RDONLY.
13536         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13537         (O_RDONLY): Define if necessary.
13538         (search_list::add_file): Use O_RDONLY.
13539         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13540         <sys/stat.h>.
13541         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13542         (main): Use these.
13544         * libbib/index.cc (S_ISREG): Define it if necessary.
13545         (index_search_item::load): Use S_ISREG.
13547         * include/driver.h: Include <errno.h>.
13549 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13551         * eqn/box.cc (body_height): Increase default value to 85.
13552         (body_depth): Increase default value to 35.
13554 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13556         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13557         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13558         protected from expansion with \E.
13560         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13562         * Makefile (Makefile): New target.
13564         * Makefile.sub (configure, distfiles): New targets.
13566         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13567         construct.
13569 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13571         * eqn/box.cc (param_table): Add body_height and body_depth.
13573         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13575 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13577         * psbb/Makefile.sub: Don't link with libgroff.a.
13579         * acgroff.m4 (GROFF_PUTENV): New macro.
13580         * configure.in: Call GROFF_PUTENV.
13581         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13582         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13583         is defined.
13585         * troff/env.cc (distribute_space): Rename force_forward argument
13586         to force_reverse.  Reverse the list if force_reverse is true.
13588 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13590         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13592         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13593         height or depth to be negative.  Guard against SUP_RAISE quantity
13594         being negative.
13596 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13598         * devps/generate/textmap: Add `an' (arrowhorizex).
13599         * tmac/tmac.ps: \(an overlaps horizontally.
13600         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13602         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13603         * devps/textmap: Add arrowvertex.
13604         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13605         updownarrow delimiters.
13606         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13608         * tbl/table.cc (simple_entry::position_vertically,
13609         block_entry::position_vertically):  For a centered entry, perform
13610         the motion in two stages.
13612         * refer/refer.cc (split_punct): Don't call lookup_token if there
13613         is no token.
13615 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13617         * troff/input.cc (token::next): Delete token_node after copying
13618         token.
13620         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13621         cur_point_size.
13623         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13625         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13627 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13629         * grops/ps.cc (usage): -b option takes an argument.
13631         * devps/prologue (PLG): New procedure.
13632         * grops/ps.cc (main, usage): New -g option.
13633         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13634         length using PLG.
13636 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13638         * include/cset.h: Include <limits.h> if we have it.
13640         * libgroff/illegal.cc: New file.
13641         * include/lib.h (illegal_input_char): Use table.
13642         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13643         * pic/lex.cc (ARG1): Renumber to 14.
13644         * eqn/lex.cc (ARG1): Likewise.
13646         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13647         (eg 1.05.90) correctly.
13649 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13651         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13652         Rename $r and $R registers to $v and $V.
13653         ($r, $R): Initialize to 0.
13654         (@v, @V): New macros.
13655         (sz): Call @v.
13656         (@M): Call @V.
13658         * troff/input.cc (main, usage): Add -R option that says not to
13659         load troffrc.
13660         * eqn/main.cc (main, usage): Rename -n to -R.
13662 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13664         * devps/DESC.in: Leave font positions 5-9 blank.
13665         * devdvi/DESC.in: Likewise.
13667         * grog/grog.pl: Handle `.PS <file' correctly.
13669         * troff/input.cc (input_stack::push): Improve error message when
13670         input stack limit exceeded.
13672 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13674         * refer/refer.cc (main): Fix typo in handling of `a' option.
13676         * refer/refer.cc (do_bib): In state START after a newline remain
13677         in state START.
13679         * groff/groff.sh: Deleted.
13680         * groff/Makefile.sub: Delete handling of groff.sh.
13682         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13683         to determine whether to use \X'ps:...'.
13684         * tmac/troffrc: Set 0p register to 0.
13685         * tmac/tmac.ps: Set 0p register to 1.
13687         * groff/groff.cc: Support -X option. Give warning for -TXps and
13688         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13689         * tmac/troffrc: Support -r.X=1.
13691         * pic/troff.cc (troff_output::dot): Don't test
13692         zero_length_line_flag.
13694 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13696         * include/lib.h: Declare getopt() and friends unless
13697         STDLIB_H_DECLARES_GETOPT is defined.
13699         * doc/chars.tr: Delete.
13700         * man/groff_char.man: New file.
13702 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13704         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13705         user has changed register format.
13707 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13709         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13710         `postpro' command in DESC file.  Get spooler command from `print'
13711         command in DESC file.  Execute spooler command with /bin/sh.
13713         * groff/groff.cc: Split Unix-specific parts into...
13714         * groff/pipeline.c: New file.
13716         * LICENSE: Delete.
13717         * COPYING: New file.
13718         * all files: Update copyright notices.
13720         * Rearrange files.  Redo Makefiles.  Use autoconf.
13722 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13724         * troff/input.c (charinfo_to_node_list): Interpret character
13725         definition with escape_char of `\'.
13727 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13729         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13730         Define INT_DIGITS as big enough for 64-bit integer.
13731         * lib/strtol.c: Don't include lib.h.
13732         * lib/lib.h: Delete ifdef __cplusplus stuff.
13734 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13736         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13737         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13738         get DESC from current directory.
13740 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13742         * tbl/main.c (main): Always reset the line number when reading
13743         from stdin.
13745         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13746         table::define_bottom_macro, table::do_row, table::do_top): Round
13747         vertical spacing up to vertical resolution.
13749 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13751         * ps/ps.h (enum resource_type): Avoid comma at end of
13752         enumerator-list.
13753         * dvi/dvi.c (class dvi_printer): Likewise.
13754         * dvi/tfmtodit.c (gf::load): Likewise.
13755         * refer/label.y (struct expression): Likewise.
13756         * refer/refer.c (class label_processing_state): Likewise.
13757         * refer/indxbib.c (do_file): Likewise.
13758         * troff/troff.c (enum warning_type): Likewise.
13759         * tbl/main.c (process_data): Likewise.
13760         * troff/charinfo.h (class charinfo):
13762 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13764         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13766 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13768         * groff.c: Move to new groff subdirectory.
13769         * groff/Makefile: New file.
13770         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13772         * man/mdate.sh: Use ls -L if supported.
13774         * Consolidate all header files produced by gendef into lib/defs.h.
13775         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13776         Don't include path.h.
13777         * lib/Makefile (path.h): Don't generate.
13778         * troff/input.c: Include defs.h. Don't include config.h.
13779         * troff/Makefile (config.h): Don't generate.
13780         * refer/index.h: Don't include suffix.h.
13781         * refer/index.c: Include defs.h.
13782         * refer/indxbib.c: Include defs.h.
13783         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13784         defs.h.
13785         * refer/Makefile (suffix.h, path.h): Don't generate.
13786         * groff.c: Don't include config.h. Include defs.h.
13787         * Makefile (config.h): Don't generate.
13788         (lib/defs.h): Generate.
13789         (topclean): Remove lib/defs.h.
13791 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13793         * lib/malloc.c, lib/getpagesize.h: Deleted.
13794         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13795         related stuff.
13796         * lib/Makefile: Delete malloc-related stuff.
13797         * lib/new.c: Workaround COOKIE_BUG if necessary.
13799         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13800         needed header files directly.
13801         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13802         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13804 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13806         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13807         argument.
13808         * lib/font (font::load_desc, font::load): Don't split argument of
13809         unknown command.
13810         (font::handle_unknown_font_command): Change type.
13811         * ps/ps.c (ps_font::handle_unknown_font_command,
13812         handle_unknown_desc_command): Change type.
13813         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13815 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13817         * lib/font.h (font::handle_unknown_font_command): Add file and
13818         line arguments.
13819         * lib/font.c (font::handle_unknown_font_command):
13820         * ps/ps.c (ps_font::handle_unknown_font_command):
13821         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13822         lineno arguments.  Use _with_file_and_line functions for error
13823         reporting.
13825         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13826         data member.
13827         * lib/font.c (font::set_unknown_desc_command_handler): New
13828         function.
13829         (font::load_desc): For unknown commands, call
13830         unknown_desc_command_handler if not null.
13831         * lib/font.h (class font): Declare them.
13832         (FONT_COMMAND_HANDLER): New typedef.
13833         * ps/ps.c (handle_unknown_desc_command): New function.
13834         (main): Set bflag if we had a -b option. Call
13835         font::set_unknown_desc_command_handler.
13836         (broken.h): Don't include.
13837         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13838         submake 
13839         * ps/devps/Makefile: Add `broken' command to DESC file using
13840         BROKEN_SPOOLER_FLAGS.
13842         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13844         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13846         * macros/tmac.e (@R, @S): New macros.
13847         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13848         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13849         Declare $H, $[0-9], .. macros with @S.
13850         Declare |0, |1, |2, |3 strings with @S.
13852         * macros/tmac.e (@S): Rename to @U.
13854         * macros/tmac.e (@z): Define @b and bp as empty instead of
13855         deleting them,
13857         * macros/tmac.e (@m): Deleted.
13858         (@h): Don't call @m.
13859         (@z): Don't set @m trap.
13861         * macros/tmac.e ($h, $f): Define |z as empty string.
13863         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13864         (@q): Likewise.
13866         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13867         removing them.
13868         ()f): Likewise for * register.
13870         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13871         argument is missing, don't change $R.  Call sr with three
13872         arguments when initializing.
13874 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13876         * macros/tmac.e (sr): New macro.
13877         Initialize $r and $R using sr.
13879         * macros/tmac.e (,): Delete \*(#[.
13881         * troff/env.c (set_tabs): Read the tab type even if the position
13882         is bad.  Allow the position of the first tab stop to be negative.
13884 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13886         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13887         _POSIX_VERSION.
13888         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13889         rather than -DPATHCONF_MISSING.
13890         * Makefile: Get rid of PATHCONF_MISSING.
13892         * refer/map.c: New file.
13893         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13894         to map_len.
13895         * refer/Makefile: Handle map.c.
13896         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13898 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13900         * Makefile: RANLIB should be `true' if there is no ranlib.
13901         * lib/Makefile (libgroff.a): Simplify.
13902         * driver/Makefile (libdriver.a): Simplify.
13904         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13905         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
13906         defined.
13908 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
13910         * troff/env.c (compare_ranges): Declare as extern "C".
13912         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13914         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13916 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
13918         * pic/troff.c (troff_output::text): Merge in grops_output::text,
13919         but conditionalize use of \X based on \*(.T.
13920         (grops_output::*): Deleted.
13921         * pic/output.h: Delete declaration of make_grops_output.
13922         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
13923         by default. -n sets it to 0.
13924         (usage): Corresponding changes.
13925         * groff.c (main): Don't pass -x or -p to pic.
13926         * groff.sh: Likewise.
13928         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13929         to be non-zero.
13931         * ps/devps/afmtodit: Change calculation of asc_boundary and
13932         desc_boundary.  Make these bounds inclusive.
13933         * ps/devps: Regenerate font files.
13935 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
13937         * macros/tmac.latin1: New file.
13938         * macros/tmac.tty-char: Use tmac.latin1.
13939         (tmac.tty-tr): Deleted.
13940         * macros/Makefile: Install tmac.latin1.
13941         * macros/tmac.dvi: Use tmac.latin1.
13942         * macros/troffrc: Translate \[char160] onto no-break space here.
13943         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13945 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
13947         * macros/tmac.Xps: Use `do' request.
13949         * macros/tmac.ps: Use `do' request.
13951         * macros/tmac.e (@C): Use `do' request.
13953         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13954         * macros/Makefile: Install tmac.X*.
13956         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13957         * tty/Makefile: Don't install tmac.tty*.
13958         * macros/Makefile: Install tmac.tty*.
13960         * dvi/tmac.dvi: Move to macros.
13961         * dvi/Makefile: Don't install tmac.dvi.
13962         * macros/Makefile: Install tmac.dvi.
13964         * ps/tmac.ps*: Move to macros.
13965         * ps/Makefile: Don't install tmac.ps*.
13966         * macros/Makefile: Install tmac.ps*.
13968         * eqn/box.c: Provide draw_lines parameter corresponding to -D
13969         option.
13970         * macros/eqnrc: Set draw_lines parameter based on device.
13971         * groff.c: Don't pass -D flag to eqn.
13972         * groff.sh: Likewise.
13973         * eqn/main.c: Warn about use of -D.
13975         * troff/input.c (process_startup_file): New function.
13976         (main): Call process_startup_file().
13977         * macros/troffrc: New file.
13978         * macros/Makefile: Install troffrc.
13979         * groff.c (main): Don't pass extra -m option to troff. For a 
13980         pseudo device pass the name of the pseudo device to troff using
13981         -d.
13982         * groff.sh: Likewise.
13983         * groff.c (possible_command::prepend_arg): Deleted.
13985         * troff/input.c (do_request): New function.
13986         (init_input_requests): Bind "do" to do_request.
13988         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13989         load eqnrc from macro directory.
13990         * macros/eqnrc: New file.
13991         * macros/Makefile: Install eqnrc.
13992         * ps/devps/eqnchar: Deleted.
13993         * ps/devps/Makefile: Don't install eqnchar.
13994         * dvi/devdvi/eqnchar: Deleted.
13995         * dvi/devdvi/Makefile: Don't install eqnchar.
13996         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13997         variable optM.
13999         * lib/device.[ch]: New files.
14000         * lib/font.h (font::set_device_name, font::get_device_name):
14001         Deleted.
14002         * lib/fontfile.c: Use device.h.
14003         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14004         * troff/input.c: Delete definition of `device'.
14005         (main): Don't initialize device.
14006         * troff/troff.h: Include device.h rather than declaring device.
14007         * troff/Makefile: No need to handle DEVICE.
14008         * driver/input.c: Include device.h. Don't use
14009         font::{set,get}_device_name.
14010         * groff.c, Makefile: Rename device.h to config.h.
14011         * groff.c: Use library device variable.
14012         * eqn/main.c: Use library device variable.
14013         * eqn/Makefile: No need to handle DEVICE.
14015         * lib/searchpath.[ch]: New files.
14016         * lib/Makefile: Handle searchpath.[ch].
14017         * troff/input.c (open_file, init_dirs): Deleted.
14018         (macro_dirs): Deleted.
14019         (open_mac_file, macro_source): Use class search_path.
14020         (add_string, struct string_list): Move definition.
14021         (main): Change -M option to use macro_path. Delete call to
14022         init_dirs().
14023         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14024         Rewrite to use class search_path.
14025         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14026         * lib/Makefile: fontfile.c depends on searchpath.h.
14027         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14028         MACROPATH.
14029         * lib/macropath.[ch]: New files.
14030         * troff/Makefile: No need to handle MACROPATH.
14032         * troff/input.c: Delete DUMP code.
14033         * lib/fontfile.c, lib/font.h: Delete
14034         font::forget_command_line_font_dirs.
14036         * troff/input.c (push_token): New function.
14037         (handle_first_page_transition): Use push_token().
14038         (process_input_stack): Change handling of a space at the beginning
14039         of the line.
14041 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14043         * troff/input.c (font_dirs): Delete unused variable.
14045         * eqn/lex.c (do_set): Correct error messages.
14047 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14049         * troff/input.c (do_define_string): Allow the string name to be
14050         followed immediately by a tab.
14051         (define_character): Likewise.
14053 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14055         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14056         be negative.
14058         * troff/input.c (input_iterator::is_file): New virtual function.
14059         (file_iterator::is_file): New function.
14060         (input_stack::end_file): New function.
14061         (input_stack::next_file): Handle the situation where there is no
14062         file on the input stack correctly.  Avoid making two passes over
14063         the input stack.
14064         (next_file): Make the filename optional; in this case call
14065         input_stack::end_file().
14067 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14069         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14070         produce a real _ charater when the current font is CW and _
14071         otherwise.
14073         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14074         expression to work around gcc 2.2 bug.
14076 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14078         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14080         * troff/env.c (environment::add_padding): New function.
14081         (environment::add_char): Use add_padding().
14082         (environment::space): Likewise.
14083         (environment::wrap_up_field): Add some padding if there is none
14084         and there's no current tab.
14085         * troff/env.h: Declare environment::add_padding.
14087 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14089         * pic/pic.y: undef fmod and rand before declaring them.
14091 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14093         * troff/input.c (main): If the DESC file specifies a font name of
14094         0, then leave the corresponding font position empty.
14096         * nroff.sh: New file.
14097         * Makefile (install.nobin): Install nroff.sh.
14099         * tty/devlatin1/R.proto: Add ao as synonym for de.
14100         * tty/tmac.tty-char: Define ao as o.
14102         * tty/dev{ascii,latin1}/R.proto: Add aq.
14103         * tty/tmac.tty-char: Delete definition of aq.
14105 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14107         * troff/input.c (init_charset_table): Don't translate 0240.
14108         * ps/tmac.ps: Translate char160 to space.
14109         * dvi/tmac.dvi: Likewise.
14110         * tty/tmac.tty: Likewise.
14112 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14114         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14116         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14117         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14118         \(oe, \(r?, \(r!.
14120         * tty/tmac.tty-char: Add \(ah.
14122         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14123         No need to define \(FM and \(!/. Conditionalize all character
14124         definitions.
14126         * ps/devps/lgreekmap: Add +h, +f, +p.
14128         * ps/tmac.psnew: New file.
14129         * ps/Makefile: Install tmac.psnew.
14131         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14132         character definitions in compatible mode.
14134         * troff/input.c (remove_character): New function.
14135         (init_input_requests): Bind remove_character to "rchar".
14137         * ps/tmac.psold: New file.
14138         * ps/Makefile: Install tmac.psold.
14139         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14140         characters into tmac.psold.  Make these definitions unconditional.
14142         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14144         * ps/tmac.ps: Don't define \('c and \('C.
14146         * ps/devps/textmap: Move Greek characters to...
14147         * ps/devps/symbolchars:
14149 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14151         * ps/devps/text.enc: Add quotesingle.
14152         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14153         * tty/tmac.tty-char: Likewise.
14154         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14155         * dvi/devdvi/texi.map: Add Fn.
14156         * dvi/devdvi/msam.map: Add lz.
14157         * dvi/tmac.dvi: Handle Bq, bq, aq.
14159         * pic/lex.c (get_token): Recognize 'th.
14160         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14162 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14164         * ps/devps/textmap: Move di, mu, +- to...
14165         * ps/devps/symbolchars:
14167         * macros/tmac.s (@XS): Don't call par@reset or fi.
14168         (XA): Call LP. Turn off adjustment. Reduce line length.
14170         * macros/tmac.s: Initially alias XS to LP.
14171         (XS): Rename to @XS.
14172         (cov*ab-init): Alias XS to @XS.
14174 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14176         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14177         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14178         (token::is_size, token::changes_env): Deleted.
14179         * troff/number.c (parse_term): No need to process \s explicitly.
14180         Call tok.next() only after scale indicator has been processed.
14181         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14182         \f etc explicitly.
14183         (token::next): Handle \s, \f, \S, \H immediately rather than
14184         returning them as tokens.
14185         (token::operator==, token::description, token::add_to_node_list,
14186         token::process): Remove handling of deleted tokens.
14188         * troff/env.c (environment::add_char): When adding padding
14189         indicator character, call start_line() if necessary.
14191 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14193         * ps/devps/afmtodit: Don't output 0 kerns.
14195         * ps/devps/afmtodit: Remove directory from name of encoding in
14196         font description file.
14198         * ps/devps/afmtodit: Improve error messages.
14200         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14202         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14203         * ps/devps/FontMakefile: Deleted.
14204         * ps/devps/afmname: New file.
14206         * ps/devps/symbol.sed: New file.
14207         * ps/devps/symbol.diff: Deleted.
14208         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14209         Generate zapfdr.afm from zapfd.afm.
14211         * tty/tmac.tty (tty-char): Prefix definition with ".
14213         * macros/tmac.an (TP): Don't start a diversion if one has already
14214         been started.
14216         * tty/tmac.tty-char: Add Latin-1 characters.
14218         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14220 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14222         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14223         Move declaration of struct horizontal_span.
14225         * tbl/table.c (table::table): Initialize span_list.
14226         (table::~table): Delete span_list.
14228         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14230         * ps/devps/Makefile: Avoid dependency on GNU make.
14232         * ps/tmac.ps: Check that character does not already exist before
14233         defining it.
14235         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14236         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14237         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14238         files.
14240         * tty/tmac.tty-char: New file.
14241         * tty/Makefile: Install tmac.tty-char.
14242         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14243         tmac.tty-char.
14245         * tty/tmac.tty: Fix definition of \(34.
14247         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14248         bracket-drawing characters onto |. Add *o.
14250         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14251         only if current_field.
14253         * troff/dictionary.c (dictionary::lookup): Free old_table after
14254         rehashing. 
14256 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14258         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14259         whose glyphs are identical to glyphs of some Roman character.
14261         * tty/devlatin1/R.proto (bu): Deleted.
14262         * tty/devascii/R.proto (bu): Deleted.
14263         * tty/tmac.tty: Add definition of \(bu.
14265         * eqn/main.c (do_file): Pass FILE as argument.
14266         (main): Automatically load eqnchar.  New options -F and -n.
14267         Pass do_file an opened FILE.
14268         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14269         No need to include font.h.
14270         * groff.sh: Likewise.  Don't need to use - for standard input.
14271         Prefix files with -- if first file starts with -.
14273         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14275         * troff/env.c (environment::possibly_break_line): Don't set line
14276         to 0 across call to output_line().  Don't call output_line() until
14277         after discarding nodes after break.
14279 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14281         * request.h (macro::empty): Declare it.
14282         * input.c (macro::empty): New method.
14283         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14284         macro is empty.
14286 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14288         * troff/env.c (environment::start_field): Decrement space_total
14289         when a space is frozen.
14291 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14293         * macros/tmac.an (R): Delete macro.
14295         * troff/input.c (get_copy, token::next): Support \# (like \" but
14296         newline is ignored).
14298         * troff/input.c (token::next): Fix error message in 'Y' case.
14300 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14302         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14303         a delimiter name.
14305 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14307         * c++test.c: Include <osfcn.h>.
14309         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14310         <errno.h> doesn't.
14312 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14314         * tbl/table.c (table::divide_span): Don't count column separation
14315         if expand was specified.
14317         * tbl/main.c (process_format): Don't ignore width specs in
14318         continued format.  Give warning for changing equal widths or
14319         column separation in continued format.
14320         (process_data): Set column separation, minimum width, equal
14321         columns at end of table.
14323 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14325         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14326         node::add_discretionary_hyphen): Use soft_hyphen_char.
14327         (set_soft_hyphen_char): New function.
14328         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14330         * Makefile (c++tested): Give more helpful message if test fails.
14332 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14334         * troff/input.c (init_charset_table): Translate 0240 to
14335         an unbreakable space.
14337         * troff/token.h (token::hyphen_indicator): New function.
14338         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14339         translation.
14340         * troff/input.c (translate): Allow translation to \%.
14341         * troff/node.c (node::add_char): Handle
14342         TRANSLATE_HYPHEN_INDICATOR.     
14343         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14345         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14346         for \(hy.
14348         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14350 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14352         * groff.c (run_commands): If the last command gets a SIGPIPE send
14353         a SIGPIPE to all children than haven't yet terminated.  When
14354         command terminates, set pid field to -1.
14356 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14358         * groff.c (main): Pass an appropriate -filename option to gxditview.
14360 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14362         * Makefile.bd (install): Remove existing program before copying.
14364         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14365         programs which have Unix counterparts to be installed with
14366         user-specified prefix.
14368         * troff/input.c (exit_troff): Don't check if exit_started.
14369         (exit_request): Don't call exit_troff if exit_started.
14371         * Makefile.bd (install.mm): Rename to install.dwbmm.
14373 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14375         * driver/input.c (do_file): Add missing break for '#' case.
14377 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14379         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14380         then add the boundaries back.
14382         * troff/input.c (exit_troff): Return immediately if already
14383         exiting.
14385         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14386         end macro.
14387         (pg*end-page): If the text has ended and there are no more
14388         footnotes or keeps, exit.
14390         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14392         * troff/input.c (init_charset_table): Make \(rq transparent by
14393         default.
14395         * macros/tmac.an: Define lq and rq strings.
14397         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14399 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14401         * troff/env.c (environment::final_break): New function.
14402         (environment::newline): Set prev_line_interrupted to 2 if
14403         exit_started.
14404         * troff/env.h: Declare environment::final_break.
14405         * troff/input.c (exit_troff): Call environment::final_break()
14406         instead of environment::do_break().
14408         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14409         doesn't already exist.
14410         * macros/man.local: New file.
14411         * macros/tmac.an: Load man.local.
14412         * macros/man.ultrix: New file.
14414 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14416         * troff/input.c (exit_groff): Rename to...
14417         (exit_troff): New function.
14419         * troff/div.c (exit_started, done_end_macro,
14420         seen_last_page_ejector): New global variables.
14421         (began_page_in_end_macro): New static variable.
14422         (exit_flag): Deleted.
14423         (top_level_diversion::top_level_diversion): Initialize
14424         last_page_count.
14425         (top_level_diversion): More elaborate test for whether
14426         cleanup_and_exit() should be called.
14427         Set began_page_in_end_macro if the end macro isn't yet finished.
14428         * troff/div.h (top_level_diversion::last_page_count): New data
14429         member.
14430         (top_level_diversion::set_last_page): New function.
14431         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14432         * troff/env.c (do_break): Zero prev_line_interrupted.
14433         * troff/input.c (exit_flag): Delete declaration.
14434         (LAST_PAGE_EJECTOR): New magic cookie.
14435         (token::next): Handle LAST_PAGE_EJECTOR.
14436         (exit_groff): Set exit_started and done_end_macro instead of
14437         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14438         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14439         another ejection after setting seen_last_page_ejector.
14441 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14443         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14445         * macros/tmac.e (TH): Make sure there's room for the initial
14446         header.
14448         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14449         Set FVS in points rather than units.
14451 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14453         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14454         position of empty slots.
14456 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14458         * ps/devps/S: Fix height and depth of parenrightex.
14459         * ps/devps/symbol.diff: Regenerate.
14461 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14463         * tmac.e (u): Do underlining as in -mgs.
14465 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14467         * tty/tty.c (tty_printer::end_page): If overstriking is
14468         suppressed, still turn overstruck horizontal and vertical lines
14469         into +.
14471         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14472         2.1.
14474         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14476 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14478         * Version 1.05 released.
14480 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14482         * tty/tty.c: Instead of keeping an array of glyphs and then
14483         sorting it, keep a ordered linked list of glyphs for each line.
14485         * driver/driver.h: Include stddef.h.
14487         * tty/tty.c (compare_glyph):
14488         * refer/refer.c (rcompare):
14489         * troff/env.c (compare_ranges): Arguments of qsort comparison
14490         function should be const void *.
14492         * troff/number.c (parse_term):
14493         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14494         switch statement.
14496         * refer/label.y (consider_authors): Don't access variables
14497         constructed under a condition outside that condition: put braces
14498         round for statement containing declaration; redeclare use of same
14499         variable later.
14501         * pic/pic.y (text_expr): Delete production that allows
14502         parenthesised text_expr.
14503         (expr): Allow a conditional_expr to appear in parentheses.
14504         (conditional_expr): Rename to any_expr.
14506         * mm: Install new version 1.01 from jh.
14508         * lib/font.c (font::get_width): Cache scaled widths.
14509         (font::font): Initialize widths_cache.
14510         (font::~font): Destroy widths_cache.
14511         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14513 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14515         * c++test.c, c++test.ref: New files.
14516         * Makefile: Check that the C++ compiler works.
14518         * ps/tmac.pspic (PSPIC): Do a break.
14520         * ps/tmac.ps: Move definition of PSPIC into...
14521         * ps/tmac.pspic: New file.
14522         (PSPIC): Draw box around picture, but make it invisible to grops.
14523         * ps/tmac.ps: Load tmac.pspic.
14524         * ps/Makefile: Install tmac.pspic.
14526 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14528         * lib/font.c (scale_round): If n is negative,
14529         subtract .5 before truncating floating point result.
14531         * lib/fontfile.c: Include <errno.h>.
14533 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14535         * driver/input.c (get_char): Inline. Don't update current_lineno.
14536         Change callers to up date current_lineno if necessary.
14537         Use get_char() instead of getc(current_file).
14539 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14541         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14543 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14545         * tty/tty.c (tmac.tty): Define \(rg as (R).
14547 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14549         * lib/lib.h: New define a_delete.
14550         * Use a_delete instead of delete when deleting an array of objects
14551         without destructors.
14553         * lib/lib.h: Rename adelete to ad_delete.
14554         * Change uses of adelete.
14556 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14558         * eqn/eqn.y: Include lib.h.
14560         * troff/node.c (grow_font_table): Delete old_font_table.
14562         * mm: Install new version from jh.
14564 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14566         * tbl/table.h (format_type): Make global instead of local to class
14567         entry_format.  Prefix enumerators with FORMAT_.
14568         * tbl/table.c, tbl/main.c: Corresponding changes.
14569         * refer/token.h (token_type): Make global.  Prefix enumerators
14570         with TOKEN_.
14571         * refer/token.[ch]: Corresponding changes.
14572         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14574         * troff/div.c (node::set_vertical_size): Don't name argument.
14576 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14578         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14579         * lib/lib.h: Define adelete accordingly.
14580         * pic/object.c (graphic_object::graphic_object):
14581         * tbl/main.c (format::~format):
14582         * tbl/table.c (table::~table):
14583         * refer/ref.c (reference::~reference, reference::merge,
14584         reference::insert_field, reference::delete_field): Use adelete.
14586         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14587         * refer/token.h:
14588         * tbl/table.h: Corresponding changes.
14590         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14591         Ensure total_angle is positive.
14593 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14595         * refer/ref.c (reference::merge, reference::insert_field,
14596         reference::delete_field): Avoid delete[0].
14598         * refer/token.c (init_special_chars): Move calls to cmupper
14599         outside calls to init_two_char_letter to work around bug in gcc
14600         2.0.
14602 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14604         * lib/new.c (operator new): Use __builtin_new for g++.
14606         * pic/object.c (graphic_object::~graphic_object):  Don't use
14607         delete [] on 0.
14609         * pic/object.c (output::compute_scale): Initialize max_width and
14610         max_height.
14612 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14614         * troff/input.c (write_request): Call fflush.
14616         * troff/node.h (class composite_node): Move declaration to node.c
14617         * troff/input.c (charinfo_to_node): Rename to ...
14618         (charinfo_to_node_list): Return node list rather than composite
14619         node.
14620         * troff/node.c (make_composite_node): New function.
14621         (make_node, add_char): Call make_composite_node instead of
14622         charinfo_to_node.
14623         (class composite_node): Add a tfont * member.  Delete font_size
14624         member.
14625         (composite_node::composite_node, composite_node::copy,
14626         composite_node::size): Corresponding changes.
14627         (composite_node::tprint): Provide constant spacing, emboldening
14628         and track kerning as specified in tfont.
14629         (composite_node::width): Change width calculation accordingly.
14630         * troff/env.h (environment::composite): New member.
14631         (environment::is_composite, environment::set_composite): New
14632         functions.
14633         * troff/env.c (environment::environment): Initialize composite.
14634         * troff/input.c (charinfo_to_node): Call
14635         environment::set_composite.
14636         * troff/node.c (make_composite_node, make_glyph_node): Use the
14637         plain version of the tfont if the environment is composite.
14639         * troff/node.c (font_info::get_space_width): Additional argument
14640         giving space_size.  Handle constant space correctly. Scale by
14641         space_size unless constant spaced.
14642         (env_sentence_space_width): New function.
14643         * troff/node.h: Declare it.
14644         * troff/env.h (environment::get_space_size,
14645         environment::get_sentence_space_size,
14646         environment::get_narrow_space_width,
14647         environment::get_half_narrow_space_width): Make inline.
14648         (environment::get_space_width): Make inline.  Just call
14649         env_space_width.
14650         * troff/env.c: Delete definitions for funtions made inline.
14651         (environment::space_newline, environment::space): Use
14652         env_sentence_space_width(). Don't scale by space_size.
14653         * troff/node.h: Move declarations of env*space_width() functions
14654         into env.h.
14656 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14658         * macros/tmac.s (PS): Don't try to set negative indent.
14660 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14662         * pic/pic.y: Fix min function.
14664 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14666         * man/mdate.sh: Clear LANGUAGE.
14668 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14670         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14671         * pic/lex.c: New COMMAND keyword.
14672         * pic/pic.y (print_args, print_arg): New rules.
14673         (placeless_element): Use print_args for PRINT.
14674         New COMMAND element.
14676 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14678         * troff/input.c (terminal): Handle missing argument correctly.
14680         * pic/pic.y (text_expr): New rule.
14682         * pic/pic.y: Implement := operator.
14684 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14686         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14687         mdoc.
14689 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14691         * ps/devps/dingbatsrmap: Include this in the distribution.
14693         * macros/tmac.doc: Replace with new version from 2nd Networking
14694         Release. Fix loading of doc-* files.
14695         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14696         * macros/tmac.doc.old: New file.  Apply fixes that had been
14697         applied to old tmac.doc.
14698         * macros/tmac.andoc: Check that we're running under groff.
14699         * macros/Makefile: Rework.
14701 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14703         * tbl/table.h (format_type): 
14704         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14705         typedef to make these types visible at file scope.
14706         * Makefile: Add NESTED_TYPES configuration option.
14708         * troff/div.c (mark): At the top level use the value of
14709         nl_reg_contents rather than the current vertical position.
14711 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14713         * tty/tty.c: Implement \D for horizontal or vertical lines.
14714         (tty_printer::set_char): Use vec_used+2 as serial number.
14715         Don't allow size of vector to exceed USHRT_MAX-2.
14716         Split off part into...
14717         (tty_printer::add_char): New function.
14718         (tty_printer::draw): New function.
14719         (compare_glyph): Handle equal serial numbers.
14720         (tty_printer::end_page): Handle overstruck characters from \D.
14721         (main, usage): Implement -d option.
14723 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14725         * tbl/main.c (process_format):
14726         * eqn/text.c (split_text):
14727         * troff/input.c (token::next): Use inner block for declarations
14728         with initializers in switch statement.
14730 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14732         * pic/common.c (common_output::dash_line): Cope with zero-length
14733         lines.
14735 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14737         * Version 1.04 released.
14739 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14741         * macros/tmac.an (TH): Define a macro an-init to define variables
14742         based on command line arguments.
14743         (an-header): Call it.
14745 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14747         * Makefile (install.mm): Rename to install.dwbmm.
14749         * Makefile: Integrate mm.
14750         * mm: New directory.
14752 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14754         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14755         <sys/types.h>.
14757         * pic/troff.c (troff_output::simple_spline,
14758         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14759         shadowing parameter.
14761         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14763         * lib/ptable.h: Add explicit casts when converting from unsigned
14764         long to unsigned.
14766         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14767         * dvi/devdvi/Makefile: Install SA, SB.
14769         * refer/indxbib.c: Add declaration of mktemp.
14771         * refer/lookbib.c: Add declaration of isatty.
14773 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14775         * pic/lex.c (interpolate_macro_with_args):  While collecting
14776         arguments, keep track of whether we're in a string.
14778 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14780         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14781         down with \v, so as to avoid problems with top of page trap
14782         setting no space mode.
14784 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14786         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14788 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14790         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14791         Improve error message.
14793 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14795         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14796         printf("%03o");
14798 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14800         * groff.c (possible_command::execp): Always use _exit() after a
14801         failed exec.
14803         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14804         NO_SYS_WAIT_H   configuration options.
14805         * groff.c: Use these options.  Use POSIX-style macros to extract
14806         fields from the status returned by wait().
14808 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14810         * tbl/table.c (table::compute_separation_factor): Allow the
14811         separation factor to drop to 0.
14813 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14815         * refer/search.c: Include <errno.h>.
14817 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14819         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14821         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14822         C++. 
14824         * pic/lex.c (input_stack::bol): Move definition out of class body.
14826         * pic/main.c: On MSDOS munge argv[0].
14828         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14830         * lib/ptable.c (hash_string): Use unsigned long rather than
14831         unsigned.
14832         (next_ptable_size): Use unsigned rather than int.  Give an error
14833         message if we've hit the largest table size.
14834         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14835         table size.
14837         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14838         flags as const unisgned long rather than as enums.
14840         * pic/output.c: Deleted.
14842         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14844         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14845         Add additional argument.
14846         (line_entry::note_double_vrule_on_{left,right}): Set value of
14847         douvle_vrule_on_{right,left} flag according to argument.
14848         (simple_line_entry::simple_print,
14849         simple_line_entry::double_line_print): If adjacent to double vrule
14850         on a corner extend rather than shorten the rule by half the double
14851         vrule sep.
14853         * troff/number.c (parse_term): In checking for overflow, handle the
14854         case where the current horizontal position is negative.
14856 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14858         * pic/object.c (draw_arrow): Check for object having zero length.
14860 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14862         * eqn/main.c (do_file): Split off inline equation handling into...
14863         (inline_equation): New function.  Search for starting delimiter
14864         using...
14865         (delim_search): New function. Don't recognize a delimiter that
14866         occurs in the name of an escape sequence, number register, string
14867         etc.
14869 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14871         * eqn/delim.c (delim_box::compute_metrics): Don't call
14872         define_extensible_string if left is 0.
14873         (delim_box::output):  Don't print the left delimiter if left is 0.
14874         (delim_box::debug_print): Check for left == 0 before calling printf.
14876 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14878         * troff/Makefile (majorminor.c): Include only digits in
14879         minor_version.
14881 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14883         * refer/dirnamemax.c: new file.
14884         * refer/genlimits.c: Deleted.
14885         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14886         Don't check path length.
14887         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14888         * Makefile: Add PATHCONF_MISSING option.
14890         * refer/indxbib.c (get_cwd): New function.
14891         (main): Use get_cwd().
14892         * lib/getcwd.c: New file.
14893         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14894         GETCWD in SUBFLAGS.
14895         * lib/Makefile: Compile getcwd.o.
14897         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14898         userdict.
14900         * refer/indxbib.c (main): Check success of mktemp.
14902         * lib/tmpfile.c: New file.
14903         * lib/Makefile: Add tmpfile.c.
14904         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14905         * ps/ps.h: Delete declaration of mktemp().
14906         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14907         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14908         * driver/driver.h: No need now to include errno.h.
14910         * everywhere: Set errno to 0 before calling fopen().
14912         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14913         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14914         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14916 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
14918         * troff/env.h (translate_space_to_dummy): Declare it.
14919         * troff/env.c (environment::space_newline, environment::space):
14920         If translate_space_to_dummy is set then make the width of spaces 0.
14921         * troff/input.c (translate): If the second character of a
14922         translation is a space, translate to unbreakable space.  If the
14923         first character is a space, set or clear translate_space_to_dummy
14924         according to whether the second character is \&.  Weird!
14926 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
14928         * groff.c (run_commands): Don't use non-zero exit code because a
14929         command gets SIGPIPE.
14931         * groff.c, groff.sh: Use -mXps with -TXps.
14933         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14934         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14935         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14936         (ps_printer::special): New specials invis and endinvis.
14937         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14938         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
14939         (ps_printer::end_page): Check that invis_count == 0.
14940         (ps_printer::invis_count): New member.
14941         (ps_printer::ps_printer): Initialize invis_count to 0.
14943         * troff/env.c (environment::hyphenate_line): Hyphenation
14944         indicator at beginning of word inhibits splitting after -, \(em
14945         etc.
14947         * pic/pic.y (element): Allow another element to follow } without
14948         any intervening separator.
14950 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
14952         * pic/lex.c (get_delimited): Allow tabs before delimiter.
14954 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
14956         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
14957         declaration of wait() in header files.
14958         * Makefile: Get rid of -DHAVE_UNION_WAIT.
14960         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14962         * lib/lib.h: Declare return type of strerror as char *.
14964         * man/Makefile: Add g flag to sed substitutions.
14965         * Makefile (shgroff, bindist): Likewise.
14967 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
14969         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14970         * ps/devps/prologue (PBEGIN): Define showpage after pushing
14971         userdict.
14973 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
14975         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14976         userdict.
14978 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14980         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14981         group.
14983 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14985         * troff/input.c (define_number_reg):  If currently undefined,
14986         don't define it if the argument is an invalid expression.
14988         * Makefile: Ignore return value of `if' commands without `else'
14989         parts.
14991         * Makefile: Split up CPPDEFINES into a series of separate
14992         configuration options.
14994         * troff/input.c (init_registers): Use time_t instead of long
14995         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14996         than passing pointer.
14997         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14999         * lib/Makefile (fontpath.h): Use gendef.
15001 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15003         * troff/input.c (input_iterator::shift): Delete argument name.
15004         * troff/node.c (suppress_output_file::really_begin_page,
15005         suppress_output_file::really_transparent_char, node::ascii_print,
15006         node::tprint): Delete names of unused arguments.
15008 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15010         * refer/label.y (string):  Pass $4 to command_error.
15012 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15014         * Version 1.03 released.
15016 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15018         * Makefile: Pass definition of SHELL in SUBFLAGS.
15020         * gendef: New file.
15021         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15022         ps/Makefile: Use gendef to construct header files that are
15023         constructed from the Makefile.
15025         * macros/Makefile: make all should build stripped version of tmac.e.
15027         * refer/Makefile (clean): Remove y.output.
15029 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15031         * ps/pfbtops.c (main): Add -v option which prints out a version
15032         number.
15033         * ps/Makefile (pfbtops): Link with libgroff.a.
15035 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15037         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15038         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15040         * refer/lkbib.c (main): Always terminate reference with blank
15041         line.
15042         * refer/lookbib.c (main): Likewise.
15044         * refer/linear.c (file_buffer::load): Check that the file is not a
15045         binary file.
15047         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15048         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15049         Delete second inclusion of <sys/param.h>.
15051 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15053         * troff/token.h (token::special): Deleted.
15055         * tbl/main.c (process_format): Rework so that opt->tab_char is
15056         recognized only when appropriate.
15058         * ps/Makefile (clean): Remove pfbtops.
15060 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15062         * lib/font.c (text_file::next): Don't return if we have got a
15063         blank line.
15065 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15067         * refer/refer.c (store_reference): Get hash code from old_table[i]
15068         when rehashing the table.
15070 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15072         * eqn/box.c (box::top_level): Save size and prev size using \R and
15073         restore it afterwards. Set the size to the size at the beginning
15074         of the line.
15075         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15076         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15078         * refer/Makefile (limits.h): Use ./genlimits.
15080 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15082         * refer/index.c: Delete declarations of stat() and fstat().
15084 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15086         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15088 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15090         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15092 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15094         * troff/input.c (token::get_char): Handle \e.
15096         * refer/linear.c: Delete declarations of fstat() and stat().
15098 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15100         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15101         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15103 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15105         * troff/input.c (do_define_macro): Improve error handling for end
15106         of file while defining macro.
15108 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15110         * eqn/box.h: Fix declaration of set_gsize.
15111         * eqn/box.c (set_gsize): Make argument const char *.
15112         (gsize): Declare as char *.
15113         * eqn/main.c (main): Don't convert gsize to int.
15114         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15116         * Version 1.02 released.
15118 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15120         * macros/tmac.andoc: New file.
15121         * macros/Makefile: Install tmac.andoc.
15123         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15124         operator new and delete on OP_DELETE_BROKEN not being defined.
15125         * Makefile: Mention OP_DELETE_BROKEN.
15127 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15129         * Makefile (bindist): Pass SUBFLAGS.
15131 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15133         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15135         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15136         parameter.
15138         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15140         * ps/ps.h, ps/psrm.c: Make comment_table and
15141         header_comment_table local to resource_manager::process_file.
15143         * groff.sh: With -TXps pass -printCommand option to gxditview.
15145         * groff.c (possible_command::print): Implement using
15146         append_arg_to_string.
15148         * xditview: Merge in new implementation with own ChangeLog.
15150 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15152         * groff.c (main): Implement PRINT_OPTION.
15153         (append_arg_to_string): New command.
15154         (device_table): Set PRINT_OPTION flag for Xps.
15156 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15158         * troff/groff.h: Rename to troff.h.
15160         * pic/lex.c (lookup_keyword, docmp): New functions.
15161         (get_token): Use new lookup_keyword.
15162         Don't include key.h.
15163         * pic/key.[ch], pic/pic.gperf: Deleted.
15164         * pic/Makefile: Remove gperf stuff.
15166         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15167         into output.h.
15168         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15170         * troff/Makefile, troff/node.c: Move definition of
15171         STORE_WIDTH into node.c.
15173         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15175 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15177         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15178         dvi/devdvi/texb.map: Add lq and rq.
15179         dvi/devdvi: Regenerate fonts.
15180         * ps/devps/textmap: Add lq and rq.
15181         * ps/devps: Regenerate fonts.
15182         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15183         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15185         * pic/object.c (position_rectangle): When checking radius
15186         cope with possiblity that width or height is negative.
15187         (box_object::box_object): Have separate xrad and yrad with
15188         signs matching signs of dim components.
15189         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15190         (box_object::print): With rounded boxes use absolute values
15191         for dim and rad arguments.
15193         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15194         in fontpath.h.
15196         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15198         * various files: Add explicit destructors to keep Saber CC +d
15199         happy.
15201 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15203         * eqn/box.c (box::top_level): Restore fonts correctly after
15204         font changes in line containing inline equation.  Also
15205         restore previous font as well as current font.
15206         * eqn/pbox.h: Define necessary string and register names.
15208         * troff/input.c (token::next): Case 'R' calls do_register.
15209         (do_register): New function.
15211 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15213         * groff.c, groff.sh: Support Xps device.  Allow each device
15214         to have a pseudo_name and a real_name.
15216         * groff.c (run_commands): Don't print `Broken pipe' messages.
15218         * ps/pfbtops.c: New file.
15219         * ps/Makefile: Add pfbtops.
15221         * troff/number.c (parse_term): Improved error message.
15223 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15225         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15227         * Makefile: Integrate refer.
15228         * refer: New directory.
15229         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15230         man/lkbib.man: New files.
15231         * man/Makefile: Support refer man pages.
15233         * lib/lib.h: Declare is_prime.
15234         * lib/prime.c: New file.
15236         * troff/input.c (macro_source): New function.
15237         (init_input_requests): Bind "mso" to macro_source.
15239         * troff/env.c (environment::possibly_break_line): Maintain
15240         pointer to pointer to node to be split in ndp so as to avoid
15241         using address of freed node.
15243         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15244         pointer to first node to be hyphenated in startp so as to
15245         avoid using address of freed node.
15247         * troff/env.c (class trie, class hyphen_trie): Make the
15248         elements of the trie be of type char not unsigned char.
15249         Declare arguments to be const char* instead of unsigned char *.
15250         
15251         * troff/env.c (hyphenate): Initialize hbuf[0].
15253         * troff/input.c (set_string): Declare p to be char * and cast
15254         *p to unsigned char when necessary.
15256         * troff/input.c (do_define_macro): Declare s to be const
15257         char*. Cast element to unisgned char when necessary, Declare
15258         d to be an int.  Handle EOF better.
15260         * troff/Makefile, troff/input.c: Different scheme for passing
15261         definitions of MACROPATH, HYPHENFILE and DEVICE.
15263 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15265         * tty/devascii/R.proto: Delete entry for em.
15266         * tty/devlatin1/R.proto: Likewise.
15268 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15270         * troff/input.c (translate): Stop when we get a space. Treat eof
15271         like newline.
15273         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15275 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15277         * tbl/main.c (process_format): A font name following a `f'
15278         modifier that starts with a digit can be only one character long.
15279         Also deal with EOF on the second character of the font name.
15281 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15283         * troff/input.c (token::next): Turn \~ into an
15284         unbreakable_space_node.
15285         * troff/node.c (unbreakable_space_node): New class.
15286         * troff/node.h: Declare it.
15288 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15290         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15291         it's >= 0, before outputting it as a single byte.
15293 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15295         * lib/font.c: Make font_char_metric::code an int.
15296         (font::get_code): Change return type to int.
15297         (font::load): Allow code to be arbitrary integer.
15298         * lib/font.h (font::get_code): Change return type to int.
15299         (font::number_to_index): Change argument type to int.
15300         * troff/input.c (token::next):  In case 'N', allow any value.
15301         Store value in token::val.
15302         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15303         (token::get_char, token::add_to_node_list, token::process): Get
15304         number from val.
15305         (charinfo::set_number): Change argument to int.
15306         (charinfo::get_number):  Require that NUMBERED flag be set.
15307         (get_charinfo_by_number): Store numbered characters not between 0
15308         and 255 in a dictionary.
15309         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15310         to int.
15311         (charinfo::number): Change type to int.
15312         (charinfo::set_number): Change type of set_number to int.
15313         * troff/node.c (troff_output_file::put_char_width,
15314         troff_output_file::put_char): Test whether character is numbered
15315         using charinfo::numbered().
15316         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15317         values of num.
15318         * lib/nametoindex.c: New implementation to cope with arbitrary
15319         number characters.
15321         * troff/input.c (token::operator==): Test val for
15322         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15323         TOKEN_SIZE.
15325         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15326         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15328 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15330         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15331         variable.
15333         * all Makefiles: rm targets of cp and >.
15335         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15336         it.
15338         * eqn/lex.c (def_table): Add dollar.
15340 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15342         * troff/input.c (do_width): Push back newline before closing delim
15343         like do_bracket.
15345 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15347         * groff.c (possible_command::prepend_arg): New function.
15348         (main): Prepend device -m option.
15349         * groff.sh: Put device -m options before command-line options.
15351 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15353         * macros/tmac.an (IP): Quote argument to TP.
15355         * ps/ps.c (main): New option -b, which sets...
15356         (broken_flags): New variable.
15357         (ps_printer::~ps_printer): Incorporate the setup section in the
15358         prolog if (broken_flags & NO_SETUP_SECTION).
15359         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15360         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15361         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15362         ps_printer::print_needed_font_comment,
15363         ps_printer::print_supplied_font_comment,
15364         ps_printer::print_include_font_comments,
15365         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15366         ps_printer::read_download_file, read_document_fonts, add_font,
15367         skip_line, parse_fonts_arg, document_font::document_font,
15368         document_font::~document_font, document_font::download,
15369         ps_output::include_file):  Deleted.
15370         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15371         rather than %!PS-Adobe-2.0.  Make calls to
15372         resource_manager::need_font for each font that we used. Replace
15373         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15374         print_supplied_font_comment, print_needed_font_comment by call to
15375         resource_manager::print_header_comments. Output %%Orientation
15376         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15377         Don't output the prolog directly.  Instead call
15378         resource_manager::output_prolog.  Only define #copies when ncopies
15379         > 1.  Delete calls to print_include_font_comments  and
15380         download_fonts.  Add call to resource_manager::document_setup.
15381         (ps_printer::do_file): Call resource_manager::import_file instead
15382         of including it ourselves.
15383         (ps_printer::do_import): Likewise.  Also don't call
15384         merge_import_fonts. Push userdict on the dictionary stack before
15385         and pop it afterwards.
15386         Move declaration of ps_output into ps.h.
15387         * ps/psrm.c: New file implementing resource_manager class.
15388         * ps/ps.h: New file declaring ps_output and resource_manager
15389         classes.
15390         * ps/devps/zapfdr.ps:
15391         * ps/devps/symbolsl.ps:
15392         * ps/devps/prologue:  Use 3.0 conventions.
15393         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15394         Add default definition of BROKEN_SPOOLER_FLAGS.
15395         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15396         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15398 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15400         * etc/grog.pl: New file.
15401         * Makefile (GROG): New variable.
15402         Add GROG to SUBFLAGS.
15403         * etc/Makefile (GROG): New variable.
15404         (install.nobin): Install $(GROG) rather than grog.sh.
15406 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15408         * eqn/special.c (special_box::compute_metrics): Make the input and
15409         output strings the same.  Get the new height and depth from the
15410         predefined height and depth registers.  Also make subscript kern
15411         and skew available.
15412         (special_box::compute_subscript_kern, special_box::compute_skew):
15413         New functions.
15415         * eqn/box.c (pointer_box::compute_skew,
15416         simple_box::compute_metrics, box::top_level)
15417         * eqn/text.c (prime_box::compute_metrics,
15418         prime_box::comput_subscript_kern)
15419         * eqn/limit.c (limit_box::compute_metrics):
15420         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15421         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15422         negative numbers in `nr' requests with a leading 0.
15424 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15426         * eqn/special.c: New file.
15427         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15428         Add new rule for simple.
15429         * eqn/lex.c (token_table): Add SPECIAL.
15430         * eqn/box.h: Declare make_special_box.
15431         * eqn/Makefile: Add special.[co].
15433 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15435         * ps/devps/prologue: Possibly set packing to true while defining.
15436         Create grops dictionary here.  Initialize local variables before
15437         defining procedures.
15438         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15439         the dictionary stack. Set strokeadjust and overprint to false if
15440         the relevant operators are defined.
15441         (PEND): New procedure.
15442         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15443         prologue.  Do everything else in the setup section.
15444         (ps_printer::do_import): Just call PBEGIN and PEND around the
15445         picture. Also push userdict before, and pop it afterwards.
15447 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15449         * troff/node.c (bracket_node::tprint): Brackets were being printed
15450         1m too low.
15452         * macros/tmac.an (SH, SS): Set fill mode.
15454 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15456         * troff/div.c (top_level_diversion::begin_page): Set
15457         high_water_mark to 0.
15459 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15461         * man/mdate.sh: New file.
15462         * man/mdate.c: Deleted.
15463         * man/Makefile: Use mdate.sh instead of mdate.
15464         (mdate): Deleted.
15466         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15468 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15470         * man/mdate.c: New file.
15471         * man/*.man: Replace modification date by @MDATE@.
15472         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15473         (mdate): New target.
15475         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15476         Remove illegal input characters.
15478 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15480         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15482 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15484         * troff/div.c (begin_page): Change behaviour when
15485         !first_page_begun and !break_flag.
15487         * troff/input.c (do_name_test): Return 0 if argument is empty.
15489         * troff/input.c (read_long_escape_name): Require closing ] to be
15490         at same input level as opening [.
15492         * troff/input.c (read_increment_and_escape_name): New function.
15493         (get_copy, process_input_stack): Use this for \n.
15495 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15497         * troff/div.c (top_level_diversion::begin_page): Ignore the
15498         current value of page_number if !first_page_begun.
15500         * groff.c (main): Fix declaration of buf.
15502         * troff/input.c (do_name_test): New function.
15503         (token::next): Implement \A.
15504         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15505         (token::description, token::add_to_node_list, token::process):
15506         Handle TOKEN_ESCAPE.
15507         * troff/token.h: New token TOKEN_ESCAPE.
15509 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15511         * pic/main.c (do_picture): Allow space before and after filename
15512         following `<'.  Check that the filename is not empty.
15514 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15516         * Version 1.01 released. 
15518         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15520         * dvi/tmac.dvi: ftr HR to H.
15522         * macros/tmac.e: Round up computation of $r.
15524         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15525         Use \n(.s instead of \n[.s].
15527         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15528         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15529         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15530         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15531         short names in the char definitions.
15533         * ps/tmac.ps: Don't give up completely in compatibility mode.
15534         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15535         quote in front of \n(.s. Add u to factors inside \s[...].
15537 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15539         * tty/tmac.tty: Call the nroff request.
15541         * macros/tmac.e ((x, )x):  Better definitions that work properly
15542         in a diversion.
15543         (@0, @1): Helper macros for (x.
15545         * macros/tmac.e ($s, hl): Use \l rather than \D.
15547         * tty/tmac.tty: Make it work better in compatibility mode.
15548         (pchar): Rename to tty-char.
15550         * macros/tmac.e (@E): New macro.
15551         (r, i, b, rb, bi): Use @E.
15553         * macros/tmac.e (@F): Don't use (;...) syntax.
15555         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15556         it was modified for groff.
15558         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15560         * macros/tmac.e (<., .>): Removed.
15561         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15563         * macros/tmac.e: Remove check that groff is being used.
15565         * macros/tmac.e (@C): Change families only if using groff; turn
15566         compatibility mode off while changing familes. Save compatibility
15567         mode before changing families and restore it afterwards.
15569         * macros/tmac.e (@h): Remove test for offset + line length.
15571         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15572         (lo, th, ac): Define to call @S instead of using als.
15574         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15575         the ratio of the vertical spacing to the point size in units
15576         expressed as a percentage.  Use these instead of $10r and $10R,
15577         Delete $10r and $10R.
15579         * lib/font.c (font::load): In default computation of space_width,
15580         divide by sizescale.  Use scale_round.
15582         * macros/tmac.an (TP): Don't call `nf'.
15583         (an-do-tag): Don't call `fi'.
15585 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15587         * troff/input.c (process_input_stack): Handle the case where
15588         spaces at the beginning of an input line are followed by a
15589         newline.
15591 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15593         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15594         * groff.sh: Use pic -x with the dvi device.
15596         * dvi/devdvi/FontMakefile (H): Don't use -s.
15598         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15599         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15600         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15601         in FONTS.
15603 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15605         * ps/psfig.diff: New file.
15606         * ps/tmac.psfig: New file.
15608 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15610         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15611         (]-): Don't call ref*do-tl.
15613         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15615         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15616         (fn@do-FS): Rename to fn*do-FS.
15618         * troff/input.c (transparent_translate): New function.
15619         (process_input_stack): Apply transparent_translate before calling
15620         diversion::transparent_output(unsigned char).
15622 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15624         * troff/input.c (do_define_macro): Define the macro before calling
15625         skip_line.
15627         * xditview/Makefile: Add DEVICES variable.  Change install target
15628         to use this.
15630 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15632         * groff.c (run_commands): Handle the possibility that there are
15633         child processes other than those forked by us.
15635 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15637         * lib/string.c (string::append): New function.
15638         * lib/stringclass.h: Declare it.
15640 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15642         * eqn/main.c (main): New option -N which sets
15643         no_newline_in_delim_flag. 
15644         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15645         in delimiters.
15646         * groff.c (main): Pass -N on to eqn.
15647         (help, synopsis): Mention -N.
15648         * groff.sh: Implement -N.
15650 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15652         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15653         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15654         (XP): Allow as initializer.
15656 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15658         * troff/env.c (environment::wrap_up_field): If field_spaces are
15659         non-zero and we have a current_tab, subtract padding from
15660         tab_distance.  If this makes tab_distance <= 0, use the next tab
15661         stop instead.  If there isn't any next tab or it's a left tab,
15662         wrap up the current tab.
15663         (environment::start_field): Initialize tab_precedes_field.
15664         (environment::wrap_up_tab): If there's a current field, update
15665         pre_field_width, field_distance and tab_precedes_field.
15666         * troff/env.h (environment::tab_precedes_field): New member.
15668 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15670         * ps/ps.c (ps_printer::do_file): New function.
15671         (ps_printer::special): Bind to `file' special.
15672         (ps_printer::do_exec): Set ndefined_styles to 0.
15674 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15676         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15677         Avoid stripping first character from the start of unrecognized
15678         escapes.  Use lex_error instead of error to report errors.
15679         * eqn/lex.c (get_token): Rework handling of escapes.
15680         (lex_error): Move declaration into...
15681         * eqn/eqn.h.
15683         * xditview/xditview.c (main): Make -page option work.
15685         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15687 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15689         * macros/tmac.s (B2): Correct size of box.
15691 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15693         * macros/tmac.s (B2): Postpone drawing the box until in the
15694         top-level diversion.
15696         * tty/tmac.tty: Add font translations for C, CR, CW.
15698         * groff.c (synopsis, help): Document -i.
15699         * groff.sh: Implement -i.
15701         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15702         Simplify the construction of SN.
15704         * troff/number.c (parse_term): Give `|' a higher precedence.
15705         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15706         accordingly.
15708         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15710 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15712         * lib/string.c (string::move): New function.
15713         * lib/stringclass.h: Declare it.
15715 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15717         * troff/env.c (distribute_space): Add optional argument
15718         `force_forward'.
15719         (environment::wrap_up_field): Call distribute_space with
15720         `force_forward' argument of 1.
15722 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15724         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15725         Inline it.  Move reallocation into...
15726         (string::grow1): New function.
15727         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15728         dependencies to include library header files.
15729         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15731 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15733         * macros/tmac.s (@NH): Use the same number registers than -ms does
15734         for the heading level counters.  Use the same string that -ms does
15735         for the number for this heading.
15737 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15739         * lib/new.c (operator new): Cast result of malloc to char *.
15741         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15742         is not null.
15744 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15746         * groff.c (main): Support -i.
15748 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15750         * pic/pic.h: Include <osfcn.h>.
15752         * ps/ps.c: Add declaration of mktemp.
15754         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15755         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15756         argument as union wait *.
15757         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15758         argument to union wait *.
15760 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15762         * tty/tmac.tty: Add definition of \(co.
15764         * pic/object.c (make_arc): Only increase radius when radius
15765         strictly less than d.
15766         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15767         more than once.
15769         * troff/env.c (environment::environment(symbol),
15770         environment::environment(const environment *)):  Initialize
15771         input_trap_count.
15773 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15775         * tbl/main.c (main): Add exit(0).
15777         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15779         * pic/main.c (main):
15780         * eqn/main.c (main):
15781         * tbl/main.c (main):
15782         * etc/soelim.c (main):
15783         * driver/printer.c (printer::~printer):
15784         * troff/node.c (real_output_file::~real_output_file,
15785         real_output_file::flush):  Check for errors on stdout.
15787         * most files: Add 1991 to copyright notice.
15789         * macros/tmac.s: Don't test \n(.x and \n(.y.
15791         * troff/input.c (token::next): Rename `escape_char' label to
15792         `handle_escape_char' and `normal_char' label to
15793         `handle_normal_char'.
15795 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15797         * groff.c (main, synopsis, help): Support -a option.
15798         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15799         to trflags while parsing options.
15801 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15803         * troff/number.c (parse_term): With `m', `M' and `n' scale
15804         indicators, convert scale factor to hunits before scaling.
15806 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15808         * lib/font.c (scale_round): Better test for overflow when n is
15809         negative.
15811 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15813         * tbl/main.c (process_format): Add second argument of type
15814         options*. Change callers.  Allow opt->tab_char as well as '\t'
15815         between format items.
15817 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15819         * macros/tmac.an (PD): With no arguments, make sure register PD is
15820         at least \n[.V].
15821         (TH): Call PD with no argument, instead of setting register PD
15822         directly.
15824 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15826         * Version 1.00 released.
15828 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15830         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15832         * dvi/devdvi/DESC: Mount CW instead of CR.
15834         * dvi/tmac.dvi: Add definition of \(tm.
15836         * dvi/devdvi/texsy.map: Add lh, and rh.
15837         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15838         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15840         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15841         * dvi/devdvi/Makefile: Install H.
15842         * dvi/devdvi/H: New file.
15844 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15846         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15847         be 0.
15849 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15851         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15853         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15855         * macros/tmac.s (@EN): Handle the case where the equation is empty
15856         but the label is not.
15858 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15860         * troff/groff.h: New warning category WARN_SPACE.
15861         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15862         WARN_SPACE to warning_table.
15863         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15864         is longer than two characters and is not defined, but the first
15865         two characters do make a defined name.
15867         * PROBLEMS: New file.
15869         * CHANGES: New file.
15870         * README-0.6, README-1.00: Deleted.
15872         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15873         * xditview/devX75/Makefile: Make devX75-12.
15874         * xditview/devX100/Makefile: Make devX100-12.
15876         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15877         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15879 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15881         * README-0.7: Rename to README-1.00.
15883         * macros/tmac.pic: New file.
15884         * macros/Makefile (install.nobin): Install tmac.pic.
15886 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15888         * troff/env.c (hyphen_word): Correct the test for whether the
15889         token is a hyphen.  Reset npos to 0.
15891         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15893 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15895         * macros/tmac.s (ds*common-end): Call par*reset.
15896         (PE): Likewise.
15897         (par@reset-indent): Deleted.
15899         * macros/tmac.s (@IP): Divert the label.
15901 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15903         * xditview/draw.c (setGC): Use a line width of .1m rather than
15904         .04m by default; round rather than truncate value.
15906         * tbl/table.c (class empty_entry): New class.
15907         (empty_entry::empty_entry, empty_entry::line_type): New functions.
15908         (table::add_entry): Represent empty entries by objects of type
15909         empty_entry.
15910         (table_entry::line_type): Return -1.
15911         (table::determine_row_type): Ignore entries with line_type 0.
15912         Treat type -1 as non-lines.
15914 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
15916         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15917         macros/tmac.s: Rename \(-d to \(Sd.
15919 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
15921         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15922         * xditview/libXdvi/DviChar.c: Likewise.
15923         * dvi/devdvi/texsy.map: Add `<<', `>>'.
15925 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
15927         * troff/div.c (top_level_diversion::begin_page): Call
15928         init_output() if the_output is 0.
15930 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
15932         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15933         ESCAPE_c.
15934         (get_copy): Turn \E into ESCAPE_E.
15935         (token::process, asciify): Handle ESCAPE_E.
15937         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15938         (RD): New macro.
15939         (DS): Implement `.DS R'.
15941 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
15943         * macros/tmac.s (FS): New macro.
15945         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15947         * macros/tmac.s (cov*tl-init): Remove after first execution
15948         instead of aliasing to @nop.  Call top of page macro explicitly
15949         instead of setting trap; call @init first.  Set pg@top as top of
15950         page macro.
15951         (cov*auto-init): Deleted.  Set cov*tl-init instead of
15952         cov*auto-init as top of page trap. 
15953         (TL, LP): Do a break instead of calling cov*tl-init.
15954         (cov*print): With RP format but no TL, alias FS and FE to @FS and
15955         @FE; in this case also give a warning and always start another
15956         page. No need to set pg@top here.
15957         (cov*tl-init): Rename to cov*first-page-init.
15959         * macros/tmac.s (RP): Do `.pn 0'.
15960         (cov*tl-init): With RP format don't do `.pn 0'.
15962         * macros/tmac.s (pg@cs-top): Set no space mode.
15964         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15965         (cov*ab-init): Alias TL, AU and AI to these.
15967 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
15969         * macros/tmac.s (@EQ): Move the space before the equation into @EN
15970         (@EN): Do nothing unless \n[dl] is > 0.
15972 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
15974         * pic/object.c (ellipse_object::radius): New function.
15976         * VERSION: Change version to 0.7.
15978         * tbl/table.c (block_entry::do_divert): Declare return type as
15979         void.
15980         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15982 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15984         * troff/column.c: New file.
15985         * troff/Makefile: Corresponding changes.
15987         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15988         Friend of vunits.
15990         * troff/div.c (top_level_diversion::space): If the space causes
15991         the first-page transition and springs a trap, truncate the space
15992         to 0.
15994 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15996         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15997         the document.
15999         * pic/troff.c (troff_output::line_thickness,
16000         troff_output::set_fill): Do a horizontal motion to compensate for
16001         the width of the \D escape sequence.
16003 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16005         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16006         (not X75).
16008         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16009         to printf.
16011         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16012         Supply empty definition.
16013         (text_entry::simple_print, simple_text_entry::simple_print):
16014         Delete declarations.
16015         (table::add_entry): Represent empty entries by objects of type
16016         `simple_entry'.
16018 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16020         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16022         * tbl/table.c (left_text_entry::add_tab): New function.
16024         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16025         initialize like LP.
16027 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16029         * troff/env.c (environment::start_field): Give an error message if
16030         there is no next tab.
16032 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16034         * troff/env.c (hyphenate): Skip initial elements with zero
16035         hyphenation code.
16037         * macros/tmac.s (par@init): Keep VS in points rather than units.
16039 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16041         * pic/main.c (main): Implement `-c' option.
16042         * pic/output.h: Declare make_tpic_output().
16043         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16044         protected.
16045         (tpic_output): New class.
16046         (tpic_output::tpic_output, tpic_output::set_pen_size,
16047         tpic_output::command, make_tpic_output): New functions.
16049 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16051         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16052         if they're not already defined.
16053         * tbl/table.c (init_output): Don't test \n(.g.
16055         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16056         `d', `r' and `c' conditions even in compatibility mode.
16058 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16060         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16061         box.
16063 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16065         * troff/env.h (environment::prev_line_interrupted): New member.
16066         (environment::get_prev_line_interrupted): New function.
16067         * troff/env.c (environment::newline): Set prev_line_interrupted.
16068         (environment::environment(const environment *),
16069         environment::environment(symbol)): Initialize
16070         prev_line_interrupted.
16071         * troff/input.c (process_input_stack): Don't give special
16072         treatment to space and newline at the beginning of the line if the
16073         previous line was interrupted.
16075 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16077         * eqn/eqn.y: Disallow PRIME by itself.
16078         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16079         PRIME.
16080         (def_table): Remove definition of '.  Define prime to be `.
16082         * eqn/eqn.y: Split off part of rule `script' into a new rule
16083         `nonsup'.
16085 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16087         * macros/tmac.s ({, }): New string aliases.
16089 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16091         * README-0.7: New file.
16093 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16095         * macros/tmac.s: New file.
16096         * man/groff_ms.man: New file.
16097         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16098         * Makefile.bd: Similarily.
16099         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16100         definition of TMAC_S.
16101         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16102         * macros/TODO: New file.
16104 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16106         * troff/env.c (right_justify): New function.
16107         (init_env_requests): Bind this to request "rj".
16108         (center_lines): Set right_justify_lines to 0. If we get a bad
16109         integer, center 1 line.
16110         (environment::environment(symbol), environment::environment(const
16111         environment *)): Initialize right_justify_lines.
16112         (environment::get_right_justify_lines): New function.
16113         (init_env_requests): Bind this to number_register ".rj".
16115         * troff/env.c (environment::choose_breakpoint): Implement
16116         hyphenation_margin and hyphenation_space.
16117         (environment::get_hyphenation_space,
16118         environment::get_hyphenation_margin): New functions.
16119         (init_env_requests): Bind these to .hys and .hym.
16120         (hyphenation_space_request, hyphenation_margin_request): New
16121         functions
16122         (init_env_requests): Bind these to hys and hym.
16123         (environment::environment(symbol), environment::environment(const
16124         environment *)): Initialize hyphenation_margin and
16125         hyphenation_space.
16126         * troff/env.h: Corresponding changes to class environment.
16128 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16130         * troff/div.c (blank_line): Always do a break.
16132         * eqn/box.c (do_text): Turn off escapes while appending text to
16133         string.
16135 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16137         * troff/input.c (while_break_request, while_continue_request): New
16138         functions.
16139         (init_input_requests): Bind these to "break" and "continue".
16140         (while_depth, while_break_flag): New variables.
16141         (while_request): Update while_depth.  Break out of loop if
16142         while_break_flag is set.
16144 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16146         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16147         rather than 0.
16149 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16151         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16153         * stringify: New file.
16154         * Makefile (groff.o): Use stringify.
16156         * xditview/tmac.X: Remove definition of \(rn.
16157         * xditview/libXdvi/DviChar.c: Remove radicalex from
16158         Adobe_symbol_map.
16160 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16162         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16163         (alphabetic_block_entry::alphabetic_block_entry,
16164         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16165         New functions.
16166         (block_entry::divert): Split off body into ...
16167         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16168         from the line length; also update the span width to dl+2n, and the
16169         alphabetic span width to dl.
16171         * driver/input.c (do_file):  While reading argument to D command,
16172         when expanding buffer, multiply szp by sizeof(int) rather than 2
16173         in the argument to memcpy.
16175         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16176         width of alphabetic columns.
16178 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16180         * troff/node.c (lookup_family): Supply second argument to lookup.
16182         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16183         search, return immediately if v is 0.
16185         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16186         (troff_output::start_picture): Set this reg.
16187         (troff_output::end_picture): Remove this reg
16188         * eqn/box.c (box::extra_space): Don't produce `\x's if
16189         EQN_NO_EXTRA_SPACE_REG is defined.
16191         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16192         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16193         character.
16195 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16197         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16198         requests.
16200         * troff/div.c (top_level_diversion::top_level_diversion):
16201         Initialize page_number to 0.
16203 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16205         * groff/troff (environment::environment(const environment *)):
16206         Initialize name to e->name, rather than "anonymous".
16208 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16210         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16211         requested_page.  Split middle part into ...
16212         (FindPage): New function.
16213         (SetValues): If we don't yet know the last page, and the requested
16214         page is greater than the current page, call FindPage.
16215         Update the font_map_string before doing this.
16217         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16218         Translate \(lh and \(rh into left and right double arrows.
16220         * troff/node.c (class hyphen_inhibitor_node): New class.
16221         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16222         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16223         hyphen_inhibitor_node::type,
16224         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16225         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16226         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16227         word.
16229 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16231         * troff/node.h (dummy_node::get_hyphenation_type,
16232         transparent_dummy_node::get_hyphenation_type):  Declare them.
16233         * troff/node.c: (dummy_node::get_hyphenation_type,
16234         transparent_dummy_node::get_hyphenation_type): New functions.
16236 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16238         * xditview/libXdvi/draw.c: If M_PI not defined after including
16239         math.h, then define it.
16241         * xditview/Makefile: Add definition of AR. Pass it to the submake
16242         in libXdvi.
16243         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16245 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16247         * troff/dictionary.h (object_dictionary::alias): Declare return
16248         value as int.
16249         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16250         if the old name was defined.
16251         * troff/input.c (alias_macro): Give a warning if the old name was
16252         not defined.
16253         * troff/reg.c (alias_reg): Likewise.
16255 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16257         * troff/input.c (token::next): Delete implementation of \R.
16259         * macros/Makefile: Strip comments from tmac.e while installing it.
16261         * troff/input.c: New variable `nroff_mode'.
16262         (troff_request, nroff_request): New functions.
16263         (init_input_requests): Bind `troff' and `nroff' to troff_request
16264         and nroff_request.
16265         (do_if_request): Compute results of t and n conditions from
16266         nroff_mode.
16268         * text/text.c (split_text): Fix typo in >=.
16270         * eqn/lex.c: Add definition of `==' to def_table.
16272 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16274         * pic/tex.c (tex_output::start_picture): Change the definitions of
16275         \graph and \graphtemp so that they work properly with Plain TeX.
16277         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16278         argument to `ar' is not less than the first.
16280         * pic/pic.y: Allow a comma between elements of the variable list
16281         in the argument to `reset'.
16283         * pic/object.c (arc_object::arc_object): Fix computation of
16284         radius.
16286         * eqn/main.c (main): Add exit(0).
16288 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16290         * troff/div.c (begin_page): Test no_space_mode after doing the
16291         break, but still push the page ejector cookie before doing the
16292         break.  Also set the next page number after doing the break.
16293         
16294         * xditview/xditview.c (NewFile): Don't set the title and icon name
16295         if this is the first file and its name is `-'.
16296         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16297         the X75 and X100 devices.
16298         (main): If a device has the XT_OPTION flag set and there's exactly
16299         one file argument, pass the driver -xrm and -title options to set
16300         the icon name and window title to the name of the file.
16302         * troff/env.c (environment_switch): If there was an argument but
16303         it wasn't a valid number or name, then pop an environment but
16304         don't give an error message on underflow.
16306         * troff/number.c (start_number): Correct spelling in error message.
16308         * troff/input.c (token::delimiter): Don't print an error message
16309         if err is false.
16311         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16312         ParseDrawFunction if dw->display_enable is true.
16314 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16316         * pic/pic.y: Parse text positioning like normal attributes, so as
16317         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16318         positioning attribute.
16320 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16322         * tbl/main.c (process_data): When in state START while reading a
16323         text block, don't change to state MIDDLE if c is a newline.
16325 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16327         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16328         so as to avoid shadowing parameter.
16330 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16332         * tbl/table.c (trim_space): Deleted.
16333         (table::add_entry): Don't call trim_space.
16335 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16337         * VERSION: Change version to 0.6.
16339         * troff/number.c (parse_expr): Make == work.
16341 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16343         * man/grog.man: New file.
16344         * man/Makefile: Add grog.n to MAN1PAGES.
16345         * etc/grog.sh: New file.
16346         * etc/Makefile: Install grog.sh as grog.
16348 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16350         * troff/input.c (token::next): Implement \E.
16352 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16354         * xditview/tmac.X: Change font translations to match tmac.ps.
16356         * troff/input.c (non_empty_name_warning): Don't give a warning if
16357         `\{' terminates the name.
16359 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16361         * ps/devps/symbol.diff: New file.
16362         * ps/devps/FontMakefile: Mention symbol.diff.
16364 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16366         * troff/node.c (font_position): Use get_long_name to read the
16367         external_name.
16369         * troff/env.c (environment_switch): If we get a number that's < 0
16370         or >= NENVIRONMENTS, treat it like a name.
16371         Change NENVIRONMENTS to 10.
16373         * troff/groff.h: Remove definition of FONTS_MAX.
16374         * troff/node.h (class font_family): Make map a pointer instead of
16375         an array. Add a map_size member. Make it a class. Make nm const
16376         and public. Make invalidate_fontno a friend.
16377         * troff/node.c: Define font_table_size. Make font_info a pointer
16378         rather than an array.
16379         (class troff_output_file): Allocate font_position dynamically. Add
16380         nfont_positions member.
16381         (troff_output_file::set_font): Grow font_position if necessary.
16382         (troff_output_file::~troff_output_file): Delete font_position.
16383         (troff_output_file::troff_output_file): Allocate font_position.
16384         (grow_font_table): New function.
16385         (troff_output_file::really_begin_page,
16386         troff_output_file:really_copy_page): Use nfont_positions rather
16387         than FONTS_MAX.
16388         (mount_font_no_translate, mount_style): Call grow_font_table if
16389         necessary.
16390         (font_family::font_family): Allocate map.
16391         (font_family::make_definite): Grow map if necessary. Use
16392         font_table_size instead of FONTS_MAX.
16393         (font_family::~font_family): New function.
16394         (invalidate_fontno): Use font_family::map_size.
16395         (get_fontno, env_space_width, env_half_narrow_space_width,
16396         env_narrow_space_width, symbol_fotno, is_good_fontno,
16397         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16398         FONTS_MAX.
16399         (next_available_font_position): Never return 0.
16401 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16403         * ps/tmac.ps: Add font translations for compatibility with dpost.
16405 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16407         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16408         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16409         Move definitions baseline_sep, shift_down, column_sep,
16410         matrix_side_sep into...
16411         * eqn/box.c: Add them to param_table.
16412         * eqn/pbox.h: Add declarations to pbox.h.
16414         * troff/input.c (set_string): Cast value to unsigned char *.
16416         * troff/token.h (process_input_stack): Declare it static before
16417         declaring it a friend.
16419 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16421         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16422         and bottom.
16423         * dvi/devdvi/EX: Regenerate.
16425         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16426         transparent.
16428 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16430         * eqn/lex.c: In defaults_table, make definition of `dot' call
16431         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16432         accents.
16434         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16435         argument.
16436         (for_input::get, for_input::peek): Use this.
16437         (do_for): Add by_is_multiplicative argument.
16438         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16439         Change semantic value of optional_by to be a double plus a flag
16440         saying whethet the by clause is multiplicative.
16442         * eqn/lex.c (get_delimited_text): Remember location of start of
16443         definition.  Improve error handling when EOF is encountered.
16445         * lib/font.h: Rename handle_x_command to
16446         handle_unknown_font_command.
16447         * lib/font.c (font::load): Call handle_unknown_font_command for
16448         any unknown command in the font description file.  Don't call
16449         handle_x_command. Include the name of the command in the argv.
16450         Improve message for unknown command after kernpairs or charset
16451         command.
16452         * ps/ps.c (ps_font::handle_x_command): Rename to
16453         handle_unknown_font_command.  Remove message about `x download'
16454         command.  Give error message for wrong number of arguments.
16455         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16456         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16457         handle_unknown_font_command. Give an error message for wrong
16458         number of arguments.  Rename design_size to designsize.
16459         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16460         checksum', `designsize' instead of `design_size'.
16462 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16464         * eqn/*.[chy]: Change underaccent to uaccent.
16466         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16467         give it the same precedence as ACCENT.
16468         * eqn/other.c (make_underaccent_box): New function.
16469         * eqn/box.h: Declare it.
16470         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16471         def_table.
16473 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16475         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16476         (parse_init): Call reset_all.
16477         (define_variable): When defining scale reset only those
16478         pre-defined variables that are scaled.
16479         (defaults_table): Add `scale' as non-scaled value.
16481         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16482         together with the text; allow any number of positioning words;
16483         allow center as a positioning word.
16485         * pic/object.c (output::compute_scale): Get picture maximum height
16486         and width from variables called maxpswid and maxpsht.
16487         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16489 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16491         * pic/object.c (object_spec::make_text): Multiply textht by number
16492         of text items.
16494         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16495         occur.
16496         (do_sprintf): New function.
16497         (pic.gperf): Add sprintf token.
16498         (text, sprintf): New rules.
16500         * pic/pic.y: `rand()' with no arguments returns a random number
16501         in the range [0,1).
16503         * pic/pic.y: Allow a bare expression to be an attribute: change
16504         precedences to support this.  Change optional_ordinal rule to
16505         optional_ordinal_last to avoid reduce/reduce conflict.
16506         * pic/object.c (object_spec::object_spec): Initialize direction.
16508         * pic/pic.y: Implement ^ operator meaning exponentiation.
16510         * troff/node.h: Add default argument to mount_font.
16511         * troff/node.c (font_position): Read an optional third argument
16512         giving the external_name.
16513         (mount_font): Add optional argument giving the external_name.
16514         (mount_font_not_translate): Have additional argument giving
16515         external name.  Use this name to load the font.  Pass both names
16516         to font_info::font_info.
16517         (font_info::font_info): Have additional argument giving
16518         external_name.
16519         (class tfont): New member external_name.
16520         (font_info::get_tfont): Use external name to construct tfont_spec.
16522 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16524         * eqn/lex.c (init_table): Add argument giving device.  Define
16525         name of device to be "1".
16526         (do_ifdef): Counts as true if the argument has been defined with
16527         `define'.
16528         * eqn/main.c (main): Call init_table with device argument. Make
16529         device local to main.
16530         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16531         of device.
16533         * pic/lex.c (get_delimited): Allow text to be delimited by
16534         matching {}s.  Don't recognize ending delimiter within a string.
16536         * troff/input.c (get_delim_name): New function.
16537         (token::next): Implement \C.
16539         * lib/font.c (font::load): Grok ---.  Add an alias for each
16540         character based on its code.
16541         (font::get_code_width): Deleted.
16542         * lib/font.h (class font): Declare font::number_to_index().
16543         Remove declaration of font::get_code_width.
16544         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16545         to indices of named characters.
16546         (font::number_to_index): New function.
16547         * troff/input.c (font::number_to_index): New function.
16548         (get_charinfo_by_number, charinfo::get_number,
16549         charinfo::set_number): New functions.
16550         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16551         (token::process, token::description, token::get_char,
16552         token::add_to_node_list, token::operator==): Handle
16553         TOKEN_NUMBERED_CHAR.
16554         * troff/charinfo.h: Declare get_charinfo_by_number,
16555         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16556         charinfo class.
16557         (charinfo::numbered): New function.
16558         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16559         * troff/env.h (class environment): Remove declaration of ...
16560         * troff/env.c (environment::make_numbered_char_node): Deleted.
16561         * troff/node.c (make_numbered_node): Deleted.
16562         (class numbered_glyph_node): Remove.
16563         (troff_output_file::put_char_width, troff_output_file::put_char):
16564         Handle numbered chars.
16565         (troff_output_file::numbered_char): Removed.
16566         (tfont::get_code_width): Removed.
16567         (make_glyph_node): Don't search special fonts for numbered
16568         characters.
16569         * troff/node.h: Remove declaration of make_numbered_node.
16570         * driver/input.c (do_file): Handle N command.
16571         * driver/printer.h: Add declaration of ...
16572         * driver/printer.c (printer::set_numbered_char): New function.
16573         * dvi/tfmtodit.c (main): Generate unnamed entries.
16574         * ps/devps/afmtodit: Likewise.
16575         * xditview/xtotroff.c (MapFont): Likewise.
16576         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16578         * tbl/main.c (process_format): If multiple widths are specified
16579         for a column but all the widths are the same, don't give an error
16580         message.
16582         * tbl/table.c (table::do_row): If the current row is all lines and
16583         the stuff doesn't contains a line, mark the top of the row after
16584         printing stuff before the row.  If the current row is not all
16585         lines and the stuff doesn't contain a line, don't unnecessarily
16586         mark the top of the row before printing the stuff.
16587         
16588 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16590         * troff/groff.h: Remove MAX_PATH.
16591         * troff/input.c (open_file): Dynamically allocate space for the
16592         path.
16593         (open_mac_file, process_macro_file): Corresponding changes.
16595 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16597         * troff/node.h (class output_file): Make copy_file pure.  Add
16598         vspace method ifdef COLUMN. Add is_printing method.
16599         * troff/node.c: Add class printing_reg. Add class
16600         real_output_file. Derive other output_file classes from
16601         real_output_file; in these classes rename begin_page to
16602         really_begin_page, print_line to really_print_line, copy_file to
16603         really_copy_file, transparent_char to really_transparent_char.
16604         Move output_file::flush to real_output_file. Add printing member
16605         to class output_file.
16606         * troff/div.h: Remove printing member from top_level_diversion.
16607         Add vspace member function to class diversion ifdef COLUMN. Add
16608         some declarations ifdef COLUMN.
16609         * troff/div.c (top_level_diversion::copy_file,
16610         top_level_diversion::transparent_output,
16611         top_level_diversion::output): Don't test printing member before
16612         output.
16613         * troff/input.c: Handle initial variable_space_request ifdef
16614         COLUMN.
16615         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16616         but comment it out.
16618 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16620         * troff/div.c (diversion::need): Make any space forced.  If we
16621         sprung a trap, set truncated_space to minus the distance to the
16622         trap and set needed_space to the amount that was needed.
16623         (top_level_diversion::space): A forced space turns no_space_mode
16624         off.
16625         (class constant_vunits_reg): New class.
16626         (init_div_requests): Implement number registers .trunc and .ne
16627         using constant_vunits_reg.
16628         (class truncated_space_reg): Deleted.   
16630         * troff/div.h: Don't have a no_space_mode member in diversion.
16631         Instead have it in top_level_diversion.
16632         * troff/div.c (diversion::diversion): Don't initialize
16633         no_space_mode.
16634         (top_level_diversion::top_level_diversion): Initialize
16635         no_space_mode.
16636         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16637         (macro_diversion::output): Don't clear no_space_mode.
16639         * troff/input.c (diverted_space_node::reread): Don't call
16640         environment::do_break.  In fill mode, act like a blank line.
16641         (diverted_copy_file_node::reread): Don't call
16642         environment::do_break.
16644         * troff/div.c (blank_line): New function.
16645         * troff/div.h: Declare it.
16646         * troff/input.c (process_input_stack): Call it.
16648         * troff/div.c (truncated_space_reg::get_string): New function.
16649         (init_div_requests): Bind to .trunc.
16650         (space_request, top_level_diversion::space,
16651         top_level_diversion::output, macro_diversion::space,
16652         macro_diversion::output): Update truncated_space.
16653         (macro_diversion::output): Redo calculations when trap sprung.
16654         (macro_diversion::output, macro_diversion::space): No need for
16655         trap_flag.
16657         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16658         after truncating post line spacing.
16660 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16662         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16663         defined as a procedure rather than as an operator.
16665 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16667         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16669 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16671         * troff/div.c (top_level_diversion::output): Merge
16672         output_file::print_line and output_file::end_of_line member
16673         functions.
16674         * troff/div.h (class output_file):
16675         * troff/node.c (troff_output_file::print_line,
16676         troff_output_file::end_of_line, output_file::end_of_line,
16677         ascii_output_file::print_line, suppress_output_file::print_line):
16678         Corresponding changes.  
16680 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16682         * troff/input.c (token::next): Don't give a warning for `\.'.
16684         * troff/env.c (environment::get_center_lines): New function.
16685         (init_env_requests): Bind number register .ce to it.
16686         * troff/env.h: Declare it.
16687         * tbl/table.c (table::init_output): Define reset macro to restore
16688         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16689         Then do .ce 0.
16690         (table::print): If center option not given, then imply center
16691         option if SAVED_CENTER_REG > 0.
16693 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16695         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16696         Troff.ps from DOWNLOAD.
16697         
16698         * troff/Makefile: Change comment in DEFINES to avoid confusing
16699         System V make.
16701         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16702         code.  Don't try to catch errors with stopped.
16703         (check_line_lengths): New function.
16704         * ps/devps/prologue (EXEC): Deleted.
16705         (EBEGIN, EEND): New procedures.
16707 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16709         * troff/input.c: Include request.h before node.h.
16710         * troff/node.c: Likewise.
16711         * troff/env.c: Likewise.
16712         * troff/div.c: Likewise.
16713         * troff/node.h (class special_node): Store argument as a macro
16714         rather than a char *.
16715         * troff/node.c (special_node::special_node, special_node::copy):
16716         Grok this.
16717         (special_node::~special_node): Deleted.
16718         (special_node::tprint): Deleted.
16719         (special_node::tprint_start, special_node::tprint_end,
16720         special_node::tprint_char): New functions.
16721         (troff_output_file::special): Deleted.
16722         (troff_output_file::start_special, troff_output_file::end_special,
16723         troff_output_file::special_char): New functions.
16724         * troff/input.c (special_node::tprint): New function.
16725         (do_special): Use macro not char *.
16726         (do_transparent_macro): Deleted.
16727         (token::next): Don't call do_transparent_macro.
16729         * troff/input.c (token::next): Add 'Y' case.
16730         (do_transparent_macro): New function.
16731         * troff/node.c (troff_output_file::special): Handle newlines with
16732         argument using new continuation convention.
16733         * driver/input.c (get_string): Cope with continuation convention.
16734         (do_file): Don't call skip_line after calling get_string(1).
16735         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16736         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16737         arg.
16738         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16739         with +.
16741 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16743         * troff/input.c (asciify): By default, illegal input characters
16744         should return empty string.
16746         * troff/input.c (copy_file): Handle first page transition like title.
16747         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16749         * troff/input.c (token::next): Improve error message for EOF after
16750         escape character.
16751         (input_char_description): New function.
16752         (get_char_for_escape_name): Use input_char_description.
16753         (token::next): Warn about unrecognized escape sequences.
16754         (warning_table): Add WARN_ESCAPE.
16755         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16756         accordingly.
16758         * troff/token.h: Remove declaration of process_input_stack.
16760         * troff/input.c: Remove declaration of init_hyphen_requests.
16761         * troff/request.h: Correct spelling in declaration of same.
16763         * troff/input.c (token::next): Check whether escape_char is 0.
16765 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16767         * groff.c (main, usage, help): Implement -P and -L options.
16768         * groff.sh: Likewise.
16770         * troff/input.c (token::next): Use some gotos to avoid code
16771         duplication.
16773         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16774         Avoid calling symbol::symbol if name empty.
16776 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16778         * troff/input.c (init_input_requests): Make \n(.x return the major
16779         version number and \n(.y return the minor version number.
16780         * troff/Makefile: Construct file majorminor.c defining
16781         major_version and minor_version automatically from ../VERSION.
16783         * troff/node.c (class glyph_node): Make operator new and operator
16784         delete public.
16785         (class ligature_node): Similarily.
16787         * troff/input.c (operator==(const macro &, const macro &)): New
16788         function.
16789         (non_interpreted_node::same): Use this.
16790         (string_iterator::string_iterator): Make macro& argument const.
16792         * troff/input.c (input_iterator::get): New function. Don't make
16793         asciify_macro or class non_interpreted_node friends of class
16794         input_iterator.
16795         (non_interpreted_node::interpret): Use input_iterator::get.
16796         (asciify_macro): Likewise.
16798         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16799         ~non_interpreted_node): Deleted.
16800         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16801         Deleted.
16803         * troff/symbol.h: Make all symbol member functions const.
16805         * lib/strtol.c: New file.
16806         * lib/Makefile: Add strtol.c.
16807         * Makefile: Define STRTOL as strtol.o to include strtol in
16808         libgroff.a.
16810 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16812         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16814 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16816         * troff/input.c (do_special): Use input_level.
16818         * troff/token.h (TOKEN_BACKSPACE): New token.
16819         (token::backspace): New function.
16820         * troff/input.c (token::description, token::next, token::process):
16821         Grok TOKEN_BACKSPACE.
16822         (do_special): Turn TOKEN_BACKSPACE back into \b.
16824         * troff/token.h (token::leader): New function.
16825         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16827         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16829         * troff/input.c (do_special): Use token::description in error
16830         message.
16832 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16834         * troff/input.c (decode_args): Combine quoted and
16835         quote_input_level variables. Make it a for (;;) loop.
16837         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16839         * troff/input.c (read_long_escape_name): The test for whether to
16840         expand buffer was off by 1.
16841         (read_string): Similarily.
16843 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16845         * troff/input.c: Use `const int' rather than `static const int'.
16847         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16848         (macro_diversion::copy_file): New function.
16849         * troff/node.h: New class diverted_copy_file_node.
16850         * troff/node.c: Implement it.
16851         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16852         first page transition by pushing a diverted_copy_file_node.
16853         * troff/input.c (token::next, process_input_stack): Don't handle
16854         COPY_FILE_REQUEST.
16856 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16858         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16859         whether space widths need adjusting.
16861         * troff/charinfo.h: Generalize translated_to_space to
16862         special_translation so as to allow translation to \&.
16863         * troff/input.c (translate): Allow translation to \&.
16864         (charinfo::*): Corresponding changes.
16865         * troff/node.c (make_node, node::add_char): Corresponding changes.
16866         * troff/node.h (dummy_node::dummy_node): Allow optional first
16867         argument.
16869         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16870         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16871         TOKEN_REQUEST.
16872         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16873         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16874         (token::process): Grok that.
16875         * troff/input.c (copy_file): Handle first page transition like
16876         title by pushing a COPY_FILE_REQUEST cookie.
16877         (token::next, process_input_stack): Grok that.
16878         * troff/node.h (output_file::copy_file): Add x and y arguments.
16879         Make it non-pure.
16880         * troff/div.c (top_level_diversion::copy_file): Supply them.
16881         * troff/node.c (troff_output_file::copy_file): Add x and y
16882         arguments; moveto specified position.  Invalidate font_position
16883         array after copying file.
16884         (output_file::copy_file): New function.
16885         (suppressed_output_file::copy_file, ascii_output::copy_file):
16886         Removed.
16887         * troff/input.c (transparent_file): New function.
16888         (init_input_requests): Bind to "trf".
16889         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16890         (process_input_stack): Likewise.
16892         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16894         * troff/node.c (init_node_requests): New number registers .kern
16895         pointing to global_kern_mode, and .lg pointing to
16896         global_ligature_mode.
16898         * troff/node.c (ligature): Don't change it if we get a bad
16899         integer.
16901         * troff/input.c (do_define_string): Don't strip tabs.
16903         * troff/input.c (asciify_macro): Make the string_iterator auto.
16905         * troff/node.c (init_font_requests): Rename to...
16906         (init_node_requests):
16907         * troff/node.h: Change declaration.
16908         * troff/input.c (main): Change call.
16910         * troff/input.c (node::reread, diverted_space_node::reread): New
16911         methods.
16912         (process_input_stack): Call reread rather than
16913         get_diverted_space_node.
16914         * troff/node.c (node::get_diverted_space_node,
16915         diverted_space_node::get_diverted_space_node): Removed.
16916         * troff/node.h: Declare reread methods instead of
16917         get_diverted_space_node methods. Make `n' member private.
16918         * troff/input.c: (token::diverted_space): Removed.
16919         * troff/token.h: Removed declaration.
16920         
16922 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
16924         * eqn/script.c (script_box::compute_metrics): Don't let
16925         SUP_RAISE_FORMAT become negative.
16927         * tbl/table.c (table::do_row): Entries that don't end in the
16928         this row shouldn't make the row non-blank.
16929         
16930         * tbl/table.c (table::make_columns_equal): Only set the width of
16931         columns which are marked as equal.
16932         
16933         * tbl/main.c (process_data): Before issuing excess data error,
16934         if last character was a newline unget it; then get it again after
16935         the error.  Also include the contents of the entry in the message.
16937         * groff.c: New file.
16938         * Makefile: Build groff from groff.c.  Make it possible to use
16939         either groff.sh or groff.c as groff.
16940         * Makefile.bd: Similarily.
16942 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
16944         * groff.sh: Don't delay expansion of $@ in assignment to files.
16945         Remove occurrences of \".
16947 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
16949         * all Makefiles: Simplify and rearrange.
16951         * Makefile: Handle fmod like malloc.
16952         * lib/Makefile: Similarily.
16953         * lib/fmod.c: Remove #ifdef NEED_FMOD.
16955         * Makefile: Rename OPTIMISE to OPTIMIZE.
16957         * groff.sh: Remove assignment to PATH.
16958         * Makefile: Remove SHPATH variable.
16959         * Makefile.bd: Similarily.
16961         * groff.sh: Add -V option to print the pipeline instead of
16962         executing it.
16964 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
16966         * lib/font.c: Split off file searching into ...
16967         * lib/fontfile.c: New file.
16969         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16971 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
16973         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16974         Also change misleading comment.
16975         (table::do_vspan): Change similarily misleading comment.
16976         * tbl/main.c (process_data): A format row with an explicit `s'
16977         uses up a data line, even if all the other columns are `_' or `='.
16979         * troff/input.c (token::description): Fix description of
16980         TOKEN_DUMMY and TOKEN_EMPTY.
16982 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16984         * groff.sh: Fix description of -Z in help message.
16986 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16988         * pic/object.c (object_spec::make_object): Allow negative and zero
16989         line thicknesses.
16990         * pic/pic.y: Give linethick default value of -1.0.
16991         * pic/troff.c (troff_output::troff_output): Initialize
16992         last_line_thickness to BAD_THICKNESS.
16993         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16994         (troff_output::line_thickness): Canonicalize negative thicknesses
16995         to RELATIVE_THICKNESS.
16996         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16997         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16998         to -1.0.
16999         (tex_output::start_picture): Set pen_size to -2.0.
17001         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17002         0, then use 0 linewidth.
17003         (ps_printer::ps_printer): Initialize line_thickness to -1.
17005         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17007         * ps/devps/symbolchars: Remove `or'.
17008         * ps/tmac.ps: Implement \(or with .char.
17010         * ps/devps/symbolchars: Move most characters into textmap.
17011         * ps/devps/textmap: Add names for troff bracket characters. Remove
17012         ul, ru, br, bv.
17014         * ps/devps/TSymbol.ps: Removed.
17015         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17016         * ps/tmac.ps: Do with .char what TSymbol did.
17017         * ps/devps/download: Remove TSymbol.
17019         * ps/devps/T: Removed.
17020         * ps/devps/Troff.ps: Removed.
17021         * ps/devps/Troff.afm: Removed.
17022         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17023         * ps/devps/download: Remove Troff.
17024         * ps/devps/FontMakefile: Remove T target.
17025         * ps/devps/DESC-A4: Remove T from font list.
17026         * ps/devps/DESC-letter: Likewise.
17028         * troff/input.c (macro_to_node): Rename to ...
17029         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17030         character's definition while processing it.
17031         * troff/node.c (node::add_char, make_node): Change calls to
17032         macro_to_node accordingly.
17034         * troff/input.c (token::next): Translate \_ to \(ul.
17036         * tty/devascii/R.proto: Add `|'.
17037         * tty/devlatin1/R.proto: Likewise.
17039 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17041         * man: Put the version number in all the man pages.
17043 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17045         * Makefile.bd: New file.
17046         * README.bd: New file.
17048         * VERSION: New file.
17049         * lib/version.c: Removed.
17050         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17051         in clean target.
17053         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17054         environment variable.
17056         * all Makefiles: Split install target into install.bin for
17057         binaries, and install.nobin for everything else.
17058         * Makefile: Add bindist target.
17060         * man/afmtodit.man: New file.
17061         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17062         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17063         in BINDIR.
17064         * ps/Makefile: Pass BINDIR to make install in devps.
17066         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17067         the space character.
17069         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17071 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17073         * ps/ps.c: Redo font downloading.
17074         * ps/devps/download: New file.
17075         * ps/devps/Makefile: Add download to DEVICEFILES.
17076         * ps/devps/afmtodit: Remove -d option.
17077         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17078         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17079         * ps/devps/zapfdr.ps: Likewise.
17080         * ps/devps/TSymbol.ps: Likewise.
17082 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17084         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17086 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17088         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17089         then strip the first line if it starts with %.
17090         * Makefile: Add a comment about this.
17092         * man/tfmtodit.man: New file.
17093         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17094         * dvi/Makefile: Install tfmtodit in BINDIR.
17096         * dvi/tfmtodit.c (usage): Mention -v option.
17098 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17100         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17101         * troff/node.c (troff_output_file::transparent_char): Don't call
17102         flush_tbuf.
17104         * eqn: Add check_tabs method to most box classes.
17105         * eqn/box.c (box::top_level): Call check_tabs.
17107         * eqn/script.c (script_box::output): Use \Z.
17108         * eqn/limit.c (limit_box::output): Use \Z.
17110         * eqn/box.c (box::top_level): Use itoa.
17112 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17114         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17115         * dvi/devdvi/Makefile: Don't make links to CW.
17117         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17118         HX, HD.
17119         * xditview/tmac.X: Likewise.
17121         * troff/node.c: Add font translation feature.
17122         (get_font_translation): New function.
17123         (symbol_fontno): Translate the font name.
17124         (mount_font_no_translate): Rename to mount_font to this.
17125         (mount_font): New function.
17126         (font_family::make_definite): Call mount_font_no_translate instead
17127         of mount_font.
17128         (mount_style): Translate the font name.
17129         (font_translate): New function.
17130         (init_font_requests): Bind "ftr" to font_translate.
17132         * ps/devps/prologue (SN): New procedure that rounds a position to
17133         the nearest (pixel + (.25,.25)).
17134         (DL): Use SN to round endpoints.
17136         * lib/version.c: Changed version to 0.5.
17138 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17140         * Makefile: Move definition of PAGE to the very beginning, so that
17141         people are less likely to miss it.
17143 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17145         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17147         * troff/env.c (environment::choose_breakpoint): Make `can't find
17148         breakpoint' error a warning of type WARN_BREAK.  Change message to
17149         `can't break line'.
17150         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17151         code 040000.
17152         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17153         WARN_BREAK in DEFAULT_WARNING_MASK.
17155         * tty/tmac.tty: Add definition of \(+-.
17157         * groff.sh: Remove `--' option to set command.
17159         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17161         * ps/devps/eqnchar: Better definition of cdot using md.
17162         * dvi/devdvi/eqnchar:  Likewise.
17163         * xditview/devX100/eqnchar:  Likewise.
17164         * xditview/devX75/eqnchar: Likewise.
17165         * eqn/lex.c: Add definition of cdot.
17167 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17169         * troff/input.c (get_optional_char): New function.
17170         * troff/input.c (set_page_character): Use get_optional_char(),
17171         rather than has_arg() and tok.get_char(1).
17172         * troff/env.c (tab_character, leader_character, hyphen_char,
17173         field_characters): Likewise.
17174         (margin_character): Likewise.  Also always delete the
17175         margin_character_node.
17177         * troff/input.c (token::get_char): Use token::description.
17179         * troff/input.c (has_arg): Don't skip over tab and \}.
17180         * troff/number.c (start_number): Give a warning if the number
17181         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17183 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17185         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17186         functions.
17187         (get_name, get_long_name): Use these.  Rename `warn' argument to
17188         `required'.
17190         * troff/node.c (get_fontno): Test that the symbol is not null.
17192         * troff/input.c (token::description): New function.
17193         * troff/number.c (parse_term): Use token::description in `numeric
17194         expression expected' message.
17195         * troff/groff.h: Add WARN_MISSING.
17196         * troff/number.c (start_number): New function.
17197         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17198         get_incr_number): Use start_number().
17199         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17200         default.
17201         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17202         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17203         token::descripion.
17204         * troff/input.c (token::get_char): Use WARN_MISSING.
17205         * troff/input.c (token::delimiter): Use token::description.
17206         * troff/env.c (environment_switch): Back out Aug 3 change.
17207         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17208         warning.
17209         * troff/token.h (token::tab): New function.
17210         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17211         * troff/reg.c (alter_format): Likewise.
17212         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17214 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17216         * troff (most files): Redo warnings. Divide warnings into various
17217         categories; warning() has an additional first argument indicating
17218         the category it falls into.
17219         * troff/input.c (main): -w now takes an argument. New option -W.
17220         (enable_warning, disable_warning): New functions.
17222         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17223         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17225 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17227         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17228         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17229         * xditview/devX75/eqnchar: Likewise.
17230         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17232         * eqn/other.c: When bar or over applies to a single character
17233         don't produce an overline_box or an underline_box. Instead produce
17234         an accent_box or an underaccent_box, with the accent a line
17235         whose width is accent_width.  New classes underaccent_box,
17236         overline_char_box and underline_char_box.
17237         * eqn/box.h: Move overline_box, underline_box, accent_box class
17238         declarations into eqn/other.c. Add declarations of
17239         make_underline_box, make_overline_box, make_accent_box.
17240         * eqn/eqn.y: Call make_overline_box, make_underline_box
17241         make_accent_box instead of constructors.
17242         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17244         * eqn/other.c: Add accent_box::~accent_box.
17245         * eqn/box.h: Declare it.
17247         * groff.sh: With -Tps, use eqn -D.
17249         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17250         rather than \l.
17251         (underline_box::output): Similarily.
17252         (accent_box::output): Use \Z.
17254         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17255         bit smaller.)
17257 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17259         * troff/div.c (top_level_diversion::transparent_output(unsigned
17260         char)): Use asciify.
17261         * troff/input.c (asciify): Don't make it static.
17262         * troff/token.h (asciify): Declare it.
17263         
17264         * troff/input.c (get_name, get_long_name, token::get_char,
17265         token::delimiter): Add an extra default argument which says
17266         whether a warning should be printed.
17267         * troff: Pass a non-zero argument to one of these rather than
17268         printing a warning directly.
17270 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17272         * troff: Consistently use symbol::is_null.
17274         * troff/dictionary.h: Move some inline functions into
17275         dictionary.c.
17277         * troff/request.h: Move inline functions into input.c.
17278         (request_or_macro::invoke): Make it pure.
17280         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17281         * troff/input.c (init_input_requests): Use class constant_int_reg.
17282         (class compatible_reg): Deleted.
17283         * troff/div.c (init_div_requests): Use class constant_int_reg.
17284         (class last_post_line_extra_space_reg): Deleted.
17286         * troff/env.c (tab_character): Don't change the tab character if
17287         we get an invalid argument.
17288         (hyphen_char): Similarily.
17290         * troff/reg.c (alter_format): Check that nm is not null.
17292         * Makefile, groff.sh: Make it possible to customize the commands
17293         used for printing PostScript and dvi files. Also make it possible
17294         to customize the path used by groff.sh.
17296         * eqn/eqn.y: Make `left' right associative.
17298 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17300         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17301         don't have it.
17303         * pic/pic.h: Removed definition of INT_MAX.
17305         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17306         `return'.
17308         * troff/input.c (token::next):  Handle \R like \n.
17310 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17312         * ps/tmac.pc (PSPIC): Simplify.
17314         * troff/env.c (tab_stops::to_string):
17315         * pic/pic.y (object_type_name):
17316         * pic/troff.c (simple_output::line):
17317         * pic/tex.c (tex_output::spline):
17318         * pic/object.c (object_spec::make_object):
17319         * tbl/main.c (process_data):  Add cases to switch statements to
17320         avoid cfront warnings. (Some of these are spurious, since the
17321         switch already has a default case.)
17323         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17324         `ps-'.  Don't test systat; instead check number of arguments to
17325         ps-bb.
17327 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17329         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17331         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17332         Unlink the file as soon as we have opened it, so that we don't
17333         have to bother with signal handlers.
17334         (handler): Deleted.
17335         (fatal_error_exit): Deleted.
17336         (main): Don't call signal.
17338         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17339         can be ignored.
17340         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17342         * pic/pic.y:  If there is a label, or an nth construction before
17343         the first `.' in the argument to `with', ignore it and generate a
17344         warning.
17345         * pic/lex.c (lex_warning): New function.
17347         * tbl/table.c (table::init_output): In section keep and release
17348         macro, use 0 indent when diverting and the correct indent when
17349         rereading.
17351         * troff/input.c (interpolate_number_format): Do not interpolate
17352         anything if the number register is not defined.
17354         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17356 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17358         * ps/devps/prologue (PICTURE): Set components of graphics state to
17359         their default values.
17361         * ps/devps/text.enc: Add trademark
17362         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17363         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17364         * ps/devps/symbolchars: Add names for summation and product.
17366         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17367         suchthat. Add pp. Add upper-case letters.
17369         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17370         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17371         Upsilon.
17373         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17374         rA (right angle bracket) to ra.  Introduce names for double-headed
17375         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17376         * ps/devps/textmap: Likewise for ps device.
17377         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17378         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17379         * tty/devascii/R.proto: Likewise.
17380         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17381         \(uA, \(dA.
17382         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17384         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17386         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17387         def_table.
17389 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17391         * troff/div.c (when_request): Use symbol::is_null rather than
17392         has_arg to determine whether we have an argument.
17393         (change_trap): Remove the trap if we get an invalid number. Give
17394         an error if we don't get at least the macro name.
17395         (diversion_trap): Remove trap if we get an invalid name or number.
17397         * troff/env.c (environment_switch): Pop if we get an invalid
17398         symbol or numeric expression.
17400         * troff/input.c (do_define_macro):  If EOF is encoutered while
17401         defining the macro, do tok.next() before returning.
17403         * troff/token.h (has_arg): Move definition from here, to ...
17404         * troff/input.c (has_arg): ... here
17406         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17407         * troff/input.c (shift): Likewise.
17409         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17410         for `.c'.
17412         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17413         `..'.
17415         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17416         interpret_lf_args succeeds.
17418         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17419         \\.  This avoids problems with \$N.
17421         * groff.sh: Pass -C to preprocessors.
17423         * lib/lf.c (interpret_lf_args):  Be more flexible.
17425         * tbl/main.c (main): Add -C option.
17426         (table_input::get): Do not recognize TE if followed by character
17427         other than a space or newline unless -C option given.
17428         (process_input_file): Likewise for lf, TS.
17429         (process_data): Likewise for lf in text blocks.
17431         * eqn/main.c (main): Add -C option.
17432         (do_file): Don't recognize EQ, EN or lf if followed by character
17433         other than space or newline unless -C option given.
17434         * eqn/lex.c (file_input::read_line): Similarily.
17435         * eqn/eqn.h: Declare compatible_flag.
17437         * etc/soelim.c (main): Add -C option.
17438         (interpret_lf_args): Use version in libgroff.
17439         (do_file):
17441         * pic/main.c (main): Add -C option, which sets compatible_flag.
17442         (top_input::get), (top_input::peek):  If -C option not given,
17443         do not recognize .PS/.PE/.PF/.lf if followed by a character
17444         other than space or newline.
17445         * pic/lex.c (file_input::read_line): Similarily.
17446         * pic/pic.h: Add declaration of compatible_flag.
17448 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17450         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17452         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17453         derived from node.  New class space_char_hmotion_node.
17454         * troff/input.c (asciify_macro): New function.
17455         * troff/input.c (init_input_requests): New request `asciify' bound
17456         to asciify_macro.
17457         * macros/mm.diff: New file.
17458         * Makefile:  In install.mm target use `patch' to apply
17459         macros/mm.diff.
17461         * troff/input.c (macro::print_size): Just print the size in bytes.
17463         * troff/div.c (return_request): Correct the argument
17464         interpretation.
17466 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17468         * troff/node.h (class composite_node): Add sz member.
17469         * troff/node.c (composite_node::size): Return sz.
17470         * troff/input.c (macro_to_node):  Use the initial size in the
17471         environment as the size of the composite_node.
17473         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17474         default.
17476 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17478         * troff/div.c (change_trap): If we get a bad number expression,
17479         do nothing.
17481 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17483         * lib/matherr.c (matherr): Define this only if math.h defines
17484         TLOSS.
17486 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17488         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17489         no diversion trap return vunits(INT_MAX - vresolution).
17491 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17493         * troff/input.c (do_zero_width): New implementation that doesn't
17494         use a temporary environment. Use instead:
17495         (token::add_to_node_list): New function.
17496         * troff/env.c (environment::get_prev_char_height),
17497         (environment::get_prev_char_height),
17498         (environment::get_prev_char_skew): New functions.
17499         (environment::get_prev_char): New function.
17500         (environment::get_prev_char_width): Change to use get_prev_char.
17501         (init_env_request): Implement new registers .cht, .cdp, .csk.
17502         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17503         \Z being processed in a separate environment.
17505 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17507         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17509         * tbl/table.c (table::init_output): In the section release macro,
17510         give a warning message if the section won't fit on one page.
17512         * tbl/table.c (table::do_top): Emit table keep only if table is
17513         boxed.
17514         (table::do_bottom): Likewise for table release.
17515         (table::table), (table::add_vertical_rule):  Remove reference to
17516         keep member.
17517         * tbl/table.h: Remove keep member.
17519         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17520         SECTION_RELEASE_MACRO, if there's not enough space before the next
17521         trap to output the diversion, call T# ourselves, set
17522         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17523         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17524         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17525         vertical position and return to it before turning traps on again.
17526         
17527 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17529         * troff/node.c, troff/node.h: In classes derived from node,
17530         replace prev_char_width method by last_char_node method.
17531         * troff/env.c (environment::get_prev_char_width): Use
17532         node::last_char_node rather than node::get_prev_char_width.
17534         * Makefile: Added comment about -fno-inline on 68030-based
17535         Apollos.
17537         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17538         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17539         expressions using sizeof to int.
17540         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17542         * macros/tmac.e (TS):  Don't move @f back past the current
17543         position.
17545 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17547         * ps/ps.c (main): Buffer stderr.
17548         * dvi/dvi.c (main): Likewise.
17549         * tty/tty.c (main): Likewise.
17551         * ps/ps.c (ps_printer::do_import): Improve error handling.
17553         * troff/input.c (abort_request): Use asciify.
17555         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17556         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17557         type of first argument int rather than char.  This works around a
17558         bug on the 68030 based Apollo using g++ 1.37.1.
17560         * tbl/table.h (class table): Add `keep' member.
17561         * tbl/table.c (table::table): Initialize `keep'.
17562         (table::add_vertical_rule): Set `keep' to 1.
17563         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17564         (table::do_bottom): Likewise for table release macro.
17565         (table::do_row): Emit section keep macro even if the row is 0.
17567 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17569         * macros/tmac.e (@C): Preserve the font family across the change
17570         in environments.
17572 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17574         * lib/font.c: Initialize font::hor and font::vert to 1.
17575         (font::load_desc): Check the values of font::hor and font::vert.
17577         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17578         be included in a C compilation.
17579         (iftoa): Use INT_DIGITS. Include lib.h.
17580         (itoa): Likewise.
17581         (as_string): Likewise.
17582         * tbl/table.c: Removed definition of INT_DIGITS.
17583         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17584         * troff/input.c (input_input_requests): Likewise.
17585         * ps/ps.c (make_encoding_name): Likewise.
17586         (ps_printer::set_style): Likewise.
17587         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17589         * tty/devascii/R.proto: Map fm onto '.
17590         * tty/devlatin1/R.proto: Likewise.
17592 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17594         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17595         argument to \w is at a different input level.
17597         * tbl/table.c (table::init_output): Define a new macro
17598         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17599         transparently outputs itself.
17600         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17601         vpt.
17602         (table::do_row): Likewise.
17604         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17605         TRANSPARENT_STRING_NAME.
17607         * tbl/table.c (table::init_output): In the table release macro
17608         print an error message and don't produce any output if after
17609         issuing the need request the table still will not fit.  Also
17610         remove the diversion after bringing it back.
17612         * tbl/table.c (table::init_output): Define a new macro
17613         REPEATED_MARK_MACRO, like mk but if in a diversion also
17614         transparently outputs itself.
17615         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17616         is necessary because .TH might not call .T#.
17617         (table::do_top): Likewise TOP_REG.
17618         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17619         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17620         table header might contain just the two top rules.
17622 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17624         * troff/div.c: Implement new request `ptr' to print all traps.
17626         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17627         init_string_env_reg.
17628         * troff/env.c (class tab_reg): Deleted.
17630 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17632         * troff/div.c: New number register .pn returns the number of the
17633         next page as set by the pn request.
17635         * macros/tmac.an: Redid headers and footers.  Number each manual
17636         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17637         optional 5th argument to .TH which specifies the manual name and
17638         appears in the center of the header.  Understand the X, P and D
17639         registers like Sun.
17641 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17643         * troff/env.c (init_env_requests): New number register `.lt' to
17644         return the title length.
17646         * troff/node.h (class transparent_dummy_node): New class.
17647         * troff/node.c (class transparent_dummy_node): Provide member
17648         functions. 
17649         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17650         than a dummy_node.
17652         * troff/input.c (token::next): New escape sequence \).
17653         * troff/input.c (get_copy): Recognize \) in copy mode.
17655         * troff/input.c (input_stack::clear): New function.
17656         * troff/input.c (exit_request): Use input_stack::clear.
17658         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17659         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17661         * troff/env.c: Move set_page_character to input.c.  Move
17662         page_character to input.c also.
17663         * troff/env.c (title): Split off the reading of the parts of the
17664         title into read_title_parts.
17665         * troff/input.c (read_title_parts): New function.  Check the
17666         input_level when testing whether a token matches the delimiter.
17668         * troff/input.c (exit_request): New function.
17669         * troff/input.c (init_input_requests): Bind ex request to
17670         exit_request rather than exit_groff.
17672         * troff/input.c (exit_groff): Call tok.next() before
17673         process_input_stack().
17675 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17677         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17678         * troff/env.h: ditto.
17679         * troff/input.c: ditto.
17681         * troff/env.c (environment::is_empty): Test pending_lines.
17683         * troff/env.c (environment::have_pending_lines): Removed.
17685         * troff/input.c: Add request to flush pending lines from the
17686         environment.
17688         * troff/env.c, troff/env.h: Add automatic widow control feature.
17690         * troff/input.c (exit_groff):  Do process_input_stack() after
17691         do_break() but before setting exit_flag to 2.
17693         * troff/input.c: Remove FLUSH_PENDING_LINES and
17694         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17695         environment after END_TRAP token seen, but only if there aren't
17696         any more traps still unfinished.
17697         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17699 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17701         * troff/env.c: Rename the `retain_size' member of class
17702         pending_output_line to `no_fill'.
17704         * troff/env.c (title): When the line is output, make the
17705         retain_size argument !fill.
17707         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17708         * troff/node.c (space_node::get_breakpoints),
17709         (dbreak_node::get_breakpoints):  Fill this in.
17710         * troff/env.c:  Allow specification of maximum number of
17711         consecutive hyphenated lines.
17713         * troff/env.c (environment::is_empty): Add test for !current_tab.
17715 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17717         * troff/env.c (environment::hyphenate_line): Don't completely give
17718         up if the word is not to be hyphenated; continue so that breaks
17719         can be made at break_char_node's.
17721         * lib/lib.h: Only define INT_MAX if it's not already defined;
17722         undef INT_MIN if it's already defined.
17724         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17726         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17727         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17728         compiler.
17729         
17730         * macros/tmac.an (an-header): Set no-space mode.
17732         * macros/tmac.an (TH): Start a new page if necessary.
17734         * Started using ChangeLog at version 0.4.
17736 Local Variables:
17737 version-control: never
17738 coding: latin-1
17739 End: